PublicManage.asp
资源名称:eat.rar [点击查看]
上传用户:jisenq
上传日期:2014-06-29
资源大小:7216k
文件大小:24k
源码类别:
数据库编程
开发平台:
ASP/ASPX
- <% Option Explicit %>
- <!--#include file="../../FS_Inc/Const.asp" -->
- <!--#include file="../../FS_InterFace/MF_Function.asp" -->
- <!--#include file="../../FS_Inc/Function.asp" -->
- <!--#include file="../lib/strlib.asp" -->
- <!--#include file="../lib/UserCheck.asp" -->
- <!--#include file="../../FS_Inc/Func_Page.asp" -->
- <%
- '获得留言
- dim book_rs,new_count
- set book_rs= Server.CreateObject(G_FS_RS)
- book_rs.open "Select count(BookID) From FS_ME_Book where M_ReadUserNumber='"&Fs_User.UserNumber&"' and M_ReadTF=0 and M_Type=2",User_Conn,1,3
- if book_rs(0)>0 then
- new_count = "<span class=""tx""><b>您有新留言"& book_rs(0) &"</b></span>"
- else
- new_count = book_rs(0)
- end if
- book_rs.close:set book_rs = nothing
- if Request("Action")="del" then
- if trim(replace(Request("id")," ",""))="" then
- strShowErr = "<li>请至少选择一项</li>"
- Response.Redirect(""& s_savepath &"/lib/error.asp?ErrCodes="&Server.URLEncode(strShowErr)&"&ErrorUrl=")
- Response.end
- end if
- Conn.execute("Delete from FS_SD_News where id in ("& replace(Request("id")," ","") &") and UserNumber='"& Fs_User.UserNumber &"'")
- strShowErr = "<li>删除成功</li>"
- Response.Redirect(""& s_savepath &"/lib/success.asp?ErrCodes="&Server.URLEncode(strShowErr)&"&ErrorUrl="& s_savepath &"/supply/PublicManage.asp")
- Response.end
- end if
- if NoSqlHack(Request.QueryString("Refresh"))="1" then
- dim u_rs
- set u_rs= Server.CreateObject(G_FS_RS)
- u_rs.open "select EditTime,id from FS_SD_News where id="& NoSqlHack(Request.QueryString("id")) &" and UserNumber='"& Fs_User.UserNumber &"'",Conn,1,3
- u_rs("EditTime")=now
- u_rs.update
- u_rs.close:set u_rs=nothing
- strShowErr = "<li>重发成功</li>"
- Response.Redirect(""& s_savepath &"/lib/success.asp?ErrCodes="&Server.URLEncode(strShowErr)&"&ErrorUrl="& s_savepath &"/supply/PublicManage.asp")
- Response.end
- end if
- if NoSqlHack(Request("UserLock"))="1" then
- if trim(replace(Request("id")," ",""))="" then
- strShowErr = "<li>请至少选择一项</li>"
- Response.Redirect(""& s_savepath &"/lib/error.asp?ErrCodes="&Server.URLEncode(strShowErr)&"&ErrorUrl=")
- Response.end
- end if
- Conn.execute("Update FS_SD_News set islock=1 where id in ("& replace(Request("id")," ","") &") and UserNumber='"& Fs_User.UserNumber &"'")
- strShowErr = "<li>撤消成功</li>"
- Response.Redirect(""& s_savepath &"/lib/success.asp?ErrCodes="&Server.URLEncode(strShowErr)&"&ErrorUrl="& s_savepath &"/supply/PublicManage.asp")
- Response.end
- end if
- if NoSqlHack(Request("UserLock"))="0" then
- if trim(replace(Request("id")," ",""))="" then
- strShowErr = "<li>请至少选择一项</li>"
- Response.Redirect(""& s_savepath &"/lib/error.asp?ErrCodes="&Server.URLEncode(strShowErr)&"&ErrorUrl=")
- Response.end
- end if
- Conn.execute("Update FS_SD_News set islock=0 where id in ("& replace(Request("id")," ","") &") and UserNumber='"& Fs_User.UserNumber &"'")
- strShowErr = "<li>提交成功,等待审核</li>"
- Response.Redirect(""& s_savepath &"/lib/success.asp?ErrCodes="&Server.URLEncode(strShowErr)&"&ErrorUrl="& s_savepath &"/supply/PublicManage.asp")
- Response.end
- end if
- Dim int_RPP,int_Start,int_showNumberLink_,str_nonLinkColor_,toF_,toP10_,toP1_,toN1_,toN10_,toL_,showMorePageGo_Type_,cPageNo,strpage,rs,i
- int_RPP=20 '设置每页显示数目
- int_showNumberLink_=8 '数字导航显示数目
- showMorePageGo_Type_ = 1 '是下拉菜单还是输入值跳转,当多次调用时只能选1
- str_nonLinkColor_="#999999" '非热链接颜色
- toF_="<font face=webdings title=""首页"">9</font>" '首页
- toP10_=" <font face=webdings title=""上十页"">7</font>" '上十
- toP1_=" <font face=webdings title=""上一页"">3</font>" '上一
- toN1_=" <font face=webdings title=""下一页"">4</font>" '下一
- toN10_=" <font face=webdings title=""下十页"">8</font>" '下十
- toL_="<font face=webdings title=""最后一页"">:</font>"
- dim tmp_lock,tmp_valite,tmp_uselock,tmp_valite_1,para_rs,g_tmp
- set para_rs=Conn.execute("select top 1 warnTime from FS_SD_Config")
- if para_rs.eof then
- response.Write("找不到供求配置信息")
- response.end
- set para_rs=nothing
- else
- g_tmp=para_rs(0)
- if request.QueryString("usvalite")="1" then
- tmp_valite_1 = " and (datevalue(editTime)+ValidTime)-datevalue(now)<="¶_rs(0)&" and (datevalue(editTime)+ValidTime)>=datevalue(now)"
- else
- tmp_valite_1=""
- end if
- set para_rs=nothing
- end if
- strpage=request("page")
- 'if len(strpage)=0 Or strpage<1 or trim(strpage)=""Then:strpage="1":end if
- %>
- <html xmlns="http://www.w3.org/1999/xhtml">
- <title>User Manage Center-网站内容管理系统</title>
- <meta name="keywords" content="风讯cms,cms,FoosunCMS,FoosunOA,FoosunVif,vif,风讯网站内容管理系统">
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
- <meta content="MSHTML 6.00.3790.2491" name="GENERATOR" />
- <link href="../images/skin/Css_<%=Request.Cookies("FoosunUserCookies")("UserLogin_Style_Num")%>/<%=Request.Cookies("FoosunUserCookies")("UserLogin_Style_Num")%>.css" rel="stylesheet" type="text/css">
- <head>
- </head>
- <body>
- <table width="98%" border="0" align="center" cellpadding="1" cellspacing="1" class="table">
- <tr>
- <td>
- <!--#include file="../top.asp" -->
- </td>
- </tr>
- </table>
- <table width="98%" height="135" border="0" align="center" cellpadding="1" cellspacing="1" class="table">
- <tr class="back">
- <td colspan="2" class="xingmu" height="26"> <!--#include file="../Top_navi.asp" -->
- </td>
- </tr>
- <tr class="back">
- <td width="18%" valign="top" class="hback"> <div align="left">
- <!--#include file="../menu.asp" -->
- </div></td>
- <td width="82%" valign="top" class="hback">
- <table width="98%" border="0" align="center" cellpadding="5" cellspacing="1" class="table">
- <tr class="hback">
- <td valign="top">你的位置:<a href="../../">网站首页</a> >> <a href="../main.asp">会员首页</a>
- >> <a href="PublicManage.asp">供求系统</a> >> 供求信息管理</td>
- </tr>
- <tr class="hback">
- <td valign="top"><a href="PublicSupply.asp">发布信息</a>┆<a href="PublicManage.asp">管理信息</a>┆<a href="PublicManage.asp#top10">你的信息浏览排行(TOP10)</a>┆<a href="PublicManage.asp#new">最新供求信息</a>┆<a href="PublicManage.asp#rec">供求推荐</a>┆<a href="../Book.asp?M_type=2">我的新留言(<%=new_count%>)</a></td>
- </tr>
- </table>
- <table width="98%" border="0" align="center" cellpadding="5" cellspacing="1" class="table">
- <tr class="hback">
- <td width="10%"><span class="tx">强烈推荐</span></td>
- <td width="90%">
- <a href=" " id="printWord" ></a><%
- dim i_loop
- set rs= Server.CreateObject(G_FS_RS)
- if G_IS_SQL_DB=0 Then
- rs.open "select top 6 ID,PubTitle,PubType,Addtime,hits,PubAddress,EditTime,UserNumber From FS_SD_News where isLock=0 and isPass=1 and (datevalue(editTime)+ValidTime)>datevalue(now) and OrderID=2 order by EditTime desc,id desc",Conn,1,3
- Else
- rs.open "select top 6 ID,PubTitle,PubType,Addtime,hits,PubAddress,EditTime,UserNumber From FS_SD_News where isLock=0 and isPass=1 and convert(nvarchar(10),editTime+ValidTime,120)>convert(nvarchar(10),getDate(),120) and OrderID=2 order by EditTime desc,id desc",Conn,1,3
- End if
- if rs.eof then
- response.Write("<span class=""tx"">没推荐信息</span>")
- else
- i_loop=0
- %>
- <script language="JavaScript">
- var PublicTime = 3500;
- var TextTime = 20;
- var infoi = 0;
- var txti = 0;
- var txttimer;
- var infotimer;
- var publictitle = new Array();
- var publichref = new Array();
- <%do while not rs.eof %>
- publictitle[<%=i_loop%>] = "<%=Fs_User.GetFriendName(rs("UserNumber"))%>:<%=rs("PubTitle")%>[<%=rs("EditTime")%>]";
- publichref[<%=i_loop%>] = "../../Supply/Supply.asp?id=<%=rs("id")%>";
- <%rs.movenext%>
- <%i_loop=i_loop+1%>
- <%loop%>
- <%rs.close:set rs=nothing%>
- function showinfo()
- {
- var endstr = "_"
- hwinfotr = publictitle[infoi];
- infolink = publichref[infoi];
- if(txti==(hwinfotr.length-1)){endstr="";}
- if(txti>=hwinfotr.length){
- clearInterval(txttimer);
- clearInterval(infotimer);
- infoi++;
- if(infoi>=publictitle.length){
- infoi = 0
- }
- infotimer = setInterval("showinfo()",PublicTime);
- txti = 0;
- return;
- }
- clearInterval(txttimer);
- document.getElementById("printWord").href=infolink;
- document.getElementById("printWord").innerHTML = hwinfotr.substring(0,txti+1)+endstr;
- txti++;
- txttimer = setInterval("showinfo()",TextTime);
- }
- showinfo();
- </script>
- <%end if%>
- </td>
- </tr>
- </table>
- <table width="98%" border="0" align="center" cellpadding="5" cellspacing="1" class="table">
- <form name="myForm" method="post" action="">
- <tr>
- <td height="23" colspan="8" class="hback_1"><a href="PublicManage.asp">全部信息</a>┆<a href="PublicManage.asp?islock=0">已审核</a>┆<a href="PublicManage.asp?islock=1">未审核</a>┆<a href="PublicManage.asp?User_lock=1">用户锁定</a>┆<a href="PublicManage.asp?User_lock=0">用户未锁定</a>┆<a href="PublicManage.asp?valite=1">过期信息</a>┆<a href="PublicManage.asp?usvalite=1" title="有效期小于<%=g_tmp%>天的信息">即将过期的信息</a></td>
- </tr>
- <tr>
- <td width="4%" class="hback_1"><div align="center">
- <input name="chkall" type="checkbox" id="chkall" onClick="CheckAll(this.form);" value="checkbox" title="点击选择所有或者撤消所有选择">
- </div></td>
- <td width="27%" class="hback_1"><div align="center"><strong>标题</strong></div></td>
- <td width="13%" class="hback_1"><div align="center"><strong>收录专栏</strong></div></td>
- <td width="11%" class="hback_1"><div align="center"><strong>到期时间</strong></div></td>
- <td width="21%" class="hback_1"><div align="center"><strong>操作</strong></div></td>
- <td width="8%" class="hback_1"><div align="center"><strong>审核结果</strong></div></td>
- <td width="8%" class="hback_1"><strong>用户锁定</strong></td>
- <td width="8%" class="hback_1"><div align="center"><strong>点击</strong></div></td>
- </tr>
- <%
- if Request.QueryString("islock")="0" then
- tmp_lock=" and ispass=1"
- elseif Request.QueryString("islock")="1" then
- tmp_lock=" and ispass=0"
- else
- tmp_lock=""
- end if
- if Request.QueryString("User_lock")="1" then
- tmp_uselock = " and islock=1"
- elseif Request.QueryString("User_lock")="0" then
- tmp_uselock = " and islock=0"
- else
- tmp_uselock = " "
- end if
- if Request.QueryString("valite")="1" then
- tmp_valite = " and (datevalue(editTime)+ValidTime)<datevalue(now)"
- else
- tmp_valite = " "
- end if
- set rs = Server.CreateObject(G_FS_RS)
- rs.open "select id,PubTitle,EditTime,ValidTime,ispass,islock,hits,MyClassID from FS_SD_News where UserNumber='"& Fs_User.UserNumber&"' " &tmp_lock & tmp_valite & tmp_uselock& tmp_valite_1 &" order by EditTime desc,OrderID desc,id desc",Conn,1,3
- if rs.eof then
- rs.close
- set rs=nothing
- Response.Write"<tr class=""hback""><td colspan=""8"" class=""hback"" height=""40"">没有记录。</td></tr>"
- else
- rs.PageSize=int_RPP
- cPageNo=NoSqlHack(Request.QueryString("Page"))
- If cPageNo="" Then cPageNo = 1
- If not isnumeric(cPageNo) Then cPageNo = 1
- cPageNo = Clng(cPageNo)
- If cPageNo<=0 Then cPageNo=1
- If cPageNo>rs.PageCount Then cPageNo=rs.PageCount
- rs.AbsolutePage=cPageNo
- for i=1 to rs.pagesize
- if rs.eof Then exit For
- %>
- <tr onMouseOver=overColor(this) onMouseOut=outColor(this)>
- <td class="hback"><input name="id" type="checkbox" id="id" value="<%=rs("id")%>"></td>
- <td class="hback"><a href="<% = Replace("/"&G_VIRTUAL_ROOT_DIR&"/" ,"//","/")%>Supply/Supply.asp?id=<%=rs("id")%>" target="_blank"><%=rs("PubTitle")%></a></td>
- <td class="hback"><div align="center">
- <%
- dim rs_z
- set rs_z = User_Conn.execute("select ClassID,ClassCName From FS_ME_InfoClass where ClassID="& rs("MyClassID")&" and UserNumber='"&Fs_User.UserNumber&"'")
- if rs_z.eof then
- response.Write "--"
- else
- Response.Write "<a href=../ShowInfoClass.asp?ClassID="& rs_z("Classid")&"&UserNumber="& Fs_User.UserNumber &">" &rs_z("ClassCName")&"</a>"
- end if
- %>
- </div></td>
- <td class="hback"><div align="center"><%=datevalue(rs("EditTime"))+rs("ValidTime")%></div></td>
- <td class="hback"><div align="center"><a href="PublicSupplyEdit.asp?id=<%=rs("id")%>&Action=edit">修改</a>
- <a href="PublicManage.asp?id=<%=rs("id")%>&Refresh=1">重发</a>
- <a href="PublicSupplyEdit.asp?id=<%=rs("id")%>&Action=Copy">复制</a>
- <%if rs("islock")=0 then%>
- <a href="PublicManage.asp?id=<%=rs("id")%>&UserLock=1" onClick="{if(confirm('确定要撤消吗?n撤消后前台将不能显示')){return true;}return false;}">撤消</a>
- <%else%>
- <a href="PublicManage.asp?id=<%=rs("id")%>&UserLock=0" onClick="{if(confirm('确定要撤消吗?n撤消后前台将不能显示')){return true;}return false;}">提交</a>
- <%end if%>
- <a href="PublicManage.asp?id=<%=rs("id")%>&Action=del" onClick="{if(confirm('确定要删除吗?')){return true;}return false;}">删除</a>
- </div></td>
- <td class="hback"><div align="center">
- <%if rs("ispass")=1 then:response.Write"已审核":else:Response.Write"<span class=""tx"">未审核</span>":end if%>
- </div></td>
- <td class="hback"><div align="center">
- <%if rs("islock")=1 then:response.Write("<span class=""tx"">已撤消</span>"):else:Response.Write("未锁定"):end if%>
- </div></td>
- <td class="hback"><div align="center"><%=rs("hits")%></div></td>
- </tr>
- <%
- rs.movenext
- next
- %>
- <tr class="hback">
- <td colspan="8"><div align="right">
- <%
- response.Write "<p>"& fPageCount(rs,int_showNumberLink_,str_nonLinkColor_,toF_,toP10_,toP1_,toN1_,toN10_,toL_,showMorePageGo_Type_,cPageNo)
- %>
- <input name="Action" type="hidden" id="Action">
- <input name="UserLock" type="hidden" id="UserLock">
- <input type="button" name="Submit" value="删除" onClick="document.myForm.Action.value='del';{if(confirm('确定清除您所选择的记录吗?')){this.document.myForm.submit();return true;}return false;}">
- <input type="button" name="Submit2" value="撤消信息" onClick="document.myForm.UserLock.value='1';{if(confirm('确定撤消信息吗?n撤消后将不能显示')){this.document.myForm.submit();return true;}return false;}">
- <input type="button" name="Submit3" value="提交信息" onClick="document.myForm.UserLock.value='0';{if(confirm('确定重新提交信息吗?')){this.document.myForm.submit();return true;}return false;}">
- </div></td>
- </tr>
- <%
- rs.close:set rs=nothing
- end if
- %>
- </form>
- </table>
- <a name="top10"></a>
- <table width="98%" border="0" align="center" cellpadding="5" cellspacing="1" class="table">
- <tr>
- <td colspan="5" class="xingmu">
- <table width="98%" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td width="2%" valign="top"><strong><img src="../Images/folderclosed.gif" width="16" height="16"></strong></td>
- <td width="98%" valign="bottom" class="xingmu"><strong>你的信息被浏览排行前10名</strong>
- </td>
- </tr>
- </table></td>
- </tr>
- <tr>
- <td width="9%" class="hback_1"><div align="center"><strong>类型</strong></div></td>
- <td width="33%" class="hback_1"><div align="center"><strong>标题</strong></div></td>
- <td width="23%" class="hback_1"><div align="center"><strong>发布日期</strong></div></td>
- <td width="18%" class="hback_1"><div align="center"><strong>到期日期</strong></div></td>
- <td width="17%" class="hback_1"><div align="center"><strong>点击</strong></div></td>
- </tr>
- <%
- set rs= Server.CreateObject(G_FS_RS)
- rs.open "select top 10 ID,PubTitle,PubType,Addtime,ValidTime,EditTime,hits,UserNumber From FS_SD_News where UserNumber='"& Fs_User.UserNumber &"' order by hits desc,id desc",Conn,1,3
- do while not rs.eof
- %>
- <tr onMouseOver=overColor(this) onMouseOut=outColor(this)>
- <td class="hback"> <div align="center">
- <%
- select Case rs("PubType")
- case 0
- response.Write("供应")
- case 1
- response.Write("<span class=""tx"">求购</span>")
- case 2
- response.Write("合作")
- case 3
- response.Write("代理")
- case else
- Response.Write("其他")
- end select
- %>
- </div></td>
- <td class="hback"><div align="left"><a href="<% = Replace("/"&G_VIRTUAL_ROOT_DIR&"/" ,"//","/")%>Supply/Supply.asp?id=<%=rs("id")%>" target="_blank"><%=rs("PubTitle")%></a></div></td>
- <td class="hback"><div align="center"><%=rs("Addtime")%></div></td>
- <td class="hback"><div align="center"><%=datevalue(rs("EditTime"))+rs("ValidTime")%></div></td>
- <td class="hback"><div align="center"><a href=ShowUser.asp?UserNumber=<%=rs("UserNumber")%> target="_blank"><%=rs("hits")%></a></div></td>
- </tr>
- <%
- rs.movenext
- loop
- rs.close:set rs=nothing
- %>
- </table>
- <a name="new"></a> <table width="98%" border="0" align="center" cellpadding="5" cellspacing="1" class="table">
- <tr>
- <td colspan="5" class="xingmu">
- <table width="98%" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td width="2%" valign="top"><strong><img src="../Images/folderclosed.gif" width="16" height="16"></strong></td>
- <td width="98%" valign="bottom" class="xingmu"><strong>最新供求信息20条</strong></td>
- </tr>
- </table></td>
- </tr>
- <tr>
- <td width="9%" class="hback_1"><div align="center"><strong>类型</strong></div></td>
- <td width="33%" class="hback_1"><div align="center"><strong>标题</strong></div></td>
- <td width="23%" class="hback_1"><div align="center"><strong>发布日期</strong></div></td>
- <td width="18%" class="hback_1"><div align="center"><strong>地区</strong></div></td>
- <td width="17%" class="hback_1"><div align="center"><strong>发布人</strong></div></td>
- </tr>
- <%
- set rs= Server.CreateObject(G_FS_RS)
- if G_IS_SQL_DB=0 Then
- rs.open "select top 20 ID,PubTitle,PubType,Addtime,hits,PubAddress,UserNumber From FS_SD_News where isLock=0 and isPass=1 and (datevalue(editTime)+ValidTime)>datevalue(now) order by EditTime desc,id desc",Conn,1,3
- Else
- rs.open "select top 20 ID,PubTitle,PubType,Addtime,hits,PubAddress,UserNumber From FS_SD_News where isLock=0 and isPass=1 and convert(nvarchar(10),editTime+ValidTime,120)>convert(nvarchar(10),getDate(),120) order by EditTime desc,id desc",Conn,1,3
- End if
- do while not rs.eof
- %>
- <tr onMouseOver=overColor(this) onMouseOut=outColor(this)>
- <td class="hback"> <div align="center">
- <%
- select Case rs("PubType")
- case 0
- response.Write("供应")
- case 1
- response.Write("<span class=""tx"">求购</span>")
- case 2
- response.Write("合作")
- case 3
- response.Write("代理")
- case else
- Response.Write("其他")
- end select
- %>
- </div></td>
- <td class="hback"><div align="left"><a href="<% = Replace("/"&G_VIRTUAL_ROOT_DIR&"/" ,"//","/")%>Supply/Supply.asp?id=<%=rs("id")%>" target="_blank"><%=rs("PubTitle")%></a></div></td>
- <td class="hback"><div align="center"><%=rs("Addtime")%></div></td>
- <td class="hback"><div align="center"><%=rs("PubAddress")%></div></td>
- <%if rs("UserNumber")="0" then%>
- <td class="hback"><div align="center">管理员</div></td>
- <%else%>
- <td class="hback"><div align="center"><a href=ShowUser.asp?UserNumber=<%=rs("UserNumber")%> target="_blank"><%=Fs_User.GetFriendName(rs("UserNumber"))%></a></div></td>
- <%end if%>
- </tr>
- <%
- rs.movenext
- loop
- rs.close:set rs=nothing
- %>
- </table>
- <a name="rec" id="rec"></a>
- <table width="98%" border="0" align="center" cellpadding="5" cellspacing="1" class="table">
- <tr>
- <td colspan="5" class="xingmu">
- <table width="98%" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td width="2%" valign="top"><strong><img src="../Images/folderclosed.gif" width="16" height="16"></strong></td>
- <td width="98%" valign="bottom" class="xingmu"><strong>最新推荐信息20条</strong></td>
- </tr>
- </table></td>
- </tr>
- <tr>
- <td width="9%" class="hback_1"><div align="center"><strong>类型</strong></div></td>
- <td width="33%" class="hback_1"><div align="center"><strong>标题</strong></div></td>
- <td width="23%" class="hback_1"><div align="center"><strong>发布日期</strong></div></td>
- <td width="18%" class="hback_1"><div align="center"><strong>地区</strong></div></td>
- <td width="17%" class="hback_1"><div align="center"><strong>发布人</strong></div></td>
- </tr>
- <%
- set rs= Server.CreateObject(G_FS_RS)
- if G_IS_SQL_DB=0 Then
- rs.open "select top 20 ID,PubTitle,PubType,Addtime,hits,PubAddress,UserNumber From FS_SD_News where isLock=0 and isPass=1 and (datevalue(editTime)+ValidTime)>datevalue(now) and OrderID=1 order by EditTime desc,id desc",Conn,1,3
- Else
- rs.open "select top 20 ID,PubTitle,PubType,Addtime,hits,PubAddress,UserNumber From FS_SD_News where isLock=0 and isPass=1 and convert(nvarchar(10),editTime+ValidTime,120)>convert(nvarchar(10),getDate(),120) and OrderID=1 order by EditTime desc,id desc",Conn,1,3
- End if
- do while not rs.eof
- %>
- <tr onMouseOver=overColor(this) onMouseOut=outColor(this)>
- <td class="hback"> <div align="center">
- <%
- select Case rs("PubType")
- case 0
- response.Write("供应")
- case 1
- response.Write("<span class=""tx"">求购</span>")
- case 2
- response.Write("合作")
- case 3
- response.Write("代理")
- case else
- Response.Write("其他")
- end select
- %>
- </div></td>
- <td class="hback"><div align="left"><a href="<% = Replace("/"&G_VIRTUAL_ROOT_DIR&"/" ,"//","/")%>Supply/Supply.asp?id=<%=rs("id")%>" target="_blank"><%=rs("PubTitle")%></a></div></td>
- <td class="hback"><div align="center"><%=rs("Addtime")%></div></td>
- <td class="hback"><div align="center"><%=rs("PubAddress")%></div></td>
- <%if rs("UserNumber")="0" then%>
- <td class="hback"><div align="center">管理员</div></td>
- <%else%>
- <td class="hback"><div align="center"><a href=ShowUser.asp?UserNumber=<%=rs("UserNumber")%> target="_blank"><%=Fs_User.GetFriendName(rs("UserNumber"))%></a></div></td>
- <%end if%>
- </tr>
- <%
- rs.movenext
- loop
- rs.close:set rs=nothing
- %>
- </table></td>
- </tr>
- <tr class="back">
- <td height="20" colspan="2" class="xingmu"> <div align="left">
- <!--#include file="../Copyright.asp" -->
- </div></td>
- </tr>
- </table>
- </body>
- </html>
- <script language="JavaScript" type="text/JavaScript">
- function CheckAll(form)
- {
- for (var i=0;i<form.elements.length;i++)
- {
- var e = myForm.elements[i];
- if (e.name != 'chkall')
- e.checked = myForm.chkall.checked;
- }
- }
- </script>
- <%
- Set Fs_User = Nothing
- %>
- <!--Powsered by Foosun Inc.,Product:FoosunCMS V4.0系列-->