<!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=utf-8'>
<title>连载章节列表</title>
<link href="css_body.css" rel="stylesheet" type="text/css" />
<link href="company_style.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">
<!--
#editchapter {
	position:absolute;
	left:455px;
	top:64px;
	width:250px;
	height:150px;
	z-index:1;
	background-color: #F2FDDB;
	border:1px solid #889D8F;
	padding:8px;
	display:none
}
.bline{
	text-align:left;
}
-->
</style>
</head>
<body leftmargin='8' topmargin='8'>
<center>
<div id="container">
<!-- 头部开始 -->
<?php  include(dirname(__FILE__)."/head.htm"); ?>
<!-- 中部开始 -->

    <div id="manage_company_main">
		<!-- 中部左边开始 -->
      <?php  include(dirname(__FILE__)."/menu.php"); ?>
		<!-- 中部右边开始 -->
      <div id="myask_right">
        	<div id="myask_info">
            	<div class="myask_title">
                	<ul><li>连载章节列表</li></ul>
                    <div class="subask">
			[<a href="story_books.php"><u>连载图书管理</u></a>]
			&nbsp;
			[<a href="story_list_content.php"><u>连载内容管理</u></a>]
					</div>
                </div>
            </div>
<br>


<table width="100%" border="0" cellpadding="5" cellspacing="1" align="center" style=" border:1px solid #E2F5BC;line-height:25px;margin:auto;">
  <tr>
    <td style="background: #E8F2DF;padding:2px 2px 2px 2px;" >
    <form name='form1' action='story_list_chapter.php' method='get'>
    关键字:
     <input name="keyword" style="width:150px" type="text" id="keyword" value="<?php echo $keyword; ?>" size="30" />
     <input type="submit" name="Submit" value="搜 索" />
    
	<?php
    	if(!empty($bookid)){
    		echo "<a href='story_add_content.php?bookid={$bookid}'>添加内容</a> | ";
    		echo "<a href='story_list_content.php?bookid={$bookid}'>本书内容</a> | ";
    		echo "<a href='story_list_chapter.php'>所有章节</a>";
    	}
   ?>
	</form>
   </td>
  </tr>
</table>
<form name='form2' action='story_do.php' method='post'>
<input type='hidden' name='action' value='upChapterSort' />
<table width="100%" border="0" cellpadding="1" cellspacing="1" align="center" style=" margin-top:3px; margin-bottom:3px; border:1px solid #E2F5BC;line-height:31px;background:#F9FFE6;">
  <tr align="center" style="background:#F9FFE6;">
    <td width="10%">选择</td>
    <td width="10%">章节序号</td>
    <td width="28%">章节名称</td>
    <td width="28%">隶属图书</td>
    <td>管理项目</td>
  </tr>
<?php
$mylist = $dlist->GetDataList();
while($row = $mylist->GetArray('dm'))
{
?>
  <tr style="background:#ffffff;" align="center">
    <td>
    	<input type='checkbox' name='ids[]' id='ids<?php  echo $row['id'];  ?>' value='<?php  echo $row['id'];  ?>' />
    </td>
    <td>
    	第<input type='text' name='chapnum_<?php echo $row['id']; ?>' value='<?php echo $row['chapnum']; ?>' size='3' />章
    </td>
    <td><input type='text' name='chaptername_<?php echo $row['id']; ?>' value='<?php echo $row['chaptername']; ?>' style='width:96%' /></td>
    <td>
    	<?php echo "<a href='story_list_content.php?bookid={$row['bookid']}'>".$row['bookname']."</a>"; ?>
   </td>
    <td>
    	<a href='story_list_content.php?chapid=<?php echo $row['id']; ?>&bookid=<?php echo $row['bookid']; ?>'>内容(<?php echo $row['postnum']; ?>)</a> |
    	<a href='javascript:EditChapter(<?php echo $row['id']; ?>);'>更新</a> |
      <a href='javascript:DelStoryChapter(<?php echo $row['id']; ?>)'>删除</a>
    </td>
  </tr>
<?php
}
?>
</table>
<table width="100%" border="0" cellpadding="5" cellspacing="3" align="center" style="border:1px solid #E2F5BC;line-height:30px;margin-bottom:3px;">
	<tr>
		 <td>
		 	<input type='button' name='sbt102' value='反选' onClick='ReSelChapter()' />
		 	&nbsp;
		 	<input type='submit' name='sbt1' value='批量修改' />
		 	(批量修改选中项)
		 </td>
  </tr>
</table>
</form>
<table width="100%" border="0" cellpadding="5" cellspacing="1" align="center" style=" border:1px solid #E2F5BC;line-height:30px;margin:auto;">
		<tr>
		  <td style="background:#F9FFE6;" >
<?php echo $dlist->GetPageList(7);?>
		  </td>
  </tr>
</table>
</div>
<div id='editchapter'></div>

</div>
</div>
</div>
</center>
</body>
</html>