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

📄 top.asp

📁 一个完全仿照阿里巴巴的网站管理系统 本软件没有版权问题
💻 ASP
字号:
<%dbdns="../"%>
<!--#include file="../inc/conn.asp"-->
<!--#include file="../inc/err.asp"-->
<!--#include file="cook.asp"-->
<!--#include file="../inc/SMT_inside.asp"-->
<%webkey44
call SaveSqlLog(3)
call SF_Sql
'----------------------每次登录只运行一次的信息---------------------
if session("coname")="" then
'--检查过期及获取用户基本资料
  set rs=server.createobject("adodb.recordset")
  sql="select * from SMT_yp where SMT_id="&session("id")
  rs.open sql,conn,1,3
    if cdate(year(rs("SMT_ktdate"))&"-"&month(rs("SMT_ktdate"))&"-"&day(rs("SMT_ktdate")))<=date() then
      rs("SMT_key")=2
    else
      if rs("SMT_key")=2 then
        rs("SMT_key")=1
      end if
    end if
  rs.update
    session("coname")=rs("SMT_coname")
    session("vip")=rs("SMT_vip")
	session("key")=rs("SMT_key")
    session("key1")=rs("SMT_key1")
    ktdate=rs("SMT_ktdate")
	SMT_answer=rs("SMT_answer")
  rs.close
  set rs=nothing

'--用户到期提醒
  tian=cdate(year(ktdate)&"-"&month(ktdate)&"-"&day(ktdate))-date()
  if tian<30 and tian>0 then
  response.write"<script>alert('尊敬的"&cityname&"企业会员:\n\n您的会员期限已不足"&tian&"天\n\n为了您的工作能正常开展,请您尽快续费')</script>"
  elseif tian<0 then
  response.write"<script>alert('尊敬的"&cityname&"企业会员:\n\n您的会员期限已超过"&tian&"天\n\n为了能尽快恢复您的工作,请您尽快续费')</script>"
  end if
'--密码保护提醒
  if SMT_answer="" then
  response.write "<script>if (confirm('您还没有申请密码提示问题及答案\n\n填写它将有助于您忘记密码后帮助您找回\n\n现在填写?')){window.location='lcdpass.asp'}else{window.location='admin.asp'}</script>"
  response.end
  end if
end if
'----------------------每天只运行一次的信息 end ---------------------
'------------------用户过期或权限提醒--------------------------
if (session("key1")=0 or session("key")=0 or session("key")=2 or session("key")=4) and right(Request("url"),9)<>"admin.asp" and  right(Request("url"),6)<>"ok.asp" and  right(Request("url"),7)<>"vip.asp" then
response.redirect"ok.asp?action=flag"
end if
'=======================
goname=session("useradmin")
goid=session("id")
%>
<!--#include file="../dns/dns.asp"-->
<%sub usertopview%>
<script LANGUAGE=javascript>
<!--
var TIMEOUT_ALERT_STR = "您已经超时, 请立即保存信息";
var allminutes = 20;
setTimeout("Time()", 60000);
function Time() {
allminutes--;
if (document.layers)
{document.layers.minpt.document.write(allminutes.toString());
document.layers.minpt.document.close();}
else if (document.all)
minpt.innerHTML = allminutes.toString();
if (allminutes > 0)
setTimeout("Time()", 60000);
else
alert(TIMEOUT_ALERT_STR);}
//-->
</script>

<%=citycss%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><%=citytitle%> - 用户管理中心</title>
</head>

<body topmargin="0" bgcolor="#666666">
<table width="760" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#FFFFFF">
<tr><td style="border-bottom:1px #6C94D1 solid"><img src="img/top.gif"></td></tr>
</table>
<table width="760" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#FFFFFF">
<tr>
<td width="160" height=25 align=center bgcolor=#cccccc style="border-bottom:1px #ffffff solid">
<SCRIPT language=javascript>
<!--hide
 var enable=0; today=new Date();
   var day; var date;
   if(today.getDay()==0)  day=" 星期日" 
   if(today.getDay()==1)  day=" 星期一" 
   if(today.getDay()==2)  day=" 星期二" 
   if(today.getDay()==3)  day=" 星期三" 
   if(today.getDay()==4)  day=" 星期四" 
   if(today.getDay()==5)  day=" 星期五" 
   if(today.getDay()==6)  day=" 星期六" 
   date=(today.getFullYear())+"年"+(today.getMonth()+1)+"月"+today.getDate()+"日 ";
document.write(date + day);
//--hide-->   
</SCRIPT>
</td>
<td width="600" bgcolor=#efefef style="border-bottom:1px #cccccc solid">
<!--==============-->
 尊敬的企业会员 <font color=#FF6908><strong><%=session("useradmin")%></strong></font> 您好!欢迎您来到<%=cityname%>会员管理中心!      <a href="../book.asp" target=_blank class=red>意见反馈</a>
<!--==============-->
</td>
</tr>
<tr><td height=25 bgcolor=#6C94D1 style="border-bottom:1px #ffffff solid">  <a href=logout.asp class=white>退出登录</a></td>
<td width="600" rowspan=2> <font color=#999999>提醒:系统无任何动作20分钟后自动退出,现在还剩<font color="#FF3333"><b><span id="minpt">20</span></b></font>分钟,请注意及时保存信息以免丢失。</font>
<!--==============-->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height=30 style="border-top:1px #cccccc solid;border-bottom:1px #cccccc solid">    <a href="<%=usertwourl%>" class="red" target="_blank"><%=session("coname")%></a>  <font color=red><strong>为了能更好的为您提供服务,请您删除您多余的信息</strong></font></td>
  </tr>
</table>
<!--==============-->
</td>

</tr>
<tr><td height=25 bgcolor="#6C94D1">   <a href=admin.asp class=white>管理首页</a></td></tr>
</table>
<%end sub%>

⌨️ 快捷键说明

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