Browse Source

调整功能

tags/6.2.10
叙述、别离 11 months ago
parent
commit
5cd53f73c4
3 changed files with 12 additions and 7 deletions
  1. +1
    -1
      src/admin/soft_edit.php
  2. +6
    -4
      src/admin/templets/soft_add.htm
  3. +5
    -2
      src/admin/templets/soft_edit.htm

+ 1
- 1
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><label class="ml-2"><input type="checkbox" name="" id="" checked="checked"> 上传压缩包自动解压</label>';
else $needmsg = '<button type="button" name="sel1" id="sel1" class="btn btn-success btn-sm ml-2" onclick="SelectSoft(\'form1.softurl'.$newRowStart.'\')">选取</button>';
$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++;
}


+ 6
- 4
src/admin/templets/soft_add.htm View File

@@ -275,8 +275,11 @@
<tr>
<td width="120">官方网址:</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="" class="admin-input-lg"></td>
<td width="120">演示网址:</td>
<td>
<input type="text" name="officialDemo" id="officialDemo" value="" class="admin-input-lg">
<label><input type="checkbox" name="" id="" checked="checked"> 上传压缩包自动解压</label>
</td>
</tr>
</table>
</td>
@@ -321,10 +324,9 @@
<table>
<tr>
<td width="120">本地上传:</td>
<td width="620">
<td width="460">
<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>


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

@@ -281,8 +281,11 @@
<tr>
<td width="120">官方网址:</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>
<td width="120">演示网址:</td>
<td>
<input type="text" name="officialDemo" id="officialDemo" value="<?php echo $addRow['officialDemo']?>" class="admin-input-lg">
<label><input type="checkbox" name="" id="" checked="checked"> 上传压缩包自动解压</label>
</td>
</tr>
</table>
</td>


Loading…
Cancel
Save