国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

308 lignes
12KB

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
  6. <title>修改自定义文档模型</title>
  7. <link rel="stylesheet" href="/static/web/font/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. </head>
  21. <body>
  22. <form name="form1" action="archives_edit.php" method="post" enctype="multipart/form-data" onSubmit="return checkSubmit();">
  23. <input type="hidden" name="channelid" value="<?php echo $channelid?>">
  24. <input type="hidden" name="id" value="<?php echo $aid?>">
  25. <input type="hidden" name="dopost" value="save">
  26. <table width="98%" align="center" id="needset" class="maintable my-3">
  27. <tr>
  28. <td bgcolor="#f5f5f5" class="admin-td">修改自定义文档</td>
  29. </tr>
  30. <tr>
  31. <td class="admin-td">
  32. <table>
  33. <tr>
  34. <td width="120"><?php echo $cInfos['titlename'];?>:</td>
  35. <td width="400"><input name="title" type="text" id="title" value="<?php echo $arcRow['title'];?>" class="admin-input-lg"></td>
  36. <td width="120">简略标题:</td>
  37. <td><input name="shorttitle" type="text" id="shorttitle" value="<?php echo $arcRow['shorttitle'];?>" class="admin-input-sm"></td>
  38. </tr>
  39. </table>
  40. </td>
  41. </tr>
  42. <tr>
  43. <td class="admin-td">
  44. <table>
  45. <tr>
  46. <td width="120">自定义属性:</td>
  47. <td>
  48. <?php
  49. $dsql->SetQuery("SELECT * FROM `#@__arcatt` ORDER BY sortid ASC");
  50. $dsql->Execute();
  51. while($trow = $dsql->GetObject())
  52. {
  53. if ($trow->att=='j') $jumpclick = " onclick='ShowUrlTr()'";
  54. else $jumpclick = '';
  55. if (preg_match("#".$trow->att."#", $arcRow['flag']))
  56. echo "<label><input type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' {$jumpclick} checked='checked'> {$trow->attname}[{$trow->att}]</label> ";
  57. else
  58. echo "<label><input type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' {$jumpclick}> {$trow->attname}[{$trow->att}]</label> ";
  59. }
  60. ?>
  61. </td>
  62. </tr>
  63. </table>
  64. </td>
  65. </tr>
  66. <tr>
  67. <td class="admin-td" id="redirecturltr" style="display:<?php echo (empty($addRow['redirecturl']) ? 'none' : 'block');?>">
  68. <table>
  69. <tr>
  70. <td width="120">跳转网址:</td>
  71. <td><input name="redirecturl" type="text" id="redirecturl" value="<?php echo $addRow['redirecturl'];?>" class="admin-input-lg"></td>
  72. </tr>
  73. </table>
  74. </td>
  75. </tr>
  76. <tr>
  77. <td class="admin-td">
  78. <table>
  79. <tr>
  80. <td width="120">标签:</td>
  81. <td><input name="tags" type="text" id="tags" value="<?php echo $tags;?>" class="admin-input-lg">(英文逗号分开,如:DedeBIZ,得德)</td>
  82. <td width="60">权重:</td>
  83. <td><input name="weight" type="text" id="weight" value="<?php echo $arcRow['weight'];?>" class="admin-input-sm">(越小越靠前)</td>
  84. </tr>
  85. </table>
  86. </td>
  87. </tr>
  88. <tr id="pictable" style="<?php if ($cInfos['needpic']==0) echo 'display:none';?>">
  89. <td class="admin-td">
  90. <table>
  91. <tr>
  92. <td width="120">缩略图:</td>
  93. <td width="670">
  94. <input name="picname" type="text" id="picname" value="<?php echo $arcRow['litpic']?>" class="admin-input-lg">
  95. <label><input type="checkbox" name="ddisremote" value="1" id="ddisremote"> 远程图片</label>
  96. <span class="btn btn-success btn-sm fileinput-button">上传图片<input type="file" name="files[]" id="iptAddImages"></span>
  97. <button type="button" name="Submit" onclick="SelectImage('form1.picname','');" class="btn btn-success btn-sm">选择图片</button>
  98. <button id="btnClearAll" type="button" class="btn btn-success btn-sm">清空</button>
  99. </td>
  100. <td><img src="<?php if ($arcRow['litpic']!='') echo $arcRow['litpic']; else echo '/static/web/img/thumbnail.jpg';?>" id="litPic" class="thumbnail-md"></td>
  101. </tr>
  102. </table>
  103. </td>
  104. </tr>
  105. <tr>
  106. <td class="admin-td">
  107. <table>
  108. <tr>
  109. <td width="120">来源:</td>
  110. <td width="260">
  111. <input name="source" type="text" id="source" value="<?php echo $arcRow['source']?>" class="admin-input-sm">
  112. <button name="selsource" type="button" id="selsource" class="btn btn-success btn-sm">选择</button>
  113. </td>
  114. <td width="60">作者:</td>
  115. <td>
  116. <input name="writer" type="text" id="writer" value="<?php echo $arcRow['writer']?>" class="admin-input-sm">
  117. <button class="btn btn-success btn-sm" name="selwriter" type="button" id="selwriter">选择</button>
  118. </td>
  119. </tr>
  120. </table>
  121. <script>
  122. InitPage();
  123. </script>
  124. </td>
  125. </tr>
  126. <?php
  127. if ($cInfos['dfcid']>0) {
  128. echo "<input type='hidden' name='typeid' value='{$cInfos['dfcid']}'>";
  129. echo "<input type='hidden' name='typeid2'>";
  130. } else {
  131. ?>
  132. <tr>
  133. <td class="admin-td">
  134. <table>
  135. <tr>
  136. <td width="120">发布栏目:</td>
  137. <td width="360">
  138. <?php
  139. $typeOptions = GetOptionList($arcRow['typeid'],$cuserLogin->getUserChannel(),$channelid);
  140. echo "<select name='typeid' id='typeid' class='admin-input-sm'>";
  141. if ($arcRow["typeid"]=="0") echo "<option value='0' selected>请选择文档栏目</option>";
  142. echo $typeOptions;
  143. echo "</select>";
  144. ?>
  145. <a onclick="ShowCatMap(event,this,<?php echo $channelid;?>,'typeid')" title="选择主栏目" class="btn btn-success btn-sm"><i class="fa fa-search"></i></a>
  146. </td>
  147. <td width="120">需要金币:</td>
  148. <td><input name="money" type="text" id="money" value="<?php echo $arcRow['money']?>" class="admin-input-sm"></td>
  149. </tr>
  150. </table>
  151. </td>
  152. </tr>
  153. <?php if ($cfg_need_typeid2=='Y') {?>
  154. <tr>
  155. <td class="admin-td">
  156. <table>
  157. <tr>
  158. <td width="120">副栏目:</td>
  159. <td>
  160. <span id="typeid2ct"></span>
  161. <input type="text" name="typeid2" id="typeid2" value="<?php echo ($arcRow['typeid2']=='0' ? '' : $arcRow['typeid2']);?>" class="admin-input-sm">
  162. <a onclick="ShowCatMap(event,this,<?php echo $channelid;?>,'typeid2','<?php echo $arcRow['typeid2'];?>')" title="选择副栏目" class="btn btn-success btn-sm"><i class="fa fa-search"></i></a>
  163. </td>
  164. </tr>
  165. </table>
  166. </td>
  167. </tr>
  168. <tr>
  169. <td class="admin-td">
  170. <table>
  171. <tr>
  172. <td width="120">关键词:</td>
  173. <td><input type="text" name="keywords" id="keywords" value="<?php echo $arcRow['keywords']?>" class="admin-input-lg"></td>
  174. </tr>
  175. </table>
  176. </td>
  177. </tr>
  178. <tr>
  179. <td class="admin-td">
  180. <table>
  181. <tr>
  182. <td width="120">描述:</td>
  183. <td><textarea name="description" id="description" class="admin-textarea-sm"><?php echo $arcRow['description']?></textarea></td>
  184. </tr>
  185. </table>
  186. </td>
  187. </tr>
  188. <?php }}?>
  189. <?php PrintAutoFieldsEdit(stripslashes($cInfos['fieldset']),$addRow);?>
  190. <tr>
  191. <td class="admin-td">
  192. <table>
  193. <tr>
  194. <td width="120">附加选项:</td>
  195. <td>
  196. <label><input name="remote" type="checkbox" id="remote" value="1" <?php if ($cfg_rm_remote=='Y') echo ' checked="checked" ';?>> 下载远程图片和资源</label>
  197. <label><input name="autolitpic" type="checkbox" id="autolitpic" value="1" <?php if ($cfg_arc_autopic=='Y') echo ' checked="checked" ';?>> 提取第一个图片为缩略图</label>
  198. </td>
  199. </tr>
  200. </table>
  201. </td>
  202. </tr>
  203. <tr>
  204. <td class="admin-td">
  205. <table>
  206. <tr>
  207. <td width="120">评论选项:</td>
  208. <td width="360">
  209. <label><input type='radio' name='notpost' value='0' <?php if ($arcRow['notpost']==0) echo " checked='checked' ";?>> 允许评论</label>
  210. <label><input type='radio' name='notpost' value='1' <?php if ($arcRow['notpost']==1) echo " checked='checked' ";?>> 禁止评论</label>
  211. </td>
  212. <td width="120">发布选项:</td>
  213. <td>
  214. <label><input name="ishtml" type="radio" value="1" <?php if ($arcRow["ismake"]!=-1) echo " checked";?>> 生成网页</label>
  215. <label><input type="radio" name="ishtml" value="0" <?php if ($arcRow["ismake"]==-1) echo " checked";?>> 仅动态浏览</label>
  216. </td>
  217. </tr>
  218. </table>
  219. </td>
  220. </tr>
  221. <tr>
  222. <td class="admin-td">
  223. <table>
  224. <tr>
  225. <td width="120">文档排序:</td>
  226. <td width="360"><select name="sortup" id="sortup" class="admin-input-sm">
  227. <?php
  228. $subday = SubDay($arcRow["sortrank"],$arcRow["pubdate"]);
  229. echo "<option value='0'>正常排序</option>";
  230. if ($subday>0) echo "<option value='$subday' selected>置顶".$subday."天</option>";
  231. ?>
  232. <option value="7">置顶一周</option>
  233. <option value="30">置顶一个月</option>
  234. <option value="90">置顶三个月</option>
  235. <option value="180">置顶半年</option>
  236. <option value="360">置顶一年</option>
  237. </select>
  238. </td>
  239. <td width="120">标题颜色:</td>
  240. <td>
  241. <input name="color" type="text" id="color" value="<?php echo $arcRow['color']?>" class="admin-input-sm">
  242. <button name="modcolor" type="button" id="modcolor" class="btn btn-success btn-sm" onclick="ShowColor(event,this)">选择</button>
  243. </td>
  244. </tr>
  245. </table>
  246. </td>
  247. </tr>
  248. <tr>
  249. <td class="admin-td">
  250. <table>
  251. <tr>
  252. <td width="120">浏览权限:</td>
  253. <td width="360">
  254. <select name="arcrank" id="arcrank" class="admin-input-sm">
  255. <option value='<?php echo $arcRow["arcrank"]?>'><?php echo $arcRow["rankname"]?></option>
  256. <?php
  257. $urank = $cuserLogin->getUserRank();
  258. $dsql->SetQuery("SELECT * FROM #@__arcrank where adminrank<='$urank' ORDER BY `rank` ASC");
  259. $dsql->Execute();
  260. while($row = $dsql->GetObject()){
  261. echo "<option value='".$row->rank."'>".$row->membername."</option>";
  262. }
  263. ?>
  264. </select>
  265. <span>(不支持静态)</span>
  266. </td>
  267. <td width="120">文件名称:</td>
  268. <td><input type="text" name="filename" id="filename" value="<?php echo $arcRow['filename']?>" class="admin-input-sm">(不包括后缀名如.html等)</td>
  269. </tr>
  270. </table>
  271. </td>
  272. </tr>
  273. <tr>
  274. <td class="admin-td">
  275. <table>
  276. <tr>
  277. <td width="120">更新时间:</td>
  278. <td width="360">
  279. <?php
  280. $nowtime = GetDateTimeMk(time());
  281. echo "<input name='pubdate' value='$nowtime' type='text' id='pubdate' class='datepicker admin-input-sm'>";
  282. ?>
  283. </td>
  284. <td width="120">浏览次数:</td>
  285. <td><input type="text" name="click" value="<?php echo $arcRow['click'];?>" class="admin-input-sm"></td>
  286. </tr>
  287. </table>
  288. </td>
  289. </tr>
  290. <tr>
  291. <td bgcolor="#f5f5f5" align="center" class="admin-td">
  292. <button type="submit" class="btn btn-success btn-sm">保存</button>
  293. <button type="button" class="btn btn-outline-success btn-sm" onclick="location.reload();">重置</button>
  294. </td>
  295. </tr>
  296. </table>
  297. </form>
  298. <script>
  299. function checkSubmit() {
  300. if (document.form1.title.value == '') {
  301. ShowMsg("文档标题不能为空");
  302. document.form1.title.focus();
  303. return false;
  304. }
  305. }
  306. </script>
  307. </body>
  308. </html>