<!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"><span class="fLeft">
          <?php if($bookname != ''){?>
          《<?php echo $bookname?>》<i>|</i><a href='../book/book.php?id=<?php echo $bookid; ?>' target='_blank'>查看</a>
          <?php }else{echo "小说内容<i>|</i><a href='index.php'>小说频道</a>";}?>
          </span> <span class="fRight mR10">
          <?php
if(!empty($bookid)){
							?>
          <div class="titPublish icon"><a href="story_add_content.php?bookid=<?php echo $bookid; ?>">添加内容</a><i>|</i> <a href="story_list_content.php">所有内容</a></div>
          <?php
}
							?>
          </span></div>
        <div class="titleTabBar bgGreen lineTB">
          <ul>
            <li><a href="mybooks.php">小说书目</a></li>
            <li class="select"><a href="story_list_content.php">小说内容</a></li>
            <li><a href="story_stow.php">我的收藏夹</a></li>
          </ul>
        </div>
        <form name="form2" class="mL10 mR10 mTB10">
          <?php if(isset($bookid)&&$bookid != '0'){?>
          <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($booktype == '1'){?>
              <a href='story_add_photo.php?bookid=<?php echo $bookid; ?>'>新增漫画内容</a>
              <?php }else{?>
              <a href='story_add_content.php?bookid=<?php echo $bookid; ?>'>新增小说内容</a>
              <?php }?>
              </em> <em class="mR10"> <a href="story_list_content.php?bookid=<?php echo $bookid; ?>">小说内容</a> </em> <em class="mR10"> <a href="story_list_chapter.php?bookid=<?php echo $bookid; ?>">书目章节</a> </em> <em class="mR10"> <a href="story_edit.php?bookid=<?php echo $bookid; ?>">小说书目</a> </em></div>
          </div>
          <?php }?>
          <table cellspacing="1" class="list">
            <thead>
              <tr>
                <th >标题</th>
                <th width="10%">章节 </th>
                <th width="10%">隶属书目 </th>
                <th width="10%">添加时间 </th>
                <th width="10%">管理</th>
              </tr>
            </thead>
            <tbody>
            
            {dede:datalist}
            <tr>
              <td><input type='hidden' name='ids[]' value='<?php  echo $fields['id'];  ?>' />
                <a href='javascript:PreViewCt(<?php echo $fields['id']; ?>,<?php echo $fields['booktype']; ?>);'><?php echo $fields['title']; ?></a></td>
              <td align="center"><?php echo "<a href='story_list_content.php?bookid={$fields['bookid']}&chapid={$fields['chapterid']}'>".$fields['chaptername']."</a> <small>({$fields['sortid']})</small>"; ?></td>
              <td align="center"><?php echo "<a href='story_list_content.php?bookid={$fields['bookid']}'>".$fields['bookname']."</a>"; ?></td>
              <td align="center"><?php echo GetDateMk($fields['addtime']); ?></td>
              <td align="center"><?php
								if($fields['booktype']==1) $editfile = 'story_photo_edit.php?cid=';
								else $editfile = 'story_content_edit.php?cid=';
							?>
                <a href='<?php echo $editfile.$fields['id']; ?>'>修改</a> &nbsp; <a href='javascript:DelStoryContent(<?php echo $fields['id']; ?>)'>删除</a></td>
            </tr>
            {/dede:datalist}
            </tbody>
            
            <tfoot>
              <tr>
                <td colspan="6"><div class="pages mTB10 fRight">{dede:pagelist listsize=5/}</div>
                  <div class="clear"></div></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>
