@@ -21,7 +21,7 @@ if ($dopost == 'save') { | |||||
flock($fp, 3); | flock($fp, 3); | ||||
fwrite($fp, $allurls); | fwrite($fp, $allurls); | ||||
fclose($fp); | fclose($fp); | ||||
echo "<script>alert('已保存');</script>"; | |||||
echo "<script>alert('成功保存站内链接');</script>"; | |||||
} | } | ||||
//读出 | //读出 | ||||
if (empty($allurls) && filesize($m_file) > 0) { | if (empty($allurls) && filesize($m_file) > 0) { | ||||
@@ -21,7 +21,7 @@ if ($dopost == 'save') { | |||||
flock($fp, 3); | flock($fp, 3); | ||||
fwrite($fp, $allsource); | fwrite($fp, $allsource); | ||||
fclose($fp); | fclose($fp); | ||||
echo "<script>alert('已保存');</script>"; | |||||
echo "<script>alert('成功保存文档来源');</script>"; | |||||
} | } | ||||
//读出 | //读出 | ||||
if (empty($allsource) && filesize($m_file) > 0) { | if (empty($allsource) && filesize($m_file) > 0) { | ||||
@@ -22,7 +22,7 @@ if ($dopost == "save") { | |||||
flock($fp, 3); | flock($fp, 3); | ||||
fwrite($fp, $allsource); | fwrite($fp, $allsource); | ||||
fclose($fp); | fclose($fp); | ||||
echo "<script>alert('已保存');</script>"; | |||||
echo "<script>alert('成功保存字符串混淆');</script>"; | |||||
} | } | ||||
//读出 | //读出 | ||||
if (empty($allsource) && filesize($m_file) > 0) { | if (empty($allsource) && filesize($m_file) > 0) { | ||||
@@ -21,7 +21,7 @@ if ($dopost == "save") { | |||||
flock($fp, 3); | flock($fp, 3); | ||||
fwrite($fp, $allwriter); | fwrite($fp, $allwriter); | ||||
fclose($fp); | fclose($fp); | ||||
echo "<script>alert('已保存');</script>"; | |||||
echo "<script>alert('成功保存文档作者');</script>"; | |||||
} | } | ||||
//读出 | //读出 | ||||
if (empty($allwriter) && filesize($m_file) > 0) { | if (empty($allwriter) && filesize($m_file) > 0) { | ||||
@@ -54,7 +54,7 @@ else if ($fmdo == "edit") { | |||||
if (empty($backurl)) { | if (empty($backurl)) { | ||||
ShowMsg("成功保存一个文件", "file_manage_main.php?activepath=$activepath"); | ShowMsg("成功保存一个文件", "file_manage_main.php?activepath=$activepath"); | ||||
} else { | } else { | ||||
ShowMsg("成功保存文件", $backurl); | |||||
ShowMsg("成功保存一个文件", $backurl); | |||||
} | } | ||||
exit(); | exit(); | ||||
} | } | ||||
@@ -1,6 +1,6 @@ | |||||
<?php | <?php | ||||
/** | /** | ||||
* 系统设置 | |||||
* 软件下载设置 | |||||
* | * | ||||
* @version $id:soft_config.php 16:09 2010年7月20日 tianya $ | * @version $id:soft_config.php 16:09 2010年7月20日 tianya $ | ||||
* @package DedeBIZ.Administrator | * @package DedeBIZ.Administrator | ||||
@@ -16,7 +16,7 @@ if ($dopost == "save") { | |||||
if ($dfrank > 0 || $dfywboy > 0) $gotojump = 1; | 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' "; | $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); | $dsql->ExecuteNoneQuery($query); | ||||
ShowMsg('成功保存参数', 'soft_config.php'); | |||||
ShowMsg('成功保存软件下载设置', 'soft_config.php'); | |||||
exit(); | exit(); | ||||
} | } | ||||
//读取参数 | //读取参数 | ||||
@@ -48,7 +48,7 @@ if ($dopost != 'save') { | |||||
if ($ctag->GetName() == 'link') { | if ($ctag->GetName() == 'link') { | ||||
$islocal = $ctag->GetAtt('islocal'); | $islocal = $ctag->GetAtt('islocal'); | ||||
if ($islocal != 1) $needmsg = "<label class='ml-2'><input type='checkbox' name='del{$newRowStart}' value='1'> 删除</label>"; | 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"; | $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++; | $newRowStart++; | ||||
} | } | ||||
@@ -171,7 +171,7 @@ if ($dopost != 'save') { | |||||
if ($servermsg == '') { | if ($servermsg == '') { | ||||
$servermsg = '下载地址'.$i; | $servermsg = '下载地址'.$i; | ||||
} | } | ||||
if ($softurl != 'http://') { | |||||
if ($softurl != '') { | |||||
if ($islocal == 1) $urls .= "{dede:link islocal='$islocal' text='{$servermsg}'} $softurl {/dede:link}\r\n"; | 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 if ($isneed) $urls .= "{dede:link text='$servermsg'} $softurl {/dede:link}\r\n"; | ||||
else continue; | else continue; | ||||
@@ -295,6 +295,14 @@ | |||||
else if (window.navigator.userAgent.indexOf("Firefox") >= 1) return 'FF'; | else if (window.navigator.userAgent.indexOf("Firefox") >= 1) return 'FF'; | ||||
else return "OT"; | else return "OT"; | ||||
} | } | ||||
function checkSubmit() { | |||||
if (document.form1.typename.value == "") { | |||||
alert("栏目名称不能为空"); | |||||
document.form1.typename.focus(); | |||||
return false; | |||||
} | |||||
return true; | |||||
} | |||||
function SelectTemplets(fname) { | function SelectTemplets(fname) { | ||||
var pos = GetWinPos(800,600); | 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); | 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"; | tobj.style.display = "none"; | ||||
} | } | ||||
} | } | ||||
function checkSubmit() { | |||||
if (document.form1.typename.value == "") { | |||||
alert("栏目名称不能为空"); | |||||
document.form1.typename.focus(); | |||||
return false; | |||||
} | |||||
return true; | |||||
} | |||||
function CheckPathSet() { | function CheckPathSet() { | ||||
var surl = document.getElementById("siteurl"); | var surl = document.getElementById("siteurl"); | ||||
var sreid = document.getElementById("reid"); | var sreid = document.getElementById("reid"); | ||||
@@ -326,6 +326,14 @@ | |||||
else if (window.navigator.userAgent.indexOf("Firefox") >= 1) return 'FF'; | else if (window.navigator.userAgent.indexOf("Firefox") >= 1) return 'FF'; | ||||
else return "OT"; | else return "OT"; | ||||
} | } | ||||
function checkSubmit() { | |||||
if (document.form1.typename.value == "") { | |||||
alert("栏目名称不能为空"); | |||||
document.form1.typename.focus(); | |||||
return false; | |||||
} | |||||
return true; | |||||
} | |||||
function SelectTemplets(fname) { | function SelectTemplets(fname) { | ||||
var pos = GetWinPos(800,600); | 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); | 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"; | tobj.style.display = "none"; | ||||
} | } | ||||
} | } | ||||
function checkSubmit() { | |||||
if (document.form1.typename.value == "") { | |||||
alert("栏目名称不能为空"); | |||||
document.form1.typename.focus(); | |||||
return false; | |||||
} | |||||
return true; | |||||
} | |||||
function CheckCross() { | function CheckCross() { | ||||
var cross2 = document.getElementById('cross2'); | var cross2 = document.getElementById('cross2'); | ||||
var crossid = document.getElementById('crossid'); | var crossid = document.getElementById('crossid'); | ||||
@@ -24,7 +24,7 @@ | |||||
var endNum = parseInt(document.form1.picnum.value) + startNum - 1; | var endNum = parseInt(document.form1.picnum.value) + startNum - 1; | ||||
if (endNum > 30) endNum = 30; | if (endNum > 30) endNum = 30; | ||||
for (startNum; startNum <= endNum; startNum++) { | 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() { | function ShowHideAddr() { | ||||
@@ -274,9 +274,9 @@ | |||||
<table> | <table> | ||||
<tr> | <tr> | ||||
<td width="120">官方网址:</td> | <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 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> | </tr> | ||||
</table> | </table> | ||||
</td> | </td> | ||||
@@ -286,14 +286,14 @@ | |||||
<table> | <table> | ||||
<tr> | <tr> | ||||
<td width="120">软件大小:</td> | <td width="120">软件大小:</td> | ||||
<td width="310"> | |||||
<td width="370"> | |||||
<input type="text" name="softsize" id="softsize" class="admin-input-sm"> | <input type="text" name="softsize" id="softsize" class="admin-input-sm"> | ||||
<select name="unit" id="unit"> | <select name="unit" id="unit"> | ||||
<option value="MB" selected>MB</option> | <option value="MB" selected>MB</option> | ||||
<option value="KB">KB</option> | <option value="KB">KB</option> | ||||
<option value="GB">GB</option> | <option value="GB">GB</option> | ||||
</select> | </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> | ||||
<td width="120">需会员权限:</td> | <td width="120">需会员权限:</td> | ||||
<td align="left"> | <td align="left"> | ||||
@@ -320,10 +320,11 @@ | |||||
<td class="admin-td"> | <td class="admin-td"> | ||||
<table> | <table> | ||||
<tr> | <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"> | <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> | <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> | ||||
<td width="120">地址名称:</td> | <td width="120">地址名称:</td> | ||||
<td><input type="text" name="servermsg1" id="servermsg1" value="本地下载" class="admin-input-sm"></td> | <td><input type="text" name="servermsg1" id="servermsg1" value="本地下载" class="admin-input-sm"></td> | ||||
@@ -331,9 +332,31 @@ | |||||
</table> | </table> | ||||
</td> | </td> | ||||
</tr> | </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']) != '') {?> | <?php if ($softconfig['moresitedo'] == 0 && trim($softconfig['sites']) != '') {?> | ||||
<tr> | <tr> | ||||
<td class="admin-td"> | <td class="admin-td"> | ||||
<table> | |||||
<tr> | |||||
<td width="120">镜像上传:</td> | |||||
</tr> | |||||
</table> | |||||
<?php | <?php | ||||
$sites = explode("\n", $softconfig['sites']); | $sites = explode("\n", $softconfig['sites']); | ||||
$startNum = 2; | $startNum = 2; | ||||
@@ -347,10 +370,10 @@ | |||||
?> | ?> | ||||
<div class="py-2"> | <div class="py-2"> | ||||
<input type="hidden" name="forconfig<?php echo $startNum;?>" value="1"> | <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> | </div> | ||||
<?php | <?php | ||||
$startNum++; | $startNum++; | ||||
@@ -360,23 +383,6 @@ | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<?php }?> | <?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> | <tr> | ||||
<td class="admin-td"> | <td class="admin-td"> | ||||
<table> | <table> | ||||
@@ -18,23 +18,18 @@ | |||||
<tr> | <tr> | ||||
<td bgcolor="#f5f5f5" colspan="2">软件下载设置</td> | <td bgcolor="#f5f5f5" colspan="2">软件下载设置</td> | ||||
</tr> | </tr> | ||||
<tr> | |||||
<td colspan="2"> | |||||
<div class="alert alert-info mb-0">软件模型的附件下载方式都必须链接到中转页,否则无效</div> | |||||
</td> | |||||
</tr> | |||||
<tr> | <tr> | ||||
<td width="260">链接显示方式:</td> | <td width="260">链接显示方式:</td> | ||||
<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> | </td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td>附件下载方式:</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> | </td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
@@ -54,8 +49,8 @@ | |||||
<tr> | <tr> | ||||
<td>镜像处理方式:</td> | <td>镜像处理方式:</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> | </td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
@@ -84,16 +79,16 @@ | |||||
<tr> | <tr> | ||||
<td>参数限制方式:</td> | <td>参数限制方式:</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> | </td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td>镜像服务器列表:</td> | <td>镜像服务器列表:</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> | <button type="button" name="Submit" onclick="AddServer()" class="btn btn-success btn-sm">添加一项</button> | ||||
</td> | </td> | ||||
</tr> | </tr> | ||||
@@ -116,9 +111,18 @@ | |||||
</form> | </form> | ||||
<script> | <script> | ||||
function AddServer() { | 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 + ""; | document.form1.sites.value += document.form1.serverurl.value + " | " + document.form1.servername.value + " | " + document.form1.servertype.value + ""; | ||||
} | } | ||||
</script> | </script> | ||||
@@ -24,7 +24,7 @@ | |||||
var endNum = parseInt(document.form1.picnum.value) + startNum; | var endNum = parseInt(document.form1.picnum.value) + startNum; | ||||
if (endNum > 30) endNum = 30; | if (endNum > 30) endNum = 30; | ||||
for (startNum; startNum < endNum; startNum++) { | 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() { | function ShowHideAddr() { | ||||
@@ -280,7 +280,7 @@ | |||||
<table> | <table> | ||||
<tr> | <tr> | ||||
<td width="120">官方网址:</td> | <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 width="120">程序演示:</td> | ||||
<td><input type="text" name="officialDemo" id="officialDemo" value="<?php echo $addRow['officialDemo']?>" class="admin-input-lg"></td> | <td><input type="text" name="officialDemo" id="officialDemo" value="<?php echo $addRow['officialDemo']?>" class="admin-input-lg"></td> | ||||
</tr> | </tr> | ||||
@@ -292,7 +292,7 @@ | |||||
<table> | <table> | ||||
<tr> | <tr> | ||||
<td width="120">软件大小:</td> | <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 width="120">需会员权限:</td> | ||||
<td> | <td> | ||||
<select name="daccess" id="daccess" class="admin-input-sm"> | <select name="daccess" id="daccess" class="admin-input-sm"> | ||||
@@ -318,9 +318,9 @@ | |||||
<td class="admin-td"> | <td class="admin-td"> | ||||
<table> | <table> | ||||
<tr> | <tr> | ||||
<td width="120">其它地址:</td> | |||||
<td width="120">链接上传:</td> | |||||
<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="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> | <button type="button" name="Submit3" id="btsh3" class="btn btn-success btn-sm" onclick="ShowHideAddr();">隐藏地址</button> | ||||
</td> | </td> | ||||
@@ -260,7 +260,6 @@ body.hidemenu .body-right { | |||||
right:5px; | right:5px; | ||||
height:20px; | height:20px; | ||||
line-height:20px; | line-height:20px; | ||||
font-size:12px; | |||||
color:#545b62; | color:#545b62; | ||||
background:0; | background:0; | ||||
border:0 | border:0 | ||||
@@ -375,7 +374,7 @@ body.hidemenu .body-right { | |||||
padding:.5rem; | padding:.5rem; | ||||
width:120px; | width:120px; | ||||
background:#fff; | background:#fff; | ||||
border:2px solid #dee2e6; | |||||
border:1px solid #dee2e6; | |||||
z-index:10005 | z-index:10005 | ||||
} | } | ||||
.wsselect { | .wsselect { | ||||
@@ -385,7 +384,7 @@ body.hidemenu .body-right { | |||||
} | } | ||||
.pubdlg { | .pubdlg { | ||||
background:#fff; | background:#fff; | ||||
border:2px solid #dee2e6; | |||||
border:1px solid #dee2e6; | |||||
z-index:8888 | z-index:8888 | ||||
} | } | ||||
.pubdlg .title { | .pubdlg .title { | ||||
@@ -440,7 +439,7 @@ body.hidemenu .body-right { | |||||
.mysource,.mywriter { | .mysource,.mywriter { | ||||
width:300px; | width:300px; | ||||
background:#fff; | background:#fff; | ||||
border:2px solid #dee2e6; | |||||
border:1px solid #dee2e6; | |||||
z-index:10001 | z-index:10001 | ||||
} | } | ||||
#uploadfield { | #uploadfield { | ||||