<!--#include file="ljconn.asp"-->
<%if session("admin")="" then
response.Write "<script language='javascript'>alert('网络超时或您还没有登陆！');window.location.href='login.asp';</script>"
response.End
else
if session("flag")>1 then
response.Write "<p align=center><font color=red>您没有此项目管理权限！</font></p>"
response.End
end if
end if
%>
<html><head><title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="img/css.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style1 {
	font-size: 12px;
	font-weight: bold;
}
.style2 {font-size: 12px}
.style3 {font-size: 12}
-->
</style>
</head>
<body>
                              <table class="tableBorder" width="100%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF">
							  <tr>
							  <td colspan="7" align="center" background="img/admin_bg_1.gif"><span class="style1"><font color="#ffffff">分配用户</font></span></td>
							  </tr>
                                <tr bgcolor="#E8F1FF"> 
                                  <td width="18%" align="center"><span class="style2">用户名</span></td>
                                  <td width="11%" align="center"><span class="style2">密码</span></td>
                                  <td width="15%" align="center" class="style2" style="display:none;">学院领导</td>
                                  <td width="15%" align="center"><span class="style2">确定操作</span></td>
                                </tr>
          <%
		  set rs=server.CreateObject("adodb.recordset")
		  rs.Open "select * from pingpai1 order by id desc",conn,1,1
		  dim paixu
		  if rs.EOF and rs.BOF then
		  response.Write "<div align=center><font color=red><span class='style2'>还没有类别</span></font></center>"
		  paixu=0
		  else
		  i=1
		  do while not rs.EOF
		  %>
                            <%imgw="img"&i&""%>
    <form name="<%=imgw%>" method="post" action="pingpaiSet1.asp?action=edit&id=<%=int(rs("id"))%>">
                                  <tr bgcolor="#E8F1FF" align="center"> 
                                    <td><input name="pingpainame" type="text" id="pingpainame" value="<%=trim(rs("pingpainame"))%>" size="12" maxlength="20" disabled></td>
                                    <td><input name="img" type="text" id="img" value="<%=rs("img")%>" size="20" maxlength="20">                                    </td>
                                    
                                    <td class="style2" style="display:none;"><input name="flag" type="radio" id="radio3" value="1" <%if rs("flag")="1" then%>checked<%end if%>>
是
  <input name="flag" type="radio" id="radio4" value="0" <%if rs("flag")="0" then%>checked<%end if%>>
否 </td>
                                    <td><span class="style3">
                                    <input type="submit" name="Submit" value="修 改">
                                    &nbsp;
									  <span style="display:;">
								    <a href="pingpaiSet1.asp?id=<%=int(rs("id"))%>&action=del" onClick="return confirm('您确定要删除该用户吗？')"><font color=red>删除</font></a>                                    </span></td>
                                  </tr>
                                </form>
						<%rs.MoveNext
						i=i+1
								loop
								paixu=rs.RecordCount
								end if%>
</table>
<br>
<table class="tableBorder" width="100%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF">
<tr>
<td colspan="9" align="center" background="img/admin_bg_1.gif"><span class="style2"><b><font color="#ffffff">分配用户</font></b></span></td>
</tr>
<tr bgcolor="#E8F1FF" align="center"> 
<td width="18%" align="center"><span class="style2">用户名</span></td>
<td width="11%" align="center"><span class="style2">密码</span></td>

<td width="15%" align="center" style="display:none;"><span class="style2">学院领导</span></td>
<td width="15%" align="center"><span class="style2">确定操作</span></td>
</tr>
<form name="myform" method="post" action="pingpaiSet1.asp?action=add">
<tr bgcolor="#E8F1FF" align="center"> 
<td>
<input name="pingpainame2" type="text" id="pingpainame2" size="12" maxlength="20"></td>
<td><input name="img" type="text" id="img" size="20" maxlength="20"></td>

<td class="style2" style="display:none;"><label>
  <input name="flag" type="radio" id="radio" value="1">
  是
  <input name="flag" type="radio" id="radio2" value="0" checked>
  否
</label></td>
<td><input name="Submit3" type="submit" value="添 加"></td>
</tr>
</form>
</table>
<!--#include file="copyright.asp"-->
</body>
</html>
