<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html>
<head>
<title>信息添加编辑</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" href="template/default/content/css/style.css">
<script language="javascript" type="text/javascript" src="DatePicker/WdatePicker.js"></script>
<script src="template/default/tree/js/admincp.js?SES" type="text/javascript"></script>
<script src="template/default/js/jquery-1.4.2.min.js" type="text/javascript"></script>
<script type="text/javascript"> 

</script>
</head>
<body class="bodycolor">
<table width="90%" border="0" align="center" cellpadding="3" cellspacing="0" class="small">
  <tr>
    <td class="Big"><img src="template/default/content/images/notify_new.gif" align="absmiddle"><span class="big3"> 论坛版块管理</span>&nbsp;&nbsp;&nbsp;&nbsp;
	<span style="font-size:12px; float:right;margin-right:20px;">
	
	<a href="admin.php?ac=bbs&fileurl=knowledge" style="font-size:12px;"><<返回论坛</a></span>
    </td>
  </tr>
</table>
<script Language="JavaScript"> 
function CheckForm()
{
   if(document.save.title.value=="")
   { alert("主题不能为空！");
     document.save.title.focus();
     return (false);
   }
   
   return true;
}
function sendForm()
{
   if(CheckForm())
      document.save.submit();
}

var rowtypedata = [
	[ [5, '<div>名称：<input name="newname[]" type="text" class="BigInput" value="" size="40" />   类型：<select name="newtype[]"><option value="1" selected="selected">发贴直接显示</option><option value="2">发贴需要审批</option></select>  <a href="javascript:;" style="font-size:12px;" onClick="deleterow(this)">删除此项</a></div>']],
];
</script>

<form name="save" method="post" action="?ac=<?php echo $ac?>&fileurl=<?php echo $fileurl?>&do=bbsclass">
	<input type="hidden" name="view" value="save" />
	 <table class="TableBlock" border="0" width="90%" align="center">
		<tr>
		  <td nowrap class="TableHeader">名称</td>
		  <td nowrap class="TableHeader" width="90">版主</td>
		  <td width="90" align="center" nowrap class="TableHeader">类型</td>
			<td width="90" align="center" nowrap class="TableHeader">发布人</td>
			  <td width="60" align="center" class="TableHeader">操作</td>  	  	
		</tr>
<?foreach ($result as $row) {?>
	<input type="hidden" name="id[]" value="<?php echo $row['id']?>" />	
		<tr>
		  <td nowrap class="TableData"><input name="name[<?php echo $row['id']?>]" type="text" class="BigInput" value="<?php echo $row['name']?>" size="40" /></td>
		  <td nowrap class="TableData"><textarea name="classadmin[<?php echo $row['id']?>]" cols="30" rows="2" class="BigInput"><?php echo trim($row['classadmin'])?></textarea></td>
		  <td nowrap class="TableData"><select name="type[<?php echo $row['id']?>]">
  <option value="1" <?php if($row['type']=='1'){?>selected="selected"<?php }?>>发贴直接显示</option>
   <option value="2" <?php if($row['type']=='2'){?>selected="selected"<?php }?>>发贴需要审批</option>
</select></td>
			<td align="center" nowrap class="TableData"><?php echo get_realname($row['uid'])?></td>
		  <td align="center" class="TableData"><a href="admin.php?ac=<?php echo $ac?>&fileurl=<?php echo $fileurl?>&do=bbsclass&id=<?php echo $row['id']?>" >删除</a>		 </td>	  	
		</tr>
<?}?>
<tr>
		  <td colspan="5" nowrap class="TableData">
		  
		  <table width="100%">
		   
	
				<tr><td colspan="7"><div><a href="#" onClick="addrow(this, 0)" class="addtr">+增加新版块</a></div></td></tr>
			</table>
		  
		  
      </td>
	    </tr>
		<tr align="center" class="TableControl">
			<td colspan="5" nowrap>
			<input type="button" value="保存" class="BigButtonBHover" onClick="sendForm();">&nbsp;	    </td>
	  </tr>
	 </table>
  
</form>

 
</body>
</html>
