
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv='Content-Type' content='text/html; charset=gb2312'>
<title>新增连载图书</title>
<link href="form_new.css" rel="stylesheet" type="text/css" />
<link href="css_body.css" rel="stylesheet" type="text/css" />
<script language="javascript" src="main.js"></script>
<script language="javascript" src="../include/dedeajax2.js"></script>
<script language="javascript" src="story.js"></script>
<style type="text/css">
<!--
#addCatalog {
	position:absolute;
	left:455px;
	top:64px;
	width:325px;
	height:238px;
	z-index:2;
	background-color: #F2FDDB;
	border:1px solid #889D8F;
	padding:6px;
	display:none
}
#editCatalog {
	position:absolute;
	left:455px;
	top:64px;
	width:325px;
	height:238px;
	z-index:1;
	background-color: #F2FDDB;
	border:1px solid #889D8F;
	padding:6px;
	display:none
}
-->
</style>
</head>
<body leftmargin='8' topmargin='8'>

<div class="bodytitle">
	<div class="bodytitleleft"></div>
	<div class="bodytitletxt">连载管理</div>
</div>

<table width="96%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle" style="	background:#E2F5BC;">
		<tr>
				<td class="tbtitletxt">  <table width='96%' cellpadding='0' cellspacing='0'>
                  <tr>
                    <td width='30%' class="tbtitletxt"><strong>新增连载图书</strong></td>
                    <td align='right'>
					[<a href="story_books.php"><u>连载图书列表</u></a>]
					&nbsp;
					[<a href="story_catalog.php"><u>连载栏目管理</u></a>]
					</td>
           </tr>
         </table>
       </td>
  </tr>
</table>
<form name='form1' action='action/story_add_action.php' enctype="multipart/form-data" method='post' onSubmit="return checkSubmitAdd();">			
<table width="96%" border="0" cellpadding="5" cellspacing="1" align="center" style=" border:1px solid #E2F5BC;line-height:31px;margin:auto;">
		<tr>
		  <td style="background:#F9FFE6;padding:7px 6px 6px 10px;" >
		  <font color='red'><?php echo $msg; ?></font>
		  </td>
  </tr>
<tr>
<td height="116" bgcolor="#FFFFFF" style="padding:7px 6px 6px 10px;" >
<table width="98%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td style="width:120px" class="bline">图书隶属栏目：</td>
    <td class="bline">
    <select name="catid" id="catid" style="width:200px">
    <option value='0'>请选择栏目</option>
    <?php
    if(!isset($catid)) $catid = 0;
    foreach($btypes as $k=>$v){
    	if($catid!=$k) echo "<option value='$k'>[{$booktypes[$k]}]$v</option>\r\n";
    	else echo "<option value='$k' selected>[{$booktypes[$k]}]$v</option>\r\n";
    	foreach($stypes[$k] as $kk=>$vv){
    		if($catid!=$kk)  echo "<option value='$kk'> --[{$booktypes[$k]}]$vv</option>\r\n";
    		else echo "<option value='$kk' selected> --[{$booktypes[$k]}]$vv</option>\r\n";
    	}
    }
    ?>
    </select>    </td>
  </tr>
  <tr>
    <td height="32" class="bline">连载图书名称：</td>
    <td class="bline"><input name="bookname" type="text" id="bookname" size="35" />
      　
      <input name="iscommend" type="checkbox" id="iscommend" value="1" />
      推荐</td>
  </tr>
  <tr>
    <td height="32" class="bline">免费章节数：</td>
    <td class="bline"><input name="freenum" type="text" id="freenum" size="5" value="<?php echo $cfg_book_freenum; ?>" />
      (-1 表示全部免费，0 表示全部收费)      </td>
  </tr>
  <tr>
    <td height="114" class="bline">图书封面图片：</td>
    <td class="bline"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="75%" height="81"><table width="100%" border="0" cellspacing="1" cellpadding="1">
          <tr>
            <td height="30"> 本地直接上传请点击“浏览”按钮
              <input name="litpic" type="file" id="litpic" class="inputbut" style="width:200px" onchange="SeePic($Obj('picview'),$Obj('litpic'));" />            </td>
          </tr>
          <tr>
            <td height="30"><input name="litpicname" type="text" id="litpicname" style="width:250px" />
                <input type="button" name="Submit22" value="在网站内选择" style="width:120" onclick="SelectImage('form1.litpicname','small');" />            </td>
          </tr>
        </table></td>
        <td align="center"><img src="img/pview.gif" width="150" id="picview" name="picview" /></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td height="32" class="bline">初始化数据：</td>
    <td class="bline">点击量：
      <input name="click" type="text" id="click" size="5" value="0" />
      　作者：      
      <input name="author" type="text" id="author" size="5" />
      上架时间：
      <input name="pubdate" type="text" id="pubdate" value="<?php echo GetDateTimeMk(mytime()); ?>" /></td>
  </tr>
  
  <tr>
    <td height="91" class="bline">关键字：</td>
    <td class="bline"><table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="36%"><textarea name="keywords" cols="35" rows="4" id="keywords"></textarea></td>
          <td width="20%" align="center">摘　要：</td>
          <td><textarea name="description" cols="35" rows="4" id="description"></textarea></td>
        </tr>
      </table></td>
  </tr>
  <tr>
    <td height="32" class="bline">具体介绍：</td>
    <td class="bline">&nbsp;</td>
  </tr>
  <tr>
    <td height="82" colspan="2"><?php 
	GetEditor("body","",300);
	?></td>
    </tr>
  <tr>
    <td height="70">&nbsp;</td>
    <td><input type="submit" name="Submit" value="保 存" />　　
      <input type="reset" name="Submit2" value="重 置" /></td>
  </tr>
</table></td>
</tr>
</table>
</form>
</div>
</body>
</html>