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

193 lines
8.0KB

  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. <script language="javascript">
  39. function CheckSelTable(nnum){
  40. var cbox = $Obj('isokcheck'+nnum);
  41. var seltb = $Obj('seltb'+nnum);
  42. if(cbox.checked) seltb.style.display = 'none';
  43. else seltb.style.display = 'block';
  44. }
  45. var startNum = 1;
  46. function MakeUpload(mnum)
  47. {
  48. var endNum = 0;
  49. var upfield = document.getElementById("uploadfield");
  50. var pnumObj = document.getElementById("picnum");
  51. var fhtml = "";
  52. if(mnum==0) endNum = startNum + Number(pnumObj.value);
  53. else endNum = mnum;
  54. if(endNum>120) endNum = 120;
  55. for(startNum;startNum < endNum;startNum++){
  56. fhtml = "";
  57. fhtml += "<table width='90%'><tr><td><input type='checkbox' name='isokcheck"+startNum+"' id='isokcheck"+startNum+"' value='1' class='np' onClick='CheckSelTable("+startNum+")'>显示/隐藏图片["+startNum+"]的选框</td></tr></table>";
  58. fhtml += "<table width=\"90%\" border=\"0\" id=\"seltb"+startNum+"\" cellpadding=\"1\" cellspacing=\"1\" bgcolor=\"#E8F5D6\" style=\"margin-bottom:6px;margin-left:10px\"><tobdy>";
  59. fhtml += "<tr bgcolor=\"#F4F9DD\">\r\n";
  60. fhtml += "<td height=\"25\" colspan=\"2\"> <strong>图片"+startNum+":</strong></td>";
  61. fhtml += "</tr>";
  62. fhtml += "<tr bgcolor=\"#FFFFFF\"> ";
  63. fhtml += "<td width=\"70%\" height=\"25\">  本地上传: ";
  64. fhtml += "<input type=\"file\" name='imgfile"+startNum+"' style=\"width:330px\" onChange=\"SeePic(document.picview"+startNum+",document.form1.imgfile"+startNum+");\"></td>";
  65. fhtml += "<td rowspan=\"3\" align=\"center\"><img src=\"images/pview.gif\" width=\"150\" id=\"picview"+startNum+"\" name=\"picview"+startNum+"\"></td>";
  66. fhtml += "</tr>";
  67. fhtml += "<tr bgcolor=\"#FFFFFF\"> ";
  68. fhtml += "<td height=\"25\">  指定网址: ";
  69. fhtml += "<input type=\"text\" name='imgurl"+startNum+"' style=\"width:260px\"> ";
  70. fhtml += "<input type=\"button\" name='selpic"+startNum+"' value=\"选取\" style=\"width:65px\" onClick=\"SelectImageN('form1.imgurl"+startNum+"','big','picview"+startNum+"')\">";
  71. fhtml += "</td></tr>";
  72. fhtml += "<tr bgcolor=\"#FFFFFF\"> ";
  73. fhtml += "<td height=\"25\"> 漫画标题: ";
  74. fhtml += "<input type='text' name='title"+startNum+"' style=\"width:300px\"/> </td>";
  75. fhtml += "</tr></tobdy></table>\r\n";
  76. upfield.innerHTML += fhtml;
  77. }
  78. }
  79. </script>
  80. </head>
  81. <body background='images/allbg.gif' leftmargin='8' topmargin='8'>
  82. <div class="bodytitle">
  83. <div class="bodytitleleft"></div>
  84. <div class="bodytitletxt">连载管理</div>
  85. </div>
  86. <table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle" style=" background:#CFCFCF;">
  87. <tr>
  88. <td bgcolor="#EDF9D5" class="tbtitletxt" background='images/tbg.gif'>
  89. <table width='96%' border="0" cellpadding='0' cellspacing='0'>
  90. <tr>
  91. <td width='30%' class="tbtitletxt"><strong>连载内容(漫画类)&gt;&gt;增加内容</strong></td>
  92. <td align='right'>
  93. [<a href="story_list_content.php?bookid=<?php echo $bookid; ?>"><u>本图书内容列表</u></a>]
  94. &nbsp;
  95. [<a href="story_books.php"><u>所有连载图书</u></a>]
  96. </td>
  97. </tr>
  98. </table>
  99. </td>
  100. </tr>
  101. </table>
  102. <form name='form1' action='story_add_photo_action.php' enctype="multipart/form-data" method='post' onSubmit="return checkSubmitAddPhoto();">
  103. <input type='hidden' name='bookid' value='<?php echo $bookid; ?>' />
  104. <input type='hidden' name='catid' value='<?php echo $catid; ?>' />
  105. <input type='hidden' name='bookname' value='<?php echo str_replace("'","`",$bookname); ?>' />
  106. <input type='hidden' name='booktype' value='<?php echo $booktype; ?>' />
  107. <input type='hidden' name='photonum' value='5' />
  108. <table width="98%" border="0" cellpadding="5" cellspacing="1" align="center" style=" border:1px solid #CFCFCF;line-height:31px;margin:auto;">
  109. <tr>
  110. <td style="background:#F9FFE6;padding:7px 6px 6px 10px;" >
  111. <font color='red'><?php echo $msg; ?></font>
  112. </td>
  113. </tr>
  114. <tr>
  115. <td height="116" bgcolor="#FFFFFF" style="padding:0px 6px 6px 10px;">
  116. <table width="98%" border="0" cellspacing="0" cellpadding="0">
  117. <tr>
  118. <td height="32" class="bline">默认标题:</td>
  119. <td class="bline"><input name="title" type="text" id="title" size="35" /></td>
  120. </tr>
  121. <tr>
  122. <td style="width:120px" class="bline">隶属图书名称:</td>
  123. <td class="bline">
  124. <?php echo $bookname; ?> </td>
  125. </tr>
  126. <tr>
  127. <td height="32" class="bline">
  128. 隶属章节:<br />
  129. <input name="addchapter" type="checkbox" onClick="ShowHideSelChapter('selchap','newchap')" id="addchapter" value="1"
  130. <?php echo(count($chapters)>0 ? "" : " checked"); ?> />
  131. 添加新章节 </td>
  132. <td class="bline" style="padding-top:5px;padding-bottom:5px">
  133. <span id='selchap' style="<?php echo(count($chapters)>0 ? "display:block" : "display:none"); ?>">
  134. <select name="chapterid" size="5" id="chapterid" style="width:250px">
  135. <?php
  136. $ok = false;
  137. foreach($chapters as $k=>$v){
  138. if(!$ok){ $ok=true; echo " <option value='$k' selected>第{$chapnums[$k]}章 $v</option>\r\n"; }
  139. else echo " <option value='$k'>第{$chapnums[$k]}章 $v</option>\r\n";
  140. }
  141. ?>
  142. </select>
  143. </span>
  144. <span id="newchap" style="<?php echo(count($chapters)>0 ? "display:none" : "display:block"); ?>">
  145. 新章节名称:
  146. <input name="chapternew" type="text" id="chapternew" size="30" value="默认章节" />
  147. <br />
  148. (如果没有可选章节或已有章节已经结束,请填写新章节名称,名称上不需加“第X章”这样的字样) </span> </td>
  149. </tr>
  150. <tr>
  151. <td height="32" colspan="2" class="bline">  为了方便您的多篇漫画或其它连载图片发布,您可以在此同时上传多个图片,系统会自动将其分割成多篇文档,如果您的内容主题是不需要单独设定的,可不指定每个图片的标题,系统将自动采用默认标题加数字进行标识。</td>
  152. </tr>
  153. <tr>
  154. <td colspan="2"><table width="800" border="0" cellspacing="0" cellpadding="0">
  155. <tr>
  156. <td>&nbsp;远程图片:</td>
  157. <td colspan="3"><input name="isremote" type="checkbox" id="isremote" value="1" />
  158. 下载到本地 </td>
  159. </tr>
  160. <tr>
  161. <td width="80">&nbsp;图片:</td>
  162. <td width="74"><input name="picnum" type="text" id="picnum" size="8" value="10" /></td>
  163. <td width="117"><input name='kkkup' type='button' id='kkkup2' value='增加表单' onclick="MakeUpload(0);" class="inputbut" /></td>
  164. <td width="529"> ( 注:最大60幅,手工指定的图片链接允许填写远程网址) </td>
  165. </tr>
  166. </table></td>
  167. </tr>
  168. <tr>
  169. <td height="82" colspan="2">
  170. <span id="uploadfield"></span>
  171. <script language="JavaScript">
  172. MakeUpload(6);
  173. </script>
  174. </td>
  175. </tr>
  176. <tr>
  177. <td height="70">&nbsp;</td>
  178. <td><input type="submit" name="Submit" value="保 存" class='np coolbg' />  
  179. <input type="reset" name="Submit2" value="重 置" class='np coolbg' /></td>
  180. </tr>
  181. </table></td>
  182. </tr>
  183. </table>
  184. </form>
  185. </div>
  186. </body>
  187. </html>