<!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" />
<style type="text/css">
.rb{ border-right:1px solid #98CAEF }
.tb{ border-top:1px solid #98CAEF }
</style>
<script type="text/javascript">
function CheckAll(form){
	for (var i=0;i<form.elements.length;i++){
		var e = form.elements[i];
		e.checked == true ? e.checked = false : e.checked = true;
	}
}
</script>
</head>
<body>
<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 height="30" align="center" bgcolor="#FAFCEF">
      <form action="group_threads.php" name="form1" method="get">
	    <table width="380" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td width="69">&nbsp;关键字：</td>
            <td width="83" align="left">
           	  <input name="keyword" type="text" id="keyword" size="12" style="width:100" value="<?php echo $keyword?>">            </td>
            <td width="60">&nbsp;用户：</td>
            <td width="87"><input name="username" type="text" id="username" size="12" style="width:100" value="<?php echo $username?>" /></td>
            <td width="81" align="center"><input name="imageField" type="submit" class="inputbut" value="搜索"/></td>
          </tr>
        </table>
	  </form>
    </td>
  </tr>
</table>
<form action="group_threads.php" method="post" onSubmit="return(confirm('删除后无法恢复,您确定删除吗?'))">
<table width="96%" border="0" align="center" cellpadding="1" cellspacing="0" style="background:#E2F5BC;">
  <tr>
    <td width="53%" height="30" align="left" bgcolor="#E2F5BC"><font color="#458146"> 　<strong>所有主题</strong></font></td>
    <td width="47%" height="30" align="right" bgcolor="#E2F5BC">&nbsp;<a href="group_threads.php?orders=digest" ><font color="#458146">精品区</font></a> <font color="#458146">|</font> <a href="group_threads.php?orders=close" ><font color="#458146">已关闭</font></a><font color="#458146">|</font> <a href="group_threads.php?orders=rep"><font color="#458146">最多回复</font></a>&nbsp;&nbsp;</td>
  </tr>
</table>
<table width="96%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle" style="background:#E2F5BC;">
  <tr>
    <td height="30" align="center" bgcolor="#FAFCEF">
<table width="100%" border="0" align="center" cellpadding="1" cellspacing="1" >
  <tr>
    <td width="3%" height="24" align="left" bgcolor="#FDFEE9"></td>
    <td width="5%" height="24" align="left" bgcolor="#FDFEE9">点击</td>
    <td width="5%" height="24" align="left" bgcolor="#FDFEE9">回复</td>
    <td width="44%" height="24" align="left" bgcolor="#FDFEE9">标题/圈子</td>
    <td width="16%" height="24" align="left" bgcolor="#FDFEE9">作者</td>
    <td width="15%" height="24" align="left" bgcolor="#FDFEE9">最后回复</td>
    <td width="12%" align="left" bgcolor="#FDFEE9">操作</td>
  </tr>
  <?php  
  $mylist = $dlist->GetDataList();
  while($row = $mylist->GetArray('dm'))
  {
  $subject = $row['subject'];
  if($row['digest']) $titleleft .= "<span style='color:green;'>[精]</span>";
  if($row['displayorder']) $titleleft .= "<span style='color:red;'>[顶]</span>";
  if($row['closed']) $subject = "<s>".$subject."</s>";
  $subject = $titleleft.$subject;
  $titleleft = "";
  ?>
  <tr>
    <td height="28" align="center" bgcolor="#FFFFFF"><input name="Ids[]" type="checkbox" id="Ids-<?php echo $row['tid']?>" value="<?php echo $row['tid']?>" /></td>
    <td height="28" align="left" bgcolor="#FFFFFF"><?php echo $row['views']?></td>
    <td height="28" align="left" bgcolor="#FFFFFF"><?php echo $row['replies']?></td>
    <td height="28" align="left" bgcolor="#FFFFFF"><?php echo $subject?>/<a href="group_edit.php?ID=<?php echo $row['gid']?>"><?php echo GetGroupname($row['gid'])?></a></td>
    <td height="28" align="left" bgcolor="#FFFFFF"><a href="member_view.php?ID=<?php echo $row['authorid']?>"><?php echo $row['author']?></a> [<?php echo GetDateMk($row['dateline'])?>]</td>
    <td height="28" align="left" bgcolor="#FFFFFF"><?php echo $row['lastposter']?> [<?php echo GetDateMk($row['lastpost'])?>]</td>
    <td height="28" align="left" bgcolor="#FFFFFF"><a href="group_threads.php?action=del&ID=<?php echo $row['tid']?>" onClick="return(confirm('删除后无法恢复,您确定删除吗?'))">删除</a>|<a href="group_threads.php?action=close&ID=<?php echo $row['tid']?>">关闭</a>|<a href="group_threads.php?action=digest&ID=<?php echo $row['tid']?>">加精</a>|<a href="group_threads.php?action=top&ID=<?php echo $row['tid']?>">置顶</a></td>
  </tr>
  <?php
  }
  ?>
  <tr>
    <td height="28" colspan="7" align="left" bgcolor="#FDFEE9">
      <table width="100%" border="0">
        <tr>
          <td width="26%">&nbsp;<input type="button" class="inputbut" onClick="CheckAll(this.form)" value="反 选" />
            <input type="submit" class="inputbut" onClick="return(confirm('删除后无法恢复,您确定删除吗?'))" value="删除" /></td>
          <td width="74%" align="right"><?php echo $dlist->GetPageList(7);?>&nbsp;&nbsp;</td>
        </tr>
      </table></td>
  </tr>
</table>
</td>
</tr>
</table>
</form>
</body>
</html>