<!--#include file="../checkLogin.asp"-->
<!--#include file="../SQLconn.asp"-->
<html>
<head>
<title>新建用户</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">

<script Language="JavaScript">
function CheckForm()
{  
   if(document.form1.Tno.value.length<1) {window.alert("请输入用户");document.form1.Tno.focus();return (false);}
   if(document.form1.Tname.value.length<1) {window.alert("请输入姓名");document.form1.Tname.focus();return (false);}
   if(document.form1.powdername.value.length<1) {window.alert("选择权限组");document.form1.powdername.focus();return (false);}
  
}

</script>
<link rel="stylesheet" type="text/css" href="../images/<%=request.cookies("imgdir")%>/css/style.css" media="all"/>

</head>


<body class="bodycolor" topmargin="5" onLoad="document.form1.Tno.focus();">


<p><br>
</p>
<p>&nbsp;</p>
<p>&nbsp;</p>

  <form action="saveUser.asp"  method="post" name="form1" onSubmit="return CheckForm();">
  <% '登陆控制，放置未登录查看
    if request.cookies("tname")="" then
        response.redirect("../Index.asp")
     end if
    %>
   <%
  
	   Set MyOAASPObj = Server.CreateObject("YFSchoolOApro2.YFSchoolDll2")
           MyOAASPObj.NewUser
       set MyOAASPObj=nothing	 
	 %>	


</form>
</body>
</html>