知識社群登入
位置: 揚績國中數學 > 討論區 > 討論
1樓
var gRedirectHome = false; var res = { account: '帳號', password: '密碼', remember: '記住我的登入資訊', passwd_forgot: '忘記密碼', ok: '確定', login: '登入', help: '登入說明' }; function openDialog(title, url, w, h) { $showModal(title, url, w, h, onOpenDialogLoad); } function onOpenDialogLoad() { $reload(); } 知識社群ePortfolioPowerCam註冊登入
var gSessActiveLife = 300; setTimeout("updateCount()", gSessActiveLife * 1000); function updateCount() { var lim = gSessActiveLife; var obj = $syncload("/http_get_count.php", {limit:lim}); if (obj && obj.ret && obj.ret.count) $("counter").innerHTML = obj.ret.count; setTimeout("updateCount()", lim * 1000); } function $searchEnter(e) { var evt = (window.event) ? event : e; var key = (evt.charCode) ? evt.charCode : evt.keyCode; if (key == 13) $searchSubmit(); } function $searchSubmit() { var k = encodeURIComponent($V("txtSearch")); if (k == "") return; window.open('/search.php?scope=0&courseID=169&area=155&page=1&fmKeyword=' + k); } function m_changeLang(newLang) { $setCookie("ck_locale", newLang, 365); $load("/sys/lib/ajax/change_lang.php",{locale:newLang}, m_onChangeLang); } function m_onChangeLang(obj) { window.location.reload(); }
function checkPasswordKey(e, id) { var e = (!e) ? window.event : e; var key = e.keyCode; switch(key) { // enter case 13: checkPassword(id) e.returnValue = false; e.cancelBubble = true; //e.keyCode = 0; return true; break; default: return true; } } function checkPassword(id) { var param = {id:id, password:$V("password_" + id)}; $load("/board/http_check_password.php", param, onCheckPasswordLoad); } function onCheckPasswordLoad(obj) { var r = obj.ret; // id and view are form getEssenceCotent.php var view = 0; ; ; if (r.status == "true") { if(view) getContentPage(nodeid); else $reload(); } else { alert(r.msg); $("password_" + r.id).focus(); } } function download(id) { var sbody = "
"; var a = $area($("tools_" + id)); $showPopup("下載", sbody, a.left-135, a.top+22, 220); $("if").src = "/sys/download.php?id=" + id; } function downloadppt(id) { var _url = "/sys/download_ppt.php?id=" + id; window.open(_url); } function readHtml(url) { window.location.href = url; } function addDoc() { $showModal('新增', '/board/doc_insert.php?courseID=169&folderID=0', 800, 560, onFinish); } function edit(id) { $showModal('編輯', '/board/doc_edit.php?id=' + id, 800, 560, onFinish); } function del(id) { $showModal('確定要刪除嗎?', '/course/doc_delete.php?id=' + id, 380, 200, goHome); } function goHome() { if (!$modalarg){ $closeModal(); return; } window.location.href = '/board.php?courseID=169&f=doclist&folderID=0'; } function editSlideTitle(id) { $showModal('編輯講解標題', '/course/slide_edit.php?id=' + id, 800, 500, onFinish); } function faqAdd(id, resType) { resType = (!resType) ? 1 : resType; $showModal('新增 FAQ', '/board/faq/faq_insert.php?courseID=169&resType=' + resType + '&resID=' + id, 800, 500, onFinish); } function faqEdit(id) { $showModal('編輯 FAQ', '/board/faq/faq_edit.php?id=' + id, 800, 500, onFinish); } function faqDel(id) { $showModal('刪除 FAQ', '/board/faq/faq_delete.php?id=' + id, 600, 250, onFinish); } function getFAQ(id, showSrc) { if ($("faqAnswer_" + id).innerHTML == "") { var showSrc = (showSrc) ? showSrc : 0; var obj = $syncload("/board/faq/http_get_faq.php", {id:id, showSrc:showSrc}); if (!obj) { alert("ajax error!"); return; } $("faqAnswer_" + id).innerHTML = obj.ret.answer; } if ($("faqAnswer_" + id).style.display == "none") $("faqAnswer_" + id).style.display = "block"; else $("faqAnswer_" + id).style.display = "none"; } var faq_expand = []; function faqExpand(docID) { var arr = eval("faqArr_" + docID); if (faq_expand[docID] == 1) { for (var i=0; i