<!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" />
<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 bgcolor="#EDF9D5" 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?ischeck=1"><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;" >
    <form name='form1' action='story_books.php' method='get'>
    <table width="96%" border="0" cellspacing="0" cellpadding="0">
       <tr>
         <td width="13%" align="center">关键字:</td>
         <td width="27%"><input name="keyword" type="text" id="keyword" value="<?php echo $keyword; ?>" size="30" /></td>
         <td width="18%">
         <select name="catid" id="catid">
   <option value='0'>请选择栏目</option>
   <?php
    foreach($btypes as $k=>$v){
    	echo "<option value='$k'>$v</option>\r\n";
    	foreach($stypes[$k] as $kk=>$vv){
    		echo "<option value='$kk'> --$vv</option>\r\n";
    	}
    }
    ?>
              </select>
              </td>
              <td width="42%"><input type="submit" name="Submit" value="搜 索" class="inputbut"/></td>
            </tr>
      </table>
    </form>
   </td>
  </tr>
</table>
<form name='form2'>
<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>选择</td>
    <td>书本名称</td>
    <td>隶属栏目</td>
    <td>创建时间</td>
     <td>审核</td>
    <td>管理项目</td>
  </tr>
<?php
$mylist = $dlist->GetDataList();
while($row = $mylist->GetArray('dm'))
{
	if($row['ischeck'] == 1){
		$row['ischeck']='已审核';
	}else{
		$row['ischeck']='未审核 <a href="story_books.php?action=checked&id='.$row['id'].'">审核</a>';
	}
?>
  <tr style="background:#ffffff;" align="center">
    <td width="8%"> <input type='checkbox' name='ids' value='<?php  echo $row['id'];  ?>' /> </td>
    <td width="36%"> <?php
    	if($row['litpic']!=''){
    		echo "<img src='{$row['litpic']}' align='left' style='padding:2px' height='50'>";
    	}else{
    		echo "<img src='images/booknopic.gif' align='left' style='padding:2px' height='50'>";
    	}
    	echo "<a href='../book/book.php?id={$row['id']}' target='_blank'>".$row['bookname']."</a>";
    	if($row['booktype']!=1) echo "(<font color='#558A20'>小说</font>内容：{$row['postnum']})";
    	else echo "(<font color='#AB8110'>漫画</font>内容：{$row['postnum']})";
    	?>
    </td>
    <td width="12%"> <?php echo $row['classname']; ?> </td>
    <td width="12%"> <?php echo GetDateMk($row['senddate']); ?> </td>
     <td width="12%"> <?php echo $row['ischeck']; ?> </td>
    <td>
    <?php  if($row['booktype']!=1){ ?>
      <a href='story_add_content.php?bookid=<?php echo $row['id']; ?>'>添加</a> |
    <?php }else{ ?>
    	<a href='story_add_photo.php?bookid=<?php echo $row['id']; ?>'>添加</a> |
    <?php } ?>
      <a href='story_edit.php?bookid=<?php echo $row['id']; ?>'>修改</a> |
    	<a href='story_list_content.php?bookid=<?php echo $row['id']; ?>'>内容</a> |
    	<a href='story_list_chapter.php?bookid=<?php echo $row['id']; ?>'>章节</a> |
      <a href='javascript:DelStory(<?php echo $row['id']; ?>)'>删除</a>
    </td>
  </tr>
<?php
}
?>
<tr>
    <td colspan='6' style="background:#EDF3DC; padding:6px 0px 0px 6px">
<a href="javascript:selAll()" class="inputbutx">全选</a>
<a href="javascript:noSelAll()" class="inputbutx">取消</a>
<a href="javascript:DelAllBooks()" class="inputbutx">删除</a>
    </td>
  </tr>
</form>
</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;" align="center">
<?php echo $dlist->GetPageList(7);?>
		  </td>
  </tr>
</table>
</div>
</body>
</html>