tradeinfo.asp

来自「OA最新破解2008版 全新 破解 希望大家用着舒服」· ASP 代码 · 共 279 行

ASP
279
字号
<!--#include file="../../conn/dbconn2.asp"-->
<!--#include file="../../inc/config.asp"-->
<!--#include file="../../inc/safe.asp"-->
<link rel="stylesheet" type="text/css" href="now.css">
<%
session("geturl")=geturl

if Chkrequest(request("id")) then
id=request("id")
else
Response.Redirect ("../../login/chklogin.asp?login=4")
end if

sql1="select qymc,click,email,phone from corporation where id="&id&" and flag=1" 
set rs1=conn.execute(sql1)
if rs1.eof or rs1.bof then
response.write"<SCRIPT language=JavaScript>alert('对不起,该用户不存在或已非诚信通会员!');"
response.write"javascript:window.close();</SCRIPT>" 
else

conn.execute("update corporation set click=click+1 where id="&id&"") 

type1=replace_text(request("type1"))

sql="select * from info where gsid="&id&" and flag=1"
if type1>"" then sql=sql&" and type='"&type1&"'"
sql=sql&" order by info_id desc"
Set rs= Server.CreateObject("ADODB.Recordset") 
rs.open sql,conn,1,1

msg_per_page=10 '定义每页显示记录条数
%>
<!--#include file="../../inc/headpage.asp"-->
<html>
<head>
<title><%=rs1("qymc")%></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK href="../../css/main.css" rel=stylesheet type=text/css>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

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_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
</head>

<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="MM_preloadImages('images/link_2_on.gif','images/link_c1_on.gif','images/link_a1_on.gif','images/link_b1_on.gif')">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr> 
    <td background="images/blue_tile.gif" height="64"> 
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <TD class=x 
          style="FONT-WEIGHT: bold; FILTER: dropshadow(color=#C2C2C2,offx=1,offy=1,positive=-1); COLOR: #FFFFFF; TEXT-DECORATION: none" 
          align=left height="60"><img src="images/home.gif" width="226" height="82"><%=rs1("qymc")%></td>
          <td>&nbsp;</td>
        </tr>
      
        <tr align="right" bgcolor="#666666"> 
          <td colspan="2"> 
            <table width="627" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td width="90" valign="bottom"><a href="introduce.asp?id=<%=id%>" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image11','','images/link_1_on.gif',1)"><img src="images/link_1.gif" name="Image11" width="90" height="23" border="0"></a></td>
                <td width="90" valign="bottom"><a href="product.asp?id=<%=id%>" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image17','','images/link_2_on.gif',1)"><img src="images/link_2.gif" name="Image17" width="90" height="23" border="0"></a></td>
                <td width="90" valign="bottom"><a href="tradeinfo.asp?id=<%=id%>"><img src="images/info_1_on.gif" width="90" height="23" border="0"></a></td>
                <td width="90" valign="bottom"><a href="work.asp?id=<%=id%>" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image19','','images/link_c1_on.gif',1)"><img src="images/link_c2.gif" name="Image19" width="90" height="23" border="0"></a></td>
                <td width="90" valign="bottom"><a href="contact.asp?id=<%=id%>" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image20','','images/link_a1_on.gif',1)"><img src="images/link_a2.gif" name="Image20" width="90" height="23" border="0"></a></td>
                <td width="90" valign="bottom"><a href="contact.asp?id=<%=id%>" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image21','','images/link_b1_on.gif',1)"><img src="images/link_b2.gif" name="Image21" width="90" height="23" border="0"></a></td>
                <td width="87" valign="bottom"><a href="index.asp?id=<%=id%>"><img src="images/goindex.gif" width="87" height="23" border="0"></a></td>
              </tr>
            </table></td>
        </tr>
        <tr align="right"> 
          <td height="8" colspan="2" bgcolor="#999999"><img src="images/gray_pix.gif" width="8" height="8"></td>
        </tr>
      </table>
    </td>
  </tr>
  <tr> 
    <td bgcolor="#d5d5d5"> 
      <table width="100%" height="400" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td width="150" valign="top"> 
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td bgcolor="#d5d5d5"> 
                  <p>&nbsp;</p>
                  <p>&nbsp;</p>
                </td>
              </tr>
              <tr> 
                <td bgcolor="#FFFFFF" height="1"><img src="images/pixel.gif" width="1" height="1"></td>
              </tr>
              <tr> 
                <td><a href="introduce.asp?id=<%=id%>"><img src="images/link1_blue.gif" width="150" height="30" border="0"></a></td>
              </tr>
              <tr> 
                <td bgcolor="#FFFFFF" height="1"><img src="images/pixel.gif" width="1" height="1"></td>
              </tr>
              <tr> 
                <td><a href="product.asp?id=<%=id%>"><img src="images/link2_blue.gif" width="150" height="30" border="0"></a></td>
              </tr>
              <tr> 
                <td bgcolor="#FFFFFF" height="1"><img src="images/pixel.gif" width="1" height="1"></td>
              </tr>
              <tr> 
                <td><a href="tradeinfo.asp?id=<%=id%>"><img src="images/info_blue_on.gif" width="150" height="30" border="0"></a></td>
              </tr>
              <tr> 
                <td bgcolor="#FFFFFF" height="1"><img src="images/pixel.gif" width="1" height="1"></td>
              </tr>
              <tr> 
                <td><a href="work.asp?id=<%=id%>"><img src="images/link3_blue.gif" width="150" height="30" border="0"></a></td>
              </tr>
              <tr> 
                <td bgcolor="#FFFFFF" height="1"><img src="images/pixel.gif" width="1" height="1"></td>
              </tr>
              <tr> 
                <td><a href="contact.asp?id=<%=id%>"><img src="images/link4_blue.gif" width="150" height="30" border="0"></a></td>
              </tr>
              <tr>
                <td bgcolor="#FFFFFF" height="1"><img src="images/pixel.gif" width="1" height="1"></td>
              </tr>
              <tr>
                <td><a href="link.asp?id=<%=id%>"><img src="images/link5_blue.gif" width="150" height="30" border="0"></a></td>
              </tr>
              <tr>
                <td bgcolor="#FFFFFF" height="1"><img src="images/pixel.gif" width="1" height="1"></td>
              </tr>
              <tr>
                <td><Br><br>
                  <a href="<%=weburl%>" target="_blank"><img src="images/link3_blue1.gif" width="150" height="30" border="0"></a></td>
              </tr>
            </table>
            
          </td>
          <td bgcolor="#FFFFFF" valign="top">

