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

181 lines
6.8KB

  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. <table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle" style=" background:#CFCFCF;">
  41. <tr>
  42. <td bgcolor="#EDF9D5" background="images/tbg.gif" class="tbtitletxt">
  43. <table width='96%' border="0" cellpadding='0' cellspacing='0'>
  44. <tr>
  45. <td width='30%' class="tbtitletxt"><strong>新增图书</strong></td>
  46. <td align='right'>
  47. [<a href="story_books.php"><u>图书列表</u></a>]
  48. &nbsp;
  49. [<a href="story_catalog.php"><u>栏目管理</u></a>]
  50. </td>
  51. </tr>
  52. </table>
  53. </td>
  54. </tr>
  55. </table>
  56. <form name='form1' action='story_add_action.php' enctype="multipart/form-data" method='post' onSubmit="return checkSubmitAdd();">
  57. <table width="98%" border="0" cellpadding="5" cellspacing="1" align="center" style=" border:1px solid #CFCFCF;line-height:31px;margin:auto;border-top:none;">
  58. <tr>
  59. <td style="background:#ffffff;padding:7px 6px 6px 10px;" >
  60. <font color='red'><?php echo $msg; ?></font>
  61. </td>
  62. </tr>
  63. <tr>
  64. <td height="116" bgcolor="#FFFFFF" style="padding:7px 6px 6px 10px;" >
  65. <table width="98%" border="0" cellspacing="0" cellpadding="0">
  66. <tr>
  67. <td width="100" class="bline" style="width:100px">图书隶属栏目:</td>
  68. <td class="bline">
  69. <select name="catid" id="catid" style="width:200px">
  70. <option value='0'>请选择栏目</option>
  71. <?php
  72. if(!isset($catid)) $catid = 0;
  73. foreach($btypes as $k=>$v){
  74. if($catid!=$k) echo "<option value='$k'>[{$booktypes[$k]}]$v</option>\r\n";
  75. else echo "<option value='$k' selected>[{$booktypes[$k]}]$v</option>\r\n";
  76. foreach($stypes[$k] as $kk=>$vv){
  77. if($catid!=$kk) echo "<option value='$kk'> --[{$booktypes[$k]}]$vv</option>\r\n";
  78. else echo "<option value='$kk' selected> --[{$booktypes[$k]}]$vv</option>\r\n";
  79. }
  80. }
  81. ?>
  82. </select> </td>
  83. </tr>
  84. <tr>
  85. <td height="32" class="bline">图书名称:</td>
  86. <td class="bline"><input name="bookname" type="text" id="bookname" size="35" class='alltxt' />
  87.  
  88. <input name="iscommend" type="checkbox" id="iscommend" value="1" class='np' />
  89. 推荐</td>
  90. </tr>
  91. <tr>
  92. <td height="32" class="bline">免费章节数:</td>
  93. <td class="bline">
  94. <input name="freenum" type="text" id="freenum" size="5" value="<?php echo $cfg_book_freenum; ?>" class='alltxt' />
  95. (-1 表示全部免费,0 表示全部收费)
  96. </td>
  97. </tr>
  98. <tr>
  99. <td style="width:100px" class="bline">免费阅读所有<br/>内容会员级别:</td>
  100. <td class="bline">
  101. <select name="arcrank" id="arcrank" style="width:150px">
  102. <?php
  103. $urank = $cuserLogin->getUserRank();
  104. $dsql->SetQuery("Select * from `#@__arcrank` where adminrank<='$urank'");
  105. $dsql->Execute();
  106. while($row = $dsql->GetObject())
  107. {
  108. echo "<option value='".$row->rank."'>".$row->membername."</option>\r\n";
  109. }
  110. ?>
  111. </select>
  112. </td>
  113. </tr>
  114. <tr>
  115. <td height="114" class="bline">图书封面图片:</td>
  116. <td class="bline"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  117. <tr>
  118. <td width="75%" height="81"><table width="100%" border="0" cellspacing="1" cellpadding="1">
  119. <tr>
  120. <td height="30"> 本地直接上传请点击“浏览”按钮
  121. <input name="litpic" type="file" id="litpic" style="width:200px" onchange="SeePic($Obj('picview'),$Obj('litpic'));" /></td>
  122. </tr>
  123. <tr>
  124. <td height="30"><input name="litpicname" type="text" id="litpicname" style="width:250px" class='alltxt' />
  125. <input type="button" name="Submit22" value="在网站内选择" style="width:120px" class='np coolbg' onclick="SelectImage('form1.litpicname','small');" /></td>
  126. </tr>
  127. </table></td>
  128. <td align="center"><img src="images/pview.gif" width="150" id="picview" name="picview" /></td>
  129. </tr>
  130. </table></td>
  131. </tr>
  132. <tr>
  133. <td height="32" class="bline">初始化数据:</td>
  134. <td class="bline"><table width="85%" border="0" cellspacing="0" cellpadding="0">
  135. <tr>
  136. <td>作者:
  137. <input name="author" type="text" id="author" style="width:120px" class='alltxt' value="<?php echo $writer; ?>"/>
  138. <input name="selwriter" type="button" id="selwriter" value="选择"/></td>
  139. <td>上架时间:
  140. <input name="pubdate" type="text" id="pubdate" value="<?php echo GetDateTimeMk(time()); ?>" class='alltxt'/></td>
  141. <td>点击量:
  142. <input name="click" type="text" id="click" size="5" value="0" class='alltxt' /></td>
  143. </tr>
  144. </table></td>
  145. </tr>
  146. <tr height="32">
  147. <td class="bline">关键字:</td>
  148. <td class="bline"><input name="keywords" type="text" id="keywords" value="<?php echo $keywords; ?>" size="40" /> 手动填写用","分开
  149. <input type="button" name="Submit" value="浏览..." style="width:56;height:20" onClick="SelectKeywords('form1.keywords');" /></td>
  150. </tr>
  151. <tr height="80">
  152. <td class="bline">摘 要:</td>
  153. <td class="bline"><textarea name="description" cols="80" rows="3" id="description"></textarea></td>
  154. </tr>
  155. <tr>
  156. <td height="32" class="bline">具体介绍:</td>
  157. <td class="bline">&nbsp;</td>
  158. </tr>
  159. <tr>
  160. <td height="82" colspan="2">
  161. <?php
  162. GetEditor("body","",300);
  163. ?>
  164. </td>
  165. </tr>
  166. <tr>
  167. <td height="70">&nbsp;</td>
  168. <td>
  169. <input type="submit" name="Submit" value="保 存" class='np coolbg' />  
  170. <input type="reset" name="Submit2" value="重 置" class='np coolbg' />
  171. </td>
  172. </tr>
  173. </table>
  174. </td>
  175. </tr>
  176. </table>
  177. </form>
  178. </div>
  179. <script language='javascript'>InitPage();</script>
  180. </body>
  181. </html>