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

202 lines
8.3KB

  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="../static/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. return false;
  22. }
  23. if(document.form1.typeid.value==0){
  24. alert("请选择档案的主栏目!");
  25. return false;
  26. }
  27. }
  28. -->
  29. </script>
  30. </head>
  31. <body topmargin="8">
  32. <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
  33. <tr>
  34. <td width="65%" height="30"><IMG height=14 src="images/book1.gif" width=20>&nbsp;<a href="content_sg_list.php?cid=<?php echo $cid?>&channelid=<?php echo $channelid?>&dopost=listArchives"><u>文档列表</u></a> &gt;&gt; 发布文档</td>
  35. <td width="30%" align='right'>&nbsp; <?php echo $backurl; ?><a href="catalog_main.php">[<u>栏目管理</u>]</a> </td>
  36. <td width="1%">&nbsp;</td>
  37. </tr>
  38. </table>
  39. <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" id="head1">
  40. <tr>
  41. <td colspan="2">
  42. <table width="800" border="0" cellpadding="0" cellspacing="0">
  43. <tr>
  44. <td width="84" height="24" align="center" background="images/itemnote1.gif">&nbsp;常规信息&nbsp;</td>
  45. <td width="84"></td>
  46. <td>&nbsp;</td>
  47. </tr>
  48. </table>
  49. </td>
  50. </tr>
  51. </table>
  52. <form name="form1" action="archives_sg_add.php" enctype="multipart/form-data" method="post" onSubmit="return checkSubmit()">
  53. <input type="hidden" name="channelid" value="<?php echo $channelid?>" />
  54. <input type="hidden" name="cid" value="<?php echo $cid?>" />
  55. <input type="hidden" name="dopost" value="save" />
  56. <table width="98%" border="0" align="center" cellpadding="2" cellspacing="2" id="needset" style="border:1px solid #cfcfcf;background:#ffffff;">
  57. <tr>
  58. <td height="24" colspan="4" class="bline">
  59. <table width="800" border="0" cellspacing="0" cellpadding="0">
  60. <tr>
  61. <td width="90">&nbsp;<?php echo $cInfos['titlename']; ?>:</td>
  62. <td>
  63. <input name="title" type="text" id="title" value="" style="width:388px"> </td>
  64. </tr>
  65. </table> </td>
  66. </tr>
  67. <tr>
  68. <td height="24" colspan="4" class="bline">
  69. <table width="800" border="0" cellspacing="0" cellpadding="0">
  70. <tr>
  71. <td width="90">&nbsp;自定义属性:</td>
  72. <td>
  73. <?php
  74. $dsql->SetQuery("Select * From `#@__arcatt` where att<>'j' And att<>'p' order by sortid asc");
  75. $dsql->Execute();
  76. while($trow = $dsql->GetObject())
  77. {
  78. echo "<input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}'>{$trow->attname}[{$trow->att}]";
  79. }
  80. ?>
  81. </td>
  82. </tr>
  83. </table>
  84. </td>
  85. </tr>
  86. <tr id="pictable" style='<?php if($cInfos['needpic']==0) echo 'display:none'; ?>'>
  87. <td height="24" colspan="4" class="bline">
  88. <table width="800" border="0" cellspacing="0" cellpadding="0">
  89. <tr>
  90. <td width="90"> &nbsp;缩 略 图:</td>
  91. <td>
  92. <table width="100%" border="0" cellspacing="1" cellpadding="1">
  93. <tr>
  94. <td height="30">
  95. <input name="picname" type="text" id="picname" style="width:240px" />
  96. <input type="button" value="本地上传" style="width:70px;cursor:pointer;" />
  97. <iframe name='uplitpicfra' id='uplitpicfra' src='' style='display:none'></iframe>
  98. <span class="litpic_span"><input name="litpic" type="file" id="litpic" onChange="SeePicNew(this, 'divpicview', 'uplitpicfra', 165, 'archives_sg_add.php');" size="1" class='np coolbg'/></span>
  99. <input type="button" name="Submit2" value="站内选择" style="margin-left:8px;" onClick="SelectImage('form1.picname','small');" class='np coolbg'/>
  100. <input type="button" name="Submit2" value="裁剪" style="margin-left:8px;" onClick="imageCut('picname');" class='np coolbg'/>
  101. <input type='checkbox' class='np' name='ddisremote' value='1' id='ddisremote'/>远程
  102. </td>
  103. </tr>
  104. </table>
  105. </td>
  106. <td width="150" align="center">
  107. <div id='divpicview' class='divpre'></div>
  108. </td>
  109. </tr>
  110. </table></td>
  111. </tr>
  112. <tr>
  113. <td height="24" colspan="4" class="bline">
  114. <table width="800" border="0" cellspacing="0" cellpadding="0">
  115. <tr>
  116. <td width="90">&nbsp;浏览权限:</td>
  117. <td>
  118. <select name="arcrank" id="arcrank" style="width:150px">
  119. <?php
  120. $urank = $cuserLogin->getUserRank();
  121. $dsql->SetQuery("Select * from `#@__arcrank` where adminrank<='$urank'");
  122. $dsql->Execute();
  123. while($row = $dsql->GetObject())
  124. {
  125. echo " <option value='".$row->rank."'>".$row->membername."</option>\r\n";
  126. }
  127. ?>
  128. </select>
  129. </td>
  130. <td width="90"></td>
  131. <td></td>
  132. </tr>
  133. </table>
  134. </td>
  135. </tr>
  136. <?php if($cInfos['dfcid']>0)
  137. {
  138. echo "<input type='hidden' name='typeid' value='{$cInfos['dfcid']}' />\r\n";
  139. }
  140. else
  141. {
  142. ?>
  143. <tr>
  144. <td height="24" colspan="4" class="bline">
  145. <table width="800" border="0" cellspacing="0" cellpadding="0">
  146. <tr>
  147. <td width="90">&nbsp;文档主栏目:</td>
  148. <td>
  149. <span id='typeidct'>
  150. <?php
  151. $typeOptions = GetOptionList($cid,$cuserLogin->getUserChannel(),$channelid);
  152. echo "<select name='typeid' id='typeid' style='width:240px'>\r\n";
  153. echo "<option value='0'>请选择栏目...</option>\r\n";
  154. echo $typeOptions;
  155. echo "</select>";
  156. ?></span>
  157. <img src='images/menusearch.gif' style='cursor:pointer;' onClick="ShowCatMap(event, this, <?php echo $channelid; ?>, 'typeid')" alt='快捷选择' title='快捷选择' />
  158. &nbsp;<a href='catalog_main.php'>【<u>栏目管理</u>】</a>
  159. &nbsp;<a href='catalog_add.php?listtype=all'>【<u>增加大栏目</u>】</a>
  160. <?php
  161. if($cfg_remote_site=='Y')
  162. {
  163. ?>  
  164. <input name="isremote" type="checkbox" id="isremote" value="1" <?php if($cfg_title_site=='Y') echo "checked";?>>是否同步远程发布 <?php GetFtp();?> <?php
  165. }
  166. ?>
  167. </td>
  168. </tr>
  169. </table></td>
  170. </tr>
  171. <?php } ?>
  172. <tr>
  173. <td><?php PrintAutoFieldsAdd($cInfos['fieldset'],'autofield'); ?></td>
  174. </tr>
  175. </table>
  176. <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#F9FCEF" style="border:1px solid #cfcfcf;border-top:none;">
  177. <tr>
  178. <td height="35">
  179. <table width="98%" border="0" cellspacing="1" cellpadding="1">
  180. <tr>
  181. <td width="17%">&nbsp;</td>
  182. <td width="83%"><table width="214" border="0" cellspacing="0" cellpadding="0">
  183. <tr>
  184. <td width="115">
  185. <input name="imageField" type="image" src="images/button_ok.gif" width="60" height="22" class="np" border="0" style="cursor:pointer; ">
  186. </td>
  187. <td width="99">
  188. <img src="images/button_reset.gif" width="60" height="22" border="0" onClick="location.reload();" style="cursor:pointer; ">
  189. </td>
  190. </tr>
  191. </table></td>
  192. </tr>
  193. </table></td>
  194. </tr>
  195. </table>
  196. </form>
  197. </body>
  198. </html>