<br>
<SCRIPT language=JavaScript>
function dosearch(){
	var type1 = document.search.type1.value;
	document.search.action = "tradeinfo.asp?id=<%=id%>&type1=" + type1 + "";
	document.search.submit();
	return true;		
}
</SCRIPT>
<TABLE cellSpacing=0 cellPadding=5 width="90%" align=center border=0>
              <FORM name=search action="" method=post>
        <TBODY>
        <TR>
                    <TD bgColor=#f0f0f0><FONT 
            color=#cc0000><STRONG>按供求类型查看:</STRONG></FONT> 
<select name="type1" onchange=dosearch()>
<option value="" selected>全部</option>
<option value="买" <%if type1="买" then response.write"selected"%>>买</option>
<option value="卖" <%if type1="卖" then response.write"selected"%>>卖</option>
</SELECT></TD></TR></TBODY></FORM></TABLE><Br>

<TABLE width="90%" border=0 align="center" cellPadding=4 cellSpacing=0>
<TBODY><TR>
<TD class=M style="BACKGROUND-REPEAT: no-repeat" 
background=images/bg_title.gif>&nbsp;</TD></TR></TBODY></TABLE>
            <%
if rs.eof or rs.bof then
response.write"<div align=center>暂无供求信息<div>"
else
do while not rs.eof and rowcount > 0
%>
            <TABLE width="90%" border=0 align="center" 
cellPadding=6 cellSpacing=0 <%if icolor=0 then response.write"bgColor=#ffffff" else response.write"bgColor=#f6f6f6" end if%>>
              <TBODY>
                <%
