From 6d99064b32e9af95be13b48d81d51afb6f24bd22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=99=E8=BF=B0=E3=80=81=E5=88=AB=E7=A6=BB?= <93301500+xushubieli@users.noreply.github.com> Date: Wed, 7 Jun 2023 14:29:52 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BD=AF=E4=BB=B6=E6=A8=A1=E5=9E=8B=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/admin/article_allowurl_edit.php | 2 +- src/admin/article_source_edit.php | 2 +- src/admin/article_string_mix.php | 2 +- src/admin/article_writer_edit.php | 2 +- src/admin/file_manage_control.php | 2 +- src/admin/soft_config.php | 4 +- src/admin/soft_edit.php | 4 +- src/admin/templets/catalog_add.htm | 16 ++++---- src/admin/templets/catalog_edit.htm | 16 ++++---- src/admin/templets/soft_add.htm | 62 ++++++++++++++++------------- src/admin/templets/soft_config.htm | 44 ++++++++++---------- src/admin/templets/soft_edit.htm | 10 ++--- src/static/web/css/admin.css | 7 ++-- 13 files changed, 91 insertions(+), 82 deletions(-) diff --git a/src/admin/article_allowurl_edit.php b/src/admin/article_allowurl_edit.php index 657fdaab..1f29c8f9 100644 --- a/src/admin/article_allowurl_edit.php +++ b/src/admin/article_allowurl_edit.php @@ -21,7 +21,7 @@ if ($dopost == 'save') { flock($fp, 3); fwrite($fp, $allurls); fclose($fp); - echo ""; + echo ""; } //读出 if (empty($allurls) && filesize($m_file) > 0) { diff --git a/src/admin/article_source_edit.php b/src/admin/article_source_edit.php index 14b2fb40..ed42bc1d 100644 --- a/src/admin/article_source_edit.php +++ b/src/admin/article_source_edit.php @@ -21,7 +21,7 @@ if ($dopost == 'save') { flock($fp, 3); fwrite($fp, $allsource); fclose($fp); - echo ""; + echo ""; } //读出 if (empty($allsource) && filesize($m_file) > 0) { diff --git a/src/admin/article_string_mix.php b/src/admin/article_string_mix.php index a7abcfba..518a65b6 100644 --- a/src/admin/article_string_mix.php +++ b/src/admin/article_string_mix.php @@ -22,7 +22,7 @@ if ($dopost == "save") { flock($fp, 3); fwrite($fp, $allsource); fclose($fp); - echo ""; + echo ""; } //读出 if (empty($allsource) && filesize($m_file) > 0) { diff --git a/src/admin/article_writer_edit.php b/src/admin/article_writer_edit.php index fbc2e3e0..e5e61975 100644 --- a/src/admin/article_writer_edit.php +++ b/src/admin/article_writer_edit.php @@ -21,7 +21,7 @@ if ($dopost == "save") { flock($fp, 3); fwrite($fp, $allwriter); fclose($fp); - echo ""; + echo ""; } //读出 if (empty($allwriter) && filesize($m_file) > 0) { diff --git a/src/admin/file_manage_control.php b/src/admin/file_manage_control.php index e6b94389..4aae9ce3 100644 --- a/src/admin/file_manage_control.php +++ b/src/admin/file_manage_control.php @@ -54,7 +54,7 @@ else if ($fmdo == "edit") { if (empty($backurl)) { ShowMsg("成功保存一个文件", "file_manage_main.php?activepath=$activepath"); } else { - ShowMsg("成功保存文件", $backurl); + ShowMsg("成功保存一个文件", $backurl); } exit(); } diff --git a/src/admin/soft_config.php b/src/admin/soft_config.php index 62f22e25..a2e25c19 100644 --- a/src/admin/soft_config.php +++ b/src/admin/soft_config.php @@ -1,6 +1,6 @@ 0 || $dfywboy > 0) $gotojump = 1; $query = "UPDATE `#@__softconfig` SET `downtype`='$downtype',`gotojump`='$gotojump',`ismoresite`='$ismoresite',`islocal`='$islocal',`sites`='$sites',`moresitedo`='$moresitedo',`dfrank`='$dfrank',`dfywboy`='$dfywboy',`argrange`='$argrange',downmsg='$downmsg' "; $dsql->ExecuteNoneQuery($query); - ShowMsg('成功保存参数', 'soft_config.php'); + ShowMsg('成功保存软件下载设置', 'soft_config.php'); exit(); } //读取参数 diff --git a/src/admin/soft_edit.php b/src/admin/soft_edit.php index b7dacf0f..c1b204b5 100644 --- a/src/admin/soft_edit.php +++ b/src/admin/soft_edit.php @@ -48,7 +48,7 @@ if ($dopost != 'save') { if ($ctag->GetName() == 'link') { $islocal = $ctag->GetAtt('islocal'); if ($islocal != 1) $needmsg = ""; - else $needmsg = ''; + else $needmsg = ''; $nForm .= "
$needmsg
\r\n"; $newRowStart++; } @@ -171,7 +171,7 @@ if ($dopost != 'save') { if ($servermsg == '') { $servermsg = '下载地址'.$i; } - if ($softurl != 'http://') { + if ($softurl != '') { if ($islocal == 1) $urls .= "{dede:link islocal='$islocal' text='{$servermsg}'} $softurl {/dede:link}\r\n"; else if ($isneed) $urls .= "{dede:link text='$servermsg'} $softurl {/dede:link}\r\n"; else continue; diff --git a/src/admin/templets/catalog_add.htm b/src/admin/templets/catalog_add.htm index d70a4579..4883e2ab 100644 --- a/src/admin/templets/catalog_add.htm +++ b/src/admin/templets/catalog_add.htm @@ -295,6 +295,14 @@ else if (window.navigator.userAgent.indexOf("Firefox") >= 1) return 'FF'; else return "OT"; } + function checkSubmit() { + if (document.form1.typename.value == "") { + alert("栏目名称不能为空"); + document.form1.typename.focus(); + return false; + } + return true; + } function SelectTemplets(fname) { var pos = GetWinPos(800,600); window.open("./dialog/select_templets.php?f=" + fname, "poptempWin", "scrollbars=yes,resizable=yes,statebar=no,width=800,height=600,left=" + pos.left + ", top=" + pos.top); @@ -341,14 +349,6 @@ tobj.style.display = "none"; } } - function checkSubmit() { - if (document.form1.typename.value == "") { - alert("栏目名称不能为空"); - document.form1.typename.focus(); - return false; - } - return true; - } function CheckPathSet() { var surl = document.getElementById("siteurl"); var sreid = document.getElementById("reid"); diff --git a/src/admin/templets/catalog_edit.htm b/src/admin/templets/catalog_edit.htm index a0bad0bc..e233925a 100644 --- a/src/admin/templets/catalog_edit.htm +++ b/src/admin/templets/catalog_edit.htm @@ -326,6 +326,14 @@ else if (window.navigator.userAgent.indexOf("Firefox") >= 1) return 'FF'; else return "OT"; } + function checkSubmit() { + if (document.form1.typename.value == "") { + alert("栏目名称不能为空"); + document.form1.typename.focus(); + return false; + } + return true; + } function SelectTemplets(fname) { var pos = GetWinPos(800,600); window.open("./dialog/select_templets.php?f=" + fname, "poptempWin", "scrollbars=yes,resizable=yes,statebar=no,width=800,height=600,left=" + pos.left + ", top=" + pos.top); @@ -372,14 +380,6 @@ tobj.style.display = "none"; } } - function checkSubmit() { - if (document.form1.typename.value == "") { - alert("栏目名称不能为空"); - document.form1.typename.focus(); - return false; - } - return true; - } function CheckCross() { var cross2 = document.getElementById('cross2'); var crossid = document.getElementById('crossid'); diff --git a/src/admin/templets/soft_add.htm b/src/admin/templets/soft_add.htm index 9f87ab8a..5195be62 100644 --- a/src/admin/templets/soft_add.htm +++ b/src/admin/templets/soft_add.htm @@ -24,7 +24,7 @@ var endNum = parseInt(document.form1.picnum.value) + startNum - 1; if (endNum > 30) endNum = 30; for (startNum; startNum <= endNum; startNum++) { - upfield.innerHTML += "
"; + upfield.innerHTML += "
"; } } function ShowHideAddr() { @@ -274,9 +274,9 @@ - + - +
官方网址: 演示地址:
@@ -286,14 +286,14 @@ - + + + - - -
软件大小: + - + 需会员权限: @@ -320,10 +320,11 @@ - - + @@ -331,9 +332,31 @@
本地地址: + 本地上传: + 地址名称:
+ + + + + +
链接上传: + + + +
+ +
+ + + + +
镜像上传:
- - - - + + + +
- - - - - -
其它地址: - - - -
- -
diff --git a/src/admin/templets/soft_config.htm b/src/admin/templets/soft_config.htm index 620fbc05..6f18c6e9 100644 --- a/src/admin/templets/soft_config.htm +++ b/src/admin/templets/soft_config.htm @@ -18,23 +18,18 @@ - - - - + @@ -54,8 +49,8 @@ @@ -84,16 +79,16 @@ @@ -116,9 +111,18 @@ diff --git a/src/admin/templets/soft_edit.htm b/src/admin/templets/soft_edit.htm index 95ab6d0c..bf224520 100644 --- a/src/admin/templets/soft_edit.htm +++ b/src/admin/templets/soft_edit.htm @@ -24,7 +24,7 @@ var endNum = parseInt(document.form1.picnum.value) + startNum; if (endNum > 30) endNum = 30; for (startNum; startNum < endNum; startNum++) { - upfield.innerHTML += "
"; + upfield.innerHTML += "
"; } } function ShowHideAddr() { @@ -280,7 +280,7 @@
软件下载设置
-
软件模型的附件下载方式都必须链接到中转页,否则无效
-
链接显示方式: - - + +
附件下载方式:软件下载方式: - - + +
镜像处理方式: - - + +
参数限制方式: - - + +
镜像服务器列表: - - - + + +
- + @@ -292,7 +292,7 @@
官方网址: 程序演示:
- +
软件大小: 需会员权限: - + diff --git a/src/static/web/css/admin.css b/src/static/web/css/admin.css index e2421ea4..f3c57e78 100644 --- a/src/static/web/css/admin.css +++ b/src/static/web/css/admin.css @@ -260,7 +260,6 @@ body.hidemenu .body-right { right:5px; height:20px; line-height:20px; - font-size:12px; color:#545b62; background:0; border:0 @@ -375,7 +374,7 @@ body.hidemenu .body-right { padding:.5rem; width:120px; background:#fff; - border:2px solid #dee2e6; + border:1px solid #dee2e6; z-index:10005 } .wsselect { @@ -385,7 +384,7 @@ body.hidemenu .body-right { } .pubdlg { background:#fff; - border:2px solid #dee2e6; + border:1px solid #dee2e6; z-index:8888 } .pubdlg .title { @@ -440,7 +439,7 @@ body.hidemenu .body-right { .mysource,.mywriter { width:300px; background:#fff; - border:2px solid #dee2e6; + border:1px solid #dee2e6; z-index:10001 } #uploadfield {
其它地址:链接上传: - +