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

386 lines
17KB

  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/jquery.min.js"></script>
  13. <script language="javascript" src="../static/js/dedeajax2.js"></script>
  14. <script language='javascript' src="js/main.js"></script>
  15. <script type="text/javascript" src="js/calendar/calendar.js"></script>
  16. <script language="javascript">
  17. <!--
  18. function checkSubmit()
  19. {
  20. if(document.form1.title.value==""){
  21. alert("<?php echo $cInfos['titlename']; ?>不能为空!");
  22. return false;
  23. }
  24. if(document.form1.typeid.value==0){
  25. alert("请选择档案的主栏目!");
  26. return false;
  27. }
  28. }
  29. -->
  30. </script>
  31. </head>
  32. <body topmargin="8">
  33. <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
  34. <tr>
  35. <td width="65%" height="30"><IMG height=14 src="images/book1.gif" width=20>&nbsp;<a href="catalog_do.php?cid=<?php echo $cid?>&channelid=<?php echo $channelid?>&dopost=listArchives"><u>文档列表</u></a> &gt;&gt; 发布文档</td>
  36. <td width="30%" align='right'><?php echo $backurl; ?><a href="catalog_main.php">[<u>栏目管理</u>]</a>&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" align="center" background="images/itemnote2.gif"><a href="#" onClick="ShowItem2()"><u>高级参数</u></a></td>
  46. <td>&nbsp;</td>
  47. </tr>
  48. </table>
  49. </td>
  50. </tr>
  51. </table>
  52. <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" id="head2" style="display:none">
  53. <tr>
  54. <td colspan="2"> <table height="24" border="0" cellpadding="0" cellspacing="0">
  55. <tr>
  56. <td width="84" align="center" background="images/itemnote2.gif"><a href="#" onClick="ShowItem1()"><u>常规信息</u></a>&nbsp;</td>
  57. <td width="84" align="center" background="images/itemnote1.gif">高级参数</td>
  58. </tr>
  59. </table></td>
  60. </tr>
  61. </table>
  62. <form name="form1" action="archives_add.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="cid" value="<?php echo $cid?>" />
  65. <input type="hidden" name="dopost" value="save" />
  66. <table width="98%" border="0" align="center" cellpadding="2" cellspacing="2" id="needset" style="border:1px solid #cfcfcf;background:#ffffff;">
  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;<?php echo $cInfos['titlename']; ?>:</td>
  72. <td width='408'>
  73. <input name="title" type="text" id="title" value="" style="width:388px">
  74. </td>
  75. <td width="90">&nbsp;简略标题:</td>
  76. <td>
  77. <input name="shorttitle" type="text" id="shorttitle" style="width:150px">
  78. </td>
  79. </tr>
  80. </table>
  81. </td>
  82. </tr>
  83. <tr>
  84. <td height="24" colspan="4" class="bline">
  85. <table width="800" border="0" cellspacing="0" cellpadding="0">
  86. <tr>
  87. <td width="90">&nbsp;自定义属性:</td>
  88. <td>
  89. <?php
  90. $dsql->SetQuery("Select * From `#@__arcatt` order by sortid asc");
  91. $dsql->Execute();
  92. while($trow = $dsql->GetObject())
  93. {
  94. if($trow->att=='j')
  95. echo "<input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' onclick='ShowUrlTr()'>{$trow->attname}[{$trow->att}]";
  96. else
  97. echo "<input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}'>{$trow->attname}[{$trow->att}]";
  98. }
  99. ?>
  100. </td>
  101. </tr>
  102. </table>
  103. </td>
  104. </tr>
  105. <tr>
  106. <td height="24" colspan="4" class="bline" id="redirecturltr" style="display:none">
  107. <table width="800" border="0" cellspacing="0" cellpadding="0">
  108. <tr>
  109. <td width="90">&nbsp;跳转网址:</td>
  110. <td>
  111. <input name="redirecturl" type="text" id="redirecturl" style="width:300px" value="" />
  112. </td>
  113. </tr>
  114. </table>
  115. </td>
  116. </tr>
  117. <tr>
  118. <td width="400%" height="24" class="bline">
  119. <table width="800" border="0" cellspacing="0" cellpadding="0">
  120. <tr>
  121. <td width="90">&nbsp;TAG标签:</td>
  122. <td width="526">
  123. <input name="tags" type="text" id="tags" value="" style="width:300px" />(','号分开,单个标签小于12字节)
  124. </td>
  125. <td width="47">权重:</td>
  126. <td width="122"><input name="weight" type="text" id="weight" style="width:50px" value="<?php echo $maxWright['cc'];?>" />(越小越靠前)</td>
  127. </tr>
  128. </table>
  129. </td>
  130. </tr>
  131. <tr id="pictable" style='<?php if($cInfos['needpic']==0) echo 'display:none'; ?>'>
  132. <td height="24" colspan="4" class="bline"> <table width="800" border="0" cellspacing="0" cellpadding="0">
  133. <tr>
  134. <td width="90"> &nbsp;缩 略 图:</td>
  135. <td width="560">
  136. <table width="100%" border="0" cellspacing="1" cellpadding="1">
  137. <tr>
  138. <td height="30">
  139. <input name="picname" type="text" id="picname" style="width:240px" />
  140. <input type="button" value="本地上传" style="width:70px;cursor:pointer;" />
  141. <iframe name='uplitpicfra' id='uplitpicfra' src='' style='display:none'></iframe>
  142. <span class="litpic_span"><input name="litpic" type="file" id="litpic" onChange="SeePicNew(this, 'divpicview', 'uplitpicfra', 165, 'archives_add.php');" size="1" class='np coolbg'/></span>
  143. <input type="button" name="Submit2" value="站内选择" style="margin-left:8px;" onClick="SelectImage('form1.picname','small');" class='np coolbg'/>
  144. <input type="button" name="Submit2" value="裁剪" style="margin-left:8px;" onClick="imageCut('picname');" class='np coolbg'/>
  145. <input type='checkbox' class='np' name='ddisremote' value='1' id='ddisremote'/>远程
  146. </td>
  147. </tr>
  148. </table>
  149. </td>
  150. <td width="150" align="center">
  151. <div id='divpicview' class='divpre'></div>
  152. </td>
  153. </tr>
  154. </table></td>
  155. </tr>
  156. <?php if($cInfos['dfcid']>0)
  157. {
  158. echo "<input type='hidden' name='typeid' value='{$cInfos['dfcid']}' />\r\n";
  159. echo "<input type='hidden' name='typeid2' value='0' />\r\n";
  160. }
  161. else
  162. {
  163. ?>
  164. <tr>
  165. <td height="24" colspan="4" class="bline">
  166. <table width="800" border="0" cellspacing="0" cellpadding="0">
  167. <tr>
  168. <td width="90">&nbsp;文档主栏目:</td>
  169. <td>
  170. <span id='typeidct'>
  171. <?php
  172. $typeOptions = GetOptionList($cid,$cuserLogin->getUserChannel(),$channelid);
  173. echo "<select name='typeid' id='typeid' style='width:240px'>\r\n";
  174. echo "<option value='0'>请选择栏目...</option>\r\n";
  175. echo $typeOptions;
  176. echo "</select>";
  177. ?></span>
  178. <img src='images/menusearch.gif' style='cursor:pointer;' onClick="ShowCatMap(event, this, <?php echo $channelid; ?>, 'typeid')" alt='快捷选择' title='快捷选择' />
  179. &nbsp;
  180. <?php
  181. if($cfg_need_typeid2=='Y')
  182. {
  183. echo "<a href='javascript:AddTypeid2();'>【<u>选择副栏目</u>】</a>";
  184. }
  185. ?>
  186. <?php
  187. if($cfg_remote_site=='Y')
  188. {
  189. ?>  
  190. <input name="isremote" type="checkbox" id="isremote" value="1" <?php if($cfg_title_site=='Y') echo "checked";?>>是否同步远程发布 <?php GetFtp();?> <?php
  191. }
  192. ?> </td>
  193. </tr>
  194. </table>
  195. </td>
  196. </tr>
  197. <tr id='typeid2tr' style='display:none'>
  198. <td height="24" colspan="4" class="bline">
  199. <table width="800" border="0" cellspacing="0" cellpadding="0">
  200. <tr>
  201. <td width="90">&nbsp;文档副栏目:</td>
  202. <td>
  203. <span id='typeid2ct'></span><input type='text' name='typeid2' id='typeid2' value='' style='width:200px;' />
  204. <img src='images/menusearch2.gif' style='cursor:pointer;' onClick="ShowCatMap(event, this, <?php echo $channelid; ?>, 'typeid2')" alt='选择副栏目' title='选择副栏目' />
  205. </td>
  206. </tr>
  207. </table>
  208. </td>
  209. </tr>
  210. <?php } ?>
  211. <tr>
  212. <td><?php PrintAutoFieldsAdd($cInfos['fieldset']); ?></td>
  213. </tr>
  214. <tr>
  215. <td width="100%" height="24">
  216. <table width="800" border="0" cellspacing="0" cellpadding="0">
  217. <tr>
  218. <td width="90">&nbsp;附加选项:</td>
  219. <td>
  220. <input name="remote" type="checkbox" class="np" id="remote" value="1"<?php if($cfg_rm_remote=='Y') echo ' checked="1" '; ?> />
  221. 下载远程图片和资源
  222. <input name="dellink" type="checkbox" class="np" id="dellink" value="1"<?php if($cfg_arc_dellink=='Y') echo ' checked="1" '; ?> />
  223. 删除非站内链接
  224. <input name="autolitpic" type="checkbox" class="np" id="autolitpic" value="1"<?php if($cfg_arc_autopic=='Y') echo ' checked="1" '; ?> />
  225. 提取第一个图片为缩略图
  226. <input type='checkbox' name='needwatermark' value='1' class='np' <?php if($photo_markup=='1') echo ' checked="1" '; ?> />
  227. 图片是否加水印
  228. </td>
  229. </tr>
  230. </table></td>
  231. </tr>
  232. </table>
  233. <!-- //高级参数 -->
  234. <table width="98%" border="0" align="center" cellpadding="2" cellspacing="2" id="adset" style="border:1px solid #cfcfcf;background:#ffffff;display:none">
  235. <tr>
  236. <td height="24" colspan="4" class="bline">
  237. <table width="800" border="0" cellspacing="0" cellpadding="0">
  238. <tr>
  239. <td width="90" height="22" width="240">&nbsp;评论选项:</td>
  240. <td width="250">
  241. <input type='radio' name='notpost' class='np' value='0' <?php if($cfg_feedback_forbid=='N') echo "checked='1' "; ?> />允许评论
  242. &nbsp;
  243. <input type='radio' name='notpost' class='np' value='1' <?php if($cfg_feedback_forbid=='Y') echo "checked='1' "; ?> />禁止评论
  244. </td>
  245. <td width="90">浏览次数:</td>
  246. <td>
  247. <input type='text' name='click' value='<?php echo ($cfg_arc_click=='-1' ? mt_rand(50, 200) : $cfg_arc_click); ?>' style='width:100px;' />
  248. </td>
  249. </tr>
  250. </table>
  251. </td>
  252. </tr>
  253. <tr>
  254. <td height="24" colspan="4" class="bline"> <table width="800" border="0" cellspacing="0" cellpadding="0">
  255. <tr>
  256. <td width="90">&nbsp;文档来源:</td>
  257. <td width="240"><input name="source" type="text" id="source" style="width:160px" value="" size="16">
  258. <input name="selsource" type="button" id="selsource" value="选择"></td>
  259. <td width="90">作 者:</td>
  260. <td> <input name="writer" type="text" id="writer" style="width:120px" value="">
  261. <input name="selwriter" type="button" id="selwriter" value="选择"> </td>
  262. </tr>
  263. </table>
  264. <script language='javascript'>InitPage();</script> </td>
  265. </tr>
  266. <tr>
  267. <td height="24" colspan="4" class="bline">
  268. <table width="800" border="0" cellspacing="0" cellpadding="0">
  269. <tr>
  270. <td width="90" height="22">&nbsp;文档排序:</td>
  271. <td width="240"> <select name="sortup" id="sortup" style="width:150">
  272. <option value="0" selected>默认排序</option>
  273. <option value="7">置顶一周</option>
  274. <option value="30">置顶一个月</option>
  275. <option value="90">置顶三个月</option>
  276. <option value="180">置顶半年</option>
  277. <option value="360">置顶一年</option>
  278. </select> </td>
  279. <td width="90">标题颜色:</td>
  280. <td>
  281. <input name="color" type="text" id="color" style="width:120px">
  282. <input name="modcolor" type="button" id="modcolor" value="选取" onClick="ShowColor(event,this)"> </td>
  283. </tr>
  284. </table></td>
  285. </tr>
  286. <tr>
  287. <td height="24" colspan="4" class="bline">
  288. <table width="800" border="0" cellspacing="0" cellpadding="0">
  289. <tr>
  290. <td width="90">&nbsp;阅读权限:</td>
  291. <td width="240"> <select name="arcrank" id="arcrank" style="width:150px">
  292. <?php
  293. $urank = $cuserLogin->getUserRank();
  294. $dsql->SetQuery("Select * from `#@__arcrank` where adminrank<='$urank'");
  295. $dsql->Execute();
  296. while($row = $dsql->GetObject())
  297. {
  298. echo " <option value='".$row->rank."'>".$row->membername."</option>\r\n";
  299. }
  300. ?>
  301. </select> </td>
  302. <td width="90">发布选项:</td>
  303. <td>
  304. <input name="ishtml" type="radio" class="np" value="1" checked>
  305. 生成HTML
  306. <input type="radio" name="ishtml" class="np" value="0">
  307. 仅动态浏览 </td>
  308. </tr>
  309. </table></td>
  310. </tr>
  311. <tr>
  312. <td height="24" colspan="4" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0">
  313. <tr>
  314. <td width="90">&nbsp;发布时间:</td>
  315. <td width="241"><?php
  316. $nowtime = GetDateTimeMk(time());
  317. echo "<input name=\"pubdate\" value=\"$nowtime\" type=\"text\" id=\"pubdate\" style=\"width:200\">";
  318. ?> </td>
  319. <td width="90">消费金币:</td>
  320. <td width="379"><input name="money" type="text" id="money" value="0" size="10"> </td>
  321. </tr>
  322. </table></td>
  323. </tr>
  324. <tr>
  325. <td height="24" colspan="4" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0">
  326. <tr>
  327. <td width="90">&nbsp;关键字:</td>
  328. <td width="448"><input type='text' name="keywords" id="keywords" style="width:80%" value="" /></td>
  329. <td width="262"><input name="autokey" type="checkbox" onClick="ShowHide('keywords');"; class="np" id="autokey" value="1"<?php if($cfg_arc_autokeyword=='Y') echo ' checked'; ?>>
  330. 自动获取,手动填写用","分开<br/>
  331. <input type="button" name="Submit" value="浏览..." style="width:56;height:20" onClick="SelectKeywords('form1.keywords');"></td>
  332. </tr>
  333. </table></td>
  334. </tr>
  335. <tr>
  336. <td height="24" colspan="4" class="bline">
  337. <table width="800" border="0" cellspacing="0" cellpadding="0">
  338. <tr>
  339. <td width="90">&nbsp;内容摘要:</td>
  340. <td width="449"><textarea name="description" rows="3" id="description" style="width:80%"></textarea></td>
  341. <td width="261">&nbsp;</td>
  342. </tr>
  343. </table>
  344. </td>
  345. </tr>
  346. <tr>
  347. <td height="24" colspan="4">
  348. <table width="800" border="0" cellspacing="0" cellpadding="0">
  349. <tr>
  350. <td width="90">&nbsp;自定义文件名:</td>
  351. <td width="449"><input type="text" name="filename" id="filename" />(不包括后缀名如.html等)</td>
  352. <td width="261">&nbsp;</td>
  353. </tr>
  354. </table>
  355. </td>
  356. </tr>
  357. </table>
  358. <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#F9FCEF" style="border:1px solid #cfcfcf;border-top:none;">
  359. <tr>
  360. <td height="35">
  361. <table width="98%" border="0" cellspacing="1" cellpadding="1">
  362. <tr>
  363. <td width="17%">&nbsp;</td>
  364. <td width="83%"><table width="214" border="0" cellspacing="0" cellpadding="0">
  365. <tr>
  366. <td width="115">
  367. <input name="imageField" type="image" src="images/button_ok.gif" width="60" height="22" class="np" border="0" style="cursor:pointer; ">
  368. </td>
  369. <td width="99">
  370. <img src="images/button_reset.gif" width="60" height="22" border="0" onClick="location.reload();" style="cursor:pointer; ">
  371. </td>
  372. </tr>
  373. </table></td>
  374. </tr>
  375. </table></td>
  376. </tr>
  377. </table>
  378. </form>
  379. </body>
  380. </html>