国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

210 lines
8.9KB

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
  5. <title>更改文档</title>
  6. <style type="text/css">
  7. body { background-image: url(images/allbg.gif); }
  8. </style>
  9. <link rel="stylesheet" href="../static/css/bootstrap.min.css">
  10. <link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet">
  11. <link href="css/base.css" rel="stylesheet" type="text/css">
  12. <script language="javascript" src="../static/js/jquery.js"></script>
  13. <script language="javascript" src="../static/js/dedeajax2.js"></script>
  14. <script type="text/javascript" src="../static/js/moment.min.js"></script>
  15. <script type="text/javascript" src="../static/js/daterangepicker.js"></script>
  16. <script language="javascript" src="js/main.js"></script>
  17. <link href="../static/css/daterangepicker.css" rel="stylesheet">
  18. <script src="../static/js/bootstrap.bundle.js"></script>
  19. <link rel="stylesheet" href="../static/css/jquery.fileupload.css">
  20. <link href="../static/css/cropper.min.css" rel="stylesheet">
  21. <script src="../static/js/cropper.min.js"></script>
  22. <script language="javascript">
  23. function checkSubmit()
  24. {
  25. if(document.form1.title.value==""){
  26. ShowMsg("<?php echo $cInfos['titlename']; ?>不能为空!");
  27. document.form1.title.focus();
  28. return false;
  29. }
  30. }
  31. </script>
  32. <style>
  33. img {
  34. vertical-align: baseline;
  35. }
  36. input,
  37. select {
  38. height: auto !important;
  39. }
  40. </style>
  41. </head>
  42. <body topmargin="8">
  43. <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="mt-3">
  44. <tr>
  45. <td width="65%" height="30"><IMG height=14 src="images/book1.gif" width='20' />
  46. &nbsp;<a href="content_sg_list.php?cid=<?php echo $addRow['typeid']?>&channelid=<?php echo $channelid?>&dopost=listArchives">文档列表</a> &gt;&gt; 更改文档</td>
  47. <td width="30%" align='right'>&nbsp; <?php echo $backurl; ?><a class="btn btn-success btn-sm" href="catalog_main.php">栏目管理</a> </td>
  48. </tr>
  49. </table>
  50. <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" id="head1">
  51. <tr>
  52. <td colspan="2">
  53. <table border="0" cellpadding="0" cellspacing="0">
  54. <tr>
  55. <td width="84" height="24" align="center" background="images/itemnote1.gif">&nbsp;常规信息&nbsp;</td>
  56. <td width="84" align="center"></td>
  57. </tr>
  58. </table>
  59. </td>
  60. </tr>
  61. </table>
  62. <form name="form1" action="archives_sg_edit.php" enctype="multipart/form-data" method="post" onSubmit="return checkSubmit();">
  63. <input type="hidden" name="channelid" value="<?php echo $channelid; ?>" />
  64. <input type="hidden" name="id" value="<?php echo $aid; ?>" />
  65. <input type="hidden" name="sortrank" value="<?php echo $addRow['senddate']; ?>" />
  66. <input type="hidden" name="dopost" value="save" />
  67. <input type="hidden" id="litpic_b64" name="litpic_b64" value="">
  68. <table width="98%" border="0" align="center" cellpadding="2" cellspacing="2" id="needset" style="border:1px solid #cfcfcf;background:#ffffff;">
  69. <tr>
  70. <td height="24" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0">
  71. <tr>
  72. <td width="90">&nbsp;<?php echo $cInfos['titlename']; ?>:</td>
  73. <td><input name="title" type="text" id="title" value="<?php echo $addRow['title']; ?>" style="width:388px">&nbsp;</td>
  74. </tr>
  75. </table></td>
  76. </tr>
  77. <tr>
  78. <td width="400%" height="24" class="bline">
  79. <table width="800" border="0" cellspacing="0" cellpadding="0">
  80. <tr>
  81. <td width="100">&nbsp;自定义属性:</td>
  82. <td>
  83. <?php
  84. $dsql->SetQuery("SELECT * FROM `#@__arcatt` WHERE att<>'j' AND att<>'p' ORDER BY sortid ASC");
  85. $dsql->Execute();
  86. while($trow = $dsql->GetObject())
  87. {
  88. if(preg_match("#".$trow->att."#", $addRow['flag']))
  89. echo "<label><input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' checked='checked' /> {$trow->attname}[{$trow->att}]</label> ";
  90. else
  91. echo "<label><input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' /> {$trow->attname}[{$trow->att}]</label> ";
  92. }
  93. ?>
  94. </td>
  95. </tr>
  96. </table></td>
  97. </tr>
  98. <tr>
  99. <td height="24" class="bline">
  100. <table width="800" border="0" cellspacing="0" cellpadding="0">
  101. <tr>
  102. <td width="90">&nbsp;浏览权限:</td>
  103. <td>
  104. <select name="arcrank" id="arcrank" style="width:150px">
  105. <option value='<?php echo $addRow["arcrank"]; ?>'><?php echo $addRow["rankname"]; ?></option>
  106. <?php
  107. $urank = $cuserLogin->getUserRank();
  108. $dsql->SetQuery("Select * from `#@__arcrank` where adminrank<='$urank' And rank<>'{$addRow["arcrank"]}' ");
  109. $dsql->Execute();
  110. while($row = $dsql->GetObject()) {
  111. echo " <option value='".$row->rank."'>".$row->membername."</option>\r\n";
  112. }
  113. ?>
  114. </select> </td>
  115. <td width="90"></td>
  116. <td></td>
  117. </tr>
  118. </table>
  119. </td>
  120. </tr>
  121. <tr id="pictable" style='<?php if($cInfos['needpic']==0) echo 'display:none'; ?>'>
  122. <td height="24" class="bline">
  123. <table width="800" border="0" cellspacing="0" cellpadding="0">
  124. <tr>
  125. <td width="90" height="81">
  126. &nbsp;缩 略 图:<br/>
  127. &nbsp; </td>
  128. <td width="560">
  129. <input name="picname" type="text" id="picname" style="width:300px"
  130. value="<?php echo $addRow["litpic"]?>"><button class="btn btn-success btn-sm" type="button" name="Submit"
  131. style="width:70px" onClick="SelectImage('form1.picname','');">浏览...</button>
  132. <label><input type='checkbox' class='np' name='ddisremote' value='1'>
  133. 远程</label>
  134. <span class="btn btn-success btn-sm fileinput-button">
  135. <i class="glyphicon glyphicon-plus"></i>
  136. 选择图片
  137. <input type="file" name="files[]" id="iptAddImages">
  138. </span>
  139. <button id="btnClearAll" type="button" class="btn btn-success btn-sm delete">
  140. <i class="fa fa-trash-o"></i>
  141. <span>清空</span>
  142. </button>
  143. </td>
  144. <td align="center">
  145. <img id="litPic"
  146. src="<?php if($addRow["litpic"]!="") echo $addRow["litpic"]; else echo "../static/defaultpic.gif";?>"
  147. style="height: 80px">
  148. </td>
  149. </tr>
  150. </table></td>
  151. </tr>
  152. <?php if($cInfos['dfcid']>0)
  153. {
  154. echo "<input type='hidden' name='typeid' value='{$cInfos['dfcid']}' />\r\n";
  155. }
  156. else
  157. {
  158. ?>
  159. <tr>
  160. <td height="24" class="bline"> <table width="800" border="0" cellspacing="0" cellpadding="0">
  161. <tr>
  162. <td width="100">&nbsp;文档主栏目:</td>
  163. <td>
  164. <?php
  165. $typeOptions = GetOptionList($addRow['typeid'],$cuserLogin->getUserChannel(),$channelid);
  166. echo "<select name='typeid' id='typeid' style='width:240px'>\r\n";
  167. if($addRow["typeid"]=="0") echo "<option value='0' selected>请选择栏目...</option>\r\n";
  168. echo $typeOptions;
  169. echo "</select>";
  170. ?>
  171. <img src='images/menusearch.gif' style='cursor:pointer' onClick="ShowCatMap(event, this, <?php echo $channelid; ?>, 'typeid', '<?php echo $addRow['typeid']; ?>')" alt='快捷选择' title='快捷选择' />
  172. </td>
  173. </tr>
  174. </table></td>
  175. </tr>
  176. <?php } ?>
  177. <tr>
  178. <td>
  179. <?php
  180. PrintAutoFieldsEdit($cInfos['fieldset'],$addRow,'autofield');
  181. ?>
  182. </td>
  183. </tr>
  184. </table>
  185. <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#F9FCEF" style="border:1px solid #cfcfcf;border-top:none;" class="mb-3">
  186. <tr>
  187. <td height="35">
  188. <table width="100%" border="0" cellspacing="1" cellpadding="1">
  189. <tr>
  190. <td width="17%">&nbsp;</td>
  191. <td width="83%"><table width="214" border="0" cellspacing="0" cellpadding="0">
  192. <tr>
  193. <td width="115" class="py-3"><button type="submit" class="btn btn-success">保存</button></td>
  194. <td width="99" class="py-3">
  195. <button type="button" onClick="location.reload();" class="btn btn-success">重置</button>
  196. </td>
  197. </tr>
  198. </table></td>
  199. </tr>
  200. </table></td>
  201. </tr>
  202. </table>
  203. </form>
  204. </body>
  205. </html>