PageSourceSearch

https://www.shannan.gov.cn/images/snhdjl.js

js shannan.gov.cn collected 2026-10-02 16:51:19 UTC 4,198 bytes, 130 lines download raw bytes

1// 时间转换
2function getMyDate(str) {
3    var oDate = new Date(str),
4    oYear = oDate.getFullYear(),
5    oMonth = oDate.getMonth() + 1,
6    oDay = oDate.getDate(),
7    oHour = oDate.getHours(),
8    oMin = oDate.getMinutes(),
9    oSen = oDate.getSeconds(),
10    oTime = oYear + '-' + getzf(oMonth) + '-' + getzf(oDay);//最后拼接时间  
11    //oTime = oYear +'-'+ getzf(oMonth) +'-'+ getzf(oDay) +' '+ getzf(oHour) +':'+ getzf(oMin) +':'+getzf(oSen);//最后拼接时间  
12    return oTime;
13}
14function getzf(num) {
15    if (parseInt(num) < 10) {
16      num = '0' + num;
17    }
18    return num;
19}
20
21// 市长信箱的信件类型
22function getGovMsgBoxType(govmsgboxtype){
23	if(govmsgboxtype == 1){
24		govmsgboxtype = "建议";
25	}else if(govmsgboxtype == 2){
26		govmsgboxtype = "表扬";
27	}else if(govmsgboxtype == 3){
28		govmsgboxtype = "咨询";
29	}else if(govmsgboxtype == 4){
30		govmsgboxtype = "投诉";
31	}
32	return govmsgboxtype;
33}
34
35// 市长信箱的信件处理情况
36function getStatus(Status){
37    	Status = (Status < 7 ? "处理中" : "已处理");
38    	return Status;
39    } 
40
41// 获取地址栏中的参数
42function UrlSearch() {
43	var url = decodeURI(window.location.href);
44	var url = url.substring(url.indexOf("?")+1);
45	var arr=url.split("&");
46	for(var i=0;i < arr.length;i++){ 
47	    num=arr[i].indexOf("="); 
48	    if(num>0){ 
49	     	name=arr[i].substring(0,num);
50	     	value=arr[i].substr(num+1);
51	     	this[name]=value;
52	    } 
53	}
54}
55
56// 验证码
57function loadimage(){
58 	document.getElementById("loadcode").src="/IGI/appadmin/image?randName=loginCaptcha"+Math.random();
59}
60
61//创建分页
62// 总页数  当前页  总记录数 后缀名
63function createPage(_nPageCount, _nCurrIndex){
64  if(_nPageCount == null || _nPageCount<=1){
65    return;
66  }
67  var str = "";
68  nCurrIndex = _nCurrIndex;
69  // var nCurrIndex = _nCurrIndex || 0;
70  // 1 输出首页和上一页
71  // 1.1 当前页是首页
72  if(nCurrIndex == 1){
73    // <a href="javascript:void(0)" onclick="work(this)">1</a>
74    str += "<a class='pn' href='javascript:void(0)' name='1' onclick='work(this)'>首页</a>";
75    str += "<a class='cur' name='1' href='javascript:void(0)' onclick='work(this)'>1</a>";
76  }
77  //1.2 当前页不是首页
78  else{
79    var nPreIndex = nCurrIndex - 1;
80    // var sPreFileExt = nPreIndex == 0 ? "" : ("_" + nPreIndex);
81 
82    str += "<a href='javascript:void(0)' onclick='work(this)' name='1' class='pn'>首页</a>";
83    str += "<a href='javascript:void(0)' onclick='work(this)' name='" + nPreIndex +"' class='pn'>上一页</a>";
84    str += "<a href='javascript:void(0)' onclick='work(this)' name='1' >1</a>";
85  }
86  // 2 输出中间分页
87  var flag1=true;
88  var flag2=true;
89
90  for(var i=2; i<=_nPageCount; i++){
91    if(i-nCurrIndex<3&&nCurrIndex-i<3||i<2||_nPageCount-i<3){
92      if(nCurrIndex == i)
93        str += "<a class='cur' href='javascript:void(0)' onclick='work(this)' name='" + i + "'>"+ i +"</a>";
94      else
95        str += "<a href='javascript:void(0)' onclick='work(this)' name='" + i + "'>"+i+"</a>";
96    }
97    else if(i-nCurrIndex>2&&flag1){
98      flag1=false;
99      str += "<a class='more'>...</a>";
100    }
101    else if(nCurrIndex-i>2&&flag2){
102      flag2=false;
103      str += "<a class='more'>...</a>";
104    }
105  }
106  // 3 输出下一页和尾页
107  //3.1 当前页是尾页
108  if(nCurrIndex == (_nPageCount)){
109    str += "<a href='javascript:void(0)' onclick='work(this)' name='" + (_nPageCount) +"' class='pn'>尾页</a>";
110  }
111  // 3.2 当前页不是尾页
112  else{
113    var nNextIndex = nCurrIndex + 1;
114    // var sPreFileExt = nPreIndex == 0 ? "" : ("_" + nPreIndex);
115    str += "<a href='javascript:void(0)' onclick='work(this)' name='" + nNextIndex +"' class='pn'>下一页</a>";
116    str += "<a href='javascript:void(0)' onclick='work(this)' name='" + (_nPageCount) + "' class='pn'>尾页</a>";
117  }
118  //跳转到i
119  str += "<span>跳转至</span><input id='numPage' type='text' name='' value="+(_nCurrIndex)+" /><span>页</span><a class='cur go' href='javascript:void(0)' onClick='javacript:toPage()'>GO</a>";
120  $(".page").html(str);  
121}
122//分页完
123
124
125
126
127
128
129
130

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.