Browse Source

软件模型调整

tags/6.2.10
叙述、别离 11 months ago
parent
commit
6d99064b32
13 changed files with 91 additions and 82 deletions
  1. +1
    -1
      src/admin/article_allowurl_edit.php
  2. +1
    -1
      src/admin/article_source_edit.php
  3. +1
    -1
      src/admin/article_string_mix.php
  4. +1
    -1
      src/admin/article_writer_edit.php
  5. +1
    -1
      src/admin/file_manage_control.php
  6. +2
    -2
      src/admin/soft_config.php
  7. +2
    -2
      src/admin/soft_edit.php
  8. +8
    -8
      src/admin/templets/catalog_add.htm
  9. +8
    -8
      src/admin/templets/catalog_edit.htm
  10. +34
    -28
      src/admin/templets/soft_add.htm
  11. +24
    -20
      src/admin/templets/soft_config.htm
  12. +5
    -5
      src/admin/templets/soft_edit.htm
  13. +3
    -4
      src/static/web/css/admin.css

+ 1
- 1
src/admin/article_allowurl_edit.php View File

@@ -21,7 +21,7 @@ if ($dopost == 'save') {
flock($fp, 3);
fwrite($fp, $allurls);
fclose($fp);
echo "<script>alert('已保存');</script>";
echo "<script>alert('成功保存站内链接');</script>";
}
//读出
if (empty($allurls) && filesize($m_file) > 0) {


+ 1
- 1
src/admin/article_source_edit.php View File

@@ -21,7 +21,7 @@ if ($dopost == 'save') {
flock($fp, 3);
fwrite($fp, $allsource);
fclose($fp);
echo "<script>alert('已保存');</script>";
echo "<script>alert('成功保存文档来源');</script>";
}
//读出
if (empty($allsource) && filesize($m_file) > 0) {


+ 1
- 1
src/admin/article_string_mix.php View File

@@ -22,7 +22,7 @@ if ($dopost == "save") {
flock($fp, 3);
fwrite($fp, $allsource);
fclose($fp);
echo "<script>alert('已保存');</script>";
echo "<script>alert('成功保存字符串混淆');</script>";
}
//读出
if (empty($allsource) && filesize($m_file) > 0) {


+ 1
- 1
src/admin/article_writer_edit.php View File

@@ -21,7 +21,7 @@ if ($dopost == "save") {
flock($fp, 3);
fwrite($fp, $allwriter);
fclose($fp);
echo "<script>alert('已保存');</script>";
echo "<script>alert('成功保存文档作者');</script>";
}
//读出
if (empty($allwriter) && filesize($m_file) > 0) {


+ 1
- 1
src/admin/file_manage_control.php View File

@@ -54,7 +54,7 @@ else if ($fmdo == "edit") {
if (empty($backurl)) {
ShowMsg("成功保存一个文件", "file_manage_main.php?activepath=$activepath");
} else {
ShowMsg("成功保存文件", $backurl);
ShowMsg("成功保存一个文件", $backurl);
}
exit();
}


+ 2
- 2
src/admin/soft_config.php View File

@@ -1,6 +1,6 @@
<?php
/**
* 系统设置
* 软件下载设置
*
* @version $id:soft_config.php 16:09 2010年7月20日 tianya $
* @package DedeBIZ.Administrator
@@ -16,7 +16,7 @@ if ($dopost == "save") {
if ($dfrank > 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();
}
//读取参数


+ 2
- 2
src/admin/soft_edit.php View File

@@ -48,7 +48,7 @@ if ($dopost != 'save') {
if ($ctag->GetName() == 'link') {
$islocal = $ctag->GetAtt('islocal');
if ($islocal != 1) $needmsg = "<label class='ml-2'><input type='checkbox' name='del{$newRowStart}' value='1'> 删除</label>";
else $needmsg = '<button type="button" name="sel1" id="sel1" class="btn btn-success btn-sm ml-2" onclick="SelectSoft(\'form1.softurl'.$newRowStart.'\')">选取</button>';
else $needmsg = '<button type="button" name="sel1" id="sel1" class="btn btn-success btn-sm ml-2" onclick="SelectSoft(\'form1.softurl'.$newRowStart.'\')">选取</button><label class="ml-2"><input type="checkbox" name="" id="" checked="checked"> 上传压缩包自动解压</label>';
$nForm .= "<div class='py-2'><label>软件地址{$newRowStart}:<input type='text' name='softurl{$newRowStart}' value='".trim($ctag->GetInnerText())."' class='admin-input-lg'></label><label class='ml-2'>地址名称:<input type='text' name='servermsg{$newRowStart}' value='".$ctag->GetAtt("text")."' class='admin-input-sm'></label><input type='hidden' name='islocal{$newRowStart}' value='{$islocal}'>$needmsg</div>\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;


+ 8
- 8
src/admin/templets/catalog_add.htm View File

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


+ 8
- 8
src/admin/templets/catalog_edit.htm View File

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


+ 34
- 28
src/admin/templets/soft_add.htm View File

@@ -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 += "<div class='py-2'><label>软件地址" + startNum + ":<input type='text' name='softurl" + startNum + "' value='http://' class='admin-input-lg'></label><label class='ml-2'>地址名称:<input type='text' name='servermsg" + startNum + "' class='admin-input-sm'></label></div>";
upfield.innerHTML += "<div class='py-2'><label>软件地址" + startNum + ":<input type='text' name='softurl" + startNum + "' value='' class='admin-input-lg'></label><label class='ml-2'>地址名称:<input type='text' name='servermsg" + startNum + "' class='admin-input-sm'></label></div>";
}
}
function ShowHideAddr() {
@@ -274,9 +274,9 @@
<table>
<tr>
<td width="120">官方网址:</td>
<td width="370"><input type="text" name="officialUrl" id="officialUrl" value="http://" class="admin-input-lg"></td>
<td width="420"><input type="text" name="officialUrl" id="officialUrl" value="" class="admin-input-lg"></td>
<td width="120">演示地址:</td>
<td><input type="text" name="officialDemo" id="officialDemo" value="http://" class="admin-input-lg"></td>
<td><input type="text" name="officialDemo" id="officialDemo" value="" class="admin-input-lg"></td>
</tr>
</table>
</td>
@@ -286,14 +286,14 @@
<table>
<tr>
<td width="120">软件大小:</td>
<td width="310">
<td width="370">
<input type="text" name="softsize" id="softsize" class="admin-input-sm">
<select name="unit" id="unit">
<option value="MB" selected>MB</option>
<option value="KB">KB</option>
<option value="GB">GB</option>
</select>
<label><input type="checkbox" name="autosize" id="autosize" value="1" checked="checked">自动获取</label>
<label><input type="checkbox" name="autosize" id="autosize" value="1" checked="checked"> 自动获取</label>
</td>
<td width="120">需会员权限:</td>
<td align="left">
@@ -320,10 +320,11 @@
<td class="admin-td">
<table>
<tr>
<td width="120">本地地址:</td>
<td width="410">
<td width="120">本地上传:</td>
<td width="620">
<input type="text" name="softurl1" id="softurl1" class="admin-input-lg">
<button type="button" name="sel1" id="sel1" class="btn btn-success btn-sm" onclick="SelectSoft('form1.softurl1')">选取</button>
<label><input type="checkbox" name="" id="" checked="checked"> 上传压缩包自动解压</label>
</td>
<td width="120">地址名称:</td>
<td><input type="text" name="servermsg1" id="servermsg1" value="本地下载" class="admin-input-sm"></td>
@@ -331,9 +332,31 @@
</table>
</td>
</tr>
<tr>
<td class="admin-td">
<table>
<tr>
<td width="120">链接上传:</td>
<td>
<input type="text" name="picnum" id="picnum" value="5" class="admin-input-sm">
<button type="button" name="kkkup" id="kkkup2" class="btn btn-success btn-sm" onclick="MakeUpload();">添加地址</button>
<button type="button" name="Submit3" id="btsh3" class="btn btn-success btn-sm" onclick="ShowHideAddr();">隐藏地址</button>
</td>
</tr>
</table>
<div id="morelink" style="display:block">
<div id="uploadfield"></div>
</div>
</td>
</tr>
<?php if ($softconfig['moresitedo'] == 0 && trim($softconfig['sites']) != '') {?>
<tr>
<td class="admin-td">
<table>
<tr>
<td width="120">镜像上传:</td>
</tr>
</table>
<?php
$sites = explode("\n", $softconfig['sites']);
$startNum = 2;
@@ -347,10 +370,10 @@
?>
<div class="py-2">
<input type="hidden" name="forconfig<?php echo $startNum;?>" value="1">
<label>填写域名:<input type="text" name="softurlfirst<?php echo $startNum;?>" class="admin-input-lg" value="<?php echo $siteurl;?>"></label>
<label>填写目录:<input type="text" name="softurl<?php echo $startNum;?>" class="admin-input-sm"></label>
<label>地址名称:<input type="text" name="servermsg<?php echo $startNum;?>" class="admin-input-sm" value="<?php echo $sitename;?>"></label>
<label><input type="checkbox" name="need<?php echo $startNum;?>" value="1" checked="checked"> 启用</label>
<label>镜像域名:<input type="text" name="softurlfirst<?php echo $startNum;?>" class="admin-input-lg" value="<?php echo $siteurl;?>"></label>
<label>镜像目录:<input type="text" name="softurl<?php echo $startNum;?>" class="admin-input-sm"></label>
<label>镜像名称:<input type="text" name="servermsg<?php echo $startNum;?>" class="admin-input-sm" value="<?php echo $sitename;?>"></label>
<label><input type="checkbox" name="need<?php echo $startNum;?>" value="1"> 启用</label>
</div>
<?php
$startNum++;
@@ -360,23 +383,6 @@
</td>
</tr>
<?php }?>
<tr>
<td class="admin-td">
<table>
<tr>
<td width="120">其它地址:</td>
<td>
<input type="text" name="picnum" id="picnum" value="5" class="admin-input-sm">
<button type="button" name="kkkup" class="btn btn-success btn-sm" id="kkkup2" onclick="MakeUpload();">添加地址</button>
<button type="button" class="btn btn-success btn-sm" name="Submit3" id="btsh3" onclick="ShowHideAddr();">隐藏地址</button>
</td>
</tr>
</table>
<div id="morelink" style="display:block">
<div id="uploadfield"></div>
</div>
</td>
</tr>
<tr>
<td class="admin-td">
<table>


+ 24
- 20
src/admin/templets/soft_config.htm View File

@@ -18,23 +18,18 @@
<tr>
<td bgcolor="#f5f5f5" colspan="2">软件下载设置</td>
</tr>
<tr>
<td colspan="2">
<div class="alert alert-info mb-0">软件模型的附件下载方式都必须链接到中转页,否则无效</div>
</td>
</tr>
<tr>
<td width="260">链接显示方式:</td>
<td>
<label><input type="radio" name="downtype" value="0" <?php if ($row['downtype']==0) echo " checked='checked' ";?>> 直接显示地址列表</label>
<label><input type="radio" name="downtype" value="1" <?php if ($row['downtype']==1) echo " checked='checked' ";?>> 要求进入下载地址列表页</label>
<label><input type="radio" name="gotojump" value="0" <?php if ($row['gotojump']==0) echo " checked='checked' ";?>> 真实软件链接地址</label>
<label><input type="radio" name="gotojump" value="1" <?php if ($row['gotojump']==1) echo " checked='checked' ";?>> 字符软件链接地址</label>
</td>
</tr>
<tr>
<td>件下载方式:</td>
<td>件下载方式:</td>
<td>
<label><input type="radio" name="gotojump" value="0" <?php if ($row['gotojump']==0) echo " checked='checked' ";?>> 链接到真实软件地址</label>
<label><input type="radio" name="gotojump" value="1" <?php if ($row['gotojump']==1) echo " checked='checked' ";?>> 链接到跳转页面</label>
<label><input type="radio" name="downtype" value="0" <?php if ($row['downtype']==0) echo " checked='checked' ";?>> 当前软件发布页</label>
<label><input type="radio" name="downtype" value="1" <?php if ($row['downtype']==1) echo " checked='checked' ";?>> 链接到地址列表页</label>
</td>
</tr>
<tr>
@@ -54,8 +49,8 @@
<tr>
<td>镜像处理方式:</td>
<td>
<label><input type="radio" name="moresitedo" value="1" <?php if ($row['moresitedo']==1) echo " checked='checked' ";?>> 根据本地地址和服务器列表自动生成</label>
<label><input type="radio" name="moresitedo" value="0" <?php if ($row['moresitedo']==0) echo " checked='checked' ";?>> 发布时按服务器生成列表由我手工填写</label>
<label><input type="radio" name="moresitedo" value="1" <?php if ($row['moresitedo']==1) echo " checked='checked' ";?>> 本地地址和服务器列表自动生成</label>
<label><input type="radio" name="moresitedo" value="0" <?php if ($row['moresitedo']==0) echo " checked='checked' ";?>> 按服务器生成列表由我手工填写</label>
</td>
</tr>
<tr>
@@ -84,16 +79,16 @@
<tr>
<td>参数限制方式:</td>
<td>
<label><input type="radio" name="argrange" value="0" <?php if ($row['argrange']==0) echo " checked='checked' ";?>> 允许发布时重新选择权限</label>
<label><input type="radio" name="argrange" value="2" <?php if ($row['argrange']==1) echo " checked='checked' ";?>> 所有软件均使用此权限</label>
<label><input type="radio" name="argrange" value="0" <?php if ($row['argrange']==0) echo " checked='checked' ";?>> 所有软件重新选择权限</label>
<label><input type="radio" name="argrange" value="1" <?php if ($row['argrange']==1) echo " checked='checked' ";?>> 所有软件均使用此权限</label>
</td>
</tr>
<tr>
<td>镜像服务器列表:</td>
<td>
<label>服务器网址:<input type="text" name="serverurl" id="serverurl" value="http://"></label>
<label>服务器名称:<input type="text" name="servername" id="servername"></label>
<label>服务器类型:<input type="text" name="servertype" id="servertype" value="默认"></label>
<label>镜像域名:<input type="text" name="serverurl" id="serverurl" value=""></label>
<label>镜像目录:<input type="text" name="servername" id="servername"></label>
<label>镜像名称:<input type="text" name="servertype" id="servertype" value="默认下载地址"></label>
<button type="button" name="Submit" onclick="AddServer()" class="btn btn-success btn-sm">添加一项</button>
</td>
</tr>
@@ -116,9 +111,18 @@
</form>
<script>
function AddServer() {
if (document.form1.serverurl.value == "" || document.form1.serverurl.value == "http://") { ShowMsg('服务器网址不能为空'); return; }
if (document.form1.servername.value == "") { ShowMsg('服务器名称不能为空'); return; }
if (document.form1.servertype.value == "") { ShowMsg('服务器类型不能为空'); return; }
if (document.form1.serverurl.value == "" || document.form1.serverurl.value == "") {
ShowMsg('镜像域名不能为空');
return;
}
if (document.form1.servername.value == "") {
ShowMsg('镜像目录不能为空');
return;
}
if (document.form1.servertype.value == "") {
ShowMsg('镜像名称不能为空');
return;
}
document.form1.sites.value += document.form1.serverurl.value + " | " + document.form1.servername.value + " | " + document.form1.servertype.value + "";
}
</script>


+ 5
- 5
src/admin/templets/soft_edit.htm View File

@@ -24,7 +24,7 @@
var endNum = parseInt(document.form1.picnum.value) + startNum;
if (endNum > 30) endNum = 30;
for (startNum; startNum < endNum; startNum++) {
upfield.innerHTML += "<div class='py-2'><label>软件地址" + startNum + ":<input type='text' name='softurl" + startNum + "' value='http://' class='admin-input-lg'></label><label class='ml-2'>地址名称:<input type='text' name='servermsg" + startNum + "' class='admin-input-sm'><label></div>";
upfield.innerHTML += "<div class='py-2'><label>软件地址" + startNum + ":<input type='text' name='softurl" + startNum + "' value='' class='admin-input-lg'></label><label class='ml-2'>地址名称:<input type='text' name='servermsg" + startNum + "' class='admin-input-sm'><label></div>";
}
}
function ShowHideAddr() {
@@ -280,7 +280,7 @@
<table>
<tr>
<td width="120">官方网址:</td>
<td width="370"><input type="text" name="officialUrl" id="officialUrl" value="<?php echo $addRow['officialUrl']?>" class="admin-input-lg"></td>
<td width="420"><input type="text" name="officialUrl" id="officialUrl" value="<?php echo $addRow['officialUrl']?>" class="admin-input-lg"></td>
<td width="120">程序演示:</td>
<td><input type="text" name="officialDemo" id="officialDemo" value="<?php echo $addRow['officialDemo']?>" class="admin-input-lg"></td>
</tr>
@@ -292,7 +292,7 @@
<table>
<tr>
<td width="120">软件大小:</td>
<td width="370"><input name="softsize" type="text" id="softsize" value="<?php echo $addRow['softsize']?>" class="admin-input-lg"></td>
<td width="370"><input name="softsize" type="text" id="softsize" value="<?php echo $addRow['softsize']?>" class="admin-input-sm"></td>
<td width="120">需会员权限:</td>
<td>
<select name="daccess" id="daccess" class="admin-input-sm">
@@ -318,9 +318,9 @@
<td class="admin-td">
<table>
<tr>
<td width="120">其它地址:</td>
<td width="120">链接上传:</td>
<td>
<input type="text" name="picnum" id="picnum" size="8" value="5">
<input type="text" name="picnum" id="picnum" class="admin-input-sm" value="5">
<button type="button" name="kkkup" id="kkkup2" class="btn btn-success btn-sm" onclick="MakeUpload();">添加地址</button>
<button type="button" name="Submit3" id="btsh3" class="btn btn-success btn-sm" onclick="ShowHideAddr();">隐藏地址</button>
</td>


+ 3
- 4
src/static/web/css/admin.css View File

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


Loading…
Cancel
Save