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

113 lines
4.4KB

  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. <link href="css/base.css" rel="stylesheet" type="text/css">
  7. </head>
  8. <body background='images/allbg.gif' leftmargin='8' topmargin='8'>
  9. <form name='form1' action='co_view.php' method='post'>
  10. <input type='hidden' name='action' value='save' />
  11. <input type='hidden' name='nid' value='<?php echo $nid; ?>' />
  12. <input type='hidden' name='aid' value='<?php echo $aid; ?>' />
  13. <table width="98%" border="0" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6" align="center">
  14. <tr>
  15. <td height="28" colspan="2" background='images/tbg.gif' style="padding-left:10px;">
  16. <a href='co_url.php'><b>采集内容管理</b></a><b> &gt; 采集内容预览:</b>(系统会自动下载并处理未下载过的内容)
  17. </td>
  18. </tr>
  19. <tr bgcolor="#ffffff">
  20. <td height="24" colspan="2">如果发布时间(pubdate)为空,系统将采用导入时的实际时间,‘#p#副标题#e#’字样是系统分页符号,请不要替换。</td>
  21. </tr>
  22. <tr height="26" bgcolor="#FBFCE2">
  23. <td width="17%" height="24" align="center" bgcolor="#F8FCF1"><strong>字段名称</strong></td>
  24. <td width="83%" align="center" bgcolor="#F8FCF1"><strong>内 容</strong></td>
  25. </tr>
  26. <?php
  27. for($i=0;$i<=$dtp->Count;$i++)
  28. {
  29. $ctag = $dtp->CTags[$i];
  30. if($ctag->GetName()=="field")
  31. {
  32. $fname = $ctag->GetAtt("name");
  33. $fvalue = $ctag->GetInnerText();
  34. ?>
  35. <tr>
  36. <td height="24" align="center" valign="top" bgcolor="#FFFFFF">
  37. <?php echo $fname?>
  38. <input type='hidden' name='noteid_<?php echo $i?>' value='<?php echo $fname?>' />
  39. </td>
  40. <td bgcolor="#FFFFFF">
  41. <?php
  42. if(strlen($fvalue)<200) echo "<textarea name=\"value_$i\" rows=\"1\" style=\"width:90%\">$fvalue</textarea>";
  43. else echo "<textarea name=\"value_$i\" rows=\"12\" style=\"width:90%\">$fvalue</textarea>";
  44. ?>
  45. </td>
  46. </tr>
  47. <?php
  48. }
  49. }
  50. $dtp->Clear();
  51. ?>
  52. <input type='hidden' name='endid' value='<?php echo $i?>' />
  53. <tr bgcolor="#F9FCEF">
  54. <td height="24" colspan="2" align="center">
  55. <input name="imageField" type="image" src="images/button_save.gif" class="np" width="60" height="22" border="0" />
  56. &nbsp;
  57. <a href="<?php echo $backurl?>"><img src="images/button_back.gif" class="np" width="60" height="22" border="0" /></a>
  58. </td>
  59. </tr>
  60. </table>
  61. </form>
  62. <form name='form2' action='co_do.php' method='post'>
  63. <input type='hidden' name='dopost' value='replace' />
  64. <input type='hidden' name='nid' value='<?php echo $nid; ?>' />
  65. <input type='hidden' name='aid' value='<?php echo $aid; ?>' />
  66. <table width="98%" border="0" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6" align="center" style="margin-top:6px">
  67. <tr>
  68. <td colspan='4' height="28" colspan="2" background='images/tbg.gif' style="padding-left:10px;">
  69. <b>内容替换:</b>
  70. </td>
  71. </tr>
  72. <tr bgcolor="#ffffff">
  73. <td colspan='4' height="24">进行替换时会把当前节点的所有结果在原始内容中进行替换,使用正则表达式模式时,会要求再次确实,请注意使用风险。</td>
  74. </tr>
  75. <tr bgcolor="#ffffff">
  76. <td width='12%'>匹配模式:</td>
  77. <td colspan='3'>
  78. <input type='radio' name='regtype' value='string' class='np' checked='1' />完全匹配
  79. <input type='radio' name='regtype' value='regex' class='np' />正则表达式
  80. </td>
  81. </tr>
  82. <tr bgcolor="#ffffff" height="160">
  83. <td width='12%'>当前记录<br />原始内容参考:</td>
  84. <td colspan='3'>
  85. <textarea name="rs" style="width:96%;height:150px"><?php echo $body; ?></textarea>
  86. </td>
  87. </tr>
  88. <tr bgcolor="#ffffff" height="70">
  89. <td width='12%'>
  90. 要替换的字符串<br />
  91. 或正则表达式:
  92. </td>
  93. <td width='38%'>
  94. <textarea name="fdstring" style="width:90%;height:60px"></textarea>
  95. </td>
  96. <td width='12%'>替换为:</td>
  97. <td>
  98. <textarea name="rpstring" style="width:90%;height:60px"></textarea>
  99. </td>
  100. </tr>
  101. <tr bgcolor="#F9FCEF">
  102. <td height="24" colspan="4" align="center">
  103. <input name="imageField" type="image" src="images/button_ok.gif" class="np" width="60" height="22" border="0" />
  104. &nbsp;
  105. <a href="<?php echo $backurl?>"><img src="images/button_back.gif" class="np" width="60" height="22" border="0" /></a>
  106. </td>
  107. </tr>
  108. </table>
  109. </form>
  110. </body>
  111. </html>