⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 user.asp

📁 非常实用的生产管理系统
💻 ASP
📖 第 1 页 / 共 2 页
字号:
<td height="18" align="center" class="but11" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but11'"><input readonly name="logins" type="text"  size="10" value='<% if isedit then
		                                                         response.write rs("logins")
																  end if %>'></td>
<td height="18" align="center" class="but11" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but11'">
			<input readonly name="lastlogin" type="text"  size="20" value='<% if isedit then
		                                                         response.write rs("lastlogin")
																  end if %>'>
			</td>
<td height="18" align="center" class="but11" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but11'"><input readonly name="lastip" type="text"  size="20" value='<% if isedit then
		                                                         response.write rs("lastip")
																  end if %>'>
			
			</td>
<td height="18" align="center" class="but11" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but11'"><select name="depname"  size="1" style='width:80'>
			<%		
			set rs3=server.createobject("adodb.recordset")
		   rs3.open "select * from department",conn,1,1
		   if not rs3.eof then
		   do while not rs3.eof
			%>
			<option <% if isedit then
			if trim(rs3("depname"))=trim(rs("depname")) then
			%> selected="selected"<%end if%><%end if%>><%=rs3("depname")%></option>
			<%
			rs3.movenext
			loop
			end if
			rs3.close
			set rs3=nothing
			%>
			</select></td>
			<td><select name="oskey"  size="1" style="width:80">
			<option value="supper" <% if isedit then
			if trim(rs("oskey"))="supper" then
			%> selected="selected"<%end if%><%end if%>>超级管理员</option>

			<option value="admin" <% if isedit then
			if trim(rs("oskey"))="admin" then
			%> selected="selected"<%end if%><%end if%>>一般管理员</option>

			<option value="jingtai" <% if isedit then
			if trim(rs("oskey"))="jingli" then
			%> selected="selected"<%end if%><%end if%>>公司经理</option>

			<option value="cailiao" <% if isedit then
			if trim(rs("oskey"))="cailiao" then
			%> selected="selected"<%end if%><%end if%>>材料仓库管理员</option>

			<option value="yuanliao" <% if isedit then
			if trim(rs("oskey"))="yuanliao" then
			%> selected="selected"<%end if%><%end if%>>原料仓库管理员</option>

			<option value="chejian" <% if isedit then
			if trim(rs("oskey"))="chejian" then
			%> selected="selected"<%end if%><%end if%>>生产车间管理员</option>

			<option value="chengpin" <% if isedit then
			if trim(rs("oskey"))="chengpin" then
			%> selected="selected"<%end if%><%end if%>>产品仓库管理员</option>

			<option value="xiaoshou" <% if isedit then
			if trim(rs("oskey"))="xiaoshou" then
			%> selected="selected"<%end if%><%end if%>>产品销售管理员</option>

			<option value="caiwu" <% if isedit then
			if trim(rs("oskey"))="caiwu" then
			%> selected="selected"<%end if%><%end if%>>财务人员</option>



			</select>
			</td>
          </tr>
		  	<tr>
			<td colspan="8" align="center"><input type="submit"  value="<% if isedit then
		                                                         response.write "编辑"
																 else
																 response.write "添加"
																  end if %>"> </td>
          </tr></form>
		  
           </table>
        </td>
</tr>
</table>
<br><br>
<TABLE width=820 align=center border="0" cellspacing="20" cellpadding="2" bordercolor="#0055E6">
<tr>
<td >

			<form action="user.asp" method="post" name="selform" >
  <table width="800"  border="1" cellpadding="0" cellspacing="0" bordercolor="#0055E6" align="center">

    <tr> 
      
      <td width="800" align="center" valign="top">
	        <table width="800" border="0" cellpadding="0" cellspacing="0" >
          <tr >  
<td height=26 background="images/background.gif">
<b><font color="#ffffff">权 限 信 息 列 表</font></b>

</td>
</tr>
</table>
	 
        <table width="100%" border="1" cellpadding="0" cellspacing="1" bordercolor="#EFEADD">
          <tr class="but"> 
			<td width="10%" height="18" align="center" class="but01" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but01'">用户名</td>
            <td width="10%" height="18" align="center" class="but01" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but01'">全 名</td>
			<td width="15%" height="18" align="center" class="but01" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but01'">部 门</td>
			<td width="10%" height="18" align="center" class="but01" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but01'">权 限</td>
			<td width="6%" height="18" align="center" class="but01" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but01'">登陆次数</td>
			<td width="15%" height="18" align="center" class="but01" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but01'">上次登陆</td>
			<td width="8%" height="18" align="center" class="but01" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but01'">上次IP</td>
            <td width="5%" height="18" align="center" class="but01" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but01'">操 作</td>
          </tr>
		 <%

set rs=server.CreateObject("ADODB.RecordSet") 
rs.Source="select* from userinfo order by -userid"
rs.Open rs.Source,conn,1,1
if not rs.EOF then
do while not rs.eof
%>
<tr onmouseover="this.bgColor='#73A475';" onmouseout="this.bgColor=''"">
<td height="18" align="center"><a href="user.Asp?userid=<%=rs("userid")%>&action=edit"><%=rs("name")%></a></td>
<td height="18" align="center"><%=rs("fullname")%><%if rs("fullname")="" then%>&nbsp;<%end if%></td>
<td height="18" align="center">&nbsp;<%=rs("depname")%></td>
<td height="18" align="center">&nbsp;
<%if rs("oskey")="supper" then%>超级管理员<%else%>
<%if rs("oskey")="caiwu" then%>财务人员<%else%>
<%if rs("oskey")="xiaoshou" then%>产品销售管理员<%else%>
<%if rs("oskey")="cailiao" then%>原料仓库管理员<%else%>
<%if rs("oskey")="yuanliao" then%>原料仓库管理员<%else%>
<%if rs("oskey")="chejian" then%>生产车间管理员<%else%>
<%if rs("oskey")="chengpin" then%>成品仓库管理员<%else%>
<%if rs("oskey")="admin" then%>一般管理员<%else%><%if rs("oskey")="jingli" then%>公司经理<%end if%><%end if%><%end if%><%end if%><%end if%><%end if%><%end if%><%end if%><%end if%></td>

<td height="18" align="center"><%=rs("logins")%></td>
<td height="18" align="center"><%=rs("lastlogin")%></td>
<td height="18" align="center"><%=rs("lastip")%></td>
<td height="18" align="center"><input name="selBigClass" type="checkbox" id="selBigClass" value="<%=rs("userid")%>"></td>
</tr>
<%
rs.MoveNext
loop
end if
rs.close
set rs=nothing
%>
<tr><td align="right" colspan="10" height="22">

        <input type="checkbox" name="checkbox" value="checkbox" onClick="javascript:SelectAll()"> 选择/反选
              <input onClick="{if(confirm('此操作将删除该信息!\n\n确定要执行此项操作吗?')){this.document.selform.submit();return true;}return false;}" type=submit value=删除 name=action2> 
              <input type="Hidden" name="action" value='del'></td></tr>
        </table>

	  
</td>
    </tr>

  </table></fieldset>
</form>
 
			</TD>
              </TR>
          </table>
		          

  </TBODY>
</TABLE>
<%end sub%>
<P>
<TABLE cellSpacing=0 cellPadding=0 width="100%" align=center border=0>
  <TBODY>
  <TR vAlign=center>
    <TD align=middle width="100%"><!--#include file="footer.htm"--></TD>
  </TR></TBODY></TABLE></P></BODY></HTML>


⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -