国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

342 satır
17KB

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no">
  6. <title>修改软件文档</title>
  7. <link rel="stylesheet" href="/static/web/css/font-awesome.min.css">
  8. <link rel="stylesheet" href="/static/web/css/bootstrap.min.css">
  9. <link rel="stylesheet" href="/static/web/css/admin.css">
  10. <link rel="stylesheet" href="/static/web/css/daterangepicker.css">
  11. <link rel="stylesheet" href="/static/web/css/cropper.min.css">
  12. <script>const cfg_uplitpic_cut = '<?php echo $cfg_uplitpic_cut;?>';</script>
  13. <script src="/static/web/js/jquery.min.js"></script>
  14. <script src="/static/web/js/bootstrap.min.js"></script>
  15. <script src="/static/web/js/webajax.js"></script>
  16. <script src="/static/web/js/moment.min.js"></script>
  17. <script src="/static/web/js/daterangepicker.js"></script>
  18. <script src="/static/web/js/cropper.min.js"></script>
  19. <script src="/static/web/js/admin.main.js"></script>
  20. <script>
  21. var startNum = <?php echo $newRowStart?>;
  22. function MakeUpload() {
  23. var upfield = document.getElementById('uploadfield');
  24. var endNum = parseInt(document.form1.picnum.value) + startNum;
  25. if (endNum > 30) endNum = 30;
  26. for (startNum; startNum < endNum; startNum++) {
  27. upfield.innerHTML += "<div class='my-2'><label>软件网址" + startNum + ":<input type='text' name='softurl" + startNum + "' class='admin-input-lg'></label> <label>下载名称" + startNum + ":<input type='text' name='servermsg" + startNum + "' value='服务器" + startNum + "' class='admin-input-sm'></label> <button type='button' name='sel1' id='sel1' onclick=\"SelectSoft('form1.softurl" + startNum + "')\" class='btn btn-success btn-sm'>选择</button></div>";
  28. }
  29. }
  30. function ShowHideAddr() {
  31. document.getElementById('morelink').style.display = (document.getElementById('morelink').style.display == 'block' ? 'none' : 'block');
  32. document.getElementById('btsh3').value = (document.getElementById('morelink').style.display == 'block' ? '隐藏网址' : '显示网址');
  33. }
  34. </script>
  35. </head>
  36. <body>
  37. <div class="container-fluid">
  38. <ol class="breadcrumb">
  39. <li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
  40. <?php $cid=isset($cid) ? $cid : '';$channelid=isset($channelid) ? $channelid : '';?><li class="breadcrumb-item"><a href="catalog_do.php?cid=<?php echo $cid?>&channelid=<?php echo $channelid?>&dopost=listArchives">文档列表</a></li>
  41. <li class="breadcrumb-item active">修改软件文档</li>
  42. </ol>
  43. <div class="card shadow-sm">
  44. <div class="card-header">修改<?php echo $arcRow['title'];?>文档</div>
  45. <div class="card-body">
  46. <form name="form1" action="soft_edit.php" method="post" enctype="multipart/form-data">
  47. <input type="hidden" name="dopost" value="save">
  48. <input type="hidden" name="channelid" value="<?php echo $channelid?>">
  49. <input type="hidden" name="id" value="<?php echo $aid?>">
  50. <div class="table-responsive">
  51. <table class="table table-borderless">
  52. <tbody>
  53. <tr>
  54. <td width="160">软件标题</td>
  55. <td width="650"><input type="text" name="title" id="title" value="<?php echo $arcRow['title'];?>" class="admin-input-lg"></td>
  56. <td width="160">简略标题</td>
  57. <td><input type="text" name="shorttitle" id="shorttitle" value="<?php echo $arcRow['shorttitle'];?>" class="admin-input-sm"></td>
  58. </tr>
  59. <tr>
  60. <td>自定义属性</td>
  61. <td colspan="3">
  62. <?php
  63. $dsql->SetQuery("SELECT * FROM `#@__arcatt` ORDER BY sortid ASC");
  64. $dsql->Execute();
  65. while($trow = $dsql->GetObject())
  66. {
  67. if ($trow->att=='j') $jumpclick = " onclick='ShowUrlTr()'";
  68. else $jumpclick = '';
  69. if (preg_match("#".$trow->att."#",$arcRow['flag']))
  70. echo "<label><input type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' {$jumpclick} checked> {$trow->attname}[{$trow->att}]</label> ";
  71. else
  72. echo "<label><input type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' {$jumpclick}> {$trow->attname}[{$trow->att}]</label> ";
  73. }
  74. ?>
  75. </td>
  76. </tr>
  77. <tr id="redirecturltr" style="display:<?php echo (empty($addRow['redirecturl']) ? 'none' : 'table-row');?>">
  78. <td>跳转网址</td>
  79. <td colspan="3"><input type="text" name="redirecturl" id="redirecturl" value="<?php echo $addRow['redirecturl']?>" class="admin-input-lg"></td>
  80. </tr>
  81. <tr>
  82. <td>标签</td>
  83. <td><input type="text" name="tags" id="tags" value="<?php echo $tags;?>" class="admin-input-lg">(英文逗号隔开,如:DedeBIZ,得德)</td>
  84. <td>权重</td>
  85. <td><input type="text" name="weight" id="weight" value="<?php echo $arcRow['weight'];?>" class="admin-input-sm">(越小越靠前)</td>
  86. </tr>
  87. <tr id="pictable">
  88. <td>缩略图</td>
  89. <td colspan="3">
  90. <input type="text" name="picname" id="picname" value="<?php echo $arcRow['litpic']?>" class="admin-input-lg">
  91. <label><input type="checkbox" name="ddisremote" value="1" id="ddisremote"> 远程图片</label>
  92. <span class="btn btn-success btn-sm opt-button">上传<input type="file" name="files[]" id="iptAddImages"></span>
  93. <button type="button" onclick="SelectImage('form1.picname','');" class="btn btn-success btn-sm">选择</button>
  94. <button type="button" id="btnClearAll" class="btn btn-success btn-sm">清空</button>
  95. <img src="<?php if ($arcRow['litpic']!='') echo $arcRow['litpic']; else echo '/static/web/img/thumbnail.jpg';?>" id="litPic" class="thumbnail-md ml-3">
  96. </td>
  97. </tr>
  98. <tr>
  99. <td>来源</td>
  100. <td>
  101. <input type="text" name="source" id="source" value="<?php echo $arcRow['source']?>" class="admin-input-sm">
  102. <button type="button" name="selsource" id="selsource" class="btn btn-success btn-sm">选择</button>
  103. </td>
  104. <td>编辑</td>
  105. <td>
  106. <input type="text" name="writer" id="writer" value="<?php echo $arcRow['writer']?>" class="admin-input-sm">
  107. <button type="button" name="selwriter" id="selwriter" class="btn btn-success btn-sm">选择</button>
  108. </td>
  109. </tr>
  110. <tr>
  111. <td>发布栏目</td>
  112. <td>
  113. <?php
  114. $typeOptions = GetOptionList($arcRow["typeid"],$cuserLogin->getUserChannel(),$channelid);
  115. echo "<select name='typeid' id='typeid' class='admin-input-sm'>";
  116. if ($arcRow["typeid"]=="0") echo "<option value='0' selected>请选择主分类</option>";
  117. echo $typeOptions;
  118. echo "</select>";
  119. ?>
  120. <a href="javascript:ShowCatMap(event,this,<?php echo $channelid;?>,'typeid','<?php echo $arcRow['typeid'];?>');" class="btn btn-success btn-sm">选择</a>
  121. </td>
  122. <td>金币</td>
  123. <td><input type="text" name="needmoney" id="needmoney" value="<?php echo $needmoney;?>" class="admin-input-sm"></td>
  124. </tr>
  125. <?php if ($cfg_need_typeid2=='Y') {?>
  126. <tr>
  127. <td>副栏目</td>
  128. <td colspan="3">
  129. <span id="typeid2ct"></span>
  130. <input type="text" name="typeid2" id="typeid2" value="<?php echo ($arcRow['typeid2']=='0' ? '' : $arcRow['typeid2']);?>" class="admin-input-sm">
  131. <a href="javascript:ShowCatMap(event,this,<?php echo $channelid;?>,'typeid2','<?php echo $arcRow['typeid2'];?>');" class="btn btn-success btn-sm">选择</a>
  132. </td>
  133. </tr>
  134. <?php }?>
  135. <tr>
  136. <td>关键词</td>
  137. <td colspan="3">
  138. <input type="text" name="keywords" id="keywords" value="<?php echo $arcRow['keywords']?>" class="admin-input-lg">
  139. <label><input type="checkbox" name="autokey" id="autokey" value="1" <?php if ($cfg_arc_autokeyword=='Y') echo 'checked';?>> 自动获取</label>
  140. <button type="button" onclick="SelectKeywords('form1.keywords');" class="btn btn-success btn-sm">选择</button>
  141. </td>
  142. </tr>
  143. <tr>
  144. <td>描述</td>
  145. <td colspan="3"><textarea name="description" id="description" class="admin-textarea-sm"><?php echo $arcRow['description']?></textarea></td>
  146. </tr>
  147. <tr>
  148. <td>附加选项</td>
  149. <td colspan="3">
  150. <label><input type="checkbox" name="remote" id="remote" value="1" <?php if ($cfg_rm_remote=='Y') echo 'checked';?>> 下载远程图片和资源</label>
  151. <label><input type="checkbox" name="autolitpic" id="autolitpic" value="1" <?php if ($cfg_arc_autopic=='Y') echo 'checked';?>> 提取第一个图片为缩略图</label>
  152. </td>
  153. </tr>
  154. <tr>
  155. <td>运行环境</td>
  156. <td><input type="text" name="os" value="<?php echo $addRow['os']?>" class="admin-input-lg"></td>
  157. <td>文件类型</td>
  158. <td>
  159. <select name="filetype" id="filetype" class="admin-input-sm">
  160. <?php if ($addRow["filetype"]!="") echo "<option value=\"".$addRow["filetype"]."\">".$addRow['filetype']."</option>";?>
  161. <option value=".exe">.exe</option>
  162. <option value=".zip">.zip</option>
  163. <option value=".rar">.rar</option>
  164. <option value=".iso">.iso</option>
  165. <option value=".gz">.gz</option>
  166. <option value="其它">其它</option>
  167. </select>
  168. </td>
  169. </tr>
  170. <tr>
  171. <td>软件等级</td>
  172. <td>
  173. <select name="softrank" id="softrank" class="admin-input-sm">
  174. <?php if ($addRow["softrank"]!="") echo "<option value=\"".$addRow["softrank"]."\">".$addRow['softrank']."星</option>";?>
  175. <option value="1">一星</option>
  176. <option value="2">二星</option>
  177. <option value="3">三星 </option>
  178. <option value="4">四星</option>
  179. <option value="5">五星</option>
  180. </select>
  181. </td>
  182. <td>软件类型</td>
  183. <td>
  184. <select name="softtype" id="softtype" class="admin-input-sm">
  185. <?php if ($addRow["softtype"]!="") echo "<option value=\"".$addRow["softtype"]."\">".$addRow['softtype']."</option>";?>
  186. <option value="国产软件">国产软件</option>
  187. <option value="国外软件">国外软件</option>
  188. <option value="汉化补丁">汉化补丁</option>
  189. </select>
  190. </td>
  191. </tr>
  192. <tr>
  193. <td>界面语言</td>
  194. <td>
  195. <select name="language" id="language" class="admin-input-sm">
  196. <?php if ($addRow["language"]!="") echo "<option value=\"".$addRow["language"]."\">".$addRow['language']."</option>";?>
  197. <option value="简体中文">简体中文</option>
  198. <option value="英文软件">英文软件</option>
  199. <option value="繁体中文">繁体中文</option>
  200. <option value="其它类型">其它类型</option>
  201. </select>
  202. </td>
  203. <td>授权方式</td>
  204. <td>
  205. <select name="accredit" id="accredit" class="admin-input-sm">
  206. <?php if ($addRow["accredit"]!="") echo "<option value=\"".$addRow["accredit"]."\">".$addRow['accredit']."</option>";?>
  207. <option value="共享软件">共享软件</option>
  208. <option value="免费软件">免费软件</option>
  209. <option value="开源软件">开源软件</option>
  210. <option value="商业软件">商业软件</option>
  211. <option value="破解软件">破解软件</option>
  212. <option value="游戏外挂">游戏外挂</option>
  213. </select>
  214. </td>
  215. </tr>
  216. <tr>
  217. <td>官方网址</td>
  218. <td><input type="text" name="officialUrl" id="officialUrl" value="<?php echo $addRow['officialUrl']?>" class="admin-input-lg" placeholder="请输入演示网址http开头"></td>
  219. <td>演示网址</td>
  220. <td><input type="text" name="officialDemo" id="officialDemo" value="<?php echo $addRow['officialDemo']?>" class="admin-input-lg" placeholder="请填写演示网址"></td>
  221. </tr>
  222. <tr>
  223. <td>软件大小</td>
  224. <td><input name="softsize" type="text" id="softsize" value="<?php echo $addRow['softsize']?>" class="admin-input-sm"></td>
  225. <td>需会员权限</td>
  226. <td>
  227. <select name="daccess" id="daccess" class="admin-input-sm">
  228. <?php
  229. $dsql->SetQuery("SELECT * FROM `#@__arcrank` WHERE `rank` >= 0 ");
  230. $dsql->Execute();
  231. while($row = $dsql->GetArray())
  232. {
  233. if ($row['rank']==0) $row['membername'] = "不限会员";
  234. if ($row['rank'] == $daccess) echo "<option value='{$row['rank']}' selected>{$row['membername']}</option>";
  235. else echo "<option value='{$row['rank']}'>{$row['membername']}</option>";
  236. }
  237. ?>
  238. </select>
  239. <a href="soft_config.php" class="btn btn-success btn-sm">软件下载设置</a>
  240. </td>
  241. </tr>
  242. <tr>
  243. <td>链接上传</td>
  244. <td colspan="3">
  245. <input type="text" name="picnum" id="picnum" class="admin-input-sm" value="5">
  246. <button type="button" class="btn btn-success btn-sm" onclick="MakeUpload();">添加网址</button>
  247. <button type="button" class="btn btn-success btn-sm" onclick="ShowHideAddr();">隐藏网址</button>
  248. <?php echo $nForm;?>
  249. <div id="morelink">
  250. <div id="uploadfield"></div>
  251. </div>
  252. </td>
  253. </tr>
  254. <?php PrintAutoFieldsEdit(stripslashes($cInfos['fieldset']),$addRow,'autofield');?>
  255. <tr>
  256. <td colspan="4"><?php GetEditor('body',$addRow['introduce'],350,'Small');?></td>
  257. </tr>
  258. <tr>
  259. <td>评论选项</td>
  260. <td>
  261. <label><input type="radio" name="notpost" value="0" <?php if ($arcRow['notpost']==0) echo 'checked';?>> 允许评论</label>
  262. <label><input type="radio" name="notpost" value="1" <?php if ($arcRow['notpost']==1) echo 'checked';?>> 禁止评论</label>
  263. </td>
  264. <td>发布选项</td>
  265. <td>
  266. <label><input type="radio" name="ishtml" value="1" <?php if ($arcRow["ismake"]!=-1) echo 'checked';?>> 静态浏览</label>
  267. <label><input type="radio" name="ishtml" value="0" <?php if ($arcRow["ismake"]==-1) echo 'checked';?>> 动态浏览</label>
  268. </td>
  269. </tr>
  270. <tr>
  271. <td>文档排序</td>
  272. <td>
  273. <select name="sortup" id="sortup" class="admin-input-sm">
  274. <?php
  275. $subday = SubDay($arcRow["sortrank"],$arcRow["pubdate"]);
  276. echo "<option value='0'>正常排序</option>";
  277. if ($subday>0) echo "<option value='$subday' selected>置顶".$subday."天</option>";
  278. ?>
  279. <option value="7">置顶一周</option>
  280. <option value="30">置顶一个月</option>
  281. <option value="90">置顶三个月</option>
  282. <option value="180">置顶半年</option>
  283. <option value="360">置顶一年</option>
  284. </select>
  285. </td>
  286. <td>标题颜色</td>
  287. <td>
  288. <input type="text" name="color" id="color" value="<?php echo $arcRow['color']?>" class="admin-input-sm">
  289. <button class='btn btn-success btn-sm' name="modcolor" type="button" id="modcolor" onclick="ShowColor(event,this)">选择</button>
  290. </td>
  291. </tr>
  292. <tr>
  293. <td>浏览权限</td>
  294. <td>
  295. <select name="arcrank" id="arcrank" class="admin-input-sm">
  296. <option value='<?php echo $arcRow["arcrank"];?>'>
  297. <?php echo ($arcRow["arcrank"]==0 ? '已审核状态' : $arcRow["rankname"]);?>
  298. </option>
  299. <option value='0'>已审核状态</option>
  300. <option value='-1'>待审核状态</option>
  301. </select>
  302. <span>(暂不支持静态)</span>
  303. </td>
  304. <td>文件名称</td>
  305. <td><input type="text" name="filename" id="filename" value="<?php echo $arcRow['filename']?>" class="admin-input-sm">(不包括文件扩展名)</td>
  306. </tr>
  307. <tr>
  308. <td>发布时间</td>
  309. <td>
  310. <?php
  311. $notime = GetDateTimeMk($arcRow["pubdate"]);
  312. echo "<input type='text' name='pubdate' value='$notime' id='pubdate' class='datepicker admin-input-sm'>";
  313. ?>
  314. </td>
  315. <td>更新时间</td>
  316. <td>
  317. <?php
  318. $nowtime = GetDateTimeMk(time());
  319. echo "<input type='text' name='senddate' value='$nowtime' id='senddate' class='datepicker admin-input-sm'>";
  320. ?>
  321. </td>
  322. </tr>
  323. <tr>
  324. <td>浏览次数</td>
  325. <td><input type="text" name="click" value="<?php echo $arcRow['click'];?>" class="admin-input-sm"></td>
  326. </tr>
  327. <tr>
  328. <td colspan="4" align="center">
  329. <button type="submit" class="btn btn-success btn-sm">保存</button>
  330. <button type="reset" class="btn btn-outline-success btn-sm">重置</button>
  331. </td>
  332. </tr>
  333. </tbody>
  334. </table>
  335. </div>
  336. </form>
  337. </div>
  338. </div>
  339. </div>
  340. <script>InitPage();</script>
  341. </body>
  342. </html>