
<!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" />
<script language='javascript'>
	function checkSubmit()
  {
     if(document.form1.userid.value==""){
	     alert("用户ID不能为空！");
	     document.form1.userid.focus();
	     return false;
     }
     if(document.form1.uname.value==""){
	     alert("用户名不能为空！");
	     document.form1.uname.focus();
	     return false;
     }
     if(document.form1.pwd.value==""){
	     alert("用户密码不能为空！");
	     document.form1.pwd.focus();
	     return false;
     }
     return 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="19" bgcolor="#EDF9D5"> 
      <table width="96%" border="0" cellspacing="1" cellpadding="1">
        <tr> 
          <td width="24%"><b>&nbsp;&nbsp;<strong>新增帐号</strong></b> </td>
          <td width="76%" align="right"><strong><a href="sys_admin_user.php"><u>管理帐号</u></a></strong></td>
        </tr>
      </table></td>
</tr>
<tr>
    <td height="215" align="center" valign="top" bgcolor="#FFFFFF">
	<form name="form1" action="sys_admin_user_add.php" onSubmit="return checkSubmit();" method="post">
	<input type="hidden" name="dopost" value="add">
  <table width="100%" border="0" cellpadding="0" cellspacing="1" class="tblist">
          <tr> 
            <td width="16%" height="30">用户登录ID：</td>
            <td width="84%" align="left"><input name="userid" type="text" id="userid" size="16" style="width:150">
              （只能用'0-9'、'a-z'、'A-Z'、'.'、'@'、'_'、'-'、'!'以内范围的字符）</td>
          </tr>
          <tr> 
            <td height="30">用户笔名：</td>
            <td align="left"><input name="uname" type="text" id="uname" size="16" style="width:150"> &nbsp;（发布文章后显示责任编辑的名字）</td>
          </tr>
          <tr> 
            <td height="30">用户密码：</td>
            <td align="left"><input name="pwd" type="text" id="pwd" size="16" style="width:150"> &nbsp;（只能用'0-9'、'a-z'、'A-Z'、'.'、'@'、'_'、'-'、'!'以内范围的字符）</td>
          </tr>
          <tr> 
            <td height="30">用户组：</td>
            <td align="left">
			    <select name='usertype' style='width:150'>
			  	<?php 
			  	$dsql->SetQuery("Select * from #@__admintype order by rank asc");
			  	$dsql->Execute("ut");
			  	while($myrow = $dsql->GetObject("ut"))
			  	{
			  		echo "<option value='".$myrow->rank."'>".$myrow->typename."</option>\r\n";
			  	}
			  	?>
			  </select>            </td>
          </tr>
          <tr> 
            <td height="30">授权频道：</td>
            <td align="left">
			<select name="typeid[]" style="width:250" size="10" id="typeid" multiple>
        <option value="0" selected>--所有频道--</option>
				<?php
				$dsql->SetQuery("Select ID,typename From #@__arctype where reID=0 And (ispart=0 Or ispart=1)");
        $dsql->Execute('op');
        while($row = $dsql->GetObject('op')){
	        echo "<option value='{$row->ID}'>{$row->typename}</option>\r\n";
	        $dsql->SetQuery("Select ID,typename From #@__arctype where reID={$row->ID} And (ispart=0 Or ispart=1)");
          $dsql->Execute('s');
          while($row2 = $dsql->GetObject('s')){
	          echo "<option value='{$row->ID}-{$row2->ID}'>　--{$row2->typename}</option>\r\n";
	        }
        }
				?>
       </select>
       <br/>
       使用 Ctrl 进行多选，如果选择了顶级目录，子目录将自动被授权为可管理。			 </td>
          </tr>
          <tr> 
            <td height="30">真实姓名：</td>
            <td align="left"><input name="tname" type="text" id="tname" size="16" style="width:150"> &nbsp;</td>
          </tr>
          <tr> 
            <td height="30">电子邮箱：</td>
            <td align="left"><input name="email" type="text" id="email" size="16" style="width:150"> &nbsp;</td>
          </tr>
          <tr> 
            <td height="30">&nbsp;</td>
            <td align="left"><input type="submit" name="Submit" value=" 增加用户 " class="inputbut"/></td>
          </tr>
        </table>
      </form>
	  </td>
</tr>
</table>
</body>
</html>