| @@ -45,7 +45,6 @@ | |||||
| </table> | </table> | ||||
| </form> | </form> | ||||
| <script> | <script> | ||||
| //获得选中文件的文件名 | |||||
| function SelKw(kw) { | function SelKw(kw) { | ||||
| if (document.form2.keywords.value) { | if (document.form2.keywords.value) { | ||||
| document.form2.keywords.value += ","+kw; | document.form2.keywords.value += ","+kw; | ||||
| @@ -51,7 +51,6 @@ | |||||
| </table> | </table> | ||||
| </form> | </form> | ||||
| <script> | <script> | ||||
| //获得选中文件的文件名 | |||||
| function getCheckboxItem() { | function getCheckboxItem() { | ||||
| var allSel = ''; | var allSel = ''; | ||||
| if (document.form2.arcTitle.value) return document.form2.arcTitle.value; | if (document.form2.arcTitle.value) return document.form2.arcTitle.value; | ||||
| @@ -65,7 +64,6 @@ | |||||
| } | } | ||||
| return allSel; | return allSel; | ||||
| } | } | ||||
| //删除文档 | |||||
| function delArc() { | function delArc() { | ||||
| var qstr = getCheckboxItem(); | var qstr = getCheckboxItem(); | ||||
| document.form2.titles.value = qstr; | document.form2.titles.value = qstr; | ||||
| @@ -66,7 +66,6 @@ | |||||
| </table> | </table> | ||||
| </form> | </form> | ||||
| <script> | <script> | ||||
| //获得选中文件的文件名 | |||||
| function getCheckboxItem() { | function getCheckboxItem() { | ||||
| var allSel = ''; | var allSel = ''; | ||||
| if (document.form2.arcID.value) return document.form2.arcID.value; | if (document.form2.arcID.value) return document.form2.arcID.value; | ||||
| @@ -68,7 +68,6 @@ | |||||
| </table> | </table> | ||||
| </form> | </form> | ||||
| <script> | <script> | ||||
| //获得选中文件的文件名 | |||||
| function getCheckboxItem() { | function getCheckboxItem() { | ||||
| var allSel = ''; | var allSel = ''; | ||||
| if (document.form1.logs.value) return document.form1.logs.value; | if (document.form1.logs.value) return document.form1.logs.value; | ||||
| @@ -74,7 +74,6 @@ | |||||
| </table> | </table> | ||||
| </form> | </form> | ||||
| <script> | <script> | ||||
| //获得选中文件的文件名 | |||||
| function getCheckboxItem() { | function getCheckboxItem() { | ||||
| var allSel = ''; | var allSel = ''; | ||||
| if (document.form1.aids.value) return document.form1.aids.value; | if (document.form1.aids.value) return document.form1.aids.value; | ||||
| @@ -51,17 +51,6 @@ | |||||
| </table> | </table> | ||||
| </form> | </form> | ||||
| <script> | <script> | ||||
| function moveArc(aid) { | |||||
| var qstr = getCheckboxItem(); | |||||
| if (aid == 0) aid = getOneItem(); | |||||
| location = "archives_do.php?aid=" + aid + "&dopost=return&qstr=" + qstr; | |||||
| } | |||||
| function delArc(aid) { | |||||
| var qstr = getCheckboxItem(); | |||||
| if (aid == 0) aid = getOneItem(); | |||||
| location = "archives_do.php?qstr=" + qstr + "&aid=" + aid + "&dopost=del&recycle=1"; | |||||
| } | |||||
| //获得选中文件的文件名 | |||||
| function getCheckboxItem() { | function getCheckboxItem() { | ||||
| var allSel = ''; | var allSel = ''; | ||||
| if (document.form2.arcID.value) return document.form2.arcID.value; | if (document.form2.arcID.value) return document.form2.arcID.value; | ||||
| @@ -75,7 +64,6 @@ | |||||
| } | } | ||||
| return allSel; | return allSel; | ||||
| } | } | ||||
| //获得选中其中一个的id | |||||
| function getOneItem() { | function getOneItem() { | ||||
| var allSel = ''; | var allSel = ''; | ||||
| if (document.form2.arcID.value) return document.form2.arcID.value; | if (document.form2.arcID.value) return document.form2.arcID.value; | ||||
| @@ -107,6 +95,16 @@ | |||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| function moveArc(aid) { | |||||
| var qstr = getCheckboxItem(); | |||||
| if (aid == 0) aid = getOneItem(); | |||||
| location = "archives_do.php?aid=" + aid + "&dopost=return&qstr=" + qstr; | |||||
| } | |||||
| function delArc(aid) { | |||||
| var qstr = getCheckboxItem(); | |||||
| if (aid == 0) aid = getOneItem(); | |||||
| location = "archives_do.php?qstr=" + qstr + "&aid=" + aid + "&dopost=del&recycle=1"; | |||||
| } | |||||
| </script> | </script> | ||||
| </body> | </body> | ||||
| </html> | </html> | ||||
| @@ -1,3 +1,47 @@ | |||||
| function getCheckboxItem() { | |||||
| var allSel = ''; | |||||
| if (document.form2.arcID.value) return document.form2.arcID.value; | |||||
| for (i = 0; i < document.form2.arcID.length; i++) { | |||||
| if (document.form2.arcID[i].checked) { | |||||
| if (allSel == '') | |||||
| allSel = document.form2.arcID[i].value; | |||||
| else | |||||
| allSel = allSel + "`" + document.form2.arcID[i].value; | |||||
| } | |||||
| } | |||||
| return allSel; | |||||
| } | |||||
| function getOneItem() { | |||||
| var allSel = ''; | |||||
| if (document.form2.arcID.value) return document.form2.arcID.value; | |||||
| for (i = 0; i < document.form2.arcID.length; i++) { | |||||
| if (document.form2.arcID[i].checked) { | |||||
| allSel = document.form2.arcID[i].value; | |||||
| break; | |||||
| } | |||||
| } | |||||
| return allSel; | |||||
| } | |||||
| function selAll() { | |||||
| if (typeof document.form2.arcID.length === "undefined") { | |||||
| document.form2.arcID.checked = true; | |||||
| } | |||||
| for (i = 0; i < document.form2.arcID.length; i++) { | |||||
| if (!document.form2.arcID[i].checked) { | |||||
| document.form2.arcID[i].checked = true; | |||||
| } | |||||
| } | |||||
| } | |||||
| function noSelAll() { | |||||
| if (typeof document.form2.arcID.length === "undefined") { | |||||
| document.form2.arcID.checked = false; | |||||
| } | |||||
| for (i = 0; i < document.form2.arcID.length; i++) { | |||||
| if (document.form2.arcID[i].checked) { | |||||
| document.form2.arcID[i].checked = false; | |||||
| } | |||||
| } | |||||
| } | |||||
| function viewArc(aid) { | function viewArc(aid) { | ||||
| if (aid == 0) aid = getOneItem(); | if (aid == 0) aid = getOneItem(); | ||||
| window.open("archives_do.php?aid=" + aid + "&dopost=viewArchives"); | window.open("archives_do.php?aid=" + aid + "&dopost=viewArchives"); | ||||
| @@ -57,48 +101,4 @@ function delArc(aid) { | |||||
| function QuickEdit(aid, e, obj) { | 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'); | ChangeFullDiv('show'); | ||||
| } | |||||
| function getCheckboxItem() { | |||||
| var allSel = ''; | |||||
| if (document.form2.arcID.value) return document.form2.arcID.value; | |||||
| for (i = 0;i<document.form2.arcID.length;i++) { | |||||
| if (document.form2.arcID[i].checked) { | |||||
| if (allSel == '') | |||||
| allSel = document.form2.arcID[i].value; | |||||
| else | |||||
| allSel = allSel + "`" + document.form2.arcID[i].value; | |||||
| } | |||||
| } | |||||
| return allSel; | |||||
| } | |||||
| function getOneItem() { | |||||
| var allSel = ''; | |||||
| if (document.form2.arcID.value) return document.form2.arcID.value; | |||||
| for (i = 0;i<document.form2.arcID.length;i++) { | |||||
| if (document.form2.arcID[i].checked) { | |||||
| allSel = document.form2.arcID[i].value; | |||||
| break; | |||||
| } | |||||
| } | |||||
| return allSel; | |||||
| } | |||||
| function selAll() { | |||||
| if (typeof document.form2.arcID.length === "undefined") { | |||||
| document.form2.arcID.checked = true; | |||||
| } | |||||
| for (i = 0;i<document.form2.arcID.length;i++) { | |||||
| if (!document.form2.arcID[i].checked) { | |||||
| document.form2.arcID[i].checked = true; | |||||
| } | |||||
| } | |||||
| } | |||||
| function noSelAll() { | |||||
| if (typeof document.form2.arcID.length === "undefined") { | |||||
| document.form2.arcID.checked = false; | |||||
| } | |||||
| for (i = 0;i<document.form2.arcID.length;i++) { | |||||
| if (document.form2.arcID[i].checked) { | |||||
| document.form2.arcID[i].checked = false; | |||||
| } | |||||
| } | |||||
| } | } | ||||