// 褰撳垎椤典笉瓒充互鏄剧ず闅愯棌div $(function() { if (parseInt($('div.dataTables_paginate li').length) > 0) { $('div.dataTables_paginate').show(); } }); // 姝e湪鍔犺浇涓殑鍦堝湀鎻愮ず function showLayerLoad() { var result = layer.load(1, {anim: 2, shade: [0.1, '#fff']}); return result; } // 鍐呭鎻愮ず(鏃犵‘璁ゆ寜閽? function showLayerMsg(msg, anim, callback) { if (!anim && anim != 0) anim = 2; layer.msg(msg, {anim: anim, time: 1500}, function(index) { if (typeof callback !== 'undefined') callback(); layer.close(index); }); } // 鍐呭鎻愮ず(鏈夌‘璁ゆ寜閽? function showLayerAlert(msg, anim, icon, callback) { if (!anim && anim != 0) anim = 2; if (!icon && icon != 0) icon = 5; layer.alert(msg, {anim: anim, icon: icon, title: false, closeBtn: false}, function(index) { if (typeof callback !== 'undefined') callback(); layer.close(index); }); } // 缁熶竴鎻愮ず纭妗 function showConfirmBox(msg, btn, callback_1, callback_2) { if (typeof msg === 'undefined' || !msg) msg = '纭鎵ц姝ゆ搷浣滐紵'; if (typeof btn === 'undefined' || !btn) btn = [ey_foreign_system2, ey_foreign_system3]; layer.confirm(msg, { anim: 2, btn: btn, closeBtn: 0, title: false, shadeClose: true, skin: 'xin-demo-btn' }, function (index) { // 纭鎿嶄綔 if (typeof callback_1 !== 'undefined') callback_1(); layer.close(index); }, function (index) { // 鍙栨秷鎿嶄綔 if (typeof callback_2 !== 'undefined') callback_2(); layer.close(index); }); } // 澶勭悊楠岃瘉閭鏍煎紡 function handleEmailFormat(email) { var reg = /^[a-z0-9]([a-z0-9\\.]*[-_]{0,4}?[a-z0-9-_\\.]+)*@([a-z0-9]*[-_]?[a-z0-9]+)+([\.][\w_-]+){1,5}$/i; return reg.test(email); } // 澶勭悊楠岃瘉鐮佸埛鏂帮紝榛樿鑾峰彇浼氬憳鐧诲綍鐨勯獙璇佺爜锛屽彲浼犲叆type绫诲瀷(admin_login銆乽sers_reg銆乽sers_login銆乽sers_retrieve_password銆乬uestbook) function handleVerifyRefresh(id, type) { id = !id ? 'imgVerifys' : id; type = !type ? 'users_login' : type; var src = eyou_basefile + "?m=api&c=Ajax&a=vertify&type=" + type; src = src + '&r=' + Math.floor(Math.random() * 100); $('#' + id).attr('src', src); } // 娓叉煋缂栬緫鍣 function showLoadEditor(elemtid) { var content = ''; try{ content = UE.getEditor(elemtid).getContent(); UE.getEditor(elemtid).destroy(); }catch(e){} var options = { serverUrl : __root_dir__+'/index.php?m=user&c=Uploadify&a=index&savepath=ueditor&lang='+__lang__, zIndex: 999, initialFrameWidth: "100%", initialFrameHeight: 450, focus: false, maximumWords: 99999, removeFormatAttributes: 'class,style,lang,width,height,align,hspace,valign', pasteplain: false, autoHeightEnabled: false, toolbars: [['fullscreen', 'forecolor', 'backcolor', 'removeformat', '|', 'simpleupload', 'unlink', '|', 'paragraph', 'fontfamily', 'fontsize']], xssFilterRules: true, inputXssFilter: true, outputXssFilter: true }; eval("ue_"+elemtid+" = UE.getEditor(elemtid, options);ue_"+elemtid+".ready(function() {ue_"+elemtid+".setContent(content);});"); } // 鍙戦€?鐭俊銆侀偖绠?鎻愰啋 function eyUnifiedSendRemind(result) { if (result) { $.ajax({ url: result.url, data: result.data, type: 'post', dataType: 'json' }); } }