国内流行的内容管理系统(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.

188 lines
8.1KB

  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. <!--
  8. body { background-image: url(images/allbg.gif); }
  9. -->
  10. </style>
  11. <link href="css/base.css" rel="stylesheet" type="text/css">
  12. <script language="javascript" src="../include/js/dedeajax2.js"></script>
  13. <script language="javascript" src="js/main.js"></script>
  14. <script type="text/javascript" src="js/calendar/calendar.js"></script>
  15. <script language="javascript">
  16. <!--
  17. function checkSubmit()
  18. {
  19. if(document.form1.title.value==""){
  20. alert("<?php echo $cInfos['titlename']; ?>不能为空!");
  21. document.form1.title.focus();
  22. return false;
  23. }
  24. }
  25. -->
  26. </script>
  27. </head>
  28. <body topmargin="8">
  29. <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
  30. <tr>
  31. <td width="65%" height="30"><IMG height=14 src="images/book1.gif" width='20' />
  32. &nbsp;<a href="content_sg_list.php?cid=<?php echo $addRow['typeid']?>&channelid=<?php echo $channelid?>&dopost=listArchives"><u>文档列表</u></a> &gt;&gt; 更改文档</td>
  33. <td width="30%" align='right'>&nbsp; <?php echo $backurl; ?><a href="catalog_main.php">[<u>栏目管理</u>]</a> </td>
  34. </tr>
  35. </table>
  36. <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" id="head1">
  37. <tr>
  38. <td colspan="2">
  39. <table border="0" cellpadding="0" cellspacing="0">
  40. <tr>
  41. <td width="84" height="24" align="center" background="images/itemnote1.gif">&nbsp;常规信息&nbsp;</td>
  42. <td width="84" align="center"></td>
  43. </tr>
  44. </table>
  45. </td>
  46. </tr>
  47. </table>
  48. <form name="form1" action="archives_sg_edit.php" enctype="multipart/form-data" method="post" onSubmit="return checkSubmit();">
  49. <input type="hidden" name="channelid" value="<?php echo $channelid; ?>" />
  50. <input type="hidden" name="id" value="<?php echo $aid; ?>" />
  51. <input type="hidden" name="sortrank" value="<?php echo $addRow['senddate']; ?>" />
  52. <input type="hidden" name="dopost" value="save" />
  53. <table width="98%" border="0" align="center" cellpadding="2" cellspacing="2" id="needset" style="border:1px solid #cfcfcf;background:#ffffff;">
  54. <tr>
  55. <td height="24" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0">
  56. <tr>
  57. <td width="90">&nbsp;<?php echo $cInfos['titlename']; ?>:</td>
  58. <td><input name="title" type="text" id="title" value="<?php echo $addRow['title']; ?>" style="width:388px">&nbsp;</td>
  59. </tr>
  60. </table></td>
  61. </tr>
  62. <tr>
  63. <td width="400%" height="24" class="bline">
  64. <table width="800" border="0" cellspacing="0" cellpadding="0">
  65. <tr>
  66. <td width="90">&nbsp;自定义属性:</td>
  67. <td>
  68. <?php
  69. $dsql->SetQuery("SELECT * FROM `#@__arcatt` WHERE att<>'j' AND att<>'p' ORDER BY sortid ASC");
  70. $dsql->Execute();
  71. while($trow = $dsql->GetObject())
  72. {
  73. if(preg_match("#".$trow->att."#", $addRow['flag']))
  74. echo "<input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' checked='checked' />{$trow->attname}[{$trow->att}]";
  75. else
  76. echo "<input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' />{$trow->attname}[{$trow->att}]";
  77. }
  78. ?>
  79. </td>
  80. </tr>
  81. </table></td>
  82. </tr>
  83. <tr>
  84. <td height="24" class="bline">
  85. <table width="800" border="0" cellspacing="0" cellpadding="0">
  86. <tr>
  87. <td width="90">&nbsp;浏览权限:</td>
  88. <td>
  89. <select name="arcrank" id="arcrank" style="width:150px">
  90. <option value='<?php echo $addRow["arcrank"]; ?>'><?php echo $addRow["rankname"]; ?></option>
  91. <?php
  92. $urank = $cuserLogin->getUserRank();
  93. $dsql->SetQuery("Select * from `#@__arcrank` where adminrank<='$urank' And rank<>'{$addRow["arcrank"]}' ");
  94. $dsql->Execute();
  95. while($row = $dsql->GetObject()) {
  96. echo " <option value='".$row->rank."'>".$row->membername."</option>\r\n";
  97. }
  98. ?>
  99. </select> </td>
  100. <td width="90"></td>
  101. <td></td>
  102. </tr>
  103. </table>
  104. </td>
  105. </tr>
  106. <tr id="pictable" style='<?php if($cInfos['needpic']==0) echo 'display:none'; ?>'>
  107. <td height="24" class="bline">
  108. <table width="800" border="0" cellspacing="0" cellpadding="0">
  109. <tr>
  110. <td width="90" height="81">
  111. &nbsp;缩 略 图:<br/>
  112. &nbsp; </td>
  113. <td width="500">
  114. <input name="picname" type="text" id="picname" style="width:280px" value="<?php echo $addRow["litpic"]; ?>"><input type="button" name="Submit" value="浏览..." style="width:60px" onClick="SelectImage('form1.picname','');" />
  115. <input type="button" name="Submit2" value="裁剪" style="margin-left:8px;" onClick="imageCut('picname');" class='np coolbg'/>
  116. <input type='checkbox' class='np' name='ddisremote' value='1' />
  117. 远程
  118. </td>
  119. <td align="center">
  120. <img src="<?php if( !empty($addRow["litpic"]) ) echo $addRow["litpic"]; else echo "images/pview.gif"; ?>" width="150" height="100" id="picview" name="picview" />
  121. </td>
  122. </tr>
  123. </table></td>
  124. </tr>
  125. <?php if($cInfos['dfcid']>0)
  126. {
  127. echo "<input type='hidden' name='typeid' value='{$cInfos['dfcid']}' />\r\n";
  128. }
  129. else
  130. {
  131. ?>
  132. <tr>
  133. <td height="24" class="bline"> <table width="800" border="0" cellspacing="0" cellpadding="0">
  134. <tr>
  135. <td width="90">&nbsp;文档主栏目:</td>
  136. <td>
  137. <?php
  138. $typeOptions = GetOptionList($addRow['typeid'],$cuserLogin->getUserChannel(),$channelid);
  139. echo "<select name='typeid' id='typeid' style='width:240px'>\r\n";
  140. if($addRow["typeid"]=="0") echo "<option value='0' selected>请选择栏目...</option>\r\n";
  141. echo $typeOptions;
  142. echo "</select>";
  143. ?>
  144. <img src='images/menusearch.gif' style='cursor:pointer' onClick="ShowCatMap(event, this, <?php echo $channelid; ?>, 'typeid', '<?php echo $addRow['typeid']; ?>')" alt='快捷选择' title='快捷选择' />
  145. <?php
  146. if($cfg_remote_site=='Y')
  147. {
  148. ?>  
  149. <input name="isremote" type="checkbox" id="isremote" value="1" <?php if($cfg_title_site=='Y') echo "checked";?>>是否同步远程发布 <?php GetFtp();?> <?php
  150. }
  151. ?> </td>
  152. </tr>
  153. </table></td>
  154. </tr>
  155. <?php } ?>
  156. <tr>
  157. <td>
  158. <?php
  159. PrintAutoFieldsEdit($cInfos['fieldset'],$addRow,'autofield');
  160. ?>
  161. </td>
  162. </tr>
  163. </table>
  164. <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#F9FCEF" style="border:1px solid #cfcfcf;border-top:none;">
  165. <tr>
  166. <td height="35">
  167. <table width="100%" border="0" cellspacing="1" cellpadding="1">
  168. <tr>
  169. <td width="17%">&nbsp;</td>
  170. <td width="83%"><table width="214" border="0" cellspacing="0" cellpadding="0">
  171. <tr>
  172. <td width="115"><input name="imageField" type="image" src="images/button_ok.gif" width="60" height="22" class="np" border="0" style="cursor:pointer"></td>
  173. <td width="99">
  174. <img src="images/button_reset.gif" width="60" height="22" border="0" onClick="location.reload();" style="cursor:pointer">
  175. </td>
  176. </tr>
  177. </table></td>
  178. </tr>
  179. </table></td>
  180. </tr>
  181. </table>
  182. </form>
  183. </body>
  184. </html>