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

629 lines
26KB

  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. .multipic {
  10. border: 1px dashed #FC6;
  11. }
  12. .albCt {
  13. border-bottom: 1px dashed #FC0;
  14. margin-bottom: 10px;
  15. padding-bottom:10px;
  16. }
  17. .albCt img{
  18. cursor:pointer;
  19. }
  20. -->
  21. </style>
  22. <link href="css/base.css" rel="stylesheet" type="text/css">
  23. <link href='css/tb-box.css' rel='stylesheet' type='text/css' />
  24. <script language="javascript" src="../static/js/dedeajax2.js"></script>
  25. <script type="text/javascript" src="js/calendar/calendar.js"></script>
  26. <script language='javascript' src="js/main.js"></script>
  27. <script type="text/javascript"src="js/handlers.js"></script>
  28. <script type="text/javascript" src="../images/swfupload/swfupload.js"></script>
  29. <script language="javascript" src="../static/js/jquery/jquery.js"></script>
  30. <script language="javascript" src="../static/js/jquery/ui.core.js"></script>
  31. <script language="javascript" src="../static/js/jquery/ui.draggable.js"></script>
  32. <script lang='javascript' src='js/tb-box.js'></script>
  33. <script language="javascript">
  34. <!--
  35. var swfu = null;
  36. var arctype = 'article';
  37. function checkSubmit()
  38. {
  39. if(document.form1.title.value=='')
  40. {
  41. alert('文章标题不能为空!');
  42. return false;
  43. }
  44. if(document.form1.typeid.value==0)
  45. {
  46. alert('请选择档案的主类别!');
  47. return false;
  48. }
  49. }
  50. function addVote()
  51. {
  52. tb_show('添加投票', 'vote_add.php?isarc=1&TB_iframe=true&height=460&width=600', false);
  53. }
  54. function selectVote()
  55. {
  56. tb_show('选取投票','vote_main.php?issel=1',false);
  57. }
  58. function viewVote()
  59. {
  60. if($("#voteid").val())
  61. {
  62. window.open('<?php echo $cfg_cmsurl;?>/plus/vote.php?dopost=view&aid=' + $("#voteid").val());
  63. } else {
  64. alert('请选择一个投票');
  65. return false;
  66. }
  67. }
  68. window.onload = function ()
  69. {
  70. swfu = new SWFUpload(
  71. {
  72. // Backend Settings
  73. upload_url: "swfupload.php",
  74. post_params: {"PHPSESSID": "<?php echo session_id(); ?>", "dopost" : "", "arctype" : arctype},
  75. // File Upload Settings
  76. file_size_limit : "2 MB", // 2MB
  77. file_types : "*.jpg; *.gif; *.png",
  78. file_types_description : "选择 JPEG/GIF/PNG 格式图片",
  79. file_upload_limit : "0",
  80. file_queue_error_handler : fileQueueError,
  81. file_dialog_complete_handler : fileDialogComplete,
  82. upload_progress_handler : uploadProgress,
  83. upload_error_handler : uploadError,
  84. upload_success_handler : uploadSuccess,
  85. upload_complete_handler : uploadComplete,
  86. button_image_url : "../static/SmallSpyGlassWithTransperancy_17x18.png",
  87. button_placeholder_id : "spanButtonPlaceholder",
  88. button_width: '100%',
  89. button_height: 26,
  90. button_text : '<div class="button" style="background-color:#E5F1CF; height:26px; text-align:center; line-height:26px">上传图片(可多选)</div>',
  91. button_text_style : '',
  92. button_text_top_padding: 0,
  93. button_text_left_padding: 10,
  94. button_window_mode: SWFUpload.WINDOW_MODE.TRANSPARENT,
  95. button_cursor: SWFUpload.CURSOR.HAND,
  96. // Flash Settings
  97. flash_url : "../static/swfupload/swfupload.swf",
  98. custom_settings : {
  99. upload_target : "divFileProgressContainer"
  100. },
  101. // Debug Settings
  102. debug: false
  103. });
  104. };
  105. function addtoEdit(pid)
  106. {
  107. jQuery.get('swfupload.php?dopost=addtoedit&id=' + pid, function(data)
  108. {
  109. var picTitle = jQuery('input[name="picinfook'+pid+'"]').val();
  110. var picHTML = '<img src="'+data+'" alt="'+picTitle+'"/>';
  111. CKEDITOR.instances.body.insertHtml(picHTML);
  112. });
  113. }
  114. //删除已经上传的图片
  115. function delAlbPic(pid){
  116. // 同步删除编辑器中插入的图片
  117. jQuery("#__tmpbody").html();
  118. jQuery.get('swfupload.php?dopost=addtoedit&id=' + pid, function(data)
  119. {
  120. var iptbody = CKEDITOR.instances.body.getData();
  121. jQuery("#__tmpbody").html(iptbody);
  122. jQuery("#__tmpbody").find('img').each(function()
  123. {
  124. if(jQuery(this).attr('src') == data)
  125. {
  126. //alert(data);
  127. jQuery(this).remove();
  128. }
  129. });
  130. CKEDITOR.instances.body.setData(jQuery("#__tmpbody").html());
  131. jQuery("#__tmpbody").html();
  132. var tgobj = $Obj('albCtok'+pid);
  133. var myajax = new DedeAjax(tgobj);
  134. myajax.SendGet2('swfupload.php?dopost=del&id='+pid);
  135. $Obj('thumbnails').removeChild(tgobj);
  136. });
  137. }
  138. //删除已经上传的图片(编辑时用)
  139. function delAlbPicOld(picfile, pid){
  140. var tgobj = $Obj('albold'+pid);
  141. var myajax = new DedeAjax(tgobj);
  142. myajax.SendGet2('swfupload.php?dopost=delold&picfile='+picfile);
  143. $Obj('thumbnailsEdit').removeChild(tgobj);
  144. }
  145. -->
  146. </script>
  147. </head>
  148. <body topmargin="8">
  149. <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
  150. <tr>
  151. <td width="60%" 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>
  152. <td width="30%" align='right'>&nbsp; <?php echo $backurl; ?><a href="catalog_main.php">[<u>栏目管理</u>]</a> </td>
  153. </tr>
  154. </table>
  155. <table width="97%" border="0" align="center" cellpadding="0" cellspacing="0" id="head1">
  156. <tr>
  157. <td colspan="2">
  158. <table width="800" border="0" cellpadding="0" cellspacing="0">
  159. <tr>
  160. <td width="84" height="24" align="center" background="images/itemnote1.gif">&nbsp;常规信息&nbsp;</td>
  161. <td><a href="#" onClick="ShowHide('getone')"> ●输入网址采集单个网页&gt;&gt;</a></td>
  162. </tr>
  163. </table>
  164. </td>
  165. </tr>
  166. </table>
  167. <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FBFCE2" id="getone" style="<?php if(empty($geturl)) echo 'display:none'; ?>">
  168. <form name="getonepage" action="article_add.php" method="get">
  169. <input type="hidden" name="channelid" value="<?php echo $channelid; ?>" />
  170. <input type="hidden" name="cid" value="<?php echo $cid; ?>" />
  171. <tr>
  172. <td colspan="2">
  173. <table width="100%" border="0" cellpadding="0" cellspacing="0">
  174. <tr>
  175. <td width="150" height="31"><strong><a name="downurl"></a>&nbsp;采集单个网页-URL:</strong></td>
  176. <td width="320" align="center"><input name="geturl" type="text" id="geturl" style="width:290px" value="<?php echo $geturl; ?>" /></td>
  177. <td>
  178. <input type="submit" class='nbt' name="Submit3" value="抓取" />
  179. &nbsp;
  180. <input type="button" class='nbt' name="setrule" value="规则管理" onClick="OpenMyWinCoOne('article_coonepage_rule.php')" /></td>
  181. </tr>
  182. </table>
  183. </td>
  184. </tr>
  185. </form>
  186. </table>
  187. <form name="form1" action="article_add.php" enctype="multipart/form-data" method="post" onSubmit="return checkSubmit()">
  188. <input type="hidden" name="channelid" value="<?php echo $channelid?>" />
  189. <input type="hidden" name="dopost" value="save" />
  190. <table width="98%" border="0" align="center" cellpadding="2" cellspacing="2" id="needset" style="border:1px solid #cfcfcf;background:#ffffff;">
  191. <tr>
  192. <td height="24" colspan="5" class="bline">
  193. <table width="800" border="0" cellspacing="0" cellpadding="0">
  194. <tr>
  195. <td width="90">&nbsp;文章标题:</td>
  196. <td width='408'><input name="title" type="text" id="title" value="<?php echo $title; ?>" style="width:388px" /></td>
  197. <td width="90">&nbsp;简略标题:</td>
  198. <td>
  199. <input name="shorttitle" type="text" id="shorttitle" style="width:150px" />
  200. </td>
  201. </tr>
  202. </table></td>
  203. </tr>
  204. <tr>
  205. <td height="24" colspan="5" class="bline">
  206. <table width="800" border="0" cellspacing="0" cellpadding="0">
  207. <tr>
  208. <td width="90">&nbsp;自定义属性:</td>
  209. <td align="left">
  210. <?php
  211. $dsql->SetQuery("Select * From `#@__arcatt` order by sortid asc");
  212. $dsql->Execute();
  213. while($trow = $dsql->GetObject())
  214. {
  215. if($trow->att=='j')
  216. echo "<input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' onclick='ShowUrlTr()'>{$trow->attname}[{$trow->att}]";
  217. else
  218. echo "<input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}'>{$trow->attname}[{$trow->att}]";
  219. }
  220. ?>
  221. </td>
  222. </tr>
  223. </table>
  224. </td>
  225. </tr>
  226. <tr>
  227. <td height="24" colspan="5" class="bline" id="redirecturltr" style="display:none">
  228. <table width="800" border="0" cellspacing="0" cellpadding="0">
  229. <tr>
  230. <td width="90">&nbsp;跳转网址:</td>
  231. <td>
  232. <input name="redirecturl" type="text" id="redirecturl" style="width:300px" value="" />
  233. </td>
  234. </tr>
  235. </table>
  236. </td>
  237. </tr>
  238. <tr>
  239. <td width="400%" height="24" colspan="2" class="bline">
  240. <table width="800" border="0" cellspacing="0" cellpadding="0">
  241. <tr>
  242. <td width="90">&nbsp;TAG标签:</td>
  243. <td><input name="tags" type="text" id="tags" value="" style="width:300px" onChange="$Obj('keywords').value=this.value;" />(','号分开,单个标签小于12字节)</td>
  244. <td width="47">权重:</td>
  245. <td><input name="weight" type="text" id="weight" style="width:50px" value="<?php echo $maxWright['cc'];?>" />(越小越靠前)</td>
  246. </tr>
  247. </table>
  248. </td>
  249. </tr>
  250. <tr id="pictable">
  251. <td height="24" colspan="5" class="bline">
  252. <table width="800" border="0" cellspacing="0" cellpadding="0">
  253. <tr>
  254. <td width="90"> &nbsp;缩 略 图:</td>
  255. <td width="560">
  256. <table width="100%" border="0" cellspacing="1" cellpadding="1">
  257. <tr>
  258. <td height="30">
  259. <input name="picname" type="text" id="picname" style="width:240px" />
  260. <input type="button" value="本地上传" style="width:70px;cursor:pointer;" />
  261. <iframe name='uplitpicfra' id='uplitpicfra' src='' width='200' height='200' style='display:none'></iframe>
  262. <span class="litpic_span"><input name="litpic" type="file" id="litpic" onChange="SeePicNew(this, 'divpicview', 'uplitpicfra', 165, 'article_add.php');" size="1" class='np coolbg'/></span>
  263. <input type="button" name="Submit2" value="站内选择" style="margin-left:8px;" onClick="SelectImage('form1.picname','small');" class='np coolbg'/>
  264. <input type="button" name="Submit2" value="裁剪" style="margin-left:8px;" onClick="imageCut('picname');" class='np coolbg'/>
  265. <input type='checkbox' class='np' name='ddisremote' value='1' id='ddisremote'/>远程
  266. </td>
  267. </tr>
  268. </table>
  269. </td>
  270. <td width="150" align="center">
  271. <div id='divpicview' class='divpre'></div>
  272. </td>
  273. </tr>
  274. </table></td>
  275. </tr>
  276. <tr>
  277. <td height="24" colspan="5" class="bline">
  278. <table width="800" border="0" cellspacing="0" cellpadding="0">
  279. <tr>
  280. <td width="90">&nbsp;文章来源:</td>
  281. <td width="240">
  282. <input name="source" type="text" id="source" style="width:160px" value="<?php echo $source; ?>" size="16"/>
  283. <input name="selsource" type="button" id="selsource" value="选择"></td>
  284. <td width="90">作 者:</td>
  285. <td>
  286. <input name="writer" type="text" id="writer" style="width:120px" value="<?php echo $writer; ?>"/>
  287. <input name="selwriter" type="button" id="selwriter" value="选择"/>
  288. </td>
  289. </tr>
  290. </table>
  291. </td>
  292. </tr>
  293. <tr>
  294. <td height="24" colspan="5" class="bline">
  295. <table width="800" border="0" cellspacing="0" cellpadding="0">
  296. <tr>
  297. <td width="90">&nbsp;文章主栏目:</td>
  298. <td>
  299. <span id='typeidct'>
  300. <?php
  301. $typeOptions = GetOptionList($cid,$cuserLogin->getUserChannel(),$channelid);
  302. echo "<select name='typeid' id='typeid' style='width:240px'>\r\n";
  303. echo "<option value='0'>请选择栏目...</option>\r\n";
  304. echo $typeOptions;
  305. echo "</select>";
  306. ?></span>
  307. <img src='images//menusearch.gif' style='cursor:pointer;' onClick="ShowCatMap(event, this, <?php echo $channelid; ?>, 'typeid')" alt='快捷选择' title='快捷选择' />
  308. &nbsp;
  309. <?php
  310. if($cfg_need_typeid2=='Y')
  311. {
  312. echo "<a href='javascript:AddTypeid2();'>【<u>选择副栏目</u>】</a>";
  313. }
  314. ?>
  315. <?php
  316. if($cfg_remote_site=='Y')
  317. {
  318. ?>  
  319. <input name="isremote" type="checkbox" id="isremote" value="1" <?php if($cfg_title_site=='Y') echo "checked";?>>是否同步远程发布 <?php GetFtp();?> <?php
  320. }
  321. ?> </td>
  322. </tr>
  323. </table></td>
  324. </tr>
  325. <tr id='typeid2tr' style='display:none'>
  326. <td height="24" colspan="5" class="bline">
  327. <table width="800" border="0" cellspacing="0" cellpadding="0">
  328. <tr>
  329. <td width="90">&nbsp;文章副栏目:</td>
  330. <td>
  331. <span id='typeid2ct'></span><input type='text' name='typeid2' id='typeid2' value='' style='width:200px;' />
  332. <img src='images/menusearch2.gif' style='cursor:pointer;' onClick="ShowCatMap(event, this, <?php echo $channelid; ?>, 'typeid2')" alt='选择副栏目' title='选择副栏目' />
  333. </td>
  334. </tr>
  335. </table>
  336. </td>
  337. </tr>
  338. <tr>
  339. <td height="24" colspan="5" class="bline">
  340. <table width="800" border="0" cellspacing="0" cellpadding="0">
  341. <tr>
  342. <td width="90">&nbsp;关键字:</td>
  343. <td width="448"><input type='text' name="keywords" id="keywords" style="width:80%" value="<?php echo $keywords; ?>" /><input type="button" name="Submit" value="浏览..." style="width:56;height:20" onClick="SelectKeywords('form1.keywords');" /></td>
  344. <td><input name="autokey" type="checkbox" onClick="ShowHide('keywords');"; class="np" id="autokey" value="1"<?php if($cfg_arc_autokeyword=='Y') echo ' checked="1" '; ?>/>
  345. 自动获取,手动填写用","分开<br/>
  346. </td>
  347. </tr>
  348. </table></td>
  349. </tr>
  350. <tr>
  351. <td height="24" colspan="5" class="bline">
  352. <table width="800" border="0" cellspacing="0" cellpadding="0">
  353. <tr>
  354. <td width="90">&nbsp;内容摘要:</td>
  355. <td width="449"><textarea name="description" rows="5" id="description" style="width:80%;height:50px"><?php echo $description; ?></textarea></td>
  356. <td width="261">&nbsp;</td>
  357. </tr>
  358. </table>
  359. </td>
  360. </tr>
  361. <tr>
  362. <td colspan="2"><?php PrintAutoFieldsAdd($cInfos['fieldset'],'autofield'); ?></td>
  363. </tr>
  364. <tr>
  365. <td height="28" colspan="2" bgcolor="#F9FCEF" class="bline2">
  366. <div style='float:left;line-height:28px;'>&nbsp;<strong>文章内容:</strong></div>
  367. <div style='float:right;;padding-right:8px'>
  368. <img src="images/button_reset.gif" width="60" height="22" border="0" onClick="location.reload();" style="cursor:pointer; "/>
  369. </div>
  370. <div style='float:right;padding-right:8px'>
  371. <input name="imageField" type="image" src="images/button_save.gif" width="60" height="22" class="np" border="0" style="cursor:pointer;"/>
  372. </div>
  373. </td>
  374. </tr>
  375. <tr>
  376. <td width="100%" height="24" colspan="2" class="bline">
  377. <table width="800" border="0" cellspacing="0" cellpadding="0">
  378. <tr>
  379. <td width="90">&nbsp;附加选项:</td>
  380. <td>
  381. <input name="remote" type="checkbox" class="np" id="remote" value="1"<?php if($cfg_rm_remote=='Y') echo ' checked="1" '; ?> />
  382. 下载远程图片和资源
  383. <input name="dellink" type="checkbox" class="np" id="dellink" value="1"<?php if($cfg_arc_dellink=='Y') echo ' checked="1" '; ?> />
  384. 删除非站内链接 <a href="javascript:OpenMyWin('article_allowurl_edit.php');">[设置]</a>
  385. <input name="autolitpic" type="checkbox" class="np" id="autolitpic" value="1"<?php if($cfg_arc_autopic=='Y') echo ' checked="1" '; ?> />
  386. 提取第一个图片为缩略图
  387. <input type='checkbox' name='needwatermark' value='1' class='np' <?php if($photo_markup=='1') echo "checked"; ?> />
  388. 图片是否加水印
  389. </td>
  390. </tr>
  391. </table></td>
  392. </tr>
  393. <tr>
  394. <td width="100%" height="24" colspan="2" class="bline">
  395. <table width="800" border="0" cellspacing="0" cellpadding="0">
  396. <tr>
  397. <td width="90">&nbsp;分页方式:</td>
  398. <td>
  399. <input name="sptype" type="radio" class="np" value="hand"<?php if($cfg_arcautosp=='N') echo " checked='1' "?>/>
  400. 手动
  401. <input type="radio" name="sptype" value="auto" class="np"<?php if($cfg_arcautosp=='Y') echo " checked='1' "?>/>
  402. 自动 大小:
  403. <input name="spsize" type="text" id="spsize" value="<?php echo $cfg_arcautosp_size?>" size="6" /> K
  404. (分页符为: <font color="#FF0000">#p#分页标题#e# </font>)
  405. </td>
  406. </tr>
  407. </table>
  408. </td>
  409. </tr>
  410. <tr>
  411. <td width="100%" id="arcBody">
  412. <?php
  413. GetEditor("body",$body,450);
  414. ?>
  415. </td>
  416. <td width="255" align="center" valign="top" bgcolor="#FFFFCC" id="mPic" style="display:none"><div class="multipic">
  417. <div style="display: block;background-color:#E5F1CF; height:26px">
  418. <span id="spanButtonPlaceholder"></span>
  419. </div>
  420. <div id="divFileProgressContainer"></div>
  421. <div id="thumbnails" style="width: 254px; height: 535px; background-color: rgb(255, 255, 255); overflow-y: scroll;"></div>
  422. </div></td>
  423. </tr>
  424. </table>
  425. <!-- //插入投票 -->
  426. <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" id="head1" style="margin-top:10px;">
  427. <tr>
  428. <td>
  429. <table border="0" cellpadding="0" cellspacing="0">
  430. <tr>
  431. <td width="84" height="24" align="center" background="images/itemnote1.gif">&nbsp;<a href='javascript:ShowHideT("voteset")'><u>插入投票</u></a></td>
  432. </tr>
  433. </table>
  434. </td>
  435. </tr>
  436. </table>
  437. <table width="98%" border="0" align="center" cellpadding="2" cellspacing="2" id="voteset" style="border:1px solid #cfcfcf;background:#ffffff;">
  438. <tr>
  439. <td height="30">
  440. <table width="800" border="0" cellspacing="0" cellpadding="0">
  441. <tr>
  442. <td width="90" height="22">&nbsp;投票:</td>
  443. <td><input type="text" name="voteid" id="voteid" /> <input name="selvote" type="button" id="selvote" value="选择投票" onClick="selectVote()" /> <input name="addvote" type="button" id="addvote" value="新增投票" onclick="addVote()" /> <input type="button" name="viewvote" id="viewvote" value="查看投票" onclick="viewVote()" /></td>
  444. </tr>
  445. </table>
  446. </td>
  447. </tr>
  448. </table>
  449. <!-- //高级参数 -->
  450. <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" id="head1" style="margin-top:10px;">
  451. <tr>
  452. <td>
  453. <table border="0" cellpadding="0" cellspacing="0">
  454. <tr>
  455. <td width="84" height="24" align="center" background="images/itemnote1.gif">&nbsp;<a href='javascript:ShowHideT("adset")'><u>高级参数↑</u></a></td>
  456. </tr>
  457. </table>
  458. </td>
  459. </tr>
  460. </table>
  461. <table width="98%" border="0" align="center" cellpadding="2" cellspacing="2" id="adset" style="border:1px solid #cfcfcf;background:#ffffff;">
  462. <tr>
  463. <td height="24" colspan="4" class="bline">
  464. <table width="800" border="0" cellspacing="0" cellpadding="0">
  465. <tr>
  466. <td width="90" height="22">&nbsp;评论选项:</td>
  467. <td width="240">
  468. <input type='radio' name='notpost' class='np' value='0' <?php if($cfg_feedback_forbid=='N') echo "checked='1' "; ?> />允许评论
  469. &nbsp;
  470. <input type='radio' name='notpost' class='np' value='1' <?php if($cfg_feedback_forbid=='Y') echo "checked='1' "; ?> />禁止评论
  471. </td>
  472. <td width="90">浏览次数:</td>
  473. <td>
  474. <input type='text' name='click' value='<?php echo ($cfg_arc_click=='-1' ? mt_rand(50, 200) : $cfg_arc_click); ?>' style='width:100px;' />
  475. </td>
  476. </tr>
  477. </table>
  478. </td>
  479. </tr>
  480. <tr>
  481. <td height="24" colspan="4" class="bline">
  482. <table width="800" border="0" cellspacing="0" cellpadding="0">
  483. <tr>
  484. <td width="90" height="22">&nbsp;文章排序:</td>
  485. <td width="240">
  486. <select name="sortup" id="sortup" style="width:150px">
  487. <option value="0" selected>默认排序</option>
  488. <option value="7">置顶一周</option>
  489. <option value="30">置顶一个月</option>
  490. <option value="90">置顶三个月</option>
  491. <option value="180">置顶半年</option>
  492. <option value="360">置顶一年</option>
  493. </select> </td>
  494. <td width="90">标题颜色:</td>
  495. <td>
  496. <input name="color" type="text" id="color" style="width:120px"/>
  497. <input name="modcolor" type="button" id="modcolor" value="选取" onClick="ShowColor(event,this)" />
  498. </td>
  499. </tr>
  500. </table></td>
  501. </tr>
  502. <tr>
  503. <td height="24" colspan="4" class="bline">
  504. <table width="800" border="0" cellspacing="0" cellpadding="0">
  505. <tr>
  506. <td width="90">&nbsp;阅读权限:</td>
  507. <td width="240"> <select name="arcrank" id="arcrank" style="width:150px">
  508. <?php
  509. $urank = $cuserLogin->getUserRank();
  510. $dsql->SetQuery("Select * from `#@__arcrank` where adminrank<='$urank'");
  511. $dsql->Execute();
  512. while($row = $dsql->GetObject())
  513. {
  514. echo " <option value='".$row->rank."'>".$row->membername."</option>\r\n";
  515. }
  516. ?>
  517. </select> </td>
  518. <td width="90">消费金币:</td>
  519. <td>
  520. <input name="money" type="text" id="money" value="0" size="10"/> </td>
  521. </tr>
  522. </table>
  523. </td>
  524. </tr>
  525. <tr>
  526. <td height="24" colspan="4" class="bline">
  527. <table width="800" border="0" cellspacing="0" cellpadding="0">
  528. <tr>
  529. <td width="90">&nbsp;发布时间:</td>
  530. <td width="241">
  531. <?php
  532. $nowtime = GetDateTimeMk(time());
  533. echo "<input name=\"pubdate\" value=\"$nowtime\" type=\"text\" id=\"pubdate\" style=\"width:120px\">";
  534. ?>
  535. <script language="javascript" type="text/javascript">
  536. var showX = getElementLeft($Obj("pubdate")) - 130;
  537. var showY = (window.navigator.userAgent.indexOf("MSIE") >=1 )? getElementTop($Obj("pubdate")) + 465 : getElementTop($Obj("pubdate")) + 435;
  538. if((window.navigator.userAgent.indexOf("MSIE 7.0") >=1 )) {
  539. showX = getElementLeft($Obj("pubdate"))+105;
  540. showY = getElementTop($Obj("pubdate"))+1200;
  541. }
  542. if(window.navigator.userAgent.indexOf("MSIE 6.0")>=1)
  543. {
  544. Calendar.setup({
  545. inputField : "pubdate",
  546. ifFormat : "%Y-%m-%d %H:%M:%S",
  547. showsTime : true,
  548. timeFormat : "24"
  549. });
  550. } else {
  551. Calendar.setup({
  552. inputField : "pubdate",
  553. ifFormat : "%Y-%m-%d %H:%M:%S",
  554. showsTime : true,
  555. position : [showX, showY],
  556. timeFormat : "24"
  557. });
  558. }
  559. </script> </td>
  560. <td width="90">发布选项:</td>
  561. <td width="379"><input name="ishtml" type="radio" class="np" value="1" checked="1" />
  562. 生成HTML
  563. <input type="radio" name="ishtml" class="np" value="0"/>
  564. 仅动态浏览 </td>
  565. </tr>
  566. </table></td>
  567. </tr>
  568. <tr>
  569. <td height="24" colspan="4">
  570. <table width="800" border="0" cellspacing="0" cellpadding="0">
  571. <tr>
  572. <td width="109">&nbsp;自定义文件名:</td>
  573. <td width="351"><input type="text" name="filename" id="filename" />(不包括后缀名如.html等)</td>
  574. <td width="340">
  575. <?php
  576. if(isset($cfg_tamplate_rand) && $cfg_tamplate_rand==1)
  577. {
  578. ?>
  579. 随机选择模板:
  580. <select name='templet' id='templet' style='width:200px' size='1'>
  581. <?php
  582. $rndsel = mt_rand(1, count($cfg_tamplate_arr)) - 1;
  583. foreach($cfg_tamplate_arr as $k=>$v)
  584. {
  585. $v = trim($v);
  586. echo ($k==$rndsel ? "<option value='$v' selected>$v</option>\r\n" : "<option value='$v'>$v</option>\r\n");
  587. }
  588. ?>
  589. </select>
  590. <?php
  591. }
  592. else{
  593. echo "<input type='hidden' name='templet' value='' />";
  594. }
  595. ?>
  596. </td>
  597. </tr>
  598. </table>
  599. </td>
  600. </tr>
  601. </table>
  602. <table width="98%" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#F9FCEF" style="border:1px solid #cfcfcf;border-top:none;">
  603. <tr height="35">
  604. <td width="17%">&nbsp;</td>
  605. <td width="83%"><input name="imageField" type="image" src="images/button_save.gif" width="60" height="22" class="np" border="0" style="cursor:pointer;"/>
  606. <img src="images/button_reset.gif" width="60" height="22" border="0" onClick="location.reload();" style="cursor:pointer; "/>
  607. </td>
  608. </tr>
  609. </table>
  610. </form>
  611. <div id="__tmpbody" style="display:none"></div>
  612. <script language='javascript'>InitPage();</script>
  613. </body>
  614. </html>