if rs("type")="卖" then 
response.write"<TR>"
response.write"<TD class=S vAlign=top noWrap width='20%'><BR><B>"
response.write"<FONT color=#079807>" 
response.write"【"&rs("type")&"】"
response.write"</FONT>"
response.write"</B></TD>"
response.write"<TD width='80%'><BR><B>"
response.write"<A href='showtradeinfo.asp?id="&id&"&type1="&type1&"&info_id="&rs("info_id")&"'>"&rs("showname")&""
if rs("picture")<>"nopicture.gif" then response.write"(图)"
response.write"</A>" 
response.write"</B><SPAN class=S><FONT color=#666666> ("&FormatDate(rs("dateandtime"),1)&")" 
response.write"</FONT></SPAN><BR><BR>"&left(rs("content"),50)&"...<BR>"
response.write"<A href='showtradeinfo.asp?id="&id&"&type1="&type1&"&info_id="&rs("info_id")&"'>"
response.write"<SPAN class=S>[查看详细信息]</SPAN></A> <BR><BR><BR></TD></TR>"
			  
elseif rs("type")="买" then 			  
response.write"<TR>"
response.write"<TD class=S vAlign=top noWrap width='20%'><BR><B>"
response.write"<FONT color=#fc9603>" 
response.write"【"&rs("type")&"】"
response.write"</FONT>"
response.write"</B></TD>"
response.write"<TD width='80%'><BR><b>"
if session("flag")=1 then
response.write"<A href='showtradeinfo.asp?id="&id&"&type1="&type1&"&info_id="&rs("info_id")&"'>"&rs("showname")&""
if rs("picture")<>"nopicture.gif" then response.write"(图)"
response.write"</A></b>" 
response.write"</B><SPAN class=S><FONT color=#666666> ("&FormatDate(rs("dateandtime"),1)&")" 
response.write"</FONT></SPAN><BR><BR>"&left(rs("content"),50)&"...<BR>"
response.write"<A href='showtradeinfo.asp?id="&id&"&type1="&type1&"&info_id="&rs("info_id")&"'>"
response.write"<SPAN class=S>[查看详细信息]</SPAN></A> <BR><BR><BR>"			  
else
response.write"<BR><B>此信息仅供诚信通会员查看 </B><BR><BR>"
response.write"如果您是诚信通会员,请"
response.write"<A href='../../login/login1.asp'>登录</A>后查看!<BR><BR><BR><BR>"
end if
response.write"</TD></TR>"

end if
%>
              </TBODY>
            </TABLE>
            <%
icolor=icolor+1
if icolor>1 then icolor=0
rowcount=rowcount-1
rs.movenext
loop
end if
%>
            
            <TABLE width="90%" border=0 align="center" cellpadding=2 cellspacing=0 style="BORDER-TOP: #9C9A9C 1px solid;BORDER-Bottom: #9C9A9C 1px solid">
              <TBODY>
        <TR>
          <TD class=S align=right bgColor=#f0f0f0><%=listPages2("tradeinfo.asp?id="&id&"&type1="&type1&"")%>  
        </TD></TR></TBODY></TABLE>
<Br>		
</td></tr></table>
      
    </td>
  </tr>
</table>

 <table width=100% border=0 cellpadding=2 cellspacing=0 style="BORDER-TOP: #9C9A9C 1px solid;BORDER-Bottom: #9C9A9C 1px solid">
  <tr align="center"> 
    <td bgcolor="#660000"><br>
      <font color="#FFFFFF">您是第 <%=rs1("click")%> 位访客 欢迎您的光临! 最佳显示分辨率 800*600<br>
      <%=rs1("qymc")%>版权所有<BR>
      联系电话:<%=rs1("phone")%>  Email:<a href="mailto:<%=rs1("email")%>"><%=rs1("email")%></a> 
      <br>
      技术支持:<a href=<%=weburl%> target=_blank><%=webname%></a> 热线电话:<%=hottel%></font></td>
  </tr></table>
</BODY>
</HTML>
<%
end if
rs1.close
set rs1=nothing
rs.close
set rs=nothing
conn.close
set conn=nothing
%>

⌨️ 快捷键说明

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