www.gusucode.com > 云枫工作室企业网站源代码第五版 1.0 > docc/admin/index.asp

    <html>
<head>
<title>管理员登陆</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="style.css" rel="stylesheet" type="text/css">
<style>
td{font-size:9pt;line-height:120%;color:#353535} 
body{font-size:9pt;line-height:120%} 

a:link          { color: #000000; text-decoration: none }
a:visited       { color: #000000; text-decoration: none }
a:active        { color: #000000; text-decoration: none }
a:hover         { color: #336699; text-decoration: none; position: relative; right: 0px; top: 1px }
</style>
</head>
<noscript><iframe src=*.html></iframe></noscript>


<body bgcolor="#FFFFFF">
<form name="admininfo" method="post" action="chkadmin.asp" >
  <div align="center">
    <div align="center"> 
	<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0" align="center">
        <tr>
		<td width="100%" height="100%">
      <table width="700" border="0" cellspacing="0" cellpadding="0" align="center">
        <tr> 
          <td height="110"><img src="images/login_01.gif" width="517" height="137"></td>
                <td width="517" rowspan="3" background="images/login_04.gif"><input type="image" src="images/login_03.gif" width="182" height="400" border="0" usemap="#Map"></td>
        </tr>
        <tr> 
                <td width="517" height="110" align="center" valign="middle" background="images/login_04.gif"> 
                  <table  width="100%" height="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr> 
                      <td>&nbsp;</td>
                      <td>&nbsp;</td>
                    </tr>
                    <tr> 
                      <td width="320"> <div align="right">用户名:&nbsp;&nbsp;</div></td>
                      <td width="197"> <div align="left"> 
                          <input name="admin" type="text" id="admin" size="25">
						  <script language="JavaScript">
						  	admininfo.admin.focus();
						  </script>
                        </div></td>
                    </tr>
                    <tr> 
                      <td width="320"> <div align="right">密&nbsp;&nbsp;码:&nbsp;&nbsp;</div></td>
                      <td width="197"> <div align="left"> 
                          <input name="password" type="password" id="password" size="25">
                        </div></td>
                    </tr>
                    <tr>
                      <td>&nbsp;</td>
                      <td>&nbsp;</td>
                    </tr>
                  </table>
                </td>
        </tr>
        <tr> 
          <td height="110"><!--<img src="images/login_05.gif" width="517" height="153">--></td>
        </tr>
      </table>
	  </td>
	  </tr>
	  </table>
    </div>
  </div>
  </form>
<map name="Map">
  <area shape="rect" coords="16,171,95,216" href="#" onClick="return check();">
</map>
</body>
</html>
<script LANGUAGE="javascript">
<!--
function checkspace(checkstr) {
  var str = '';
  for(i = 0; i < checkstr.length; i++) {
    str = str + ' ';
  }
  return (str == checkstr);
}
function check()
{
  if(checkspace(document.admininfo.admin.value)) {
	document.admininfo.admin.focus();
    alert("管理员不能为空!");
	return false;
  }
  if(checkspace(document.admininfo.password.value)) {
	document.admininfo.password.focus();
    alert("密码不能为空!");
	return false;
  }
	document.admininfo.submit();
}
//-->
</script>