<?
include "../inc/config.php";
include "../../inc/inc.php";
$id=$_GET['id'];
$result=mysql_query("select * from user where id=$id");
$rs=mysql_fetch_array($result);
?>
<HTML>
<HEAD>
<TITLE>新增管理员</TITLE>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<SCRIPT language=Javascript type=text/Javascript>
function CheckInput(form)
{
if(form.account.value==""||form.account.value==null){
alert("请填写帐号!");
form.account.focus();
return false;
}
if(form.psw.value==""||form.psw.value==null){
alert("请填写密码!");
form.psw.focus();
return false;
}
if(form.name.value==""||form.name.value==null){
alert("请填写用户姓名!");
form.name.focus();
return false;
}
if(form.account.value=="postmaster"){
alert("不能填写postmaster帐号");
form.name.focus();
return false;
}
}
</SCRIPT>
<link href="../css/main.css" rel="stylesheet" type="text/css">
<BODY class=iframe-right-body>
<FORM name=adminActionForm onSubmit="return CheckInput(this);" action=saveinitUser.php method=post>
<TABLE class=table-width cellSpacing=0 cellPadding=6 align=center border=0>
<TBODY>
<TR class=h-dashed>
<TD>当前位置:<A
href="../right.php">桌面</A>
>用户管理>新增管理员</TD>
<TD noWrap align=right><A
href="../thirdhtml/help.html"><IMG height=20
src="../images/icon-help.gif" width=20 align=absMiddle
border=0> 寻求帮助</A></TD>
</TR></TBODY></TABLE>
<TABLE width="100%" border=0>
<TBODY>
<TR>
<TD class=table-list-title>【管理员资料修改】</TD>
</TR></TBODY></TABLE>
<DIV class=font align=left><INPUT id=submit type=submit value="保 存" name=submit>
<INPUT id=reset type=reset value="重 置" name=reset>
<span class="table-list-title">
<input name="back" type="button" onClick="window.history.back();" id="back" value="返回">
</span></DIV>
<TABLE cellSpacing=0 cellPadding=5 width="99%" align=center border=0>
<TBODY>
<TR class=table-list-link onMouseOver="this.className='table-list-hover'"
onmouseout="this.className='table-list-link'">
<TD class=table-list-style align=middle width="17%">
<DIV align=right>帐号:</DIV></TD>
<TD class=table-list-style width="76%"><INPUT
name=account class=text_bg id="account" value="<?=$rs['account']?>" maxLength=25>
<INPUT name=id type=hidden value=<?=$rs['id']?>></TD>
<TD class=table-list-style width="7%"> </TD></TR>
<TR class=table-list-link onMouseOver="this.className='table-list-hover'"
onmouseout="this.className='table-list-link'">
<TD class=table-list-style align=middle>
<DIV align=right>密码:</DIV></TD>
<TD class=table-list-style><INPUT
name=psw type=text class=text_bg id="psw" maxLength=20 value="<?=$rs['psw']?>"></TD>
<TD class=table-list-style> </TD></TR>
<TR class=table-list-link onMouseOver="this.className='table-list-hover'"
onmouseout="this.className='table-list-link'">
<TD class=table-list-style align=middle>
<DIV align=right>用户姓名:</DIV></TD>
<TD class=table-list-style><INPUT
name=name class=text_bg id="name" value="<?=$rs['name']?>" maxLength=24></TD>
<TD class=table-list-style> </TD></TR>
<TR class=table-list-link onMouseOver="this.className='table-list-hover'"
onmouseout="this.className='table-list-link'">
<TD class=table-list-style align=middle>
<DIV align=right>是否激活:</DIV></TD>
<TD class=table-list-style>
<?
if($rs['auditing']==0)
{
?>
<INPUT type=radio value=1 name=auditing>是
<INPUT type=radio CHECKED value=0 name=auditing>否
<?
}
else
{
?>
<INPUT type=radio CHECKED value=1 name=auditing>是
<INPUT type=radio value=0 name=auditing>否
<?
}
?></TD>
<TD class=table-list-style> </TD></TR>
<TR class=table-list-link onMouseOver="this.className='table-list-hover'"
onmouseout="this.className='table-list-link'">
<TD class=table-list-style align=middle>
<DIV align=right>是否是网站管理员:</DIV></TD>
<TD class=table-list-style>
<?
if($rs['is_admin']==0)
{
?>
<INPUT type=radio value=1 name=is_admin>是
<INPUT type=radio CHECKED value=0 name=is_admin>否
<?
}
else
{
?>
<INPUT type=radio CHECKED value=1 name=is_admin>是
<INPUT type=radio value=0 name=is_admin>否
<?
}
?>(否为不能登陆)
</TD>
<TD class=table-list-style> </TD></TR>
<TR class=table-list-link onMouseOver="this.className='table-list-hover'"
onmouseout="this.className='table-list-link'">
<TD class=table-list-style align=middle>
<DIV align=right>是否是企业应用管理员:</DIV></TD>
<TD class=table-list-style>
<?
if($rs['is_adminoa']==0)
{
?>
<INPUT type=radio value=1 name=is_adminoa>是
<INPUT type=radio CHECKED value=0 name=is_adminoa>否
<?
}
else
{
?>
<INPUT type=radio CHECKED value=1 name=is_adminoa>是
<INPUT type=radio value=0 name=is_adminoa>否
<?
}
?>(可以分配用户)
</TD>
<TD class=table-list-style> </TD></TR>
<tr>
<td align="center" colspan="3"><span><input name="permit" type="button" onClick="location.href='permission.php?id=<?=$id?>'" value="设置权限"></span></td>
</tr>
<INPUT type=hidden value=2517 name=userid>
<INPUT type=hidden name=admin_id>
</TBODY></TABLE></FORM></BODY></HTML>