<!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="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">
<!--
#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>
<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_add.php"><u>新增连载图书</u></a>]</div>
                </div>
            </div>
<br>


<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>选择</td>
    <td>书本名称</td>
    <td>隶属栏目</td>
    <td>创建时间</td>
    <td>管理项目</td>
  </tr>
<?php
$mylist = $dlist->GetDataList();
while($row = $mylist->GetArray('dm'))
{


?>
  <tr style="background:#ffffff;" align="center">
    <td width="8%"> <input type='checkbox' name='ids[]' value='<?php  echo $row['id'];  ?>' /> </td>
    <td width="32%"> <?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="16%"> <?php echo GetDateMk($row['senddate']); ?> </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 }
    	if($cfg_book_ifcheck != '是' || $row['ischeck'] ==0 )
	{
		echo "<a href=\"story_edit.php?bookid=$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
}
?>
</table>

</div>
            <div id="myask_list_info"><?php echo $dlist->GetPageList(7);?></div>

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