📄 man.asp
字号:
<!--#include file="cn.asp"-->
<%
if session("user")="" then
response.Redirect "../login.asp"
end if
xyh=session("xyh")
uname=session("user")
set rs=server.CreateObject("adodb.recordset")
select case xyh
case 1
sql="select * from sheji where uname='"&uname&"'"
rs.open sql,cn,1,1
pic=replace(rs("pic"),"..","../reg/")
case 2
sql="select * from users where uname='"&uname&"'"
rs.open sql,cn,1,1
case 3
sql="select * from company where uname='"&uname&"'"
rs.open sql,cn,1,1
pic=replace(rs("pic"),"..","../reg/")
'response.Write pic
end select
%>
<link href="images/style.css" rel="stylesheet" type="text/css" />
<script type="text/JavaScript">
<!--
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_showHideLayers() { //v6.0
var i,p,v,obj,args=MM_showHideLayers.arguments;
for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
obj.visibility=v; }
}
//-->
</script>
<style type="text/css">
<!--
body {
margin-top: 0px;
}
.STYLE1 {color: #FF0000}
-->
</style><table width="500" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="321" height="30" align="center" valign="top">
<span class="STYLE1">您的注册编号:Lygzsw<%=rs("id")%></span><br />
<%=uname%>欢迎您第<%=rs("times")%>次来访</td>
<td width="179" align="center" valign="middle" class="glow">推荐企业</td>
</tr>
<tr>
<td height="122" align="center" valign="top">
<%if session ("company")<>"" or session("sheji")<>"" then%>
<img src="<%=pic%>" width="150" height="120">
</p>
图片 <%end if%></td>
<td valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="179" height="122" valign="top"><table cellspacing="2" cellpadding="0" width="100%" border="0"
style="BORDER-RIGHT: #cccccc 1px solid; BORDER-TOP: #cccccc 1px solid; BORDER-LEFT: #cccccc 1px solid; BORDER-BOTTOM: #cccccc 1px solid">
<!--DWLayoutTable-->
<tbody>
<%set rs=server.CreateObject("adodb.recordset")
sql="select top 6 * from company where shenhe=yes and gg=yes order by id desc"
rs.open sql,cn,1,1
for i=1 to 6%>
<tr>
<td width="159" height="20" valign="top"><img src="../images/dot_z.gif" width="10" height="10" /><a href="<%=rs("http")%>"><%=left(rs("cname"),10)%></a></td>
<td width="41" valign="top"><a href="../cproduct.asp?cid=<%=rs("id")%>">产品</a></td>
</tr>
<%
rs.movenext
if rs.eof then exit for
next
%>
</tbody>
</table></td>
</tr>
</table> </td>
</tr>
</table>
<%
rs.close
set rs=nothing
%>
<SCRIPT language=javascript>
//more javascript from http://www.smallrain.net
window.onload = enetgetMsg;
window.onresize = enetresizeDiv;
window.onerror = function(){}
var enetdivTop,enetdivLeft,enetdivWidth,enetdivHeight,enetdocHeight,enetdocWidth,enetobjTimer,i = 0;
function enetgetMsg()
{
try{
enetdivTop = parseInt(document.getElementById("enetMeng").style.top,10)
enetdivLeft = parseInt(document.getElementById("enetMeng").style.left,10)
enetdivHeight = parseInt(document.getElementById("enetMeng").offsetHeight,10)
enetdivWidth = parseInt(document.getElementById("enetMeng").offsetWidth,10)
enetdocWidth = document.body.clientWidth;
enetdocHeight = document.body.clientHeight;
document.getElementById("enetMeng").style.top = parseInt(document.body.scrollTop,10) + enetdocHeight + 10;// enetdivHeight
document.getElementById("enetMeng").style.left = parseInt(document.body.scrollLeft,10) + enetdocWidth - enetdivWidth
document.getElementById("enetMeng").style.visibility="visible"
enetobjTimer = window.setInterval("enetmoveDiv()",10)
}
catch(e){}
}
function enetresizeDiv()
{
i+=1
if(i>600) enetcloseDiv()
try{
enetdivHeight = parseInt(document.getElementById("enetMeng").offsetHeight,10)
enetdivWidth = parseInt(document.getElementById("enetMeng").offsetWidth,10)
enetdocWidth = document.body.clientWidth;
enetdocHeight = document.body.clientHeight;
document.getElementById("enetMeng").style.top = enetdocHeight - enetdivHeight + parseInt(document.body.scrollTop,10)
document.getElementById("enetMeng").style.left = enetdocWidth - enetdivWidth + parseInt(document.body.scrollLeft,10)
}
catch(e){}
}
function enetmoveDiv()
{
try
{
if(parseInt(document.getElementById("enetMeng").style.top,10) <= (enetdocHeight - enetdivHeight + parseInt(document.body.scrollTop,10)))
{
window.clearInterval(enetobjTimer)
enetobjTimer = window.setInterval("enetresizeDiv()",1)
}
enetdivTop = parseInt(document.getElementById("enetMeng").style.top,10)
document.getElementById("enetMeng").style.top = enetdivTop - 1
}
catch(e){}
}
function enetcloseDiv()
{
document.getElementById('enetMeng').style.visibility='hidden';
if(enetobjTimer) window.clearInterval(enetobjTimer)
}
</SCRIPT>
<DIV id=enetMeng
style="BORDER-RIGHT: #455690 1px solid; BORDER-TOP: #a6b4cf 1px solid; Z-INDEX: 99999; LEFT: 0px; BORDER-LEFT: #a6b4cf 1px solid; WIDTH: 241px; BORDER-BOTTOM: #455690 1px solid; POSITION: absolute; TOP: -200px; HEIGHT: 157px; visibility: visible;" onclick="MM_showHideLayers('enetMeng','','hide')">
<TABLE WIDTH=255 BORDER=0 CELLPADDING=0 CELLSPACING=0 bgcolor="#DAE6FC">
<TR>
<TD height="30" valign="top" background="qqimages/heihei_1.jpg">
<table width="255" height="19" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="212" valign="bottom"><strong><font size="2"> <font color="#FF6600">消息框</font></font></strong></td>
<td width="43" style="cursor:hand" onClick="enetcloseDiv()"> </td>
</tr>
</table> </TD>
</TR>
<TR>
<TD height="122" background="qqimages/heihei_2.jpg" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="1">
<tr>
<td width="95%"><table align="center" width="98%"><tr><td>
欢迎你来到连云港装饰网!
你将拥有相应的发布权限,来发布你的信息。我们的宗旨是:服务世界一溜服务 打造网络知名品牌<br />
连云港装饰网(属连云港热线fhttp://www.lygrx.com<br />
连云港网隆科技有限公司
)
</td><tr></table></td>
</tr>
</table> </TD>
</TR>
<TR>
<TD>
<IMG SRC="qqimages/heihei_3.gif" WIDTH=255 HEIGHT=7 ALT=""></TD>
</TR>
</TABLE></div>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -