<!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">

</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"> 桌面权限<?php echo $_title['name']?></span>&nbsp;&nbsp;&nbsp;&nbsp;
	<span style="font-size:12px; float:right;margin-right:20px;">
	
	<a href="admin.php?ac=home&fileurl=mana" 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();
}
</script>
<form name="save" method="post" action="?ac=<?php echo $ac?>&fileurl=<?php echo $fileurl?>&do=add">
<input type="hidden" name="view" value="edit" />
	<input type="hidden" name="id" value="<?php echo $row['id']?>" />
 <table class="TableBlock" border="0" width="90%" align="center">
  	<tr>
  		<td nowrap class="TableContent" width="90">名称：<? get_helps()?></td>
  	  <td class="TableData">
  	  	<input type="text" class="BigInput" name="title" value="<?php echo $row['title']?>" size=20>
  	  </td>  	  	
  		 
	  <td nowrap class="TableContent" width="90">状态:</td>
  	  <td class="TableData"><input type="radio" name="type1" value="1" <? if ($row['type1']=="1"){?>checked="checked" <? } ?> class="checkbox" />正常 <input type="radio" name="type1" value="2" <? if ($row['type1']=="2"){?>checked="checked" <? } ?> class="checkbox" />禁用 </td>  	  	
  	</tr>
	<?php if($row['id']==''){?>
    <tr>
  		<td nowrap class="TableContent" width="90">类型：</td>
  	  <td class="TableData">
  	  	<input type="radio" name="type" value="1" <? if ($row['type']=="1"){?>checked="checked" <? } ?> class="checkbox" />汇总版块 <input type="radio" name="type" value="2" <? if ($row['type']=="2"){?>checked="checked" <? } ?> class="checkbox" />内容版本 <input type="radio" name="type" value="3" <? if ($row['type']=="3"){?>checked="checked" <? } ?> class="checkbox" />统计版块  
  	  </td>  	  	
  		<td nowrap class="TableContent" width="90">模块:</td>
  	  <td class="TableData"><input type="text" class="BigInput" name="modname" value="<?php echo $row['modname']?>" size=30></td> 	  	
  	</tr>
	<?php }?>
	<?php if($row['id']==''){?>
  	<tr>
  		<td nowrap class="TableContent">检测表:</td>
  	  <td class="TableData" colspan="3">
     <input type="text" class="BigInput" name="tables" value="<?php echo $row['tables']?>" size=20>
  	  </td>
  	</tr>
	<?php }?>
  	<tr>
  		<td nowrap class="TableContent">排序:</td>
  	  <td class="TableData" colspan="3">
     <input type="text" class="BigInput" name="numbers" value="<?php echo $row['numbers']?>" size=20>
  	  </td>
  	</tr>
	<tr>
  		<td nowrap class="TableContent">使用人员:</td>
  	  <td class="TableData" colspan="3">
     <?php
	  get_pubuser(2,"user",$user['user'],"+选择人员",60,4)
	  ?>
	  <br>注：为空表示所有人员可用！
  	  </td>
  	</tr>
	
	
    <tr align="center" class="TableControl">
    	<td colspan="4" nowrap>
    	<input type="button" value="保存" class="BigButtonBHover" onClick="sendForm();">&nbsp;
 
	    </td>
  </tr>
 </table>
  
</form>

 
</body>
</html>
