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

134 lines
4.6KB

  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. <script language="javascript" src="js/main.js"></script>
  8. <script language="javascript" src="../static/js/dedeajax2.js"></script>
  9. <script language="javascript" src="js/story.js"></script>
  10. <style type="text/css">
  11. <!--
  12. #addCatalog {
  13. position:absolute;
  14. left:455px;
  15. top:64px;
  16. width:325px;
  17. height:238px;
  18. z-index:2;
  19. background-color: #F2FDDB;
  20. border:1px solid #889D8F;
  21. padding:6px;
  22. display:none
  23. }
  24. #editCatalog {
  25. position:absolute;
  26. left:455px;
  27. top:64px;
  28. width:325px;
  29. height:238px;
  30. z-index:1;
  31. background-color: #F2FDDB;
  32. border:1px solid #889D8F;
  33. padding:6px;
  34. display:none
  35. }
  36. -->
  37. </style>
  38. </head>
  39. <body background='images/allbg.gif' leftmargin='8' topmargin='8'>
  40. <div class="bodytitle">
  41. <div class="bodytitleleft"></div>
  42. <div class="bodytitletxt">小说管理</div>
  43. </div>
  44. <table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle" style="background:#CFCFCF;">
  45. <tr>
  46. <td bgcolor="#EDF9D5" class="tbtitletxt">
  47. <table width='96%' border="0" cellpadding='0' cellspacing='0'>
  48. <tr>
  49. <td width='30%' class="tbtitletxt"><strong>内容(小说类)&gt;&gt;增加章节内容</strong></td>
  50. <td align='right'>
  51. [<a href="story_list_content.php?bookid=<?php echo $bookid; ?>"><u>本图书内容列表</u></a>]
  52. &nbsp;
  53. [<a href="story_books.php"><u>所有图书</u></a>]
  54. </td>
  55. </tr>
  56. </table>
  57. </td>
  58. </tr>
  59. </table>
  60. <form name='form1' action='story_add_content_action.php' method='post' onSubmit="return checkSubmitAddCt();">
  61. <input type='hidden' name='bookid' value='<?php echo $bookid; ?>' />
  62. <input type='hidden' name='catid' value='<?php echo $catid; ?>' />
  63. <input type='hidden' name='bookname' value='<?php echo str_replace("'","`",$bookname); ?>' />
  64. <input type='hidden' name='booktype' value='<?php echo $booktype; ?>' />
  65. <table width="98%" border="0" cellpadding="5" cellspacing="1" align="center" style=" border:1px solid #CFCFCF;line-height:31px;margin:auto;">
  66. <tr>
  67. <td style="background:#F9FFE6;padding:7px 6px 6px 10px;" >
  68. <font color='red'><?php echo $msg; ?></font>
  69. </td>
  70. </tr>
  71. <tr>
  72. <td height="116" bgcolor="#FFFFFF" style="padding:0px 6px 6px 10px;">
  73. <table width="98%" border="0" cellspacing="0" cellpadding="0">
  74. <tr>
  75. <td height="32" class="bline">小节标题:</td>
  76. <td class="bline"><input name="title" type="text" id="title" size="35" class='alltxt' /></td>
  77. </tr>
  78. <tr>
  79. <td style="width:120px" class="bline">隶属图书名称:</td>
  80. <td class="bline">
  81. <?php echo $bookname; ?>
  82. </td>
  83. </tr>
  84. <tr>
  85. <td height="32" class="bline">
  86. 隶属章节:<br />
  87. <input name="addchapter" type="checkbox" onClick="ShowHideSelChapter('selchap','newchap')" id="addchapter" value="1"
  88. <?php echo(count($chapters)>0 ? "" : " checked='1'"); ?> class='np' />
  89. 添加新章节
  90. </td>
  91. <td class="bline" style="padding-top:5px;padding-bottom:5px">
  92. <span id='selchap' style="<?php echo(count($chapters)>0 ? "display:block" : "display:none"); ?>">
  93. <select name="chapterid" size="5" id="chapterid" style="width:250px">
  94. <?php
  95. $ok = false;
  96. foreach($chapters as $k=>$v){
  97. if(!$ok){ $ok=true; echo " <option value='$k' selected>第{$chapnums[$k]}章 $v</option>\r\n"; }
  98. else echo " <option value='$k'>第{$chapnums[$k]}章 $v</option>\r\n";
  99. }
  100. ?>
  101. </select>
  102. </span>
  103. <span id="newchap" style="<?php echo(count($chapters)>0 ? "display:none" : "display:block"); ?>">
  104. 新章节名称:
  105. <input name="chapternew" type="text" id="chapternew" size="30" value="默认章节" class='alltxt' />
  106. <br />
  107. (如果没有可选章节或已有章节已经结束,请填写新章节名称,名称上不需加“第X章”这样的字样)
  108. </span>
  109. </td>
  110. </tr>
  111. <tr>
  112. <td height="32" class="bline">章节内容:</td>
  113. <td class="bline">&nbsp;</td>
  114. </tr>
  115. <tr>
  116. <td height="82" colspan="2">
  117. <?php
  118. GetEditor("body","",300,"Diy");
  119. ?>
  120. </td>
  121. </tr>
  122. <tr>
  123. <td height="70">&nbsp;</td>
  124. <td><input type="submit" name="Submit" value="保 存" class='np coolbg' />  
  125. <input type="reset" name="Submit2" value="重 置" class='np coolbg' /></td>
  126. </tr>
  127. </table></td>
  128. </tr>
  129. </table>
  130. </form>
  131. </div>
  132. </body>
  133. </html>