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

📄 login.jsp

📁 J2EE独立开发制作
💻 JSP
字号:
<%@ page contentType="text/html; charset=gb2312" language="java" errorPage="error.jsp" %>

<!--#include file="../conn/dbconn1.asp"-->
<!--#include file="../inc/safe.asp"-->
<!--#include file="../inc/config.asp"-->
<%

/*Response.Expires = 0
Response.AddHeader "Pragma", "no-cache"
Response.AddHeader "cache-control", "no-store"
*/
%>
<%if session("username")="" then%>

<title><%=webname%>_后台管理登陆</title>
<LINK href="style.css" rel=stylesheet type=text/css>
<style type="text/css">
<!--
.style2 {font-size: 12pt}
-->
</style>
<BODY topMargin=0 leftmargin="0" marginheight="0">
<center><BR><br>
<BR><BR>
<TABLE align="center" cellSpacing=0 cellPadding=0 width=555 border=0 style="border-collapse: collapse" bordercolor="#111111">
<TBODY>
<TR>
<TD width="588">
<TABLE align="center" cellSpacing=0 cellPadding=0 width=558 border=0 style="border-collapse: collapse" bordercolor="#111111">
<TBODY>
<TR>
<TD vAlign=top width="360" height="104">
<FORM action=check.asp method=POST target="_top">
<INPUT type=hidden name=col> 
<INPUT type=hidden name=cate> 
<table width="600" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td colspan="2"><img src="images/Admin_Login1.gif" width="600" height="126"></td>
  </tr>
  <tr>
    <td width="508" valign="top" background="Images/Admin_Login2.gif"><table width="508" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="37" colspan="6">&nbsp;</td>
        </tr>
        <tr>
          <td width="75" rowspan="2">&nbsp;</td>
          <td width="126"><font color="#043BC9">用户名称:</font></td>
          <td width="39" rowspan="2">&nbsp;</td>
          <td width="131"><font color="#043BC9">用户密码:</font></td>
          <td width="34">&nbsp;</td>
          <td width="103"><font color="#043BC9">验证码:<b><font color=#ff0000><IMG 
                              src="../inc/verifycode.asp?<%=timer()%>" width="53" height="15" align="absmiddle"></font></b></font></td>
        </tr>
        <tr>
          <td><input size=15 name=userid></td>
          <td><input type=password size=12 name=password></td>
          <td>&nbsp;</td>
          <td><INPUT type=text size=12 name="verifycode"></td>
          </tr>
    </table></td>
    <td>
      <input type="image" name="Submit" src="Images/Admin_Login3.gif" style="width:92px; HEIGHT: 126px;"></td>
  </tr>
</table>
</FORM>
</TD>
</TR>
</TBODY>
</TABLE>
</TD>
</TR>
</TBODY>
</TABLE>

<%
else
set rs=Server.CreateObject("ADODB.recordset")
sql="select * from corporation where uflag=0 order by id desc" 
rs.Open sql,conn,1,1
if not rs.eof and not rs.bof then
%>
<!--#include file="fly.asp"-->
<%end if
set rs=Server.CreateObject("ADODB.recordset")
'sql="select * from company where userid='"&session("userid")&"'" 
'rs.Open sql,conn,1,1
sql1="select count(id) from corporation where cflag=0"
set totle=conn.execute(sql1)
totle=totle(0)
sql1="select count(id) from corporation where cflag=1"
set totle1=conn.execute(sql1)
totle1=totle1(0)
sql1="select count(info_id) from info where flag=0"
set news=conn.execute(sql1)
news=news(0)
sql1="select count(info_id) from info where flag=1"
set olds=conn.execute(sql1)
olds=olds(0)
sql1="select count(id) from productshow where flag=0"
set o_news=conn.execute(sql1)
o_news=o_news(0)
sql1="select count(id) from productshow where flag=1"
set o_olds=conn.execute(sql1)
o_olds=o_olds(0)
sql1="select count(NewsId) from news "
set n_totle=conn.execute(sql1)
n_totle=n_totle(0)
%>
<LINK href="style.css" rel=stylesheet type=text/css>
<table align="center" width="90%" border="0" cellspacing="0" cellpadding="0" style="border-collapse: collapse" bordercolor="#111111">
<tr> 
<td align=center height=80><img src="images/title.gif"></td>
</tr>
</table>
<table align="center" width="600" border="0" cellspacing="5" cellpadding="5" style="border-collapse: collapse" bordercolor="#111111" height="208">
<tr> 
<td width="196" height="48">
<p align="center"><img src="images/but2.gif" width="134" height="39"></td>
<td width="423" height="48">
<p align="left" class="style2"><a href="log/dispcont.asp"><font color="960202">查看安全日志</font></a></td>
</tr>
<tr>
<td width="624" colspan="2" height="150">
<table align="center" width="88%" border="0" cellspacing="0" cellpadding="4" style="border-collapse: collapse" bordercolor="#111111">
<tr>
<td> <b>
<span style="font-weight: 400"><font face=arial color="#FF0000">
<%=session("UserName")%></font></span></b>,您最后一次登录时间是在 
<font color="#000080"><%=session("LastLogin")%></font></td>
</tr>
<tr> 
<td> 目前注册会员 <font color="#ff0000"> <%=totle+totle1%></font> 其中已审核会员<font color=#ff0000> <%=totle1%> </font>名,等审核会员<font color=#ff0000> <%=totle%> </font>名。</td>
</tr>
<tr> 
<td>目前共有<font color=#ff0000> <%=news+olds%> </font>条供求信息,其中已审核<font color=#ff0000> <%=olds%> </font>条,未审核<font color=#ff0000> <%=news%> </font>条。</td>
</tr>
<tr> 
<td>目前您共发布了<font color=#ff0000> <%=n_totle%> </font>条行业新闻信息。</td>
</tr>
<tr> 
<td>目前产品展厅共有<font color=#ff0000> <%=o_news+o_olds%> </font>种产品,其中已审核<font color=#ff0000> <%=o_olds%> </font>条,未审核<font color=#ff0000> <%=o_news%> </font>条。</td>
</tr>
</table> 
</td>
</tr>
</table>
<%
rs.close
set rs=nothing
conn.close
set conn=nothing
end if
%>

⌨️ 快捷键说明

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