<!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="../member/images/member.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="../images/js/j.js"></script>
<script language="javascript" type="text/javascript" src="../member/js/table_function.js"></script>
<script language="javascript" type="text/javascript" src="js/main.js"></script>
<script language="javascript" type="text/javascript" src="js/story.js"></script>
</head>
<body>
<?php  include(DEDEMEMBER."/templets/head.htm"); ?>
<div class="wrapper lineT">
  <div class="mainBox">
    <div class="main">
      <?php  include(DEDEMEMBER."/templets/menu.php"); ?>
      <div class="dedeMain">
        <div class="location">《<?php echo $books['bookname'];?>》<i>|</i><a href='../book/book.php?id=<?php echo $bookid; ?>' target='_blank'>查看</a></div>
        <div class="titleTabBar bgGreen lineTB">
          <ul>
            <li class="select"><a href="mybooks.php">小说书目</a></li>
            <li><a href="story_list_content.php">小说内容</a></li>
          </ul>
        </div>
        <form class="mL10 mR10 mTB10" name="form1" action="story_edit.php" enctype="multipart/form-data" method="post" onsubmit="return checkSubmitAdd();">
        <input type="hidden" name="dopost" value="edit" />
        <input type="hidden" name="bookid" value="<?php echo $bookid; ?>" />
          <div class="titleBar bgGrass lineB mB10">
            <div class="fLeft"><strong>书目资料</strong></div>
            <div class="fRight titSecondary white" style="margin-top:5px;"> <em class="mR10">
              <?php if($books['booktype'] == '1'){?>
              <a href='story_add_photo.php?bookid=<?php echo $books['id'];?>'>新增漫画内容</a>
              <?php }else{?>
              <a href='story_add_content.php?bookid=<?php echo $books['id'];?>'>新增小说内容</a>
              <?php }?>
              </em> <em class="mR10"> <a href='story_list_content.php?bookid=<?php echo $books['id'];?>'>小说内容</a> </em> <em class="mR10"> <a href="story_list_chapter.php?bookid=<?php echo $books['id'];?>">书目章节</a> </em> <em class="mR10"> <a href="story_edit.php?bookid=<?php echo $books['id'];?>">书目资料</a> </em></div>
          </div>
          <table cellspacing="1" class="submit">
            <thead>
              <tr>
                <th colspan="2" ><strong>修改书目资料</strong></th>
              </tr>
            </thead>
            <tbody>
              <tr>
                <td width="15%" align="right" valign="top">隶属栏目：</td>
                <td><select name="catid" id="catid">
                    <option value='0'>请选择栏目</option>
                    <?php
									foreach($btypes as $k=>$v){
										if($books['catid']==$k) echo "<option value='$k' selected>$v</option>\r\n";
										else echo "<option value='$k'>$v</option>\r\n";
										foreach($stypes[$k] as $kk=>$vv){
											if($books['catid']==$kk)  echo "<option value='$kk' selected> --$vv</option>\r\n";
											else  echo "<option value='$kk'> --$vv</option>\r\n";
										}
									}
								?>
                  </select></td>
              </tr>
              <tr>
                <td align="right" valign="top">标题：</td>
                <td><input name="bookname" type="text" class="text" id="bookname" value="<?php echo $books['bookname'];?>" size="45" /></td>
              </tr>
              <tr>
                <td align="right" valign="top">图书状态：</td>
                <td><input type="radio" name="status" value="0" <?php if($books['status']==0) echo ' checked';  ?> />
                  连载中
                  <input type="radio" name="status" value="1" <?php if($books['status']==1) echo ' checked';  ?> />
                  已完成连载 </td>
              </tr>
              <tr>
                <td align="right" valign="top">作者：</td>
                <td><input name="author" type="text" class="text" id="author"  value="<?php echo $books['author'];?>" size="8" /></td>
              </tr>
              <tr>
                <td align="right" valign="top">上架时间：</td>
                <td><input name="pubdate" type="text" class="text" id="pubdate" value="<?php echo GetDateTimeMk($books['pubdate']);?>" size="22" /></td>
              </tr>
              <tr>
                <td align="right" valign="top">封面图片：</td>
                <td><input name="litpic" type="file" id="litpic" onchange="SeePic($Obj('picview'),$Obj('litpic'));" size="35" />
                  本地直接上传请点击“浏览”按钮
                  <input name="litpicname" type="hidden" id="litpicname" value="<?php echo $books['litpic']; ?>" />
                  <div class="clear"></div>
                  <img src="<?php if($books['litpic']=='') echo 'images/pview.gif'; else echo $books['litpic']; ?>" alt="封面" name="picview" width="120" height="96" id="picview" /> </td>
              </tr>
              <tr>
                <td align="right" valign="top">关键字：</td>
                <td><input name="keywords" type="text" class="text" id="keywords" value="<?php echo $books['keywords']; ?>" size="50" /></td>
              </tr>
              <tr>
                <td align="right" valign="top">摘要：</td>
                <td><textarea style="width:80%" name="description" cols="35" rows="4" id="description"><?php echo $books['description']; ?></textarea></td>
              </tr>
              <tr>
                <td align="right" valign="top">内容：</td>
                <td><?php GetEditor("body",$books['body'],300,"MemberLit");?></td>
              </tr>
            </tbody>
            <tfoot>
              <tr>
                <td height="45" align="right" valign="top">&nbsp;</td>
                <td height="45"><button class="button2" type="submit">提交</button>
                  <button class="button2 mL10" type="reset" onclick="location.reload();">重置</button></td>
              </tr>
            </tfoot>
          </table>
        </form>
      </div>
      <div class="clear"></div>
    </div>
    <div class="clear"></div>
  </div>
</div>
<?php  include(DEDEMEMBER."/templets/foot.htm"); ?>
</body>
</html>
