var parantShoworhide = function(_id01, _id02,flag){ if((_id01 ==""||typeof _id01 !="string")&&(_id02 ==""||typeof _id02 !="string")) return; _obj01 = window.parent.document.getElementById(_id01); _obj02 = window.parent.document.getElementById(_id02); if(!_obj01||!_obj02)return; if(_id01!="pop_filter_login"){ if(objFilters.length<1){ objFilters.push(_obj01); }else{ if(!in_array(_obj01,objFilters)){ objFilters.push(_obj01); } } }else{ for( var i=0,j=objFilters.length;i"+title+" ");//标题内容 $(pDoc).find("#potModMsg").html(msg);//信息内容 var okBtn=""; var cancelBtn=""; $(pDoc).find("#potModBtn").html(okBtn+cancelBtn);//按钮内容 $(".popMod .popBox").css("z-index",9999); $(pDoc).find("#_comfirmButton").click( function(){ showOrHideAlert(0);//关闭 if(clickAct){ clickAct(); } } ); showOrHideAlert(1);//弹出框 } /** * * 信息弹出框 * clickAct 为点击落确定后调定义的方法,如果没调用方法msgAlert("显示的内容"); * 例: * var txt="测试"; * var afterAct=function(){ * alert(form.name); * alert(txt); * }; * msgAlert("显示的内容",afterAct); */ function msgAlert(msg,clickAct){ var pDoc = (this!=parent ? window.parent.document : document); $(pDoc).find('#potModTitle').attr('class','popTit');//标题灰色条 $(pDoc).find('#potModTitle').html('温馨提示 ');//标题内容 $(pDoc).find('#potModMsg').html(msg);//信息内容 $(pDoc).find('#potModBtn').html('');//按钮内容 $('.popMod .popBox').css('z-index',9999); $(pDoc).find('#_msgButton').click(function(){//绑定onclick事件 showOrHideAlert(0);//隐藏弹出框 if(clickAct) clickAct(); } ); showOrHideAlert(1);//弹出框 } /** * 弹出数据处理等框 */ function loadingAlert(msg){ var pDoc;; if(this!=parent){ pDoc=window.parent.document }else{ pDoc=document; } $(pDoc).find("#potModTitle").attr("class","");//清除灰色条 $(pDoc).find("#potModTitle").html("

"); $(pDoc).find("#potModMsg").html("  "+msg);//信息内容 $(pDoc).find("#potModBtn").html("");//清除按钮内容 showOrHideAlert(1);//弹出框 } /** * */ function showOrHideAlert(flag){ if(this!=parent){ parantShoworhide('popMod','popBox',flag); }else{ showorhide('popMod','popBox',flag); } } //按回车提交 请求 function enterSubmit(e){ /* if(!window.event) { var event = window.event || arguments.callee.caller.arguments[0]; }*/ e = e || event;//对火狐和IE事件的判断 if(e.keyCode==13){ e.returnValue=false; eval(e); } } //全选与反选 function SelectAll(_type,_name){ // alert(_type); alert(_name); var o = document.getElementsByName(_name); var check = (_type == 1)?true:false; for(var i=0;i"; } c+=""; c+=""; c+=""; c+=""+_tip+""; c+=""; c+=""; c+=""; c+="
"; c+="
共 0 条记录每页"; c+=""; c+="条 页次:0/0页 "; c+="
"; c+="
"; c+="
"; c+="
    "; c+="
  • "; c+=""; c+="
  • "; c+="
  • "; c+=""; c+="
  • "; c+="
  • "; c+=""; c+="
  • "; c+="
  • "; c+=""; c+="
  • "; c+="
  • "; c+=""; c+="
  • "; c+="
"; c+="
"; c+="
"; c+="
"; c+="
"; $("#listData").html(c); } //详细信息弹出框 popBox2Width popBox2的宽度,默认为650px title:弹出框的标题 yourContent:弹出框内容 function detailInfoShow(popBox2Width,title,yourContent,id){ //alert(popBox2Width); alert(title); alert(yourContent); if(popBox2Width!=''){ $("#popBox2").width(popBox2Width); } if(title!=''){ if(!$("#title>span").get(0)) { $("#title").html(""); } if(id) { title=''+title+''; $("#title").append(title); } else { $("#title").html(title); } } if(id) { yourContent="
"+yourContent+"
"; if(!$("#yourContent #"+id).get(0)) { $("#yourContent").append(yourContent); } } else { $("#yourContent").html(yourContent); } showorhide('popMod2','popBox2',id); } /** * StringBuffer Class, to join two string is the most use * @author xiaofei 2007-7-20 */ function StringBuffer() { this._strings = []; if(arguments.length==1) { this._strings.push(arguments[0]); } } StringBuffer.prototype.append = function(str) { this._strings.push(str); return this; } StringBuffer.prototype.toString = function() { return this._strings.join(""); } /* 返回长度 */ StringBuffer.prototype.length = function() { var str = this._strings.join(""); return str.length; } /* 删除后几位字符 */ StringBuffer.prototype.del = function(num) { var len = this.length(); var str = this.toString(); str = str.slice(0,len-num); this._strings = []; this._strings.push(str); } function _gdCity(_ci) { var a_ci = ['广州','深圳','东莞','珠海','中山','佛山','惠州','江门','韶关','清远','汕头','潮州','汕尾','揭阳','梅州','河源','云浮','肇庆','阳江','茂名','湛江']; return (!isNaN(_ci) && _ci>0 && _ci<=a_ci.length) ? a_ci[_ci-1] : _ci; } function getProductTypeFromMap(_productType) { var _pt = ''; switch(_productType) { case 0: _pt = '产品'; break; case 1: _pt = '3G号码'; break; case 2: _pt = '广告'; break; default: break; } return _pt; } //帐务转账状态 function getZwStatus(_zwType) { var _pt = ''; switch(_zwType) { case 1: _pt = '尚未转账'; break; case 2: _pt = '已经转账'; break; case 3: _pt = '已经到账'; break; default: break; } return _pt; } //(账务明细表)账务类型 function getFinanceDetailFtype(_ft){ var a_ft = ['订单总金额','配送费','佣金']; return (!isNaN(_ft) && _ft>0 && _ft<=a_ft.length) ? a_ft[_ft-1] : _ft; } //(账务明细表)账务状态 function getFinanceDetailFstatus(_fs){ var a_fs = ['待审核','有效','无效']; return (!isNaN(_fs) && _fs>0 && _fs<=a_fs.length) ? a_fs[_fs-1] : _fs; } //(账务明细表)订单来源 function getFinanceDetailOrderFrom(_of){ var a_of = ['接口下订单','插件下订单','销售联盟下订单']; return (!isNaN(_of) && _of>0 && _of<=a_of.length) ? a_of[_of-1] : _of; } //(账务明细表)用户类型 function getFinanceDetailUsertype(_ut){ var a_ut = ['网上商城用户','销售联盟用户','广告联盟用户']; return (!isNaN(_ut) && _ut>0 && _ut<=a_ut.length) ? a_ut[_ut-1] : _ut; } //1:中国银行|2:农业银行|3:建设银行|4:工商银行|5:广东发展银行|6:光大银行|7:东莞银行|8:汇丰银行|9:兴业银行|10:深圳发展银行|11:招商银行|12:浦发银行|13:交通银行|14:支付宝账号|15:易宝账号|16:财付通账号 refer to property.properties function getBankName(_id){ var banks=["中国银行","中国农业银行","中国建设银行","中国工商银行","广州发展银行","中国光大银行","东莞银行","汇丰银行","兴业银行","深圳发展银行","招商银行","浦发银行","交通银行","支付宝账号","易宝账号","财付通账号"]; // alert(banks.length); return (!isNaN(_id)&&_id!=0&&_id<=banks.length)?banks[_id-1]:_id; } //复制txt function copyToClipboard(txt) { if(window.clipboardData) { window.clipboardData.clearData(); window.clipboardData.setData("Text", txt); } else if(navigator.userAgent.indexOf("Opera") != -1) { window.location = txt; } else if (window.netscape) { try { netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); } catch (e) { msgAlert("被浏览器拒绝!\n请在浏览器地址栏输入'about:config'并回车\n然后将'signed.applets.codebase_principal_support'设置为'true'"); } var clip = Components.classes['@mozilla.org/widget/clipboard;1'].createInstance(Components.interfaces.nsIClipboard); if (!clip) return; var trans = Components.classes['@mozilla.org/widget/transferable;1'].createInstance(Components.interfaces.nsITransferable); if (!trans) return; trans.addDataFlavor('text/unicode'); var str = new Object(); var len = new Object(); var str = Components.classes["@mozilla.org/supports-string;1"].createInstance(Components.interfaces.nsISupportsString); var copytext = txt; str.data = copytext; trans.setTransferData("text/unicode",str,copytext.length*2); var clipid = Components.interfaces.nsIClipboard; if (!clip) return false; clip.setData(trans,null,clipid.kGlobalClipboard); msgAlert("复制成功"); } } Function.prototype.bind=function(scope) { var fun=this; return function() { fun.apply(scope,arguments); } } function getPayType(type){ var _pt = ''; if(type=="yb"){ _pt = "易宝支付"; }else if(type=="ICBC-NET"){ _pt = "中国工商银行"; }else if(type=="CCB-NET"){ _pt = "中国建设银行"; }else if(type=="CMBCHINA-NET"){ _pt = "招商银行"; }else if(type=="BOCO-NET"){ _pt = "中国交通银行"; }else if(type=="ABC-NET"){ _pt = "中国农业银行"; }else if(type=="GDB-NET"){ _pt = "广东发展银行"; }else if(type=="CIB-NET"){ _pt = "兴业银行"; }else if(type=="CEB-NET"){ _pt = "中国光大银行"; }else if(type=="ECITIC-NET"){ _pt = "中信银行"; }else if(type=="SPDB-NET"){ _pt = "浦发银行"; }else if(type=="BOC-NET"){ _pt = "中国银行"; }else if(type=="SDB-NET"){ _pt = "深圳发展银行"; } return _pt; } function open_Pack(id){ if(id=="a1"){// if(document.getElementById("a1").style.display == 'none'){ document.getElementById("a1").style.display = 'block'; document.getElementById("b1").style.display = 'none'; document.getElementById("c1").style.display = 'none'; document.getElementById("d1").style.display = 'none'; document.getElementById("e1").style.display = 'none'; document.getElementById("f1").style.display = 'none'; } } if(id=="b1"){// if(document.getElementById("b1").style.display == 'none'){ document.getElementById("b1").style.display = 'block'; document.getElementById("a1").style.display = 'none'; document.getElementById("c1").style.display = 'none'; document.getElementById("d1").style.display = 'none'; document.getElementById("e1").style.display = 'none'; document.getElementById("f1").style.display = 'none'; } } if(id=="c1"){// if(document.getElementById("c1").style.display == 'none'){ document.getElementById("c1").style.display = 'block'; document.getElementById("a1").style.display = 'none'; document.getElementById("b1").style.display = 'none'; document.getElementById("d1").style.display = 'none'; document.getElementById("e1").style.display = 'none'; document.getElementById("f1").style.display = 'none'; } } if(id=="d1"){// if(document.getElementById("d1").style.display == 'none'){ document.getElementById("d1").style.display = 'block'; document.getElementById("a1").style.display = 'none'; document.getElementById("c1").style.display = 'none'; document.getElementById("b1").style.display = 'none'; document.getElementById("e1").style.display = 'none'; document.getElementById("f1").style.display = 'none'; } } if(id=="e1"){// if(document.getElementById("e1").style.display == 'none'){ document.getElementById("e1").style.display = 'block'; document.getElementById("a1").style.display = 'none'; document.getElementById("c1").style.display = 'none'; document.getElementById("d1").style.display = 'none'; document.getElementById("b1").style.display = 'none'; document.getElementById("f1").style.display = 'none'; } } if(id=="f1"){// if(document.getElementById("f1").style.display == 'none'){ document.getElementById("f1").style.display = 'block'; document.getElementById("a1").style.display = 'none'; document.getElementById("c1").style.display = 'none'; document.getElementById("d1").style.display = 'none'; document.getElementById("e1").style.display = 'none'; document.getElementById("b1").style.display = 'none'; } } } function FormatNumber(srcStr,nAfterDot) //nAfterDot小数位数 {    var srcStr,nAfterDot;    var resultStr,nTen;    srcStr = ""+srcStr+"";    strLen = srcStr.length;    dotPos = srcStr.indexOf(".",0);    if (dotPos == -1){      resultStr = srcStr+".";      for (i=0;i= nAfterDot){        nAfter = dotPos + nAfterDot + 1;        nTen =1;        for(j=0;j