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

📄 index.aspx

📁 在线 图书网上购物系统
💻 ASPX
字号:


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"  >

<head>

<title>『论文在线指导系统』</title>

<script runat="server" Language="C#">
    protected void ImageButtonSubmit_Click(object sender, ImageClickEventArgs e)
    {
        string id = this.tbUserName.Text.Trim();
        string pwd = this.tbPassword.Text.Trim();
        string validateCode = Request.Cookies["CheckCode"].Value;
        string val = this.tbValidate.Text.Trim();
        //frmValidate f = new frmValidate();
         Session.Clear();
        if (id == String.Empty )
        {
            CommHandler.Alert(this.Page, "用户名不能为空!");
            return;
        }
        if (pwd == String.Empty)
        {
            CommHandler.Alert(this.Page, "密码不能为空!");
            return; 
        }
        if (val == String.Empty)
        {
            CommHandler.Alert(this.Page, "验证码不能为空!");
            return;
        }
        if (validateCode.ToLowerInvariant() != this.tbValidate.Text.ToLowerInvariant())
        {
            CommHandler.Alert(this.Page, "验证码不正确!");
            return;
        }
        if (Global.CheckStudentLogin(id, pwd))
        {
            Session["LoginType"] = "Student";
            Session["LoginID"] = id;
            Response.Redirect("frmFAQList.aspx");
        }
       
        else if (Global.CheckTeacherLogin(id, pwd))
        {
             Session["LoginType"] = "Teacher";
             Session["LoginID"] = id;
             Response.Redirect("frmFAQList.aspx");
        }
        else
        {
             CommHandler.Alert(this.Page, "用户名或密码错误!");
        }
       
    }
    
</script>
<style type="text/css">
body{
	font-size: 12px;
}
td{
	font-size: 12px;
}
.input{
	height: 15px;
	width: 104px;
	border: none;
	font-size: 12px;
	color: #603900;
}
.menu:link{
	color: #990000;
	text-decoration: none;
}
.menu:visited{
	color: #990000;
	text-decoration: none;
}
.menu:hover{
	color: #ff0000;
	text-decoration: none;
	position: relative;
	top: 1px;
}
.menu:active{
	color: #990000;
	text-decoration: none;
	position: relative;
	top: 1px;
}
</style>
<script language="JavaScript" type="text/JavaScript">
<!--



function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
//-->
</script>
<script language="JavaScript" type="text/javascript">
<!--
nereidFadeObjects = new Object();
nereidFadeTimers = new Object();

function nereidFade(object, destOp, rate, delta){
if (!document.all)
return
    if (object != "[object]"){  
        setTimeout("nereidFade("+object+","+destOp+","+rate+","+delta+")",0);
        return;
    }
        
    clearTimeout(nereidFadeTimers[object.sourceIndex]);
    
    diff = destOp-object.filters.alpha.opacity;
    direction = 1;
    if (object.filters.alpha.opacity > destOp){
        direction = -1;
    }
    delta=Math.min(direction*diff,delta);
    object.filters.alpha.opacity+=direction*delta;

    if (object.filters.alpha.opacity != destOp){
        nereidFadeObjects[object.sourceIndex]=object;
        nereidFadeTimers[object.sourceIndex]=setTimeout("nereidFade(nereidFadeObjects["+object.sourceIndex+"],"+destOp+","+rate+","+delta+")",rate);
    }
}

function MM_displayStatusMsg(msgStr) { //v1.0
  status=msgStr;
  document.MM_returnValue = true;
}
//-->
</script>
</head>
<body bgcolor="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<form id="form1" runat=server>
<table height="100%" border="0" align="center" cellpadding="0" cellspacing="0" style="width: 85%">
  <tr>
    <td align="center" style="width: 806px"><table width="797" height="457" border="0" align="center" cellpadding="0" cellspacing="0" id="__01">
        <tr> 
          <td colspan="8" style="height: 154px"> <img src="images/index_01.jpg" width="797" height="154" alt=""></td>
        </tr>
        <tr> 
          <td colspan="8" background="images/index_02.jpg" style="height: 29px"> <table width="96%" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr> 
                <td width="230" align="center" valign="bottom" style="height: 22px"> 
<script type="text/javascript">
today=new Date();
var day;
var date;
var hello;
hour=today.getHours()
if(hour < 6)hello='凌晨好!&nbsp;'
else if(hour < 9)hello='早上好!&nbsp;'
else if(hour < 12)hello='上午好!&nbsp;'
else if(hour < 14)hello='中午好!&nbsp;'
else if(hour < 17)hello='下午好!&nbsp;'
else if(hour < 19)hello='傍晚好!&nbsp;'
else if(hour < 22)hello='晚上好!&nbsp;'
else {hello='半夜好!&nbsp;'}
day=today.getDay()
if(day==0)day='&nbsp;星期日'
else if(day==1)day='&nbsp;星期一'
else if(day==2)day='&nbsp;星期二'
else if(day==3)day='&nbsp;星期三'
else if(day==4)day='&nbsp;星期四'
else if(day==5)day='&nbsp;星期五'
else if(day==6)day='&nbsp;星期六'
date=(today.getYear())+'年'+(today.getMonth()+1)+'月'+today.getDate()+'日';
document.write("<strong><font color=#ff6600>" +hello+"</font></strong>");
document.write('今天是&nbsp;')
document.write(date);
document.write(day);


