var oper_info=null; var posturl=""; function checkFun(v, k) { if ($(v).val() == "") { alert(k + " is incorrect"); $(v).focus(); return false; } if(v.indexOf("name='email'")!=-1){ if(!ismail($(v).val())){ alert("The "+k+" Incorrect format"); $(v).focus(); return false; } } if(v.indexOf("name='password'")!=-1){ if(($(v).val()).length<6){ alert(k+" At least 6 people"); $(v).focus(); return false; } } if (v.indexOf("name='phone'") != -1) { $(v).val(jQuery.trim($(v).val())); if (!istel($(v).val())) { alert("The "+k+" Incorrect format"); $(v).focus(); return false; } } return $(v).val(); } //获取url后的参数值 function getUrlParam(key) { var href = window.location.href; var url = href.split("?"); var search = window.location.search; if (url.length <= 1 || !search) { return ""; } var params = url[1].split("&"); for (var i = 0; i < params.length; i++) { var param = params[i].split("="); if (key == param[0]) { return param[1]; } } return ""; } function istel(tel) {return (new RegExp(/^(13[0-9]|14[5-9]|15[012356789]|166|17[0-8]|18[0-9]|19[8-9])[0-9]{8}$/).test(tel));}//手机号格式校验 function ismail(mail){return(new RegExp(/^(?:[a-zA-Z0-9]+[_\-\+\.]?)*[a-zA-Z0-9]+@(?:([a-zA-Z0-9]+[_\-]?)*[a-zA-Z0-9]+\.)+([a-zA-Z]{2,})+$/).test(mail));}//邮箱格式校验 var classify1='',classify2='',classifyAll1='',classifyAll2='',offsets=0,limits=20,search="";//如果自定义,请小于栏目设置的limit数量 var list_url = "/system/web/dataList"; if(typeof(class_limit) != "undefined"){limits = parseInt(class_limit);} var total=0;//总条数 //------------------get数据------------------------- function formatTime(time, format) {//时间格式化工具 var t = new Date(time); var tf = function (i) { return (i < 10 ? '0' : '') + i }; return format.replace(/yyyy|MM|dd|HH|mm|ss/g, function (a) { switch (a) { case 'yyyy': return tf(t.getFullYear()); break; case 'MM': return tf(t.getMonth() + 1); break; case 'mm': return tf(t.getMinutes()); break; case 'dd': return tf(t.getDate()); break; case 'HH': return tf(t.getHours()); break; case 'ss': return tf(t.getSeconds()); break; } }) } function listPaginator(totalPages,currentPage){ $('.page-list ul').jqPaginator({ totalPages: totalPages//设置分页的总页数 ,visiblePages: 8//设置最多显示的页码数(例如有100也,当前第1页,则显示1 - 7页) ,currentPage: currentPage//设置当前的页码 ,first: ''//设置“首页”的Html结构 ,prev: '
'+item.common_descrition+'
'+ ''+item.common_descrition+'
'+ ' '+formatTime(item.common_createtime,'yyyy年MM月dd日')+''+ ''+item.common_descrition+'
'+ ' '+formatTime(item.common_createtime,'yyyy年MM月dd日')+''+ ''+common_descrition+'
'+ ''+item.nav_name+'
'+ // '