<div id="man">
<div id="man_1">
贴吧管理
</div>
<div id="man_inp">

<?php
if ($action=='m') {
	$discuss_pub ? $discuss_pub_checked1 = 'checked' : $discuss_pub_checked0 = 'checked';
	print <<<EOT
<form action="$self_template.php?action=m_up" enctype="multipart/form-data" method="POST">
<input  type="hidden" value="$id" name="id">
<div id="pub_inp">
<ul >
<li   class="li_1">贴吧说明:</li>
<li   class="li_2"><textarea name="discuss_presentation"  rows="5" cols="50">$discuss_presentation</textarea></li>
<li   class="li_3">限制200个字符以内!</li>
</ul>
</div>


<div id="pub_inp">
<ul >
<li   class="li_1">限制发表:</li>
<li   class="li_2">
<input type="radio" name="discuss_pub" value="1" $discuss_pub_checked1 />不限制
<input type="radio" name="discuss_pub" value="0" $discuss_pub_checked0 />限制
</li>
<li   class="li_3">如开启限制,本贴吧管理员可以发布发表!</li>
</ul>
</div>

<div id="pub_inp">
<ul >
<li   class="li_1">添加管理员:</li>
<li   class="li_2">
<input type="text" style="width:180" value="$discuss_management" name="discuss_management" >
</li>
<li   class="li_3">管理员人数限制3个人以内,多个请以"|"符号区隔开来 列:超级大帅哥|蚊子</li>
</ul>
</div>


<div id="pub_inp">
<ul >
<li   class="li_1">会员密码:</li>
<li   class="li_2"><input type="password" style="width:180" name="u_password" ></li>
</textarea></li>
<li   class="li_3">上面如有改动,本项必须填写!</li>
</ul>
</div>

<div  align="center">
<input class="btn" type="submit" value=" 提 交 ">
</div>

</form>

EOT;

}
else {
	print <<<EOT
<table border="1" width="100%">
<tr align="center">
<td width="5%"><b>I D</b></td>
<td width="55%"><b>贴吧名称</b></td>
<td width="20%"><b>创建时间</b></td>
<td width="20%"><b>操作</b></td>
</tr>
EOT;
	while ($List =  sql_return($query,'FetchRow')){
		$discuss_id = $List['discuss_id'];
		$discuss_title = $List['discuss_title'];
		$discuss_uptimes = date("Y-m-d H:i:s",$List['discuss_uptimes']);

		print <<<EOT
<tr align="center">
<td>$discuss_id</td>
<td  align="left">$discuss_title</td>
<td>$discuss_uptimes</td>
<td><a href="javascript:axjaUrl('get','../user/$self_template.php','action=m&id=$discuss_id','MainBody');">修改</a></td>
</tr>
EOT;
}
print <<<EOT
</table>
EOT;
}
?>


</div>
</div>
