<!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>
<script language='javascript' src='main.js'></script>
<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 }
.current {border:1px solid #98CAEF;padding:5px;background:#FFFEF4;color:#FF0000;}
</style>
<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_notice.php" name="form1" method="get">
      <input name="gid" type="hidden" value="<?php echo $gid?>" />
	    <table width="425" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td width="62">&nbsp;关键字：</td>
            <td width="111" align="left">
       	    <input name="keyword" type="text" id="keyword" size="12" style="width:100" value="<?php echo $keyword?>">            </td>
            <td width="52">&nbsp;用户：</td>
            <td width="103"><input name="username" type="text" id="username" size="12" style="width:100" value="<?php echo $username?>" /></td>
            <td width="101" align="center"><input name="imageField" type="submit" class="inputbut" value="搜索"/></td>
          </tr>
        </table>
	  </form>
    </td>
  </tr>
</table>

<table width="96%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle" style="	background:#E2F5BC;">
  <tr>
    <td width="100%" height="24"><table width="99%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td>
          <a style="margin-left:25px;" href="group_main.php">圈子列表</a> 
          <a href="group_edit.php?ID=<?php echo $gid?>"><span id="cate_1" >基本资料</span></a> 
          <a href="group_user.php?gid=<?php echo $gid?>"><span id="cate_2">成员管理</span></a>
          <a href="group_guestbook.php?gid=<?php echo $gid?>"><span id="cate_3">留言管理</span></a>
          <span id="cate_4" class="current">公告管理</span>
          </td>
        </tr>
      </table></td>
  </tr>
  <tr >
    <td height="26" align="left" bgcolor="#FFFFFF">  
    <!--成员管理-->
    <div id="cate_info_2">
      <table width="100%" border="0" cellpadding="1" cellspacing="1" bgcolor="#E2F5BC">
        <tr>
          <td width="39%" height="28" align="center" bgcolor="#FEFCEF">标题</td>
          <td width="14%" height="28" align="center" bgcolor="#FEFCEF">发布人</td>
          <td width="19%" height="28" align="center" bgcolor="#FEFCEF">时间</td>
          <td width="28%" height="28" align="left" bgcolor="#FEFCEF">操作</td>
        </tr>
        <?php
        $mylist = $dlist->GetDataList();
  		while($rs = $mylist->GetArray('dm'))
		{
		?>
        <tr height="28" bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='#EDF7D0';" onMouseOut="javascript:this.bgColor='#FFFFFF';">
          <td height="28" align="center" ><a href="/group/group_notice.php?ID=<?php echo $rs['id']?>" target="_blank"><?php echo $rs['title']?></a></td>
          <td height="28" align="center" ><a href="member_view.php?ID=<?php echo $rs['userid']?>"><?php echo $rs['uname']?></a></td>
          <td height="28" align="center" ><?php echo GetDateMk($rs['stime'])?></td>
          <td height="28" ><a href="group_notice.php?action=edit&ID=<?php echo $rs['id']?>&gid=<?php echo $gid?>">修改</a> | <a href="group_notice.php?action=del&ID=<?php echo $rs['id']?>&gid=<?php echo $gid?>" onClick="return(confirm('删除后无法恢复,您确定删除吗?'))">删除</a></td>
        </tr>
        <?php
		}
		?>
        <tr>
          <td height="28" colspan="4">&nbsp;&nbsp;<?php echo $dlist->GetPageList(7);?></td>
        </tr>

      </table>
    </div>
    </td>
  </tr>
</table>
<?php
if($action=="edit"){
?>
<form action="group_notice.php" method="post">
<input name="gid" type="hidden" value="<?php echo $gid;?>" />
<input name="ID" type="hidden" value="<?php echo $ID;?>" />
<input name="action" type="hidden" value="save" />
<table width="96%" border="0" align="center" cellpadding="2" cellspacing="2">
  <tr>
    <td width="8%" height="30" align="left"><strong>标题：</strong></td>
    <td colspan="2"><input name="title" type="text" id="title" value="<?php echo $title;?>" size="30" /></td>
  </tr>
  <tr>
    <td><strong>内容:</strong></td>
    <td width="45%"><?php 
	GetEditor("notice",$notice,300,"Small");
	?></td>
    <td width="47%">&nbsp;</td>
  </tr>
  <tr>
    <td height="30" colspan="3"><input type="submit" name="button" id="button" value="保 存" class="inputbut"/></td>
  </tr>
</table>
</form>
<?php
}
?>
</body>
</html>