Browse Source

调整

pull/43/head
叙述、别离 3 months ago
parent
commit
dfb9ebb4e0
7 changed files with 54 additions and 62 deletions
  1. +0
    -1
      src/admin/templets/article_keywords_select.htm
  2. +0
    -2
      src/admin/templets/article_result_same.htm
  3. +0
    -1
      src/admin/templets/content_select_list.htm
  4. +0
    -1
      src/admin/templets/log_list.htm
  5. +0
    -1
      src/admin/templets/media_main.htm
  6. +10
    -12
      src/admin/templets/recycling.htm
  7. +44
    -44
      src/static/web/js/admin.list.js

+ 0
- 1
src/admin/templets/article_keywords_select.htm View File

@@ -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;


+ 0
- 2
src/admin/templets/article_result_same.htm View File

@@ -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;


+ 0
- 1
src/admin/templets/content_select_list.htm View File

@@ -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;


+ 0
- 1
src/admin/templets/log_list.htm View File

@@ -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;


+ 0
- 1
src/admin/templets/media_main.htm View File

@@ -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;


+ 10
- 12
src/admin/templets/recycling.htm View File

@@ -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>

+ 44
- 44
src/static/web/js/admin.list.js View File

@@ -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;
}
}
} }

Loading…
Cancel
Save