function appMenuShow(sender) { $(sender).addClass("hover"); } function appMenuHide(sender) { $(sender).removeClass("hover"); } //凤城市教育局特殊处理 //var isFC = (window.UnitID == "8aabbcfd-4e2a-4aed-a99f-efa7163fd2b6"); //中国正能量 var zGZNL = (window.UnitID == 'b27a189b-57b8-4667-bafc-e41e30c12b55'); //织金瀑布 var zJPB = (window.UnitID == '4ee8d0c7-5bed-4163-a92b-e84ec262ba9f'); var schoolzz = (typeof (window.SchoolApp.ZZ) != "undefined" && window.SchoolApp.ZZ != null) ? window.SchoolApp.ZZ : "www.30edu.com.cn"; var schoolkj = (typeof (window.SchoolApp.KJ) != "undefined" && window.SchoolApp.KJ != null) ? window.SchoolApp.KJ : "t.30edu.com.cn"; var schoolzy = (typeof (window.SchoolApp.ZY) != "undefined" && window.SchoolApp.ZY != null) ? window.SchoolApp.ZY : "z.30edu.com.cn"; var schooloa = (typeof (window.SchoolApp.OA) != "undefined" && window.SchoolApp.OA != null) ? window.SchoolApp.OA : "oa.30edu.com.cn"; var schoolzj = (typeof (window.SchoolApp.ZJ) != "undefined" && window.SchoolApp.ZJ != null) ? window.SchoolApp.ZJ : "zujuan.30edu.com.cn"; var schoolts = (typeof (window.SchoolApp.TS) != "undefined" && window.SchoolApp.TS != null) ? window.SchoolApp.TS : "ebook.30edu.com.cn"; //var schoolvk = (typeof(window.SchoolApp.VK)!="undefined"&&window.SchoolApp.VK!=null)?window.SchoolApp.VK:"vk.30edu.com"; var schoolpk = (typeof (window.SchoolApp.PK) != "undefined" && window.SchoolApp.PK != null) ? window.SchoolApp.PK : "paike.30edu.com.cn"; var schoolsfkt = (typeof (window.SchoolApp.SFKT) != "undefined" && window.SchoolApp.SFKT != null && window.SchoolApp.SFKT != "1") ? "0" : "1"; //var schoolzd = (typeof (window.SchoolApp.ZD) != "undefined" && window.SchoolApp.ZD != null) ? window.SchoolApp.ZD : "zhidao.30edu.com"; var schoolvd = (typeof (window.SchoolApp.VD) != "undefined" && window.SchoolApp.VD != null) ? window.SchoolApp.VD : "video.30edu.com.cn"; var schoolbd = (typeof (window.SchoolApp.BD) != "undefined" && window.SchoolApp.BD != null) ? window.SchoolApp.BD : "form.30edu.com.cn"; function InitHeadTop() { var buffer = []; var isLogin = false; buffer.push("
"); if (typeof (window.CurrentUser) != "undefined" && window.CurrentUser != null) { buffer.push("
"); buffer.push("
您好," + window.CurrentUser.TrueName + "[退出]
"); buffer.push(" |"); buffer.push(" 个人中心"); if (window.CurrentUser.IsManage == "True" || window.CurrentUser.IsManage) { if (window.UnitID != "e28baaee-a2e4-4b0c-a416-c391499f5d79") {window.Account buffer.push(" |"); buffer.push(" 网校管理"); } } //var wxurl = ((window.CurrentUser.StationMaster == "True")) ? "http://wx.30edu.com/manage/main.aspx" : "http://wx.30edu.com"; if (!zJPB || ((window.UnitID != "c2eee9b4-4a95-49c1-93c1-1258793bfad6") && window.UnitID != "36654838-a0ee-496e-aad5-a33af4575bb3")) { //山东省实验中学 特殊处理 buffer.push(" |"); buffer.push("
"); buffer.push(" 网校应用"); buffer.push("
    "); buffer.push("
  • "); buffer.push(" "); buffer.push(" 表单系统新!"); buffer.push("
  • "); buffer.push("
  • "); buffer.push(" "); buffer.push(" 办公OA新!"); buffer.push("
  • "); buffer.push("
  • "); buffer.push(" "); buffer.push(" 教学资源"); buffer.push("
  • "); //buffer.push("
  • "); buffer.push("
  • "); buffer.push(" "); buffer.push(" 数字图书"); buffer.push("
  • "); if (schoolsfkt == "1" || schoolsfkt == undefined) { buffer.push("
  • "); buffer.push(" "); buffer.push(" 教育视频"); buffer.push("
  • "); buffer.push("
  • "); buffer.push(" "); buffer.push(" 书法课堂"); buffer.push("
  • "); buffer.push("
  • "); buffer.push(" "); buffer.push(" 在线排课"); buffer.push("
  • "); } buffer.push("
  • "); buffer.push(" "); buffer.push(" 办公OA"); buffer.push("
  • "); buffer.push("
  • "); buffer.push(" "); buffer.push(" 在线组卷"); buffer.push("
  • "); buffer.push("
