<!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="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_add.php"><u>新增连载图书</u></a>]
			&nbsp;
			[<a href="story_catalog.php"><u>连载栏目管理</u></a>]
					</td>
       </tr>
     </table>
   </td>
  </tr>
</table>
			
<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: #E8F2DF;padding:2px 2px 2px 2px;" >
    <table border="0" cellspacing="0" cellpadding="0" width="98%">
       <tr>
         <td width='50%'>
    <form name='form1' action='story_list_content.php' method='get'>
    <table border="0" cellspacing="0" cellpadding="0">
       <tr>
         <td style='padding-left:10px;padding-right:10px;'>关键字:</td>
         <td style='padding-right:10px;'><input name="keyword" type="text" id="keyword" value="<?php echo $keyword; ?>" size="30" /></td>
         <td style='padding-right:10px;'>
         <select name='booktype'>
         <option value='-1'>类型</option>
         <option value='0'>小说</option>
         <option value='1'>漫画</option>
         </select>
         </td>
         <td><input type="submit" name="Submit" value="搜 索" /></td>
        </tr>
      </table>
    </form>  
     </td>
    <td align='right'>
    	<?php
    	if(!empty($bookid)){
    		echo "<a href='story_add_content.php?bookid={$bookid}'>添加内容</a> | ";
    		echo "<a href='story_list_chapter.php?bookid={$bookid}'>本书章节</a> | ";
    		echo "<a href='story_list_content.php'>所有内容</a>";
    	}
    	?>
    </td>
    </tr>
   </table>
   </td>
  </tr>
</table>
<table width="96%" 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="24%">文章标题</td>
    <td width="32%" align='left'>图书名称/章节名称/章节内序号</td>
    <td width="12%">添加时间</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[]' value='<?php  echo $row['id'];  ?>' /> </td>
    <td align='left'> <?php echo $row['title']; ?> </td>
    <td align='left'>
    	<?php echo "<a href='story_list_content.php?bookid={$row['bookid']}'>".$row['bookname']."</a>/"; ?>
    	<?php echo "<a href='story_list_content.php?bookid={$row['bookid']}&chapid={$row['chapterid']}'>".$row['chaptername']."</a>/{$row['sortid']}"; ?>
    </td>
    <td> <?php echo GetDateMk($row['addtime']); ?> </td>
    <td> 
    	<a href='javascript:PreViewCt(<?php echo $row['id']; ?>,<?php echo $row['booktype']; ?>);'>预览</a> |
    	<?php
    	if($row['booktype']==1) $editfile = 'story_photo_edit.php?cid=';
    	else $editfile = 'story_content_edit.php?cid=';
    	?>
    	<a href='<?php echo $editfile.$row['id']; ?>'>修改</a> |
      <a href='javascript:DelStoryContent(<?php echo $row['id']; ?>)'>删除</a>
    </td>
  </tr>
<?php 
}
?>  
</table>
<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;" >
<?php echo $dlist->GetPageList(7);?>
		  </td>
  </tr>
</table>
</div>
</body>
</html>