| @@ -1,6 +1,17 @@ | |||
| function checkMuList(psid, cmid) { | |||
| if ($Obj("pagestyle3").checked) { | |||
| $Obj("cfgmulist").style.display = "table-row"; | |||
| $Obj("spagelist").style.display = "none"; | |||
| } else if ($Obj("pagestyle1").checked) { | |||
| $Obj("cfgmulist").style.display = "none"; | |||
| $Obj("spagelist").style.display = "table-row"; | |||
| } else { | |||
| $Obj("cfgmulist").style.display = "none"; | |||
| $Obj("spagelist").style.display = "none"; | |||
| } | |||
| } | |||
| function checkSubmitAlb() { | |||
| if ($("#gallery .atlas").length > 0) { | |||
| //这里从gallery中取出图片元素信息 | |||
| $("#gallery .atlas").each(function() { | |||
| albums.push({ | |||
| "img": $(this).find("img").attr("src"), | |||
| @@ -11,55 +22,40 @@ function checkSubmitAlb() { | |||
| $("#albums").val(JSON.stringify(albums)); | |||
| return true; | |||
| } | |||
| function checkMuList(psid, cmid) { | |||
| if ($Obj('pagestyle3').checked) { | |||
| $Obj('cfgmulist').style.display = 'table-row'; | |||
| $Obj('spagelist').style.display = 'none'; | |||
| } else if ($Obj('pagestyle1').checked) { | |||
| $Obj('cfgmulist').style.display = 'none'; | |||
| $Obj('spagelist').style.display = 'table-row'; | |||
| } else { | |||
| $Obj('cfgmulist').style.display = 'none'; | |||
| $Obj('spagelist').style.display = 'none'; | |||
| } | |||
| } | |||
| //删除已经上传的图片 | |||
| function delAlbPic(pid) { | |||
| var tgobj = $Obj('atlasok' + pid); | |||
| fetch('swfupload.php?dopost=del&id=' + pid).then(resp => resp.text()).then((d) => { | |||
| var tgobj = $Obj("atlasok" + pid); | |||
| fetch("swfupload.php?dopost=del&id=" + pid).then(resp => resp.text()).then((d) => { | |||
| tgobj.innerHTML = d; | |||
| $Obj('gallery').removeChild(tgobj); | |||
| $Obj("gallery").removeChild(tgobj); | |||
| }); | |||
| } | |||
| //删除已经上传的图片修改时用 | |||
| function delAlbPicOld(picfile, pid) { | |||
| var tgobj = $Obj('albold' + pid); | |||
| fetch('swfupload.php?dopost=delold&picfile=' + picfile).then(resp => resp.text()).then((d) => { | |||
| var tgobj = $Obj("albold" + pid); | |||
| fetch("swfupload.php?dopost=delold&picfile=" + picfile).then(resp => resp.text()).then((d) => { | |||
| tgobj.innerHTML = d; | |||
| $Obj('galleryedit').removeChild(tgobj); | |||
| $Obj("galleryedit").removeChild(tgobj); | |||
| }); | |||
| } | |||
| function seePicNewAlb(f, imgdid, frname, hpos, acname) { | |||
| var newobj = null; | |||
| if (f.value == '') return; | |||
| vImg = $Obj(imgdid); | |||
| picnameObj = document.getElementById('picname'); | |||
| nFrame = $Nav() == 'IE' ? eval('document.frames.' + frname) : $Obj(frname); | |||
| picnameObj = document.getElementById("picname"); | |||
| nFrame = $Nav() == $Obj(frname); | |||
| nForm = f.form; | |||
| //修改form的action等参数 | |||
| if (nForm.detachEvent) nForm.detachEvent("onsubmit", checkSubmitAlb); | |||
| else nForm.removeEventListener("submit", checkSubmitAlb, false); | |||
| nForm.action = 'archives_do.php'; | |||
| nForm.action = "archives_do.php"; | |||
| nForm.target = frname; | |||
| nForm.dopost.value = 'uploadLitpic'; | |||
| nForm.dopost.value = "uploadLitpic"; | |||
| nForm.submit(); | |||
| picnameObj.value = ''; | |||
| newobj = $Obj('uploadwait'); | |||
| newobj = $Obj("uploadwait"); | |||
| if (!newobj) { | |||
| newobj = document.createElement("div"); | |||
| newobj.id = 'uploadwait'; | |||
| newobj.style.position = 'absolute'; | |||
| newobj.className = 'uploadwait'; | |||
| newobj.id = "uploadwait"; | |||
| newobj.style.position = "absolute"; | |||
| newobj.className = "uploadwait"; | |||
| newobj.style.width = 120; | |||
| newobj.style.height = 20; | |||
| newobj.style.top = hpos; | |||
| @@ -67,10 +63,31 @@ function seePicNewAlb(f, imgdid, frname, hpos, acname) { | |||
| document.body.appendChild(newobj); | |||
| newobj.innerHTML = '<img src="../../static/web/img/loadinglit.gif">'; | |||
| } | |||
| newobj.style.display = 'block'; | |||
| //提交后还原form的action等参数 | |||
| newobj.style.display = "block"; | |||
| nForm.action = acname; | |||
| nForm.dopost.value = 'save'; | |||
| nForm.dopost.value = "save"; | |||
| nForm.target = ''; | |||
| nForm.litpic.disabled = true; | |||
| } | |||
| var atlasimg = 0; | |||
| function addImage(src, pid) { | |||
| var newImgDiv = document.createElement("div"); | |||
| var delstr = ''; | |||
| atlasimg++; | |||
| if (pid != 0) { | |||
| atlasimg = 'ok' + pid; | |||
| delstr = '<div class="atlas-box"><a href="javascript:delAlbPic(' + pid + ')" class="btn btn-danger btn-sm">删除</a></p>'; | |||
| } else { | |||
| atlasimg = 'err' + atlasimg; | |||
| } | |||
| newImgDiv.className = 'atlas'; | |||
| newImgDiv.id = 'atlas' + atlasimg; | |||
| document.getElementById("gallery").appendChild(newImgDiv); | |||
| newImgDiv.innerHTML = '<div class="atlas-head"><img src="' + src + '"></div>' + delstr; | |||
| if (typeof arctype != 'undefined' && arctype == 'article') { | |||
| if (pid != 0) { | |||
| newImgDiv.innerHTML = '<div class="atlas-head"><img src="' + src + '" onclick="addtoEdit(' + pid + ')"></div>' + delstr; | |||
| } | |||
| } | |||
| newImgDiv.innerHTML += '<div class="atlas-foot"><input type="text" name="picinfo' + atlasimg+ '" class="atlas-input" placeholder="请输入图片注释"></div>'; | |||
| } | |||
| @@ -0,0 +1,24 @@ | |||
| var BROWSER = {}; | |||
| var USERAGENT = navigator.userAgent.toLowerCase(); | |||
| if (BROWSER.safari) { | |||
| BROWSER.firefox = true; | |||
| } | |||
| function LoadSuns(ctid, tid) { | |||
| if ($DE(ctid).innerHTML.length < 10) { | |||
| $DE('icon' + tid).className = 'fa fa-minus-square'; | |||
| fetch('catalog_do.php?dopost=GetSunLists&cid=' + tid).then(resp => resp.text()).then((d) => { | |||
| $DE(ctid).innerHTML = d; | |||
| }); | |||
| } else { | |||
| showHide(ctid, tid); | |||
| } | |||
| } | |||
| function showHide(objname, tid) { | |||
| if ($DE(objname).style.display == "none") { | |||
| $DE('icon' + tid).className = 'fa fa-minus-square'; | |||
| $DE(objname).style.display = BROWSER.firefox ? "" : "block"; | |||
| } else { | |||
| $DE('icon' + tid).className = 'fa fa-plus-square'; | |||
| $DE(objname).style.display = "none"; | |||
| } | |||
| } | |||
| @@ -1,42 +0,0 @@ | |||
| var BROWSER = {}; | |||
| var USERAGENT = navigator.userAgent.toLowerCase(); | |||
| browserVersion({'firefox':'','chrome':'','opera':'','safari':'','maxthon':'','mozilla':'','webkit':''}); | |||
| if (BROWSER.safari) { | |||
| BROWSER.firefox = true; | |||
| } | |||
| BROWSER.opera = BROWSER.opera ? opera.version() : 0; | |||
| function browserVersion(types) { | |||
| var other = 1; | |||
| for (i in types) { | |||
| var v = types[i] ? types[i] : i; | |||
| if (USERAGENT.indexOf(v) != -1) { | |||
| var re = new RegExp(v + '(\\/|\\s)([\\d\\.]+)', 'ig'); | |||
| var matches = re.exec(USERAGENT); | |||
| var ver = matches != null ? matches[2] : 0; | |||
| other = ver !== 0 ? 0 : other; | |||
| } else { | |||
| var ver = 0; | |||
| } | |||
| eval('BROWSER.' + i + '= ver'); | |||
| } | |||
| BROWSER.other = other; | |||
| } | |||
| function LoadSuns(ctid, tid) { | |||
| if ($DE(ctid).innerHTML.length < 10) { | |||
| $DE('img' + tid).className = 'fa fa-minus-square'; | |||
| fetch('catalog_do.php?dopost=GetSunLists&cid=' + tid).then(resp => resp.text()).then((d) => { | |||
| $DE(ctid).innerHTML = d; | |||
| }); | |||
| } else { | |||
| showHide(ctid, tid); | |||
| } | |||
| } | |||
| function showHide(objname, tid) { | |||
| if ($DE(objname).style.display == "none") { | |||
| $DE('img' + tid).className = 'fa fa-minus-square'; | |||
| $DE(objname).style.display = BROWSER.firefox ? "" : "block"; | |||
| } else { | |||
| $DE('img' + tid).className = 'fa fa-plus-square'; | |||
| $DE(objname).style.display = "none"; | |||
| } | |||
| } | |||
| @@ -1,22 +0,0 @@ | |||
| var atlasimg = 0; | |||
| function addImage(src, pid) { | |||
| var newImgDiv = document.createElement("div"); | |||
| var delstr = ''; | |||
| atlasimg++; | |||
| if (pid != 0) { | |||
| atlasimg = 'ok' + pid; | |||
| delstr = '<div class="atlas-box"><a href="javascript:delAlbPic(' + pid + ')" class="btn btn-danger btn-sm">删除</a></p>'; | |||
| } else { | |||
| atlasimg = 'err' + atlasimg; | |||
| } | |||
| newImgDiv.className = 'atlas'; | |||
| newImgDiv.id = 'atlas' + atlasimg; | |||
| document.getElementById("gallery").appendChild(newImgDiv); | |||
| newImgDiv.innerHTML = '<div class="atlas-head"><img src="' + src + '"></div>' + delstr; | |||
| if (typeof arctype != 'undefined' && arctype == 'article') { | |||
| if (pid != 0) { | |||
| newImgDiv.innerHTML = '<div class="atlas-head"><img src="' + src + '" onclick="addtoEdit(' + pid + ')"></div>' + delstr; | |||
| } | |||
| } | |||
| newImgDiv.innerHTML += '<div class="atlas-foot"><input type="text" name="picinfo' + atlasimg+ '" class="atlas-input" placeholder="请输入图片注释"></div>'; | |||
| } | |||
| @@ -1,82 +1,82 @@ | |||
| function viewArc(aid) { | |||
| if (aid==0) aid = getOneItem(); | |||
| window.open("archives_do.php?aid="+aid+"&dopost=viewArchives"); | |||
| if (aid == 0) aid = getOneItem(); | |||
| window.open("archives_do.php?aid=" + aid + "&dopost=viewArchives"); | |||
| } | |||
| function kwArc(aid) { | |||
| var qstr=getCheckboxItem(); | |||
| if (aid==0) aid = getOneItem(); | |||
| if (qstr=='') { | |||
| var qstr = getCheckboxItem(); | |||
| if (aid == 0) aid = getOneItem(); | |||
| if (qstr == '') { | |||
| ShowMsg('请选择一个或多个文档'); | |||
| return; | |||
| } | |||
| location="archives_do.php?aid="+aid+"&dopost=makekw&qstr="+qstr; | |||
| location="archives_do.php?aid=" + aid + "&dopost=makekw&qstr=" + qstr; | |||
| } | |||
| function editArc(aid) { | |||
| if (aid==0) aid = getOneItem(); | |||
| location="archives_do.php?aid="+aid+"&dopost=editArchives"; | |||
| if (aid == 0) aid = getOneItem(); | |||
| location="archives_do.php?aid=" + aid + "&dopost=editArchives"; | |||
| } | |||
| function updateArc(aid) { | |||
| var qstr=getCheckboxItem(); | |||
| if (aid==0) aid = getOneItem(); | |||
| location="archives_do.php?aid="+aid+"&dopost=makeArchives&qstr="+qstr; | |||
| var qstr = getCheckboxItem(); | |||
| if (aid == 0) aid = getOneItem(); | |||
| location = "archives_do.php?aid=" + aid + "&dopost=makeArchives&qstr=" + qstr; | |||
| } | |||
| function checkArc(aid) { | |||
| var qstr=getCheckboxItem(); | |||
| if (aid==0) aid = getOneItem(); | |||
| location="archives_do.php?aid="+aid+"&dopost=checkArchives&qstr="+qstr; | |||
| var qstr = getCheckboxItem(); | |||
| if (aid == 0) aid = getOneItem(); | |||
| location = "archives_do.php?aid=" + aid + "&dopost=checkArchives&qstr=" + qstr; | |||
| } | |||
| function moveArc(e, obj, cid){ | |||
| var qstr=getCheckboxItem(); | |||
| if (qstr=='') { | |||
| var qstr = getCheckboxItem(); | |||
| if (qstr == '') { | |||
| ShowMsg('请选择一个或多个文档'); | |||
| return; | |||
| } | |||
| LoadQuickDiv(e, 'archives_do.php?dopost=moveArchives&qstr='+qstr+'&channelid='+cid+'&rnd='+Math.random(), 'moveArchives', 'auto', '180px'); | |||
| LoadQuickDiv(e, 'archives_do.php?dopost=moveArchives&qstr=' + qstr + '&channelid=' + cid + '&rnd=' + Math.random(), 'moveArchives', 'auto', '180px'); | |||
| ChangeFullDiv('show'); | |||
| } | |||
| function adArc(aid) { | |||
| var qstr=getCheckboxItem(); | |||
| if (aid==0) aid = getOneItem(); | |||
| location="archives_do.php?aid="+aid+"&dopost=commendArchives&qstr="+qstr; | |||
| var qstr = getCheckboxItem(); | |||
| if (aid == 0) aid = getOneItem(); | |||
| location = "archives_do.php?aid=" + aid + "&dopost=commendArchives&qstr=" + qstr; | |||
| } | |||
| function cAtts(jname, e, obj) { | |||
| var qstr=getCheckboxItem(); | |||
| var qstr = getCheckboxItem(); | |||
| var screeheight = document.body.clientHeight + 20; | |||
| if (qstr=='') { | |||
| if (qstr == '') { | |||
| ShowMsg('请选择一个或多个文档'); | |||
| return; | |||
| } | |||
| LoadQuickDiv(e, 'archives_do.php?dopost=attsDlg&qstr='+qstr+'&dojob='+jname+'&rnd='+Math.random(), 'attsDlg', 'auto', '180px'); | |||
| LoadQuickDiv(e, 'archives_do.php?dopost=attsDlg&qstr=' + qstr + '&dojob=' + jname + '&rnd=' + Math.random(), 'attsDlg', 'auto', '180px'); | |||
| ChangeFullDiv('show', screeheight); | |||
| } | |||
| function delArc(aid) { | |||
| var qstr=getCheckboxItem(); | |||
| if (aid==0) aid = getOneItem(); | |||
| location="archives_do.php?qstr="+qstr+"&aid="+aid+"&dopost=delArchives"; | |||
| var qstr = getCheckboxItem(); | |||
| if (aid == 0) aid = getOneItem(); | |||
| location = "archives_do.php?qstr=" + qstr + "&aid=" + aid + "&dopost=delArchives"; | |||
| } | |||
| function QuickEdit(aid, e, obj) { | |||
| LoadQuickDiv(e, 'archives_do.php?dopost=quickEdit&aid='+aid+'&rnd='+Math.random(), 'quickEdit', 'auto', '300px'); | |||
| LoadQuickDiv(e, 'archives_do.php?dopost=quickEdit&aid=' + aid + '&rnd=' + Math.random(), 'quickEdit', 'auto', '300px'); | |||
| ChangeFullDiv('show'); | |||
| } | |||
| //获得选中文件的文件名 | |||
| function getCheckboxItem() { | |||
| var allSel=""; | |||
| var allSel = ""; | |||
| if (document.form2.arcID.value) return document.form2.arcID.value; | |||
| for (i=0;i<document.form2.arcID.length;i++) { | |||
| for (i = 0;i<document.form2.arcID.length;i++) { | |||
| if (document.form2.arcID[i].checked) { | |||
| if (allSel=="") | |||
| allSel=document.form2.arcID[i].value; | |||
| if (allSel == '') | |||
| allSel = document.form2.arcID[i].value; | |||
| else | |||
| allSel=allSel+"`"+document.form2.arcID[i].value; | |||
| allSel = allSel + "`" + document.form2.arcID[i].value; | |||
| } | |||
| } | |||
| return allSel; | |||
| } | |||
| //获得选中其中一个的id | |||
| function getOneItem() { | |||
| var allSel=""; | |||
| var allSel = ''; | |||
| if (document.form2.arcID.value) return document.form2.arcID.value; | |||
| for (i=0;i<document.form2.arcID.length;i++) { | |||
| for (i = 0;i<document.form2.arcID.length;i++) { | |||
| if (document.form2.arcID[i].checked) { | |||
| allSel = document.form2.arcID[i].value; | |||
| break; | |||
| @@ -88,9 +88,9 @@ function selAll() { | |||
| if (typeof document.form2.arcID.length === "undefined") { | |||
| document.form2.arcID.checked = true; | |||
| } | |||
| for (i=0;i<document.form2.arcID.length;i++) { | |||
| for (i = 0;i<document.form2.arcID.length;i++) { | |||
| if (!document.form2.arcID[i].checked) { | |||
| document.form2.arcID[i].checked=true; | |||
| document.form2.arcID[i].checked = true; | |||
| } | |||
| } | |||
| } | |||
| @@ -98,9 +98,9 @@ function noSelAll() { | |||
| if (typeof document.form2.arcID.length === "undefined") { | |||
| document.form2.arcID.checked = false; | |||
| } | |||
| for (i=0;i<document.form2.arcID.length;i++) { | |||
| for (i = 0;i<document.form2.arcID.length;i++) { | |||
| if (document.form2.arcID[i].checked) { | |||
| document.form2.arcID[i].checked=false; | |||
| document.form2.arcID[i].checked = false; | |||
| } | |||
| } | |||
| } | |||
| @@ -17,34 +17,32 @@ function SeePicNew(f, imgdid, frname, hpos, acname) { | |||
| if (f.value == '') return; | |||
| vImg = $Obj(imgdid); | |||
| picnameObj = document.getElementById('picname'); | |||
| nFrame = $Nav() == 'IE' ? eval('document.frames.' + frname) : $Obj(frname); | |||
| nFrame = $Nav() == $Obj(frname); | |||
| nForm = f.form; | |||
| //修改form的action等参数 | |||
| if (nForm.detachEvent) nForm.detachEvent("onsubmit", checkSubmit); | |||
| else nForm.removeEventListener("submit", checkSubmit, false); | |||
| nForm.action = 'archives_do.php'; | |||
| nForm.action = "archives_do.php"; | |||
| nForm.target = frname; | |||
| nForm.dopost.value = 'uploadLitpic'; | |||
| nForm.dopost.value = "uploadLitpic"; | |||
| nForm.submit(); | |||
| picnameObj.value = ''; | |||
| newobj = $Obj('uploadwait'); | |||
| newobj = $Obj("uploadwait"); | |||
| if (!newobj) { | |||
| newobj = document.createElement("div"); | |||
| newobj.id = 'uploadwait'; | |||
| newobj.style.position = 'absolute'; | |||
| newobj.className = 'uploadwait'; | |||
| newobj.id = "uploadwait"; | |||
| newobj.style.position = "absolute"; | |||
| newobj.className = "uploadwait"; | |||
| newobj.style.width = 120; | |||
| newobj.style.height = 20; | |||
| newobj.style.top = hpos; | |||
| newobj.style.left = 100; | |||
| newobj.style.display = 'block'; | |||
| newobj.style.display = "block"; | |||
| document.body.appendChild(newobj); | |||
| newobj.innerHTML = '<img src="../../static/web/img/loadinglit.gif">'; | |||
| } | |||
| newobj.style.display = 'block'; | |||
| //提交后还原form的action等参数 | |||
| newobj.style.display = "block"; | |||
| nForm.action = acname; | |||
| nForm.dopost.value = 'save'; | |||
| nForm.dopost.value = "save"; | |||
| nForm.target = ''; | |||
| nForm.litpic.disabled = true; | |||
| } | |||
| @@ -58,14 +56,14 @@ function SelectSoft(fname) { | |||
| } | |||
| function SelectImage(fname, stype, imgsel="") { | |||
| var pos = GetWinPos(800,600); | |||
| if (!fname) fname = 'form1.picname'; | |||
| if (imgsel) imgsel = '&noeditor=yes'; | |||
| if (!stype) stype = 'small'; | |||
| if (!fname) fname = "form1.picname"; | |||
| if (imgsel) imgsel = "&noeditor=yes"; | |||
| if (!stype) stype = "small"; | |||
| window.open("./dialog/select_images.php?f=" + fname + "&noeditor=yes&imgstick=" + stype + imgsel, "popUpImagesWin", "scrollbars=yes,resizable=yes,statebar=no,width=800,height=600,left=" + pos.left + ", top=" + pos.top); | |||
| } | |||
| function SelectImageN(fname, stype, vname) { | |||
| var pos = GetWinPos(800,600); | |||
| if (!fname) fname = 'form1.picname'; | |||
| if (!fname) fname = "form1.picname"; | |||
| if (!stype) stype = ''; | |||
| window.open("./dialog/select_images.php?f=" + fname + "&imgstick=" + stype + "&v=" + vname, "popUpImagesWin", "scrollbars=yes,resizable=yes,statebar=no,width=800,height=600,left=" + pos.left + ", top=" + pos.top); | |||
| } | |||
| @@ -78,14 +76,22 @@ function OpenMyWin(surl) { | |||
| window.open(surl, "popUpMyWin", "scrollbars=yes,resizable=yes,statebar=no,width=800,height=600,left=" + pos.left + ", top=" + pos.top); | |||
| } | |||
| function InitPage() { | |||
| var selsource = $Obj('selsource'); | |||
| var selwriter = $Obj('selwriter'); | |||
| var colorbt = $Obj('color'); | |||
| if (selsource) { selsource.onmousedown = function(e) { SelectSource(e); } } | |||
| if (selwriter) { selwriter.onmousedown = function(e) { SelectWriter(e); } } | |||
| var selsource = $Obj("selsource"); | |||
| var selwriter = $Obj("selwriter"); | |||
| var colorbt = $Obj("color"); | |||
| if (selsource) { | |||
| selsource.onmousedown = function(e) { | |||
| SelectSource(e); | |||
| } | |||
| } | |||
| if (selwriter) { | |||
| selwriter.onmousedown = function(e) { | |||
| SelectWriter(e); | |||
| } | |||
| } | |||
| } | |||
| function $Nav() { | |||
| if (window.navigator.userAgent.indexOf("Firefox") >= 1) return 'FF'; | |||
| if (window.navigator.userAgent.indexOf("Firefox") >= 1) return "FF"; | |||
| else return "OT"; | |||
| } | |||
| function $Obj(objname) { | |||
| @@ -93,18 +99,18 @@ function $Obj(objname) { | |||
| } | |||
| function ColorSel(c, oname) { | |||
| var tobj = $Obj(oname); | |||
| if (!tobj) tobj = eval('document.form1.' + oname); | |||
| if (!tobj) tobj = eval("document.form1." + oname); | |||
| if (!tobj) { | |||
| $Obj('colordlg').style.display = 'none'; | |||
| $Obj("colordlg").style.display = "none"; | |||
| return false; | |||
| } else { | |||
| tobj.value = c; | |||
| $Obj('colordlg').style.display = 'none'; | |||
| $Obj("colordlg").style.display = "none"; | |||
| return true; | |||
| } | |||
| } | |||
| function ShowColor(e, o) { | |||
| LoadNewDiv(e, '../../static/web/img/colornew.htm', 'colordlg'); | |||
| LoadNewDiv(e, "../../static/web/img/colornew.htm", "colordlg"); | |||
| } | |||
| function ShowHide(objname) { | |||
| var obj = $Obj(objname); | |||
| @@ -121,7 +127,7 @@ function ShowObjRow(objname) { | |||
| obj.style.display = "table-row"; | |||
| } | |||
| function AddTypeid2() { | |||
| ShowObjRow('typeid2tr'); | |||
| ShowObjRow("typeid2tr"); | |||
| } | |||
| function HideObj(objname) { | |||
| var obj = $Obj(objname); | |||
| @@ -132,7 +138,7 @@ function SeePic(img, f) { | |||
| if (f.value != '') img.src = f.value; | |||
| } | |||
| function PutSource(str) { | |||
| var osource = $Obj('source'); | |||
| var osource = $Obj("source"); | |||
| if (osource) osource.value = str; | |||
| $Obj("mysource").style.display = "none"; | |||
| ChangeFullDiv("hide"); | |||
| @@ -145,7 +151,7 @@ function PutWriter(str) { | |||
| } | |||
| function ClearDivCt(objname) { | |||
| if (!$Obj(objname)) return; | |||
| $Obj(objname).innerHTML = ""; | |||
| $Obj(objname).innerHTML = ''; | |||
| $Obj(objname).style.display = "none"; | |||
| ChangeFullDiv("hide"); | |||
| } | |||
| @@ -167,10 +173,10 @@ function ChangeFullDiv(showhide, screenheigt) { | |||
| } | |||
| } | |||
| function SelectSource(e) { | |||
| LoadNewDiv(e, 'article_select_sw.php?t=source&k=8&rnd=' + Math.random(), 'mysource'); | |||
| LoadNewDiv(e, "article_select_sw.php?t=source&k=8&rnd=" + Math.random(), "mysource"); | |||
| } | |||
| function SelectWriter(e) { | |||
| LoadNewDiv(e, 'article_select_sw.php?t=writer&k=8&rnd=' + Math.random(), 'mywriter'); | |||
| LoadNewDiv(e, "article_select_sw.php?t=writer&k=8&rnd=" + Math.random(), "mywriter"); | |||
| } | |||
| function LoadNewDiv(e, surl, oname) { | |||
| var pxStr = ''; | |||
| @@ -199,26 +205,26 @@ function LoadNewDiv2(e, surl, oname, dlgcls) { | |||
| if (!newobj) { | |||
| newobj = document.createElement("div"); | |||
| newobj.id = oname; | |||
| newobj.style.position = 'absolute'; | |||
| newobj.style.position = "absolute"; | |||
| newobj.className = dlgcls; | |||
| newobj.style.top = posTop; | |||
| newobj.style.left = posLeft; | |||
| newobj.style.display = 'none'; | |||
| newobj.style.display = "none"; | |||
| document.body.appendChild(newobj); | |||
| } | |||
| newobj.innerHTML = ''; | |||
| fetch(surl).then(resp => resp.text()).then((d) => { | |||
| newobj.innerHTML = d; | |||
| }); | |||
| if (newobj.innerHTML == '') newobj.style.display = 'none'; | |||
| else newobj.style.display = 'block'; | |||
| jQuery(newobj).css('top', '50px').css('left', '300px'); | |||
| if (newobj.innerHTML == '') newobj.style.display = "none"; | |||
| else newobj.style.display = "block"; | |||
| jQuery(newobj).css("top", "50px").css("left", "300px"); | |||
| DedeXHTTP = null; | |||
| } | |||
| function ShowUrlTr() { | |||
| var jumpTest = $Obj('flagsj'); | |||
| var jtr = $Obj('redirecturltr'); | |||
| var jf = $Obj('redirecturl'); | |||
| var jumpTest = $Obj("flagsj"); | |||
| var jtr = $Obj("redirecturltr"); | |||
| var jf = $Obj("redirecturl"); | |||
| if (jumpTest.checked) jtr.style.display = "block"; | |||
| else { | |||
| jf.value = ''; | |||
| @@ -227,8 +233,8 @@ function ShowUrlTr() { | |||
| } | |||
| function ShowUrlTrEdit() { | |||
| ShowUrlTr(); | |||
| var jumpTest = $Obj('isjump'); | |||
| var rurl = $Obj('redirecturl'); | |||
| var jumpTest = $Obj("isjump"); | |||
| var rurl = $Obj("redirecturl"); | |||
| if (!jumpTest.checked) rurl.value = ""; | |||
| } | |||
| function LoadQuickDiv(e, surl, oname, w, h) { | |||
| @@ -236,15 +242,15 @@ function LoadQuickDiv(e, surl, oname, w, h) { | |||
| if (!newobj) { | |||
| newobj = document.createElement("div"); | |||
| newobj.id = oname; | |||
| newobj.style.position = 'fixed'; | |||
| newobj.className = 'pubdlg'; | |||
| newobj.style.position = "fixed"; | |||
| newobj.className = "pubdlg"; | |||
| newobj.style.width = w; | |||
| newobj.style.height = h + 30; | |||
| document.body.appendChild(newobj); | |||
| } | |||
| newobj.style.top = "50%"; | |||
| newobj.style.left = "50%"; | |||
| newobj.style.display = 'block'; | |||
| newobj.style.display = "block"; | |||
| newobj.style.transform = "translate(-50%, -201px)"; | |||
| newobj.innerHTML = '<img src="../../static/web/img/loadinglit.gif">'; | |||
| fetch(surl).then(resp => resp.text()).then((d) => { | |||
| @@ -252,8 +258,8 @@ function LoadQuickDiv(e, surl, oname, w, h) { | |||
| }); | |||
| } | |||
| function ShowCatMap(e, obj, cid, targetId, oldvalue) { | |||
| LoadQuickDiv(e, 'archives_do.php?dopost=getCatMap&targetid=' + targetId + '&channelid=' + cid + '&oldvalue=' + oldvalue + '&rnd=' + Math.random(), 'getCatMap', '700px', '500px'); | |||
| ChangeFullDiv('show'); | |||
| LoadQuickDiv(e, "archives_do.php?dopost=getCatMap&targetid=" + targetId + "&channelid=" + cid + "&oldvalue=" + oldvalue + "&rnd=" + Math.random(), "getCatMap", "700px", "500px"); | |||
| ChangeFullDiv("show"); | |||
| } | |||
| function getSelCat(targetId) { | |||
| var selBox = document.quicksel.seltypeid; | |||
| @@ -276,7 +282,7 @@ function getSelCat(targetId) { | |||
| } | |||
| } | |||
| if (selvalue == '') { | |||
| alert('您没有选中任何栏目'); | |||
| alert("您没有选中任何栏目"); | |||
| return; | |||
| } | |||
| if (targetObj) { | |||
| @@ -411,22 +417,22 @@ var cropperAspectRatio = { | |||
| function setAspectRatio(ar) { | |||
| var opts = optCropper; | |||
| opts.aspectRatio = cropperAspectRatio[ar]; | |||
| $("#cropImg" + mdlCropperID).cropper('destroy').cropper(opts); | |||
| $("#cropImg" + mdlCropperID).cropper("destroy").cropper(opts); | |||
| } | |||
| function okImage(modalID) { | |||
| uploadImage(litpicImg); | |||
| $("#litPic").attr("src", litpicImg); | |||
| CloseModal('GKModal' + modalID); | |||
| CloseModal("GKModal" + modalID); | |||
| } | |||
| function useDefault(modalID) { | |||
| uploadImage(litpicImgSrc); | |||
| $("#litPic").attr("src", litpicImgSrc); | |||
| CloseModal('GKModal' + modalID); | |||
| CloseModal("GKModal" + modalID); | |||
| } | |||
| function uploadImage(litpicImgSrc) { | |||
| const formData = new FormData() | |||
| formData.append('litpic_b64', litpicImgSrc); | |||
| fetch('archives_do.php?dopost=upload_base64_image', { | |||
| formData.append("litpic_b64", litpicImgSrc); | |||
| fetch("archives_do.php?dopost=upload_base64_image", { | |||
| method: 'POST', | |||
| body: formData | |||
| }) | |||
| @@ -470,28 +476,32 @@ $(document).ready(function() { | |||
| var menu = function(el, multiple) { | |||
| this.el = el || {}; | |||
| this.multiple = multiple || false; | |||
| var links = this.el.find('.link'); | |||
| links.on('click', {el: this.el, multiple: this.multiple}, this.dropdown) | |||
| var links = this.el.find(".link"); | |||
| links.on("click", { | |||
| el: this.el, | |||
| multiple: this.multiple, | |||
| }, | |||
| this.dropdown); | |||
| } | |||
| menu.prototype.dropdown = function(e) { | |||
| var $el = e.data.el; | |||
| $this = $(this), | |||
| $next = $this.next(); | |||
| $next.slideToggle(); | |||
| $this.parent().toggleClass('open'); | |||
| $this = $(this), | |||
| $next = $this.next(); | |||
| $next.slideToggle(); | |||
| $this.parent().toggleClass("open"); | |||
| if (!e.data.multiple) { | |||
| $el.find('.submenu').not($next).slideUp().parent().removeClass('open'); | |||
| }; | |||
| } | |||
| $el.find(".submenu").not($next).slideUp().parent().removeClass("open"); | |||
| } | |||
| } | |||
| var menu = new menu($('#menu'), false); | |||
| $(".submenu li a").click(function(e) { | |||
| $(".submenu li").removeClass('active'); | |||
| $(this).parent().addClass('active'); | |||
| }) | |||
| $(".submenu li").removeClass("active"); | |||
| $(this).parent().addClass("active"); | |||
| }); | |||
| }); | |||
| $("#btnClearAll").click(function(event) { | |||
| litpicImgSrc = ""; | |||
| litpicImg = ""; | |||
| litpicImgSrc = ''; | |||
| litpicImg = ''; | |||
| $("#picname").val(litpicImg); | |||
| $("#litPic").attr("src", "/static/web/img/thumbnail.jpg"); | |||
| }) | |||
| @@ -518,7 +528,7 @@ $(document).ready(function() { | |||
| $("#iptAddImages").val(""); | |||
| }); | |||
| if ($.fn.daterangepicker) { | |||
| $('.datepicker').daterangepicker({ | |||
| $(".datepicker").daterangepicker({ | |||
| "singleDatePicker": true, | |||
| "autoApply": true, | |||
| "showDropdowns": true, | |||
| @@ -545,11 +555,11 @@ $(document).ready(function() { | |||
| }, function(start) { | |||
| $(this).val(start.format("YYYY-MM-DD HH:mm:ss")); | |||
| }); | |||
| $('.datepicker').on('show.daterangepicker', function(ev, picker) { | |||
| $(".datepicker").on("show.daterangepicker", function(ev, picker) { | |||
| if (picker.element.offset().top - $(window).scrollTop() + picker.container.outerHeight() > $(window).height()) { | |||
| picker.drops = 'up'; | |||
| picker.drops = "up"; | |||
| } else { | |||
| picker.drops = 'down'; | |||
| picker.drops = "down"; | |||
| } | |||
| picker.move(); | |||
| }); | |||
| @@ -13,12 +13,12 @@ function noselAll() { | |||
| } | |||
| } | |||
| } | |||
| //批量删除搜多关键字 | |||
| //批量删除搜多关键词 | |||
| function delall() { | |||
| DedeConfirm("您确定要删除选定的关键字吗").then((v)=>{ | |||
| DedeConfirm("您确定要删除选定关键词吗").then((v) => { | |||
| document.form3.dopost.value = 'delall'; | |||
| document.form3.submit(); | |||
| }).catch((e)=>{ | |||
| console.log(e) | |||
| }).catch((e) => { | |||
| console.log(e); | |||
| }); | |||
| } | |||
| @@ -29,7 +29,7 @@ function update() { | |||
| showStepArea(currentStep); | |||
| } | |||
| } | |||
| }) | |||
| }); | |||
| } | |||
| function hasNewVersion() { | |||
| $.get("api.php?action=has_new_version", function(rs) { | |||
| @@ -47,9 +47,9 @@ function hasNewVersion() { | |||
| showStepArea(0); | |||
| } | |||
| } catch (error) { | |||
| console.log("获取软件信息失败") | |||
| console.log("获取软件信息失败"); | |||
| } | |||
| }) | |||
| }); | |||
| } | |||
| $(document).ready(function() { | |||
| hasNewVersion(); | |||
| @@ -66,16 +66,16 @@ $(document).ready(function() { | |||
| alertMsg = dedeAlter(`成功备份差异文件,目录:${rs.data.backupdir}`, 'success'); | |||
| $("#_msgInfo").html(alertMsg); | |||
| } | |||
| }) | |||
| }) | |||
| }); | |||
| }); | |||
| $("#systemUpdate").click(function() { | |||
| if (hasNewVer === false) { | |||
| currentStep = 5; | |||
| showStepArea(currentStep); | |||
| $('#mdlUpdate').modal('show'); | |||
| $("#mdlUpdate").modal("show"); | |||
| return; | |||
| } | |||
| $('#mdlUpdate').modal('show'); | |||
| $("#mdlUpdate").modal("show"); | |||
| showStepArea(currentStep); | |||
| currentStep++; | |||
| $.get("api.php?action=get_changed_files", function(rs) { | |||
| @@ -92,8 +92,8 @@ $(document).ready(function() { | |||
| } else { | |||
| showStepArea(0); | |||
| } | |||
| }) | |||
| }) | |||
| }); | |||
| }); | |||
| $('#mdlUpdate').on('hidden.bs.modal', function(event) { | |||
| currentStep = 1; | |||
| $("#_msgInfo").html(''); | |||
| @@ -117,8 +117,8 @@ $(document).ready(function() { | |||
| } else { | |||
| showStepArea(0); | |||
| } | |||
| }) | |||
| }) | |||
| }); | |||
| }); | |||
| $("#btnGoStep4").click(function() { | |||
| currentStep++ | |||
| $("#_msgInfo").html(''); | |||
| @@ -128,5 +128,5 @@ $(document).ready(function() { | |||
| }) | |||
| $("#btnOK").click(function() { | |||
| hasNewVersion(); | |||
| }) | |||
| }) | |||
| }); | |||
| }); | |||
| @@ -39,7 +39,7 @@ function selAll() { | |||
| } | |||
| for (i=0;i<document.form2.mid.length;i++) { | |||
| if (!document.form2.mid[i].checked) { | |||
| document.form2.mid[i].checked=true; | |||
| document.form2.mid[i].checked = true; | |||
| } | |||
| } | |||
| } | |||
| @@ -49,7 +49,7 @@ function noSelAll() { | |||
| } | |||
| for (i=0;i<document.form2.mid.length;i++) { | |||
| if (document.form2.mid[i].checked) { | |||
| document.form2.mid[i].checked=false; | |||
| document.form2.mid[i].checked = false; | |||
| } | |||
| } | |||
| } | |||
| @@ -16,10 +16,9 @@ | |||
| <script src="../static/web/js/webajax.js"></script> | |||
| <script src="../static/web/js/moment.min.js"></script> | |||
| <script src="../static/web/js/daterangepicker.js"></script> | |||
| <script src="../static/web/js/cropper.min.js"></script> | |||
| <script src="js/main.js"></script> | |||
| <script src="js/album.js"></script> | |||
| <script src="js/handlers.js"></script> | |||
| <script src="../static/web/js/cropper.min.js"></script> | |||
| </head> | |||
| <body> | |||
| <form name="form1" action="album_add.php" method="post" enctype="multipart/form-data" onSubmit="return checkSubmitAlb();"> | |||
| @@ -16,10 +16,9 @@ | |||
| <script src="../static/web/js/webajax.js"></script> | |||
| <script src="../static/web/js/moment.min.js"></script> | |||
| <script src="../static/web/js/daterangepicker.js"></script> | |||
| <script src="../static/web/js/cropper.min.js"></script> | |||
| <script src="js/main.js"></script> | |||
| <script src="js/album.js"></script> | |||
| <script src="js/handlers.js"></script> | |||
| <script src="../static/web/js/cropper.min.js"></script> | |||
| </head> | |||
| <body> | |||
| <form name="form1" action="album_edit.php" method="post" enctype="multipart/form-data" onSubmit="return checkSubmitAlb();"> | |||
| @@ -15,8 +15,8 @@ | |||
| <script src="../static/web/js/webajax.js"></script> | |||
| <script src="../static/web/js/moment.min.js"></script> | |||
| <script src="../static/web/js/daterangepicker.js"></script> | |||
| <script src="js/main.js"></script> | |||
| <script src="../static/web/js/cropper.min.js"></script> | |||
| <script src="js/main.js"></script> | |||
| </head> | |||
| <body> | |||
| <form name="form1" action="archives_add.php" method="post" enctype="multipart/form-data" onSubmit="return checkSubmit()"> | |||
| @@ -15,8 +15,8 @@ | |||
| <script src="../static/web/js/webajax.js"></script> | |||
| <script src="../static/web/js/moment.min.js"></script> | |||
| <script src="../static/web/js/daterangepicker.js"></script> | |||
| <script src="js/main.js"></script> | |||
| <script src="../static/web/js/cropper.min.js"></script> | |||
| <script src="js/main.js"></script> | |||
| </head> | |||
| <body> | |||
| <form name="form1" action="archives_edit.php" method="post" enctype="multipart/form-data" onSubmit="return checkSubmit();"> | |||
| @@ -15,8 +15,8 @@ | |||
| <script src="../static/web/js/webajax.js"></script> | |||
| <script src="../static/web/js/moment.min.js"></script> | |||
| <script src="../static/web/js/daterangepicker.js"></script> | |||
| <script src="js/main.js"></script> | |||
| <script src="../static/web/js/cropper.min.js"></script> | |||
| <script src="js/main.js"></script> | |||
| </head> | |||
| <body> | |||
| <form name="form1" action="archives_sg_add.php" method="post" enctype="multipart/form-data" onSubmit="return checkSubmit()"> | |||
| @@ -15,8 +15,8 @@ | |||
| <script src="../static/web/js/webajax.js"></script> | |||
| <script src="../static/web/js/moment.min.js"></script> | |||
| <script src="../static/web/js/daterangepicker.js"></script> | |||
| <script src="js/main.js"></script> | |||
| <script src="../static/web/js/cropper.min.js"></script> | |||
| <script src="js/main.js"></script> | |||
| </head> | |||
| <body> | |||
| <form name="form1" action="archives_sg_edit.php" method="post" enctype="multipart/form-data" onSubmit="return checkSubmit();"> | |||
| @@ -15,9 +15,8 @@ | |||
| <script src="../static/web/js/webajax.js"></script> | |||
| <script src="../static/web/js/moment.min.js"></script> | |||
| <script src="../static/web/js/daterangepicker.js"></script> | |||
| <script src="js/main.js"></script> | |||
| <script src="js/handlers.js"></script> | |||
| <script src="../static/web/js/cropper.min.js"></script> | |||
| <script src="js/main.js"></script> | |||
| </head> | |||
| <body> | |||
| <form name="form1" action="article_add.php" method="post" enctype="multipart/form-data" onSubmit="return checkSubmit()"> | |||
| @@ -15,9 +15,8 @@ | |||
| <script src="../static/web/js/webajax.js"></script> | |||
| <script src="../static/web/js/moment.min.js"></script> | |||
| <script src="../static/web/js/daterangepicker.js"></script> | |||
| <script src="js/main.js"></script> | |||
| <script src="js/handlers.js"></script> | |||
| <script src="../static/web/js/cropper.min.js"></script> | |||
| <script src="js/main.js"></script> | |||
| </head> | |||
| <body> | |||
| <form name="form1" action="article_edit.php" method="post" enctype="multipart/form-data" onSubmit="return checkSubmit();"> | |||
| @@ -10,7 +10,7 @@ | |||
| <style>.admin-td{border-bottom:1px solid #dee2e6!important}</style> | |||
| <script src="../static/web/js/jquery.min.js"></script> | |||
| <script src="../static/web/js/webajax.js"></script> | |||
| <script src="js/global.js"></script> | |||
| <script src="js/catalog.js"></script> | |||
| </head> | |||
| <body> | |||
| <table align="center" class="table maintable my-3"> | |||
| @@ -9,7 +9,7 @@ | |||
| <link rel="stylesheet" href="../static/web/css/admin.css"> | |||
| <script src="../static/web/js/jquery.min.js"></script> | |||
| <script src="../static/web/js/bootstrap.min.js"></script> | |||
| <script src="js/key.js"></script> | |||
| <script src="js/search.js"></script> | |||
| <script src="../static/web/js/webajax.js"></script> | |||
| <script src="js/main.js"></script> | |||
| <script> | |||
| @@ -15,8 +15,8 @@ | |||
| <script src="../static/web/js/webajax.js"></script> | |||
| <script src="../static/web/js/moment.min.js"></script> | |||
| <script src="../static/web/js/daterangepicker.js"></script> | |||
| <script src="js/main.js"></script> | |||
| <script src="../static/web/js/cropper.min.js"></script> | |||
| <script src="js/main.js"></script> | |||
| <script> | |||
| var startNum = 0; | |||
| function MakeUpload() { | |||
| @@ -15,8 +15,8 @@ | |||
| <script src="../static/web/js/webajax.js"></script> | |||
| <script src="../static/web/js/moment.min.js"></script> | |||
| <script src="../static/web/js/daterangepicker.js"></script> | |||
| <script src="js/main.js"></script> | |||
| <script src="../static/web/js/cropper.min.js"></script> | |||
| <script src="js/main.js"></script> | |||
| <script> | |||
| var startNum = <?php echo $newRowStart?>; | |||
| function MakeUpload() { | |||
| @@ -15,8 +15,8 @@ | |||
| <script src="../static/web/js/webajax.js"></script> | |||
| <script src="../static/web/js/moment.min.js"></script> | |||
| <script src="../static/web/js/daterangepicker.js"></script> | |||
| <script src="js/main.js"></script> | |||
| <script src="../static/web/js/cropper.min.js"></script> | |||
| <script src="js/main.js"></script> | |||
| <script> | |||
| function checkSubmit() { | |||
| if (document.form1.title.value == '') { | |||
| @@ -15,8 +15,8 @@ | |||
| <script src="../static/web/js/webajax.js"></script> | |||
| <script src="../static/web/js/moment.min.js"></script> | |||
| <script src="../static/web/js/daterangepicker.js"></script> | |||
| <script src="js/main.js"></script> | |||
| <script src="../static/web/js/cropper.min.js"></script> | |||
| <script src="js/main.js"></script> | |||
| <script> | |||
| function checkSubmit() { | |||
| if (document.form1.title.value == '') { | |||
| @@ -8,7 +8,6 @@ | |||
| <link rel="stylesheet" href="../static/web/css/bootstrap.min.css"> | |||
| <link rel="shortcut icon" href="../static/web/img/favicon.ico"> | |||
| <script src="../static/web/js/jquery.min.js"></script> | |||
| <script src="../static/web/js/popper.min.js"></script> | |||
| <script src="../static/web/js/bootstrap.min.js"></script> | |||
| <script src="../static/web/js/style.js"></script> | |||
| <style>body{line-height:1.6;letter-spacing:.6px;font-size:14px;font-family:Helvetica Neue,Helvetica,PingFang SC,Tahoma,Arial,sans-serif;color:#545b62;background:#f5f5f5}a{color:#545b62}a:hover{color:#ff8400;text-decoration:none}h2,legend{line-height:1.6;font-size:18px;font-weight:600;color:#393d49}label{margin-bottom:10px;line-height:18px}input,select,.btn{font-size:14px!important}.install-box{margin:0 auto;width:800px}.admin-head{padding:1rem 0;background:#fff}.admin-nav{height:36px;line-height:36px}.admin-nav-a{padding-right:30px}.dropdown-menu{min-width:8rem;font-size:14px}.dropdown-item{padding:0 1rem;height:36px;line-height:36px;font-size:14px;color:#545b62!important}.fa{font-size:14px!important;color:inherit;cursor:pointer}.logo,.form-control{height:36px}.form-control,.btn-md,.card,.alert,.rounded{border-radius:.5rem!important}.card-header:first-child{border-radius:.5rem .5rem 0 0}.input-group:not(.has-validation)>.custom-file:not(:last-child) .custom-file-label,.input-group:not(.has-validation)>.custom-file:not(:last-child) .custom-file-label::after,.input-group:not(.has-validation)>.custom-select:not(:last-child),.input-group:not(.has-validation)>.form-control:not(:last-child){border-top-right-radius:0!important;border-bottom-right-radius:0!important}.input-group>.input-group-append>.btn,.input-group>.input-group-append>.input-group-text,.input-group>.input-group-prepend:first-child>.btn:not(:first-child),.input-group>.input-group-prepend:first-child>.input-group-text:not(:first-child),.input-group>.input-group-prepend:not(:first-child)>.btn,.input-group>.input-group-prepend:not(:first-child)>.input-group-text{border-top-left-radius:0!important;border-bottom-left-radius:0!important}@media (max-width:760px){.install-box{width:100%}.admin-head{padding:1rem 15px}.admin-nav-a{display:none!important}}</style> | |||
| @@ -16,7 +16,7 @@ function GetCookie(c_name) { | |||
| function SetCookie(c_name, value, expiredays) { | |||
| var exdate = new Date(); | |||
| exdate.setDate(exdate.getDate() + expiredays); | |||
| document.cookie = c_name + "=" + escape(value) + ((expiredays == null) ? "" : ";expires=" + exdate.toGMTString()); //使设置的有效时间正确。添加toGMTString() | |||
| document.cookie = c_name + "=" + escape(value) + ((expiredays == null) ? "" : ";expires=" + exdate.toGMTString()); | |||
| } | |||
| //全局消息提示框,生成一个随机id | |||
| function guid() { | |||
| @@ -180,13 +180,13 @@ function ErrorAddSave(id, title) { | |||
| }); | |||
| } | |||
| $(function() { | |||
| $(window).on('scroll', function() { | |||
| $(window).on("scroll", function() { | |||
| var scrolled = $(window).scrollTop(); | |||
| if (scrolled > 100) $('#returntop').show(); | |||
| if (scrolled < 100) $('#returntop').hide(); | |||
| if (scrolled > 100) $("#returntop").show(); | |||
| if (scrolled < 100) $("#returntop").hide(); | |||
| }); | |||
| $('#returntop').on('click', function() { | |||
| $('html, body').animate({ | |||
| $("#returntop").on("click", function() { | |||
| $("html, body").animate({ | |||
| scrollTop: '0' | |||
| }, 500); | |||
| }); | |||
| @@ -3,49 +3,49 @@ function MakeUpload(mnum) { | |||
| var endNum = 0; | |||
| var upfield = document.getElementById("uploadfield"); | |||
| var pnumObj = document.getElementById("picnum"); | |||
| var fhtml = ""; | |||
| var dsel = " checked='checked' "; | |||
| var dplay = "display:none"; | |||
| if (mnum==0) endNum = startNum + Number(pnumObj.value); | |||
| var fhtml = ''; | |||
| var dsel = ' checked="checked" '; | |||
| var dplay = 'display:none'; | |||
| if (mnum == 0) endNum = startNum + Number(pnumObj.value); | |||
| else endNum = mnum; | |||
| if (endNum>120) endNum = 120; | |||
| if (endNum > 120) endNum = 120; | |||
| for (startNum;startNum < endNum;startNum++) | |||
| { | |||
| if (startNum==1) { | |||
| dsel = " checked='checked' "; | |||
| dplay = "block"; | |||
| if (startNum == 1) { | |||
| dsel = ' checked="checked" '; | |||
| dplay = 'display:block'; | |||
| } else { | |||
| dsel = " "; | |||
| dplay = "display:none"; | |||
| dsel = ' '; | |||
| dplay = 'display:none'; | |||
| } | |||
| fhtml = ""; | |||
| fhtml = ''; | |||
| fhtml += "<div class='mb-3'><label class='mb-0'><input type='checkbox' name='isokcheck" + startNum + "' id='isokcheck" + startNum + "' value='1' "+dsel+" onClick='CheckSelTable(" + startNum + ")'> 显示图片" + startNum + "上传框</label></div>"; | |||
| fhtml += "<div id=\"seltb" + startNum + "\" class='form-group' style=\"" + dplay + "\"><label>图片" + startNum + "上传:</label><div class='input-group mb-3'><input type='text' name='imgfile" + startNum + "' class='form-control' placeholder='请选择图片上传或填写图片地址'><div class='input-group-append'><span class='btn btn-success btn-sm btn-send' onClick=\"SelectImage('addcontent.imgfile" + startNum + "', 'big')\">选择</span></div></div><label>图片" + startNum + "简介:</label><textarea name='imgmsg" + startNum + "' class='form-control'></textarea></div>"; | |||
| upfield.innerHTML += fhtml; | |||
| } | |||
| } | |||
| function checkMuList(psid, cmid) { | |||
| if (document.getElementById('pagestyle3').checked) { | |||
| document.getElementById('spagelist').style.display = 'none'; | |||
| } else if (document.getElementById('pagestyle1').checked) { | |||
| document.getElementById('spagelist').style.display = 'block'; | |||
| if (document.getElementById("pagestyle3").checked) { | |||
| document.getElementById("spagelist").style.display = "none"; | |||
| } else if (document.getElementById("pagestyle1").checked) { | |||
| document.getElementById("spagelist").style.display = "block"; | |||
| } else { | |||
| document.getElementById('spagelist').style.display = 'none'; | |||
| document.getElementById("spagelist").style.display = "none"; | |||
| } | |||
| } | |||
| function CheckSelTable(nnum) { | |||
| var cbox = document.getElementById('isokcheck'+nnum); | |||
| var seltb = document.getElementById('seltb'+nnum); | |||
| if (!cbox.checked) seltb.style.display = 'none'; | |||
| else seltb.style.display = 'block'; | |||
| var cbox = document.getElementById("isokcheck" + nnum); | |||
| var seltb = document.getElementById("seltb" + nnum); | |||
| if (!cbox.checked) seltb.style.display = "none"; | |||
| else seltb.style.display = "block"; | |||
| } | |||
| function checkSubmit() { | |||
| if (document.form1.title.value=='') { | |||
| if (document.form1.title.value == '') { | |||
| alert("文档标题不能为空"); | |||
| document.form1.title.focus(); | |||
| return false; | |||
| } | |||
| if (document.form1.typeid.value==0) { | |||
| if (document.form1.typeid.value == 0) { | |||
| alert("请您选择文档所属栏目"); | |||
| return false; | |||
| } | |||
| @@ -110,7 +110,7 @@ class TypeUnit | |||
| if ($ispart == 0) { | |||
| //列表栏目 | |||
| echo "<tr>"; | |||
| echo "<td class='admin-td'><table width='100%'><tr><td width='50%'><i id='img".$id."' onclick=\"LoadSuns('suns".$id."',$id);\" class='fa fa-plus-square'></i><input type='checkbox' name='tids[]' value='{$id}' class='mr-3 ml-3'><span class='btn btn-success btn-xs'>列表</span>{$nss}<a href='catalog_do.php?cid=".$id."&dopost=listArchives' class='mr-3 ml-3'>".$typeName."</a>[id:".$id."](文档数:".$this->GetTotalArc($id).")"; | |||
| echo "<td class='admin-td'><table width='100%'><tr><td width='50%'><i id='icon".$id."' onclick=\"LoadSuns('suns".$id."',$id);\" class='fa fa-plus-square'></i><input type='checkbox' name='tids[]' value='{$id}' class='mr-3 ml-3'><span class='btn btn-success btn-xs'>列表</span>{$nss}<a href='catalog_do.php?cid=".$id."&dopost=listArchives' class='mr-3 ml-3'>".$typeName."</a>[id:".$id."](文档数:".$this->GetTotalArc($id).")"; | |||
| echo "</td>"; | |||
| echo "<td align='right'><a href='{$GLOBALS['cfg_phpurl']}/list.php?tid={$id}' target='_blank' title='预览' class='btn btn-light btn-sm'><i class='fa fa-eye'></i></a>"; | |||
| echo "<a href='catalog_do.php?cid={$id}&dopost=listArchives' title='文档' class='btn btn-light btn-sm'><i class='fa fa-file-text'></i></a>"; | |||
| @@ -122,7 +122,7 @@ class TypeUnit | |||
| } else if ($ispart == 1) { | |||
| //封面栏目 | |||
| echo "<tr>"; | |||
| echo "<td class='admin-td'><table width='100%'><tr><td width='50%'><i id='img".$id."' onclick=\"LoadSuns('suns".$id."',$id);\" class='fa fa-plus-square'></i><input type='checkbox' name='tids[]' value='{$id}' class='mr-3 ml-3'><span class='btn btn-warning btn-xs'>封面</span>{$nss}<a href='catalog_do.php?cid=".$id."&dopost=listArchives' class='mr-3 ml-3'>".$typeName."</a>[id:".$id."]"; | |||
| echo "<td class='admin-td'><table width='100%'><tr><td width='50%'><i id='icon".$id."' onclick=\"LoadSuns('suns".$id."',$id);\" class='fa fa-plus-square'></i><input type='checkbox' name='tids[]' value='{$id}' class='mr-3 ml-3'><span class='btn btn-warning btn-xs'>封面</span>{$nss}<a href='catalog_do.php?cid=".$id."&dopost=listArchives' class='mr-3 ml-3'>".$typeName."</a>[id:".$id."]"; | |||
| echo "</td>"; | |||
| echo "<td align='right'><a href='{$GLOBALS['cfg_phpurl']}/list.php?tid={$id}' target='_blank' title='预览' class='btn btn-light btn-sm'><i class='fa fa-eye'></i></a>"; | |||
| echo "<a href='catalog_do.php?cid={$id}&dopost=listArchives' title='文档' class='btn btn-light btn-sm'><i class='fa fa-file-text'></i></a>"; | |||
| @@ -134,7 +134,7 @@ class TypeUnit | |||
| } else if ($ispart == 2) { | |||
| //外部栏目 | |||
| echo "<tr>"; | |||
| echo "<td class='admin-td'><table width='100%'><tr><td width='50%'><i id='img".$id."' onclick=\"LoadSuns('suns".$id."',$id);\" class='fa fa-plus-square'></i><input type='checkbox' name='tids[]' value='{$id}' class='mr-3 ml-3'><span class='btn btn-primary btn-xs'>外部</span>{$nss}<a href='catalog_edit.php?id=".$id."' class='mr-3 ml-3'>".$typeName."</a>[id:".$id."]"; | |||
| echo "<td class='admin-td'><table width='100%'><tr><td width='50%'><i id='icon".$id."' onclick=\"LoadSuns('suns".$id."',$id);\" class='fa fa-plus-square'></i><input type='checkbox' name='tids[]' value='{$id}' class='mr-3 ml-3'><span class='btn btn-primary btn-xs'>外部</span>{$nss}<a href='catalog_edit.php?id=".$id."' class='mr-3 ml-3'>".$typeName."</a>[id:".$id."]"; | |||
| echo "</td>"; | |||
| echo "<td align='right'><a href='{$typeDir}' target='_blank' title='预览' class='btn btn-light btn-sm'><i class='fa fa-eye'></i></a>"; | |||
| echo "<a href='catalog_add.php?id={$id}' title='添加' class='btn btn-light btn-sm'><i class='fa fa-plus-circle'></i></a>"; | |||
| @@ -194,7 +194,7 @@ class TypeUnit | |||
| //列表栏目 | |||
| echo "<tr>"; | |||
| echo "<td class='admin-td'><table width='100%'><tr><td width='50%'>"; | |||
| echo "$step<i id='img".$id."' onclick=\"LoadSuns('suns".$id."',$id);\" class='fa fa-plus-square'></i><input type='checkbox' name='tids[]' value='{$id}' class='mr-3 ml-3'><span class='btn btn-success btn-xs'>列表</span>{$nss}<a href='catalog_do.php?cid=".$id."&dopost=listArchives' class='mr-3 ml-3'>".$typeName."</a>[id:".$id."](文档数:".$this->GetTotalArc($id).")"; | |||
| echo "$step<i id='icon".$id."' onclick=\"LoadSuns('suns".$id."',$id);\" class='fa fa-plus-square'></i><input type='checkbox' name='tids[]' value='{$id}' class='mr-3 ml-3'><span class='btn btn-success btn-xs'>列表</span>{$nss}<a href='catalog_do.php?cid=".$id."&dopost=listArchives' class='mr-3 ml-3'>".$typeName."</a>[id:".$id."](文档数:".$this->GetTotalArc($id).")"; | |||
| echo "</td>"; | |||
| echo "<td align='right'><a href='{$GLOBALS['cfg_phpurl']}/list.php?tid={$id}' target='_blank' title='预览' class='btn btn-light btn-sm'><i class='fa fa-eye'></i></a>"; | |||
| echo "<a href='catalog_do.php?cid={$id}&dopost=listArchives' title='文档' class='btn btn-light btn-sm'><i class='fa fa-file-text'></i></a>"; | |||
| @@ -207,7 +207,7 @@ class TypeUnit | |||
| //封面栏目 | |||
| echo "<tr>"; | |||
| echo "<td class='admin-td'><table width='100%'><tr><td width='50%'>"; | |||
| echo "$step<i id='img".$id."' onclick=\"LoadSuns('suns".$id."',$id);\" class='fa fa-plus-square'></i><input type='checkbox' name='tids[]' value='{$id}' class='mr-3 ml-3'><span class='btn btn-warning btn-xs'>封面</span>{$nss}<a href='catalog_do.php?cid=".$id."&dopost=listArchives' class='mr-3 ml-3'>".$typeName."</a>[id:".$id."]"; | |||
| echo "$step<i id='icon".$id."' onclick=\"LoadSuns('suns".$id."',$id);\" class='fa fa-plus-square'></i><input type='checkbox' name='tids[]' value='{$id}' class='mr-3 ml-3'><span class='btn btn-warning btn-xs'>封面</span>{$nss}<a href='catalog_do.php?cid=".$id."&dopost=listArchives' class='mr-3 ml-3'>".$typeName."</a>[id:".$id."]"; | |||
| echo "</td>"; | |||
| echo "<td align='right'><a href='{$GLOBALS['cfg_phpurl']}/list.php?tid={$id}' target='_blank' title='预览' class='btn btn-light btn-sm'><i class='fa fa-eye'></i></a>"; | |||
| echo "<a href='catalog_do.php?cid={$id}&dopost=listArchives' title='文档' class='btn btn-light btn-sm'><i class='fa fa-file-text'></i></a>"; | |||
| @@ -220,7 +220,7 @@ class TypeUnit | |||
| //外部栏目 | |||
| echo "<tr>"; | |||
| echo "<td class='admin-td'><table width='100%'><tr><td width='50%'>"; | |||
| echo "$step<i id='img".$id."' onclick=\"LoadSuns('suns".$id."',$id);\" class='fa fa-plus-square'></i><input type='checkbox' name='tids[]' value='{$id}' class='mr-3 ml-3'><span class='btn btn-primary btn-xs'>外部</span>{$nss}<a href='catalog_do.php?cid=".$id."&dopost=listArchives' class='mr-3 ml-3'>".$typeName."</a>[id:".$id."]"; | |||
| echo "$step<i id='icon".$id."' onclick=\"LoadSuns('suns".$id."',$id);\" class='fa fa-plus-square'></i><input type='checkbox' name='tids[]' value='{$id}' class='mr-3 ml-3'><span class='btn btn-primary btn-xs'>外部</span>{$nss}<a href='catalog_do.php?cid=".$id."&dopost=listArchives' class='mr-3 ml-3'>".$typeName."</a>[id:".$id."]"; | |||
| echo "</td>"; | |||
| echo "<td align='right'><a href='{$typeDir}' target='_blank' title='预览' class='btn btn-light btn-sm'><i class='fa fa-eye'></i></a>"; | |||
| echo "<a href='catalog_edit.php?id={$id}' title='修改' class='btn btn-light btn-sm'><i class='fa fa-pencil-square'></i></a>"; | |||
| @@ -31,7 +31,7 @@ | |||
| </td> | |||
| </tr> | |||
| <tr> | |||
| <td>关键字:</td> | |||
| <td>关键词:</td> | |||
| <td><input name="q" type="text" id="q" class="form-control"></td> | |||
| </tr> | |||
| <tr> | |||
| @@ -8,9 +8,6 @@ | |||
| <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/font/css/font-awesome.min.css"> | |||
| <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/bootstrap.min.css"> | |||
| <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/style.css"> | |||
| <script src="<?php echo $cfg_cmsurl;?>/static/web/js/jquery.min.js"></script> | |||
| <script src="<?php echo $cfg_cmsurl;?>/static/web/js/user.js"></script> | |||
| <script src="<?php echo $cfg_cmsurl;?>/static/web/js/user.album.js"></script> | |||
| </head> | |||
| <body class="body-bg"> | |||
| <?php obtaintheme('top.htm');?> | |||
| @@ -101,6 +98,8 @@ | |||
| </div> | |||
| </main> | |||
| <?php obtaintheme('foot.htm');?> | |||
| <script src="<?php echo $cfg_cmsurl;?>/static/web/js/user.js"></script> | |||
| <script src="<?php echo $cfg_cmsurl;?>/static/web/js/user.album.js"></script> | |||
| <?php include(DEDEMEMBER."/templets/widget_litpic.htm");?> | |||
| </body> | |||
| </html> | |||
| @@ -8,9 +8,6 @@ | |||
| <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/font/css/font-awesome.min.css"> | |||
| <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/bootstrap.min.css"> | |||
| <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/style.css"> | |||
| <script src="<?php echo $cfg_cmsurl;?>/static/web/js/jquery.min.js"></script> | |||
| <script src="<?php echo $cfg_cmsurl;?>/static/web/js/user.js"></script> | |||
| <script src="<?php echo $cfg_cmsurl;?>/static/web/js/user.album.js"></script> | |||
| </head> | |||
| <body class="body-bg"> | |||
| <?php obtaintheme('top.htm');?> | |||
| @@ -128,6 +125,8 @@ | |||
| </div> | |||
| </main> | |||
| <?php obtaintheme('foot.htm');?> | |||
| <script src="<?php echo $cfg_cmsurl;?>/static/web/js/user.js"></script> | |||
| <script src="<?php echo $cfg_cmsurl;?>/static/web/js/user.album.js"></script> | |||
| <script>startNum = <?php echo $j;?>;</script> | |||
| <?php include(DEDEMEMBER."/templets/widget_litpic.htm");?> | |||
| </body> | |||
| @@ -8,8 +8,6 @@ | |||
| <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/font/css/font-awesome.min.css"> | |||
| <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/bootstrap.min.css"> | |||
| <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/style.css"> | |||
| <script src="<?php echo $cfg_cmsurl;?>/static/web/js/jquery.min.js"></script> | |||
| <script src="<?php echo $cfg_cmsurl;?>/static/web/js/user.js"></script> | |||
| </head> | |||
| <body class="body-bg"> | |||
| <?php obtaintheme('top.htm');?> | |||
| @@ -75,6 +73,7 @@ | |||
| </div> | |||
| </main> | |||
| <?php obtaintheme('foot.htm');?> | |||
| <script src="<?php echo $cfg_cmsurl;?>/static/web/js/user.js"></script> | |||
| <?php include(DEDEMEMBER."/templets/widget_litpic.htm");?> | |||
| </body> | |||
| </html> | |||
| @@ -8,8 +8,6 @@ | |||
| <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/font/css/font-awesome.min.css"> | |||
| <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/bootstrap.min.css"> | |||
| <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/style.css"> | |||
| <script src="<?php echo $cfg_cmsurl;?>/static/web/js/jquery.min.js"></script> | |||
| <script src="<?php echo $cfg_cmsurl;?>/static/web/js/user.js"></script> | |||
| </head> | |||
| <body class="body-bg"> | |||
| <?php obtaintheme('top.htm');?> | |||
| @@ -74,6 +72,7 @@ | |||
| </div> | |||
| </main> | |||
| <?php obtaintheme('foot.htm');?> | |||
| <script src="<?php echo $cfg_cmsurl;?>/static/web/js/user.js"></script> | |||
| <?php include(DEDEMEMBER."/templets/widget_litpic.htm");?> | |||
| </body> | |||
| </html> | |||
| @@ -8,8 +8,6 @@ | |||
| <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/font/css/font-awesome.min.css"> | |||
| <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/bootstrap.min.css"> | |||
| <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/style.css"> | |||
| <script src="<?php echo $cfg_cmsurl;?>/static/web/js/jquery.min.js"></script> | |||
| <script src="<?php echo $cfg_cmsurl;?>/static/web/js/user.js"></script> | |||
| </head> | |||
| <body class="body-bg"> | |||
| <?php obtaintheme('top.htm');?> | |||
| @@ -71,6 +69,7 @@ | |||
| </div> | |||
| </main> | |||
| <?php obtaintheme('foot.htm');?> | |||
| <script src="<?php echo $cfg_cmsurl;?>/static/web/js/user.js"></script> | |||
| <?php include(DEDEMEMBER."/templets/widget_litpic.htm");?> | |||
| </body> | |||
| </html> | |||
| @@ -8,8 +8,6 @@ | |||
| <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/font/css/font-awesome.min.css"> | |||
| <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/bootstrap.min.css"> | |||
| <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/style.css"> | |||
| <script src="<?php echo $cfg_cmsurl;?>/static/web/js/jquery.min.js"></script> | |||
| <script src="<?php echo $cfg_cmsurl;?>/static/web/js/user.js"></script> | |||
| </head> | |||
| <body class="body-bg"> | |||
| <?php obtaintheme('top.htm');?> | |||
| @@ -70,6 +68,7 @@ | |||
| </div> | |||
| </main> | |||
| <?php obtaintheme('foot.htm');?> | |||
| <script src="<?php echo $cfg_cmsurl;?>/static/web/js/user.js"></script> | |||
| <?php include(DEDEMEMBER."/templets/widget_litpic.htm");?> | |||
| </body> | |||
| </html> | |||
| @@ -8,8 +8,6 @@ | |||
| <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/font/css/font-awesome.min.css"> | |||
| <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/bootstrap.min.css"> | |||
| <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/style.css"> | |||
| <script src="<?php echo $cfg_cmsurl;?>/static/web/js/jquery.min.js"></script> | |||
| <script src="<?php echo $cfg_cmsurl;?>/static/web/js/user.js"></script> | |||
| </head> | |||
| <body class="body-bg"> | |||
| <?php obtaintheme('top.htm');?> | |||
| @@ -79,6 +77,7 @@ | |||
| </div> | |||
| </main> | |||
| <?php obtaintheme('foot.htm');?> | |||
| <script src="<?php echo $cfg_cmsurl;?>/static/web/js/user.js"></script> | |||
| <?php include(DEDEMEMBER."/templets/widget_litpic.htm");?> | |||
| </body> | |||
| </html> | |||
| @@ -8,8 +8,6 @@ | |||
| <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/font/css/font-awesome.min.css"> | |||
| <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/bootstrap.min.css"> | |||
| <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/style.css"> | |||
| <script src="<?php echo $cfg_cmsurl;?>/static/web/js/jquery.min.js"></script> | |||
| <script src="<?php echo $cfg_cmsurl;?>/static/web/js/user.js"></script> | |||
| </head> | |||
| <body class="body-bg"> | |||
| <?php obtaintheme('top.htm');?> | |||
| @@ -82,6 +80,7 @@ | |||
| </div> | |||
| </main> | |||
| <?php obtaintheme('foot.htm');?> | |||
| <script src="<?php echo $cfg_cmsurl;?>/static/web/js/user.js"></script> | |||
| <?php include(DEDEMEMBER."/templets/widget_litpic.htm");?> | |||
| </body> | |||
| </html> | |||
| @@ -8,7 +8,6 @@ | |||
| <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/font/css/font-awesome.min.css"> | |||
| <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/bootstrap.min.css"> | |||
| <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/style.css"> | |||
| <script src="<?php echo $cfg_cmsurl;?>/static/web/js/jquery.min.js"></script> | |||
| </head> | |||
| <body class="body-bg"> | |||
| <?php obtaintheme('top.htm');?> | |||
| @@ -8,7 +8,6 @@ | |||
| <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/font/css/font-awesome.min.css"> | |||
| <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/bootstrap.min.css"> | |||
| <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/style.css"> | |||
| <script src="<?php echo $cfg_cmsurl;?>/static/web/js/jquery.min.js"></script> | |||
| </head> | |||
| <body class="body-bg"> | |||
| <?php obtaintheme('top.htm');?> | |||
| @@ -8,7 +8,6 @@ | |||
| <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/font/css/font-awesome.min.css"> | |||
| <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/bootstrap.min.css"> | |||
| <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/style.css"> | |||
| <script src="<?php echo $cfg_cmsurl;?>/static/web/js/jquery.min.js"></script> | |||
| </head> | |||
| <body class="body-bg"> | |||
| <?php obtaintheme('top.htm');?> | |||
| @@ -8,7 +8,6 @@ | |||
| <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/font/css/font-awesome.min.css"> | |||
| <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/bootstrap.min.css"> | |||
| <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/style.css"> | |||
| <script src="<?php echo $cfg_cmsurl;?>/static/web/js/jquery.min.js"></script> | |||
| </head> | |||
| <body class="body-bg"> | |||
| <?php obtaintheme('top.htm');?> | |||
| @@ -8,7 +8,6 @@ | |||
| <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/font/css/font-awesome.min.css"> | |||
| <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/bootstrap.min.css"> | |||
| <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/style.css"> | |||
| <script src="<?php echo $cfg_cmsurl;?>/static/web/js/jquery.min.js"></script> | |||
| </head> | |||
| <body class="body-bg"> | |||
| <?php obtaintheme('top.htm');?> | |||
| @@ -8,7 +8,6 @@ | |||
| <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/font/css/font-awesome.min.css"> | |||
| <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/bootstrap.min.css"> | |||
| <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/style.css"> | |||
| <script src="<?php echo $cfg_cmsurl;?>/static/web/js/jquery.min.js"></script> | |||
| </head> | |||
| <body class="body-bg"> | |||
| <?php obtaintheme('top.htm');?> | |||
| @@ -8,8 +8,6 @@ | |||
| <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/font/css/font-awesome.min.css"> | |||
| <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/bootstrap.min.css"> | |||
| <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/style.css"> | |||
| <script src="<?php echo $cfg_cmsurl;?>/static/web/js/jquery.min.js"></script> | |||
| <script src="<?php echo $cfg_cmsurl;?>/static/web/js/login.js"></script> | |||
| </head> | |||
| <body class="body-bg"> | |||
| <?php obtaintheme('top.htm');?> | |||
| @@ -49,5 +47,6 @@ | |||
| </div> | |||
| </main> | |||
| <?php obtaintheme('foot.htm');?> | |||
| <script src="<?php echo $cfg_cmsurl;?>/static/web/js/login.js"></script> | |||
| </body> | |||
| </html> | |||
| @@ -8,7 +8,6 @@ | |||
| <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/font/css/font-awesome.min.css"> | |||
| <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/bootstrap.min.css"> | |||
| <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/style.css"> | |||
| <script src="<?php echo $cfg_cmsurl;?>/static/web/js/jquery.min.js"></script> | |||
| </head> | |||
| <body class="body-bg"> | |||
| <?php obtaintheme('top.htm');?> | |||
| @@ -8,7 +8,6 @@ | |||
| <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/font/css/font-awesome.min.css"> | |||
| <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/bootstrap.min.css"> | |||
| <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/style.css"> | |||
| <script src="<?php echo $cfg_cmsurl;?>/static/web/js/jquery.min.js"></script> | |||
| </head> | |||
| <body class="body-bg"> | |||
| <?php obtaintheme('top.htm');?> | |||
| @@ -8,7 +8,6 @@ | |||
| <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/font/css/font-awesome.min.css"> | |||
| <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/bootstrap.min.css"> | |||
| <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/style.css"> | |||
| <script src="<?php echo $cfg_cmsurl;?>/static/web/js/jquery.min.js"></script> | |||
| </head> | |||
| <body class="body-bg"> | |||
| <?php obtaintheme('top.htm');?> | |||
| @@ -8,9 +8,6 @@ | |||
| <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/font/css/font-awesome.min.css"> | |||
| <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/bootstrap.min.css"> | |||
| <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/style.css"> | |||
| <script src="<?php echo $cfg_cmsurl;?>/static/web/js/jquery.min.js"></script> | |||
| <script src="<?php echo $cfg_cmsurl;?>/static/web/js/bootstrap.min.js"></script> | |||
| <script src="<?php echo $cfg_cmsurl;?>/static/web/js/style.js"></script> | |||
| </head> | |||
| <body class="body-bg"> | |||
| <?php obtaintheme('top.htm');?> | |||
| @@ -89,6 +86,7 @@ | |||
| </div> | |||
| </main> | |||
| <?php obtaintheme('foot.htm');?> | |||
| <script src="<?php echo $cfg_cmsurl;?>/static/web/js/style.js"></script> | |||
| <script> | |||
| //阅读消息 | |||
| function ReadMsg(id) { | |||
| @@ -8,7 +8,6 @@ | |||
| <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/font/css/font-awesome.min.css"> | |||
| <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/bootstrap.min.css"> | |||
| <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/style.css"> | |||
| <script src="<?php echo $cfg_cmsurl;?>/static/web/js/jquery.min.js"></script> | |||
| </head> | |||
| <body class="body-bg"> | |||
| <?php obtaintheme('top.htm');?> | |||
| @@ -8,7 +8,6 @@ | |||
| <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/font/css/font-awesome.min.css"> | |||
| <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/bootstrap.min.css"> | |||
| <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/style.css"> | |||
| <script src="<?php echo $cfg_cmsurl;?>/static/web/js/jquery.min.js"></script> | |||
| </head> | |||
| <body class="body-bg"> | |||
| <?php obtaintheme('top.htm');?> | |||
| @@ -8,7 +8,6 @@ | |||
| <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/font/css/font-awesome.min.css"> | |||
| <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/bootstrap.min.css"> | |||
| <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/style.css"> | |||
| <script src="<?php echo $cfg_cmsurl;?>/static/web/js/jquery.min.js"></script> | |||
| </head> | |||
| <body class="body-bg"> | |||
| <?php obtaintheme('top.htm');?> | |||
| @@ -8,7 +8,6 @@ | |||
| <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/font/css/font-awesome.min.css"> | |||
| <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/bootstrap.min.css"> | |||
| <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/style.css"> | |||
| <script src="<?php echo $cfg_cmsurl;?>/static/web/js/jquery.min.js"></script> | |||
| </head> | |||
| <body class="body-bg"> | |||
| <?php obtaintheme('top.htm');?> | |||
| @@ -8,25 +8,6 @@ | |||
| <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/font/css/font-awesome.min.css"> | |||
| <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/bootstrap.min.css"> | |||
| <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/style.css"> | |||
| <script src="<?php echo $cfg_cmsurl;?>/static/web/js/jquery.min.js"></script> | |||
| <script src="<?php echo $cfg_cmsurl;?>/static/web/js/user.js"></script> | |||
| <script> | |||
| var startNum = 2; | |||
| function MakeUpload() { | |||
| var upfield = document.getElementById("uploadfield"); | |||
| var morelinkobj = document.getElementById("morelink"); | |||
| var endNum = parseInt(document.addcontent.picnum.value) + startNum - 1; | |||
| morelinkobj.style.display = "block"; | |||
| if (endNum > 12) endNum = 12; | |||
| for (startNum; startNum <= endNum; startNum++) { | |||
| upfield.innerHTML += "<div class='form-group'><label>软件网址" + startNum + ":</label><div class='input-group mb-3'><input type='text' name='softurl" + startNum + "' value='' class='form-control' placeholder='请选择软件上传或填写软件网址'><div class='input-group-append'><span class='btn btn-success btn-sm btn-send' onclick=\"SelectSoft('addcontent.softurl"+startNum+"')\">选择</span></div></div><label>下载名称" + startNum + ":</label><input type='text' name='servermsg" + startNum + "' value='服务器" + startNum + "' class='form-control'></div>"; | |||
| } | |||
| } | |||
| function ShowHideAddr() { | |||
| document.getElementById('morelink').style.display = (document.getElementById('morelink').style.display == 'block' ? 'none' : 'block'); | |||
| document.getElementById('btsh3').value = (document.getElementById('morelink').style.display == 'block' ? '隐藏网址' : '显示网址'); | |||
| } | |||
| </script> | |||
| </head> | |||
| <body class="body-bg"> | |||
| <?php obtaintheme('top.htm');?> | |||
| @@ -202,6 +183,24 @@ | |||
| </div> | |||
| </main> | |||
| <?php obtaintheme('foot.htm');?> | |||
| <script src="<?php echo $cfg_cmsurl;?>/static/web/js/user.js"></script> | |||
| <script> | |||
| var startNum = 2; | |||
| function MakeUpload() { | |||
| var upfield = document.getElementById("uploadfield"); | |||
| var morelinkobj = document.getElementById("morelink"); | |||
| var endNum = parseInt(document.addcontent.picnum.value) + startNum - 1; | |||
| morelinkobj.style.display = "block"; | |||
| if (endNum > 12) endNum = 12; | |||
| for (startNum; startNum <= endNum; startNum++) { | |||
| upfield.innerHTML += "<div class='form-group'><label>软件网址" + startNum + ":</label><div class='input-group mb-3'><input type='text' name='softurl" + startNum + "' value='' class='form-control' placeholder='请选择软件上传或填写软件网址'><div class='input-group-append'><span class='btn btn-success btn-sm btn-send' onclick=\"SelectSoft('addcontent.softurl"+startNum+"')\">选择</span></div></div><label>下载名称" + startNum + ":</label><input type='text' name='servermsg" + startNum + "' value='服务器" + startNum + "' class='form-control'></div>"; | |||
| } | |||
| } | |||
| function ShowHideAddr() { | |||
| document.getElementById('morelink').style.display = (document.getElementById('morelink').style.display == 'block' ? 'none' : 'block'); | |||
| document.getElementById('btsh3').value = (document.getElementById('morelink').style.display == 'block' ? '隐藏网址' : '显示网址'); | |||
| } | |||
| </script> | |||
| <?php include(DEDEMEMBER."/templets/widget_litpic.htm");?> | |||
| </body> | |||
| </html> | |||
| @@ -8,25 +8,6 @@ | |||
| <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/font/css/font-awesome.min.css"> | |||
| <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/bootstrap.min.css"> | |||
| <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/style.css"> | |||
| <script src="<?php echo $cfg_cmsurl;?>/static/web/js/jquery.min.js"></script> | |||
| <script src="<?php echo $cfg_cmsurl;?>/static/web/js/user.js"></script> | |||
| <script> | |||
| var startNum = parseInt('<?php echo $newRowStart;?>'); | |||
| function MakeUpload() { | |||
| var upfield = document.getElementById("uploadfield"); | |||
| var morelinkobj = document.getElementById("morelink"); | |||
| var endNum = parseInt(document.addcontent.picnum.value) + startNum - 1; | |||
| morelinkobj.style.display = "block"; | |||
| if (endNum > 12) endNum = 12; | |||
| for (startNum; startNum <= endNum; startNum++) { | |||
| upfield.innerHTML += "<div class='form-group'><label>软件网址" + startNum + ":</label><div class='input-group mb-3'><input type='text' name='softurl" + startNum + "' value='' class='form-control' placeholder='请选择软件上传或填写软件网址'><div class='input-group-append'><span class='btn btn-success btn-sm btn-send' onclick=\"SelectSoft('addcontent.softurl"+startNum+"')\">选择</span></div></div><label>下载名称" + startNum + ":</label><input type='text' name='servermsg" + startNum + "' value='服务器" + startNum + "' class='form-control'></div>"; | |||
| } | |||
| } | |||
| function ShowHideAddr() { | |||
| document.getElementById('morelink').style.display = (document.getElementById('morelink').style.display == 'block' ? 'none' : 'block'); | |||
| document.getElementById('btsh3').value = (document.getElementById('morelink').style.display == 'block' ? '隐藏网址' : '显示网址'); | |||
| } | |||
| </script> | |||
| </head> | |||
| <body class="body-bg"> | |||
| <?php obtaintheme('top.htm');?> | |||
| @@ -199,6 +180,24 @@ | |||
| </div> | |||
| </main> | |||
| <?php obtaintheme('foot.htm');?> | |||
| <script src="<?php echo $cfg_cmsurl;?>/static/web/js/user.js"></script> | |||
| <script> | |||
| var startNum = parseInt('<?php echo $newRowStart;?>'); | |||
| function MakeUpload() { | |||
| var upfield = document.getElementById("uploadfield"); | |||
| var morelinkobj = document.getElementById("morelink"); | |||
| var endNum = parseInt(document.addcontent.picnum.value) + startNum - 1; | |||
| morelinkobj.style.display = "block"; | |||
| if (endNum > 12) endNum = 12; | |||
| for (startNum; startNum <= endNum; startNum++) { | |||
| upfield.innerHTML += "<div class='form-group'><label>软件网址" + startNum + ":</label><div class='input-group mb-3'><input type='text' name='softurl" + startNum + "' value='' class='form-control' placeholder='请选择软件上传或填写软件网址'><div class='input-group-append'><span class='btn btn-success btn-sm btn-send' onclick=\"SelectSoft('addcontent.softurl"+startNum+"')\">选择</span></div></div><label>下载名称" + startNum + ":</label><input type='text' name='servermsg" + startNum + "' value='服务器" + startNum + "' class='form-control'></div>"; | |||
| } | |||
| } | |||
| function ShowHideAddr() { | |||
| document.getElementById('morelink').style.display = (document.getElementById('morelink').style.display == 'block' ? 'none' : 'block'); | |||
| document.getElementById('btsh3').value = (document.getElementById('morelink').style.display == 'block' ? '隐藏网址' : '显示网址'); | |||
| } | |||
| </script> | |||
| <?php include(DEDEMEMBER."/templets/widget_litpic.htm");?> | |||
| </body> | |||
| </html> | |||
| @@ -8,7 +8,6 @@ | |||
| <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/font/css/font-awesome.min.css"> | |||
| <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/bootstrap.min.css"> | |||
| <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/style.css"> | |||
| <script src="<?php echo $cfg_cmsurl;?>/static/web/js/jquery.min.js"></script> | |||
| </head> | |||
| <body class="body-bg"> | |||
| <?php obtaintheme('top.htm');?> | |||