Browse Source

调整

tags/6.2.0
叙述、别离 1 year ago
parent
commit
5c1603a7dd
2 changed files with 35 additions and 35 deletions
  1. +34
    -34
      src/admin/templets/media_main.htm
  2. +1
    -1
      src/system/common.func.php

+ 34
- 34
src/admin/templets/media_main.htm View File

@@ -8,40 +8,40 @@
<link rel="stylesheet" href="../static/web/css/bootstrap.min.css">
<link rel="stylesheet" href="../static/web/css/admin.css">
<style>.napisdiv{position:absolute;left:10;top:0;width:150px;height:100px;z-index:3}</style>
<script>
//获得选中文件的文件名
function getCheckboxItem() {
var allSel = "";
if (document.form1.aids.value) return document.form1.aids.value;
for (i = 0; i < document.form1.aids.length; i++) {
if (document.form1.aids[i].checked) {
if (allSel == "")
allSel = document.form1.aids[i].value;
else
allSel = allSel + "," + document.form1.aids[i].value;
}
}
return allSel;
}
function AllSel() {
for (i = 0; i < document.form1.aids.length; i++) {
.form1.aids[i].checked = true;
}
}
function NoneSel() {
for (i = 0; i < document.form1.aids.length; i++) {
document.form1.aids[i].checked = false;
}
}
function DelSel() {
var nid = getCheckboxItem();
if (nid == "") {
alert("请选择项目");
return;
}
location.href = "media_edit.php?dopost=del&ids=" + nid;
}
</script>
<script>
//获得选中文件的文件名
function getCheckboxItem() {
var allSel = "";
if (document.form1.aids.value) return document.form1.aids.value;
for (i = 0; i < document.form1.aids.length; i++) {
if (document.form1.aids[i].checked) {
if (allSel == "")
allSel = document.form1.aids[i].value;
else
allSel = allSel + "," + document.form1.aids[i].value;
}
}
return allSel;
}
function AllSel() {
for (i = 0; i < document.form1.aids.length; i++) {
document.form1.aids[i].checked = true;
}
}
function NoneSel() {
for (i = 0; i < document.form1.aids.length; i++) {
document.form1.aids[i].checked = false;
}
}
function DelSel() {
var nid = getCheckboxItem();
if (nid == "") {
alert("请选择项目");
return;
}
location.href = "media_edit.php?dopost=del&ids=" + nid;
}
</script>
</head>
<body>
<table width="98%" cellpadding="3" cellspacing="1" align="center" class="table maintable my-3">


+ 1
- 1
src/system/common.func.php View File

@@ -345,7 +345,7 @@ function ShowMsg($msg, $gourl, $onlymsg = 0, $limittime = 0)
}
$func .= "var pgo=0;function JumpUrl(){if (pgo==0){location='$gourl'; pgo=1;}}";
$rmsg = $func;
$rmsg .= "document.write(\"<style>body{margin:0;line-height:1.5;font:14px Helvetica Neue,Helvetica,PingFang SC,Tahoma,Arial,sans-serif;color:#545b62;background:#f8f8f8}a{color:#1eb867;text-decoration:none}.tips{margin:70px auto 0;padding:0;width:500px;height:auto;background:#fff;border-radius:.2rem;box-shadow:0 .125rem .25rem rgba(0,0,0,.075)}.tips-head{margin:0 20px;padding:16px 0;border-bottom:1px solid #f8f8f8}.tips-head p{margin:0;padding-left:10px;line-height:16px;text-align:left;border-left:3px solid #dc3545}.tips-box{padding:20px;min-height:130px;color:#545b62}.btn a{display:inline-block;margin:20px auto 0;padding:.375rem .75rem;font-size:12px;color:#fff;background:#1eb867;border-radius:.2rem;text-align:center;transition:all .6s}.btn a:focus{background:#006829;border-color:#005b24;box-shadow:0 0 0 0.2rem rgba(38,159,86,.5)}@media (max-width:768px){body{padding:0 15px}.tips{width:100%}}</style>\");";
$rmsg .= "document.write(\"<style>body{margin:0;line-height:1.5;font:14px Helvetica Neue,Helvetica,PingFang SC,Tahoma,Arial,sans-serif;color:#545b62;background:#f5f5f5}a{color:#1eb867;text-decoration:none}.tips{margin:70px auto 0;padding:0;width:500px;height:auto;background:#fff;border-radius:.2rem;box-shadow:0 .125rem .25rem rgba(0,0,0,.075)}.tips-head{margin:0 20px;padding:16px 0;border-bottom:1px solid #f5f5f5}.tips-head p{margin:0;padding-left:10px;line-height:16px;text-align:left;border-left:3px solid #dc3545}.tips-box{padding:20px;min-height:130px;color:#545b62}.btn a{display:inline-block;margin:20px auto 0;padding:.375rem .75rem;font-size:12px;color:#fff;background:#1eb867;border-radius:.2rem;text-align:center;transition:all .6s}.btn a:focus{background:#006829;border-color:#005b24;box-shadow:0 0 0 0.2rem rgba(38,159,86,.5)}@media (max-width:768px){body{padding:0 15px}.tips{width:100%}}</style>\");";
$rmsg .= "document.write(\"<div class='tips'>";
$rmsg .= "<div class='tips-head'><p>提示信息</p></div>\");";
$rmsg .= "document.write(\"<div class='tips-box'>\");";


Loading…
Cancel
Save