"); buffer.push("
"); } buffer.push("
"); } else { isLogin = true; var usertext = (zGZNL ? "注册号" : "网校号"); var usertext20160920 = (zGZNL ? "注册号" : "用户名"); buffer.push("
"); buffer.push(" " + usertext20160920 + ":"); buffer.push(" "); buffer.push(" 密码:"); buffer.push(" "); if (window.UnitID == "c2eee9b4-4a95-49c1-93c1-1258793bfad6" || window.UnitID == "36654838-a0ee-496e-aad5-a33af4575bb3") { //山东省实验中学 特殊处理 buffer.push(" 登录"); } else { buffer.push(" "); buffer.push(" 登录"); //buffer.push(" 其他登录方式:"); buffer.push("
"); buffer.push("
"); } buffer.push("
"); buffer.push("
"); buffer.push(""); buffer.push("

请使用微校app扫描登录

"); buffer.push("

手机扫码安全登录

"); buffer.push("
"); if (window.Ver == '255' && window.UnitType != "20") { var adString = ''; adString += ''; buffer.push(adString); } } if (!zJPB) { buffer.push("
"); if (typeof (window.CurrentUser) == "undefined" || window.CurrentUser == null) { buffer.push(" 注册新用户"); buffer.push(" |"); buffer.push(" 忘记密码"); buffer.push(" |"); } if (window.UnitID == "c2eee9b4-4a95-49c1-93c1-1258793bfad6" || window.UnitID == "36654838-a0ee-496e-aad5-a33af4575bb3") { //山东省实验中学 特殊处理 } else { if (window.UnitID != "3c7e2f64-a4b5-4852-83e6-a6e466dc2754") {//怀化一中 特殊处理 buffer.push(" APP下载"); if (schoolsfkt == "1" || schoolsfkt == undefined) { buffer.push(" |"); buffer.push(" 书法课堂"); } buffer.push(" |"); } } if (window.UnitID != 'b27a189b-57b8-4667-bafc-e41e30c12b55' && window.UnitID != "3c7e2f64-a4b5-4852-83e6-a6e466dc2754") { buffer.push(" 帮助中心"); } buffer.push("
"); } buffer.push("
"); buffer.push("
"); buffer.push(" "); if (window.UnitID == "c2eee9b4-4a95-49c1-93c1-1258793bfad6" || window.UnitID == "36654838-a0ee-496e-aad5-a33af4575bb3") { //山东省实验中学 特殊处理 $("#head_top").html(""); } else { $("#head_top").html(buffer.join("")); } if (isLogin) { $("#TopPassWord").keydown(function (event) { var e = event || window.event || arguments.callee.caller.arguments[0]; if (e && e.keyCode == 13) { $('#TopLoginBtn').trigger("click"); } }); } } function InitLogin() { var buffer = []; var isLogin = false; if (typeof (window.CurrentUser) != "undefined" && window.CurrentUser != null) { buffer.push("
"); buffer.push("
"); buffer.push(" "); if (window.CurrentUser.UserType == "教师") buffer.push("
姓 名:" + window.CurrentUser.TrueName + "
" + (zGZNL ? "注册号" : "网校号") + ":" + window.CurrentUser.UserNumb + "
类 型:" + window.CurrentUser.UserType + "
学 科:" + ((window.CurrentUser.Grade.length == 0 || (window.CurrentUser.Grade == 0)) ? "" : window.CurrentUser.Grade) + " " + window.CurrentUser.Subject + "
"); else if (window.CurrentUser.UserType == "职工" || (window.CurrentUser.UserType == "客服") || (window.CurrentUser.UserType == "站长") || (window.CurrentUser.UserType == "管理员")) buffer.push("
姓 名:" + window.CurrentUser.TrueName + "
" + (zGZNL ? "注册号" : "网校号") + ":" + window.CurrentUser.UserNumb + "
类 型:" + window.CurrentUser.UserType + "
职 务:" + window.CurrentUser.TeachType + "
"); else buffer.push("
姓 名:" + window.CurrentUser.TrueName + "
" + (zGZNL ? "注册号" : "网校号") + ":" + window.CurrentUser.UserNumb + "
类 型:" + window.CurrentUser.UserType + "
年 级:" + window.CurrentUser.GradeName + "
"); buffer.push("
"); buffer.push(" 个人中心"); if (window.CurrentUser.IsManage == "True" || window.CurrentUser.IsManage) { buffer.push("|网校管理"); } buffer.push("|安全退出
"); buffer.push("
"); } else { isLogin = true; var usertext = (zGZNL ? "注册号" : "网校号"); var usertext20160920 = (zGZNL ? "注册号" : "用户名"); buffer.push("
"); buffer.push(" "); buffer.push("
"); buffer.push("
"); buffer.push(" "); buffer.push(" "); buffer.push("
"); buffer.push("
"); buffer.push(" "); buffer.push("
"); buffer.push("
"); if (window.UnitType == "20") { buffer.push(" "); } else { buffer.push("
"); buffer.push(" 注册新用户"); buffer.push(" |"); buffer.push(" 忘记密码"); buffer.push(" |"); buffer.push(" 帮助中心"); buffer.push("
"); } buffer.push("
"); } $("#LoginWebPart").html(buffer.join("")); if (isLogin) { $("#PassWord").keydown(function (event) { var e = event || window.event || arguments.callee.caller.arguments[0]; if (e && e.keyCode == 13) { $('#LoginBtn').trigger("click"); } }); } } function TopLogin() { var userName = $("#TopUserName").val(); var pwd = $("#TopPassWord").val(); var choicepage = $("#ChoicePage").val(); var isPass = validateLogin(userName, pwd); if (isPass) { var url = "/Login.GetRSA.data"; jQuery.getJSON(url, { t: new Date() }, function (json) { setMaxDigits(129); var key = new RSAKeyPair(json.Exponent, "", json.Modulus); var pwdRtn = encryptedString(key, pwd); var info = {}; info.UserName = userName; info.PassWord = pwdRtn; info.IsSave = false; info.host = window.location.host; $("#LoginBtn").attr("disabled", "disabled"); $.post("/Login.DoNewLogin.data", info, function (data) { if (data.R == "ok" || data.R == "2") { if (data.R == "2") { $.alert(data.Text); } window.CurrentUser = data.User; if (choicepage != null && choicepage != "") { window.location = choicepage + "?UnitID=" + window.UnitID; } else { if (data.SSO != "") { var img = new Image(); img.onerror = winRef; img.onsuccess = winRef; img.src = data.SSO; } else { winRef(); } } if (data.IsShowWin) { UserDefectWin(); } } else { if (data.R == "0") { $.alert(data.Text); } $("#LoginBtn").removeAttr("disabled"); } }, "json"); }); } } function PunishListWin(unitID) { $.post("/Login.GetDetail.data", { "UnitID": unitID }, function (data) { if (data.count > 0) { var html = []; html.push("
"); html.push("您单位目前的积分为" + data.Point + "分,信用等级为" + data.UnitLevel + "级。"); html.push(""); html.push(""); html.push(" "); html.push(" "); html.push(" "); html.push(" "); html.push(" "); html.push(" "); html.push(""); html.push(""); for (var i = 0; i < data.PunishDetail.length; i++) { html.push(" "); var detail = data.PunishDetail[i]; html.push(" "); html.push(" "); html.push(" "); html.push(" "); html.push(" "); } html.push(""); html.push("
时间原因单位积分信用等级
" + detail.AddTime + "" + detail.BadContent + "" + detail.ReducePoint + "" + detail.ReputationLevel + "
"); html.push("
"); $.dialog({ title: "查看详细", content: html.join(""), lock: true, cancel: true, cancelVal: "确定", }); } }, "json"); } function Login() { var userName = $("#LoginUserName").val(); var pwd = $("#PassWord").val(); var isSave = true; if ($("#IsSave").length > 0) isSave = $("#IsSave")[0].checked; var isPass = validateLogin(userName, pwd); if (isPass) { var info = {}; info.UserName = userName; info.PassWord = pwd; info.IsSave = isSave; info.host = window.location.host; $("#LoginBtn").attr("disabled", "disabled"); $.post("/Login.DoLogin.data", info, function (data) { if (data.R == "ok" || data.R == "2") { if (data.R == "2") { $.alert(data.Text); } window.CurrentUser = data.User; if (data.SSO != "") { var img = new Image(); img.onerror = winRef; img.onsuccess = winRef; img.src = data.SSO; } else { winRef(); } if (data.IsShowWin) { UserDefectWin(); } } else { if (data.R == "0") { $.alert(data.Text); } $("#LoginBtn").removeAttr("disabled"); } }, "json"); } } function alreadLogin(isLogin) { if (isLogin) { $.post("/Login.AlreadyLogin.data", { host: window.location.host }, function (data) { if (data.R != "ok") { InitLogin(); } else { window.CurrentUser = data.User; if (data.SSO != "") { var img = new Image(); img.onerror = winRef; img.onsuccess = winRef; img.src = data.SSO; } else { winRef(); } if (data.IsShowWin) { UserDefectWin(); } } }, "json"); } } function validateLogin(userName, pwd) { var numReg = new RegExp("^[0-9]{3,9}"); var usertext = (zGZNL ? "注册号" : "网校号"); var emailReg = new RegExp("^\\w+((-\\w+)|(\\.\\w+))*\\@[A-Za-z0-9]+((\\.|-)[A-Za-z0-9]+)*\\.[A-Za-z0-9]+$"); if (userName == "" || userName == (usertext + "/邮箱/手机号")) { alert("请输入" + usertext + "或者Email"); $("#LoginUserName").focus(); return false; } if (!numReg.test(userName) && !emailReg.test(userName)) { alert("请输入正确的" + usertext + "或者邮箱或手机号"); $("#LoginUserName").focus(); return false; } if (pwd == "" || pwd.length == 0) { alert("请输入密码"); $("#PassWord").focus(); return false; } return true; } function LoginOut() { window.CurrentUser = null; $.post("/Login.LoginOut.data", { host: window.location.host }, function (sso) { if (sso != "") { var img = new Image(); img.onerror = winRef; img.onsuccess = winRef; img.src = sso; } else { winRef(); } }); } function InitMenu() { var menu = $("ul.head_menu"); menu.find("a[href='" + location.pathname + "']").parents("li.m").addClass("active"); var t = menu.attr("t"); var childMenu = menu.find(">li"); var minX = 232; var widthmax = 960; var childwidth = menu.find("li li").width(); if (t == "2") { childMenu.each(function () { var width = $(this).find("li").length * childwidth; if (width > widthmax) width = widthmax; var maxX = widthmax - width + minX; var x = $(this).offset().left - width / 2 + childwidth / 2; if (x < minX) x = minX; if (x > maxX) x = maxX; $(this).find("ul").css({ width: width, left: x }); }); } if (t == "3") { childMenu.each(function () { if ($(this).find("li").length > 15) { var width = (parseInt(($(this).find("li").length - 1) / 15) + 1) * childwidth; if (width > widthmax) width = widthmax; $(this).find("ul").css({ width: width }); } }); } childMenu.bind("mouseover", function () { childMenu.removeClass("hover"); $(this).addClass("hover"); //$(this).find("ul").show(); $(this).find(".menu-ul>li").hover(function () { $(this).addClass("on"); }, function () { $(this).removeClass("on"); }); }); childMenu.bind("mouseout", function () { $(this).removeClass("hover"); //$(this).find("ul").hide(); }); if ($(".menu-ul li").find("ul").html() != "") { $(".menu-ul li").find("div.menu-ul-sub").siblings("a").append(""); } } function winRef() { if (typeof (window.needRef) == "undefined" || window.needRef == "") { window.needRef = false; } if (window.needRef) { window.location.reload(); } else { InitHeadTop(); InitLogin(); } } function ShowLogo(flashvars) { //var access = ""; //var network = " allowNetworking='all' AllowScriptAccess='always' "; var access = ""; var network = " allowNetworking='internal' AllowScriptAccess='sameDomain' "; //域名更换 替换遗漏数据 flashvars = flashvars.replace(/cdn.30edu.com\//ig, "cdn.30edu.com.cn/").replace(/logo1.30edu.com\//ig, "logo1.30edu.com.cn/").replace(/font.30edu.com\//ig, "font.30edu.com.cn/"); document.writeln(""); } //宽屏版 function ShowLogo_W(flashvars) { var access = ""; var network = " allowNetworking='internal' AllowScriptAccess='sameDomain' "; //域名更换 替换遗漏数据 flashvars = flashvars.replace(/cdn.30edu.com\//ig, "cdn.30edu.com.cn/").replace(/logo1.30edu.com\//ig, "logo1.30edu.com.cn/").replace(/font.30edu.com\//ig, "font.30edu.com.cn/"); document.writeln(""); } //-------------------随机生成 by--dengyi var chars = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z']; function generateMixed(n) { var res = ""; for (var i = 0; i < n ; i++) { var id = Math.ceil(Math.random() * 35); res += chars[id]; } return res; } //------------------------------ function UserDefectWin() { $.dialog({ title: "完善信息", content: "", lock: true, cancel: true, cancelVal: "取消", }); }