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

📄 top.asp

📁 购物网站源码有需要的赶快下载机不可失
💻 ASP
字号:
<%dbdns="../"%>
<!--#include file="../inc/conn.asp"-->
<!--#include file="../inc/err.asp"-->
<!--#include file="../inc/SF_Sql.asp"-->
<!--#include file="cook.asp"-->
<%webkey44%>
<%
'--------------------企业过期数据检查------------------------
if session("mdbsj")<>1 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
rs.close
set rs=nothing
session("mdbsj")=1
end if
'-------------------获取企业会员基本资料-------------------------
set rs=server.createobject("adodb.recordset")
sql="select *  from SMT_yp where SMT_id="&session("id")
rs.open sql,conn,1,1
key=rs("SMT_key")
key1=rs("SMT_key1")
vip=rs("SMT_vip")
session("vip")=rs("SMT_vip")
goname=rs("SMT_user")
goid=rs("SMT_id")

ksdate=rs("SMT_ksdate")
ktdate=rs("SMT_ktdate")
tjdate=rs("SMT_tjdate")
zdate=rs("SMT_date")
lastdate=rs("SMT_lastdate")
loginhtc=rs("SMT_loginhtc")
htc=rs("SMT_htc")

if session("coname")="" then
session("coname")=rs("SMT_coname")
session("coyb")=rs("SMT_coyb")
session("cotel")=rs("SMT_cotel")
session("cotelq")=rs("SMT_cotelq")
session("cofax")=rs("SMT_cofax")
session("cofaxq")=rs("SMT_cofaxq")
session("colxr")=rs("SMT_colxr")
session("colxrsex")=rs("SMT_colxrsex")
session("comail")=rs("SMT_mail")
session("coweb")=rs("SMT_coweb")
session("coaddress")=rs("SMT_coaddress")
end if

rs.close
set rs=nothing

if key=0 then
vipjbzt="待审"
elseif key=1 then
vipjbzt="正常"
elseif key=2 then
vipjbzt="过期"
elseif key=3 then
vipjbzt="推荐"
end if

if vip=1 then
vipjb="VIP会员申请中..."
elseif vip=2 then
vipjb="VIP会员"
elseif vip=3 then
vipjb="试用会员申请中..."
elseif vip=4 then
vipjb="试用会员"
elseif vip=5 then
vipjb="普通会员申请中..."
elseif vip=6 then
vipjb="普通会员"
end if

tian=cdate(year(ktdate)&"-"&month(ktdate)&"-"&day(ktdate))-date()
ztian=cdate(year(ktdate)&"-"&month(ktdate)&"-"&day(ktdate))-cdate(year(ksdate)&"-"&month(ksdate)&"-"&day(ksdate))
'----------------------用户到期提醒----------------------
if session("userdq")=1 then
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
session("userdq")=1
end if
'------------------用户过期或权限提醒--------------------------
if (key1=0 or key=0 or key=2) 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
%>
<!--#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=#cc3300>提醒:系统无任何动作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 + -