<!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">小说书目<i>|</i><a href='index.php'>小说频道</a></span><span class="fRight mR10 titPublish icon"><a href='story_add.php'>添加书目</a></span></div>
        <div class="titleTabBar bgGreen lineTB">
          <ul>
            <li><a href="mybooks.php">小说书目</a></li>
            <li><a href="story_list_content.php">小说内容</a></li>
            <li class="select"><a href="story_stow.php">我的收藏夹</a></li>
          </ul>
        </div>
        <form name="form2" class="mL10 mR10 mTB10">
          <table cellspacing="1" class="list">
            <thead>
              <tr>
                <th >小说名称</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 $row['id'];  ?>' />
                <?php
						echo "<a href='../book/book.php?id={$fields['id']}' target='_blank'>".$fields['bookname']."</a>";
						if($fields['booktype']!=1) echo " (小说内容:{$fields['postnum']})";
						else echo " (漫画内容:{$fields['postnum']})";
				?></td>
              <td align="center"><?php echo $fields['classname']; ?></td>
              <td align="center"><?php echo GetDateMk($fields['senddate']); ?></td>
              <td align="center"><?php  if($fields['booktype']!=1){ ?>
                <a href='story_add_content.php?bookid=<?php echo $fields['id']; ?>'>添加</a> |
                <?php }else{ ?>
                <a href='story_add_photo.php?bookid=<?php echo $fields['id']; ?>'>添加</a> |
                <?php } ?>
                <?php if($cfg_book_ifcheck != '是' || $fields['ischeck'] ==0 ){ ?>
                <a href="story_edit.php?bookid=<?php echo $fields['id'];?>">修改</a> |
                <?php } ?>
                <a href='story_list_content.php?bookid=<?php echo $fields['id']; ?>'>内容</a> | <a href='story_list_chapter.php?bookid=<?php echo $fields['id']; ?>'>章节</a> | <a href='javascript:DelStory(<?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>
