3.07index.asp
来自「一个诚信信息港门户网 功能: 系统设置 企业会员 个人」· ASP 代码 · 共 719 行 · 第 1/2 页
ASP
719 行
<!--#include file="main.asp"-->
<%set rs=server.createobject("adodb.recordset")
'商机
rs.open "select * from SMT_sca where SMT_key=1 and SMT_key1=1 and SMT_key2=1",conn,1,1
scacount=rs.recordcount
rs.close
'产品
rs.open "select * from SMT_cp where SMT_key=1 and SMT_key1=1 and SMT_key2=1",conn,1,1
cpcount=rs.recordcount
rs.close
'招聘
rs.open "select * from SMT_job_zp where SMT_key=1 and SMT_key1=1 and SMT_key2=1",conn,1,1
zpcount=rs.recordcount
rs.close
'求职
rs.open "select * from SMT_job_qz where SMT_key=1 and SMT_key1=1 and SMT_key2=1 and SMT_iname is not null",conn,1,1
qzcount=rs.recordcount
rs.close
'企业
rs.open "select * from SMT_yp where SMT_key<>0 and SMT_key<>2 and SMT_key1=1",conn,1,1
ypcount=rs.recordcount
rs.close
'展会
rs.open "select * from SMT_exhibit where SMT_key<>0 and SMT_key2=1",conn,1,1
zhcount=rs.recordcount
rs.close
'信息
rs.open "select * from SMT_xxnews where SMT_key=1 and SMT_key1=1 and SMT_key2=1",conn,1,1
newscount=rs.recordcount
rs.close
'信息
rs.open "select * from SMT_news where SMT_key=1 and SMT_key1=1 and SMT_key2=1",conn,1,1
newscount=rs.recordcount+newscount
rs.close%>
<!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>
</hand>
<body topmargin="0">
<%SMT_top%>
<!--###################################################################-->
<%randomize timer
regjm=left(int(rnd*9998)+1000,4)
if len(regjm)>4 then regjm=len(regjm&9999,4)%>
<table width="760" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td width="580" valign="top"><script language=javascript src=ads.asp?priceid=1&place=1></script></td>
<td width="180" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0" style="border:1px #666666 solid">
<tr>
<td height=25 bgcolor=#666666 background="img/bgtitle.gif"> <font color=#ffffff><strong>会员中心</strong></font></td>
</tr>
<%if session("useradmin")<>"" then
goname=session("useradmin")
goid=session("id")%>
<!--#include file="dns/dns.asp"-->
<tr><td height=94 bgcolor="efefef"><p style="line-height:180%">
欢迎光临:<font color=red><strong><%=session("useradmin")%></strong> <%=vipjbzt%></font>
<br> 级别:<font color=red><%=vipjb%></font>
<br> 有效期:<font color=red><%if tian<1 then%><strong>已过期</strong><%else%><%=tian%> 天<%end if%> <%if tian<30 then%>(请尽快续费)<%end if%></font>
<br> <strong><a href=<%=usertwourl%> target=_blank>我的网站</a> <a href=user/admin.asp target="_blank">管理中心</a> <a href=user/logout.asp>登出</a></strong></td></tr>
<%else%>
<script>
var delta=0.15
var collection;
function floaters() {
this.items = [];
this.addItem = function(id,x,y,content)
{
document.write('<DIV id='+id+' style="Z-INDEX: 10; POSITION: absolute; width:80px; height:60px;left:'+(typeof(x)=='string'?eval(x):x)+';top:'+(typeof(y)=='string'?eval(y):y)+'">'+content+'</DIV>');
var newItem = {};
newItem.object = document.getElementById(id);
newItem.x = x;
newItem.y = y;
this.items[this.items.length] = newItem;
}
this.play = function()
{
collection = this.items
setInterval('play()',10);
}
}
function play()
{
if(screen.width<=800)
{
for(var i=0;i<collection.length;i++)
{
collection[i].object.style.display = 'none';
}
return;
}
for(var i=0;i<collection.length;i++)
{
var followObj = collection[i].object;
var followObj_x = (typeof(collection[i].x)=='string'?eval(collection[i].x):collection[i].x);
var followObj_y = (typeof(collection[i].y)=='string'?eval(collection[i].y):collection[i].y);
if(followObj.offsetLeft!=(document.body.scrollLeft+followObj_x)) {
var dx=(document.body.scrollLeft+followObj_x-followObj.offsetLeft)*delta;
dx=(dx>0?1:-1)*Math.ceil(Math.abs(dx));
followObj.style.left=followObj.offsetLeft+dx;
}
if(followObj.offsetTop!=(document.body.scrollTop+followObj_y)) {
var dy=(document.body.scrollTop+followObj_y-followObj.offsetTop)*delta;
dy=(dy>0?1:-1)*Math.ceil(Math.abs(dy));
followObj.style.top=followObj.offsetTop+dy;
}
followObj.style.display = '';
}
}
var theFloaters = new floaters();
theFloaters.addItem('followDiv2',6,80,'<a href=# target=_blank><img src=ad/left.gif border=1></a><br>');
theFloaters.addItem('followDiv1','document.body.clientWidth-106',80,'<a href=# target=_blank><img src=ad/right.gif border=1></a><br>');
theFloaters.play();
</script>
<SCRIPT language=javascript>
var mvtLight="ad/123.gif"
var mvtLink="http://www.886ec.com/"
var mvtAlt=""
brOK=navigator.javaEnabled()?true:false
ns4=(document.layers)?true:false
ie4=(document.all)?true:false
if(mvtLight!=""){
if(ns4){
document.write('<layer id="mvt" width=40 height=60;"><a href="'+mvtLink+'" target=_blank><img src="'+mvtLight+'" border=0 alt="'+mvtAlt+'"><\/a><\/layer>');
}
else{
document.write('<div id="mvt" style="position:absolute; width:60; height:80; z-index:9;"><a href="'+mvtLink+'" target=_blank><img src="'+mvtLight+'" border=0 alt="'+mvtAlt+'"><\/a><\/div>');
}
}
var vmin=3;
var vmax=6;
var vr=5;
var timer1;
function Chip(chipname,width,height)
{this.named=chipname;
this.vx=vmin+vmax*Math.random();
this.vy=vmin+vmax*Math.random();
this.w=width;
this.h=height;
this.xx=0;
this.yy=0;
this.timer1=null;
}
function movechip(chipname)
{
if(brOK)
{eval("chip="+chipname);
if(ns4)
{pageX=window.pageXOffset;
pageW=window.innerWidth;
pageY=window.pageYOffset;
pageH=window.innerHeight;
}
else
{pageX=window.document.body.scrollLeft;
pageW=window.document.body.offsetWidth-8;
pageY=window.document.body.scrollTop;
pageH=window.document.body.offsetHeight;
}
chip.xx=chip.xx+chip.vx;
chip.yy=chip.yy+chip.vy;
chip.vx+=vr*(Math.random()-0.5);
chip.vy+=vr*(Math.random()-0.5);
if(chip.vx>(vmax+vmin)) chip.vx=(vmax+vmin)*2-chip.vx;
if(chip.vx<(-vmax-vmin)) chip.vx=(-vmax-vmin)*2-chip.vx;
if(chip.vy>(vmax+vmin)) chip.vy=(vmax+vmin)*2-chip.vy;
if(chip.vy<(-vmax-vmin)) chip.vy=(-vmax-vmin)*2-chip.vy;
if(chip.xx<=pageX)
{ chip.xx=pageX;
chip.vx=vmin+vmax*Math.random();
}
if(chip.xx>=pageX+pageW-chip.w)
{ chip.xx=pageX+pageW-chip.w;
chip.vx=-vmin-vmax*Math.random();
}
if(chip.yy<=pageY)
{ chip.yy=pageY;
chip.vy=vmin+vmax*Math.random();
}
if(chip.yy>=pageY+pageH-chip.h)
{ chip.yy=pageY+pageH-chip.h;
chip.vy=-vmin-vmax*Math.random();
}
if(ns4){
eval('document.'+chip.named+'.top ='+chip.yy);
eval('document.'+chip.named+'.left='+chip.xx);
}
else{
eval('document.all.'+chip.named+'.style.pixelLeft='+chip.xx);
eval('document.all.'+chip.named+'.style.pixelTop ='+chip.yy);
}
chip.timer1=setTimeout("movechip('"+chip.named+"')",200);
}
}
function stopme(chipname)
{if(brOK)
{//alert(chipname)
eval("chip="+chipname);
if(chip.timer1!=null)
{clearTimeout(chip.timer1)}
}
}
var mvt;
function mvt()
{
mvt=new Chip("mvt",60,80);
if(brOK){
movechip("mvt");
}
}
if(mvtLight!="")window.onload=mvt
//-->
</SCRIPT>
<script language="JavaScript">
<!--
function on_forgetpwd()
{
if (document.Login.Typ(0).checked ==true)
{
document.Login.action="individual/Chkadmin.asp";
document.Login.submit();
}
else
{
document.Login.action="user/Chkadmin.asp";
document.Login.submit();
}
return false;
}
// -->
</script>
<form name="Login" method="post" action="">
<input name="regjm" type="hidden" value="<%=regjm%>">
<input name="ction" type="hidden" value="index">
<tr align=center bgcolor="efefef"><td height=23><strong>用户名:</strong><input type="text" name="user" style="width:53" class=input2> <input name="Typ" type="radio" value="JobSek" class=radio> 个人</td></tr>
<tr align=center bgcolor="efefef"><td height=23><strong>密 码:</strong><input type="password" name="pass" style="width:53" class=input2> <input type="radio" name="Typ" value="comp" class=radio checked> 企业</td></tr>
<tr align=center bgcolor="efefef"><td height=23><strong>认证码:</strong><input type="text" name="regjm1" size="7" style="width:80" class=input2> <%=regjm%></td></tr>
<tr align=center bgcolor="efefef"><td height=25><input type="submit" name="Submit" onclick="return on_forgetpwd();" value=" 提 交 " class=input1> <a href=reg.asp target="_blank"><strong>注册</strong></a> <a href=help.asp?id=3 target="_blank"><strong>忘记密码?</strong></a></td></tr>
</form>
<%end if%>
</table>
</td>
</tr>
<tr><td colspan=2 height=5></td></tr>
</table>
<!--###################################################################-->
<table width="760" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td width="480" valign="top">
<!--===left=======-->
<table width="100%" border="0" cellspacing="0" cellpadding="5" style="border:1px #666666 solid">
<tr>
<td colspan=2 height=35 bgcolor=#666666 background="img/bgtitle.gif"><font color=white> <strong class=f14>最新供求</strong> 企业:<%=ypcount%> 商机:<%=scacount%> 产品:<%=cpcount%> 工作:<%=zpcount+qzcount%> 展会:<%=zhcount%> 信息:<%=newscount%></font></td>
</tr>
<tr>
<td width=50%><script language=javascript src=Include/sca.asp?aid=3&bid=6&cid=22&did=1&eid=1&fid=1></script></td>
<td width=50%><script language=javascript src=Include/sca.asp?aid=2&bid=6&cid=22&did=1&eid=1&fid=1></script></td>
</tr>
</table>
<!--===left end=======-->
</td>
<td width="280" valign="top">
<!--===right=======-->
<table width="272" border="0" cellspacing="0" cellpadding="0" align=right style="border:1px #666666 solid">
<tr>
<td><p style="line-height:190%"><%set rs=server.createobject("adodb.recordset")
sql="select top 5 * from SMT_news where SMT_key=1 and SMT_key1=1 and SMT_key2=1 and SMT_key3=1 order by SMT_id desc"
rs.open sql,conn,1,1
do while not rs.eof
title=trim(rs("SMT_title"))
if cityHTML=1 then
webget="Html/news/"&year(rs("SMT_date"))&month(rs("SMT_date"))&"/"&replace(replace(replace(rs("SMT_date"),"-",""),":","")," ","")&".html"
else
webget="ypnew_view.asp?id="&rs("SMT_id")&""
end if
%>
·<a href=<%=webget%> target="_blank" class=f12><%=LeftT(title,34)%></a><br>
<%rs.movenext
loop
rs.close%></td>
</tr>
<tr><td height=44 align=center>
<img src="img/help.gif" align=absmiddle><a href=help.asp?sort_id=7 target=_blank><strong>新手</strong></a>
<img src="img/help.gif" align=absmiddle><a href=help.asp?sort_id=8 target=_blank class=red><strong>如何防骗</strong></a>
<img src="img/icon_info_02.gif" align=absmiddle><a href=free_ad.asp target=_blank><strong>免费发布供求信息</strong></a></td></tr>
</table>
<!--===right end=======-->
</td>
</tr>
<tr>
<td colspan=2 height=5></td>
</tr>
</table>
<!--###################################################################-->
<table width="760" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td width="480" valign=top>
<!--=========left===============-->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr align=center>
<td height=30 width=90 background="img/tit_4.GIF" class=f14><strong><font color=#000000>商贸机会</font></strong></td>
<td width=5></td>
<td width=90 background="img/tit_2.GIF" class=f14 style="border-top:1px #FFA800 solid;border-left:1px #FFA800 solid;border-right:1px #FFA800 solid"><strong><a href=yp.asp class=black>公司名录</a></strong></td>
<td width=5></td>
<td width=90 background="img/tit_2.GIF" class=f14 style="border-top:1px #FFA800 solid;border-left:1px #FFA800 solid;border-right:1px #FFA800 solid"><strong><a href=cp.asp class=black>产 品</a></strong></td>
<td width=200><font color=990000><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></font></td>
</tr>
<tr>
<td height=6 colspan=6 background="img/tit_3.GIF"></td>
</tr>
<tr>
<td height=22 colspan=6 bgcolor=#efefef style="border-right:1px #B44001 solid;border-left:1px #B44001 solid;border-bottom:2px #999999 solid">
<!--================-->
<table width="478" border="0" cellspacing="0" cellpadding="0">
<tr align=center>
<%set rs=Server.CreateObject("Adodb.Recordset")
sql="select * from SMT_scasort order by SMT_date desc"
rs.open sql,conn,1,1
do while not rs.eof
set rs1=server.createobject("adodb.recordset")
sql1="select * from SMT_sca where SMT_scasort="&rs("SMT_id")&" and SMT_key=1 and SMT_key1=1 and SMT_key2=1"
rs1.open sql1,conn,1,1%>
<td width=80 style="border-right:1px #cccccc solid"><a href=sca_tlist.asp?scasort=<%=rs("SMT_id")%>><%=rs("SMT_scasort")%></a><font color=red>(<%=rs1.recordcount%>)</font></td>
<%rs1.close
rs.movenext
loop
rs.close
set rs=nothing%>
<%set rs1=server.createobject("adodb.recordset")
sql1="select * from SMT_sca where SMT_scasort=0 and SMT_key=1 and SMT_key1=1 and SMT_key2=1"
rs1.open sql1,conn,1,1%>
<td width=78><a href=sca_tlist.asp?scasort=0>其它</a><font color=red>(<%=rs1.recordcount%>)</font></td>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?