温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:无忧劳保库存系统源码
当前文件:
Labor/Default.aspx,打开代码结构图
Labor/Default.aspx,打开代码结构图1<%@ Page language="c#" Inherits="_Default" CodeFile="Default.aspx.cs" EnableEventValidation="false" AutoEventWireup="true"%> 2
3
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > 4
<HTML> 5
<HEAD> 6
<title>首页</title> 7
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"> 8
<script type="text/javascript"> 9
function Login() 10
{ 11
if(document.getElementById("loginname").value=="") 12
{ 13
window.alert("用户名不能为空"); 14
15
document.getElementById("loginname").focus(); 16
17
return false; 18
} 19
if(document.getElementById("pwd").value=="") 20
{ 21
window.alert("密码不能为空"); 22
23
document.getElementById("pwd").focus(); 24
25
return false; 26
} 27
} 28
</script> 29
<LINK href="Image/Main.css" type="text/css" rel="stylesheet"> 30
<style type="text/css"> 31
BODY { BACKGROUND-COLOR: #e2ecf8 } 32
</style> 33
</HEAD> 34
<body> 35
<form id="f1" runat="server" method="post"> 36
<asp:ScriptManager ID="ScriptManager1" runat="server"> 37
</asp:ScriptManager> 38
<asp:UpdatePanel ID="UpdatePanel1" runat="server"> 39
<ContentTemplate> 40
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0" style="position: static"> 41
<tr> 42
<td height="421" align="center" valign="middle"><table width="488" border="0" cellspacing="0" cellpadding="0"> 43
<tr> 44
<td colspan="3"> </td> 45
</tr> 46
<tr> 47
<td colspan="3"><img src="Image/Login_top1.jpg" width="512" height="182"></td> 48
</tr> 49
<tr> 50
<td width="202"><img src="Image/Login_buttomleft.jpg" width="202" height="113"></td> 51
<td width="296" align="center" valign="middle" background="Image/Login_buttombj.jpg" 52
id="btnyes"> 53
<table width="90%" border="0" cellspacing="0" cellpadding="0"> 54
<tr> 55
<td width="20%" height="27" valign="bottom" align="right">用户:</td> 56
<td width="165" height="27" valign="bottom"> 57
<asp:TextBox id="loginname" runat="server" Width="130" style="border-bottom:1px solid #000000; 58
border-left:none; border-right:none; 59
border-top:none; 60
padding:0px; width:90px;"></asp:TextBox></td> 61
<td width="21%" height="25" rowspan="2" align="right" valign="bottom"> 62
<asp:ImageButton id="btnok" runat="server" Width="52px" Height="52px" ImageUrl="Image/dl2.gif" ImageAlign="Middle" 63
BorderStyle="None" OnClick="btnok_Click"></asp:ImageButton></td> 64
</tr> 65
<TR> 66
<TD vAlign="bottom" align="right" height="27">密码:</TD> 67
<TD vAlign="bottom" height="27" width="165"> 68
<asp:TextBox id="pwd" runat="server" Width="130" TextMode="Password" style="border-bottom:1px solid #000000; 69
border-left:none; border-right:none; 70
border-top:none; 71
padding:0px; width:90px;"></asp:TextBox></TD> 72
<td></td> 73
</TR> 74
</table> 75
</td> 76
<TD width="14"><IMG id="IMG1" height="113" src="Image/Login_buttomright.jpg" width="14" runat="server"></TD> 77
</tr> 78
<TR vAlign="bottom"> 79
<TD align="center" colSpan="3" height="65"> 80
版权所有:国信安NIIT集团</TD> 81
</TR> 82
</table> 83
</td> 84
</tr> 85
</table> 86
</ContentTemplate> 87
</asp:UpdatePanel> 88
</form> 89
90
</body> 91
</HTML> 92




}