</script></td>
                <td valign="bottom" style="height: 22px"> 
                 </td>
              </tr>
            </table></td>
        </tr>
        <tr> 
          <td rowspan="8" style="background-image: url(images/ss.bmp); height: 272px;" colspan="8"> &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp;<br />
              <br />
              <br />
              &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
              &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
              &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
              &nbsp; &nbsp; &nbsp; &nbsp;
              <br />
                  <table style="width: 782px; height: 167px">
                      <tr>
                          <td style="width: 971px; height: 35px">
                          </td>
                          <td style="width: 665px; height: 35px">
                          </td>
                          <td style="width: 84px; height: 35px;">
                              <asp:TextBox ID="tbUserName" runat="server" Height="20px" Width="100px" EnableViewState="False"></asp:TextBox></td>
                          <td style="width: 100px; height: 35px">
                          </td>
                      </tr>
                      <tr>
                          <td style="width: 971px; height: 24px">
                              &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                              &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                              &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                              &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                              &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                              &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                              &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                          </td>
                          <td style="width: 665px; height: 24px">
                              &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                              &nbsp; &nbsp; &nbsp;&nbsp;
                          </td>
                          <td style="width: 84px; height: 24px">
                              <asp:TextBox ID="tbPassword" runat="server" Height="20px" Width="100px" EnableViewState="False" TextMode="Password"></asp:TextBox></td>
                          <td style="width: 100px; height: 24px">
                              &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                              &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                          </td>
                      </tr>
                      <tr>
                          <td style="width: 971px; height: 7px">
                          </td>
                          <td style="width: 665px; height: 7px">
                          </td>
                          <td style="width: 84px; height: 7px">
                              <asp:TextBox ID="tbValidate" runat="server" Height="20px" Width="100px" EnableViewState="False"></asp:TextBox></td>
                          <td style="width: 100px; height: 7px">
                              <asp:HyperLink ID="HyperLink1" ImageUrl="~/frmvalidate.aspx" runat="server" Width="91px">validate</asp:HyperLink>
                          </td>
                      </tr>
                      <tr>
                          <td style="width: 971px; height: 37px">
                          </td>
                          <td align="right" style="width: 665px; height: 37px">
                          </td>
                          <td style="width: 84px; height: 37px">
                          </td>
                          <td style="width: 100px; height: 37px">
                          </td>
                      </tr>
                      <tr>
                          <td style="width: 971px; height: 37px">
                          </td>
                          <td align="right" style="width: 665px; height: 37px">
                              &nbsp;<asp:ImageButton ID="ImageButtonSubmit" runat="server" Height="17px" ImageUrl="~/images/index_12.jpg" OnClick="ImageButtonSubmit_Click" /></td>
                          <td style="height: 37px; width: 84px;">
                              <asp:ImageButton ID="ImageButtonCancel" runat="server" Height="17px" ImageUrl="~/images/index_14.jpg" /></td>
                          <td style="width: 100px; height: 37px">
                          </td>
                      </tr>
                  </table>
          </td>
        </tr>
        <tr> 
        </tr>
        <tr>
        </tr>
        <tr> 
        </tr>
        <tr> 
        </tr>
        <tr> 
        </tr>
        <tr> 
        </tr>
        <tr> 
        </tr>
        <tr> 
          <td style="height: 2px; width: 467px;"> <img src="images/分隔符.gif" width="466" height="1" alt=""/></td>
          <td style="width: 66px; height: 2px;"> <img src="images/分隔符.gif" width="65" height="1" alt=""/></td>
          <td style="height: 2px"> <img src="images/分隔符.gif" width="57" height="1" alt=""/></td>
          <td style="width: 4px; height: 2px;"> <img src="images/分隔符.gif" width="3" height="1" alt=""/></td>
          <td style="height: 2px"> <img src="images/分隔符.gif" width="20" height="1" alt=""/></td>
          <td style="width: 58px; height: 2px;"> <img src="images/分隔符.gif" width="57" height="1" alt=""/></td>
          <td style="height: 2px"> <img src="images/分隔符.gif" width="28" height="1" alt=""/></td>
          <td style="width: 102px; height: 2px;"> <img src="images/分隔符.gif" width="101" height="1" alt=""/></td>
        </tr>
      </table></td>
  </tr>
</table>
</form>
</body>

</html>

⌨️ 快捷键说明

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