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

545 lines
23KB

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