📄 showinfo.asp
字号:
<!--#include file="isValidUser.asp"-->
<%
if session("userID")="" then
%>
<!--#include file="top.asp"-->
<%
else
%>
<!--#include file="top1.asp"-->
<%
end if
%>
<%
Response.Expires = 0
Response.ExpiresAbsolute=now()-1
const recordsize=5
function doPrice(p,t)
if p=0 then
doPrice="面议"
else
doPrice=p&infoArr(t)
end if
end function
dim mycurpage,rs,sql,pagemsg,totalpage,recordlen
infoArr=array("RMB","万游戏币")
typeArr1=array("出售","求购")
typeArr2=array("点卡","帐号","装备","游戏币","游戏周边产品","其他")
picArr=array("无图片","有图片")
'/////////////////////////////////////////////////////////////////////////////
if request.querystring("curpage")="" then
mycurpage=1
else
mycurpage=cint(request.querystring("curpage"))
end if
sql="select * from ziliao where pubID = "&clng(session("userID"))
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,3,1
recordlen=rs.recordcount
if recordlen mod recordsize=0 then
totalpage=recordlen/recordsize
else
totalpage=fix(recordlen/recordsize)+1
end if
'/////////////////////////////////////////////////////////////////////////////
pagemsg="总共 <font color='#ff0000'>"&recordlen&"</font> 条 <font color='#ff0000'>"&"</font> 每页 <font color='#ff0000'>"&recordsize&"</font> 条 当前: "&mycurpage&" / "&totalpage&"页"
if mycurpage=1 then
pagemsg=pagemsg&" [首页] "
else
pagemsg=pagemsg&" <a href='?curpage=1'>[首页]</a> "
end if
if mycurpage=1 then
pagemsg=pagemsg&" [上页] "
else
pagemsg=pagemsg&" <a href='?curpage="&(mycurpage-1)&"'>[上页]</a> "
end if
if mycurpage=totalpage then
pagemsg=pagemsg&" [下页] "
else
pagemsg=pagemsg&" <a href='?curpage="&(mycurpage+1)&"'>[下页]</a> "
end if
if mycurpage=totalpage then
pagemsg=pagemsg&" [尾页]"
else
pagemsg=pagemsg&" <a href='?curpage="&totalpage&"'>[尾页]</a>"
end if
%>
<style>
<!--
a:link.nav {COLOR: #ffffff;TEXT-DECORATION: none}
.navbg {filter : progid:DXImageTransform.Microsoft.DropShadow(color=#ffffff,offX=1,offY=1,positives=true);}
.navbg1 {filter : progid:DXImageTransform.Microsoft.DropShadow(color=#6C2C00,offX=1,offY=1,positives=true);}
a:link.nav1 {COLOR: #434343;TEXT-DECORATION: none}
.toptext {color: #555555;filter:dropshadow(color=#ffffff,offx=1,offy=1,positive=1);}
-->
</style>
<script language='javascript'>
function openMoneyWin(myid,flag){
var newWin=window.open("seeInfo.asp?id="+myid+"&flagid="+flag,"","width=785,height=350,top=30,left=100,scrollbars=yes");
}
function btndelclick(url,dostr,fieldstr,tablestr,liststr,flag){
frmInfos.action=url+"?key="+dostr+"&fieldname="+fieldstr+"&tblname="+tablestr+"&idlist="+liststr+"&flagid="+flag;
frmInfos.submit();
}
function btnupdateclick(url,keystr,liststr){
frmInfos.action=url+"?key="+keystr+"&idlist="+liststr;
frmInfos.submit();
}
function btneditinfo(url,liststr){
if (liststr=="")
window.alert("对不起,请先选择一项,然后编辑!")
else if(liststr.indexOf(",")>0)
window.alert("对不起,只能选择一项编辑!")
else{
var newWin=window.open(url+"?id="+liststr,"","width=778,height=550,top=30,left=100");
//frmInfos.submit();
}
}
function CreateList(id){
if (id==0){
document.frmInfos.dellist.value='';
for(x=0;x<frmInfos.checkY.length;x++){
document.frmInfos.checkY[x].checked=true;
if(document.frmInfos.dellist.value=='')
document.frmInfos.dellist.value=document.frmInfos.id[x].value;
else
document.frmInfos.dellist.value=document.frmInfos.dellist.value+','+document.frmInfos.id[x].value;
}
}
if (id==1){
for(x=0;x<frmInfos.checkY.length;x++)
document.frmInfos.checkY[x].checked=false;
document.frmInfos.dellist.value='';
}
if (id==2){
if (frmInfos.checkY.length>1){
document.frmInfos.dellist.value='';
for(x=0;x<frmInfos.checkY.length;x++){
if(document.frmInfos.checkY[x].checked){
if(document.frmInfos.dellist.value=='')
document.frmInfos.dellist.value=document.frmInfos.id[x].value;
else
document.frmInfos.dellist.value=document.frmInfos.dellist.value+','+document.frmInfos.id[x].value;
}
}
}
else{
if(document.frmInfos.checkY.checked)
document.frmInfos.dellist.value=document.frmInfos.id.value
else
document.frmInfos.dellist.value='';
}
}
}
</script>
<body style="text-align: center">
<table border="0" width="100%" cellspacing="0" cellpadding="0" background="images/bg1.jpg" height="100%">
<tr>
<td valign=top>
<table border="0" width="900" cellspacing="0" cellpadding="0">
<tr>
<td width="900" colspan="3" height="7"></td>
</tr>
<tr>
<td width="65"> </td>
<td width="778" height="50">
<table border="0" width="778" cellspacing="0" cellpadding="0">
<tr>
<td width="9">
<img border="0" src="images/2vv2_r7_c2.gif" width="9" height="50"></td>
<td width="759" background="images/2vv2_r7_c4.gif">
<table border="0" width="100%" cellspacing="0" cellpadding="0" height="100%">
<%
call getGameName2
for i=0 to 20
if i=0 then response.write "<tr height=21>"
response.write "<td align='center'valign=bottom class=top><a href='search.asp?key="&tmpArr1(i)&"'>"&formatGameName(tmpArr2(i))&"</a> |</td>"
if i mod 11 =10 and i>0 then response.write "</tr><tr height=22>"
next
response.write "<td align='center' valign=bottom class=top><a href='search.asp?key=all'>全 部...</a></td>"
%>
</table>
</td>
<td width="10">
<img border="0" src="images/2vv2_r7_c31.gif" width="10" height="50"></td>
</tr>
</table>
</td>
<td width="57"> </td>
</tr>
<tr>
<td width="65"></td>
<td width="778" height="7"></td>
<td width="57"></td>
</tr>
<tr>
<td width="65"> </td>
<td width="778">
<div align="center">
<table border="0" width="770" cellspacing="0" cellpadding="0">
<tr>
<td background="images/2_r1_c2.gif" width="22">
<img border="0" src="images/2_r1_c1.gif" width="22" height="33"></td>
<td background="images/2_r1_c2.gif" width="724" valign=bottom>
<table border="0" cellspacing="0" cellpadding="0" height="28">
<tr>
<td class=navbg>艾维游戏交易平台---管理中心</td>
</tr>
</table>
</td>
<td background="images/2_r1_c2.gif" width="24">
<img border="0" src="images/2_r1_c3.gif" width="24" height="33"></td>
</tr>
<tr>
<td background="images/2_r2_c1.gif" width="770" colspan="3" height="30">
<div align="center">
<table border="0" width="96%" cellspacing="0" cellpadding="0">
<tr >
<td width="748" class=top>
<b><%=session("username")%>欢迎光临:</b> 艾维游戏交易平台将真诚为您提供最完善的服务! 本站QQ客服:
648081898</td>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td width="770" colspan="3" valign=top>
<table border="0" width="770" cellspacing="0" cellpadding="0">
<tr>
<td width="13" bgcolor="#69B4FE" valign=top>
<img border="0" src="images/2_r3_c1.gif" width="13" height="185"></td>
<td width="744" bgcolor="#FFFFFF" valign=top><table border="1" width="100%" cellspacing="0" cellpadding="0" style="border-collapse: collapse" bordercolor="#1965CD" height="300">
<tr><td valign=top>
<table border="0" width="742" cellpadding="2" height="100%">
<tr>
<td width="142">
<table border="0" width="100%" cellspacing="3" cellpadding="3" height="100%" bgcolor="#2B78DA">
<tr>
<td>
<table border="0" width="100%" cellspacing="0" cellpadding="0" height="100%" bgcolor="#FFFFFF">
<tr>
<td height="23" bgcolor="#AEB8CE">
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td>
<p align="center">
<img border="0" src="images/icon1.gif"></td>
<td width="113" height="27"><b>系统菜单列表</b></td>
</tr>
</table>
</td>
</tr>
<tr>
<td valign=top bgcolor="#EBEDF3">
<table border="1" width="100%" cellspacing="1" cellpadding="0" bordercolorlight="#C5CCDC" bordercolordark="#FFFFFF" bgcolor="#DEE2EB">
<tr>
<td height="26">
<font color="#FFFFFF"><a href="password.asp">修改登录密码</a></font></td>
</tr>
<tr>
<td height="26">
<font color="#FFFFFF"><a href="manage.asp">个人资料管理</a></font></td>
</tr>
<tr>
<td height="26">
<font color="#FFFFFF"><a href="pubInfo.asp">发布交易信息</a></font></td>
</tr>
<tr>
<td height="26">
<font face="Webdings" color="#800000">
4</font><font color="#FFFFFF"><a href="showInfo.asp"><font color="#800000">查看已发布信息</font></a></font></td>
</tr>
<tr>
<td height="26"> <a href="exit.asp">退出管理系统</a></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
<td width="576">
<table border="0" width="100%" cellpadding="0" cellspacing="0">
<tr>
<td><font color="#A52829"><b>友情提示:<br>
</b>及时更新您发布的交易信息的时间,有助您的发布的交易信息更快被玩家所查询!!同进您也可点击留言下方的留言条数来查看玩家给您的留言!</font></td>
</tr>
</table>
<table class="outborder" cellSpacing="0" cellPadding="0" border="0" style="border-width: 0" >
<form action="action.asp" method="post" name="frmInfos"> <tr>
<td align="right" height="10" width="596" colspan="2"><input name="dellist" size="6" type='hidden'>
</td>
</tr>
<tr>
<td align="right" width="776"> </td>
</tr>
<tr>
<td align="center" height="100%" valign="top">
<table cellSpacing="0" cellPadding="0" width="100%" border="1" bordercolorlight="#E1E3EE" bordercolordark="#FFFFFF">
<tr align="center" bgColor="#effef7">
<td height="25" bgcolor="#EFF0F5" width="90"><b>游戏名称</b></td>
<td nowrap bgcolor="#EFF0F5" height="25" width="70"><b>交易类型</b></td>
<td bgcolor="#EFF0F5" height="25" width="110"><b>游戏区服</b></td>
<td nowrap bgcolor="#EFF0F5" height="25" width="150"><b>信息标题</b></td>
<td bgcolor="#EFF0F5" height="25" width="50"><b>留言</b></td>
<td nowrap bgcolor="#EFF0F5" height="25" width="80">
<b>时间</b></td>
<td bgcolor="#EFF0F5" height="25" width="30"><b>选择</b></td>
</tr>
<%
if recordlen=0 then
response.write "<tr><td align='center' colspan=7 height=220 valign='middle'>对不起,您还没有发布任何交易信息...</td></tr>"
'response.end
else
rs.move((mycurpage-1)*recordsize)
for i=0 to recordsize-1
'tmpType=split(rs("tradeType"),",")
tmpid=rs("id")
mygamename=getGameName(rs("gameName"))
mygamename=right(mygamename,len(mygamename)-5)
response.write "<tr align='center' bgcolor='#ffffff'>"
response.write "<td>"&mygamename
response.write "<td nowrap>"&typeArr1(rs("tradeType"))
response.write "<td>"&rs("gameService")
response.write "<td height=30><a href='seeInfo.asp?id="&tmpid&"&flagid=0"&mytmpid&"' title='点此查看此交易详细信息' target=_blank>"&rs("tradeTitle")&"</a>"
if isnull(rs("recommed")) or rs("recommed")="" then
response.write "<td>0 条"
else
tmpbook=rs("recommed")
tmpbookArr=split(tmpbook,"#")
response.write "<td><a target='_blank' href='showBook.asp?bookid="&rs("id")&"'><font color='#ff0000'>"&ubound(tmpbookArr)&" 条</font></a>"
end if
response.write "<td><font color='red'>"&rs("pubDate")&"</font>"
response.write "<td><input type='checkbox' name='checkY' onclick='CreateList(2);'><input name='id' type='hidden' size='2' value="&rs("id")&">"
response.write "</tr>"
rs.movenext
if rs.eof then exit for
next
end if
rs.close
set rs=nothing
%>
</table><p>
<div align="right">
<p align="center">
<%
if recordlen>0 then response.write pagemsg
if recordlen>1 then
%>
|| <a style="cursor:hand" onclick="CreateList(0);"><font color="#000000">[全选]</font></a>
<font color="#000000"><a style="cursor:hand" onclick="CreateList(1);">[全不选]</a>
</font>
<%
end if
if recordlen>0 then
%>
<font color="#000000"><a style="cursor:hand;color:red" onclick="btndelclick('action.asp','delete','id','ziliao',frmInfos.dellist.value,'0');">[删除选择信息]</a></font>
<br>
<br>
<b>
<a style="cursor:hand;color:red" onclick="btnupdateclick('action.asp','update',frmInfos.dellist.value);">[更新发布时间]</a> </b></p>
<p>
<%
end if
%>
</div></td>
</tr></form></table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
<td width="13" bgcolor="#69B4FE" valign=top>
<img border="0" src="images/2_r3_c1.gif" width="13" height="185"></td>
</tr>
<tr>
<td width="13" height="10">
<img border="0" src="images/2_r4_c1.gif" width="13" height="10"></td>
<td width="744" bgcolor="#69B4FE"></td>
<td width="13" bgcolor="#69B4FE">
<img border="0" src="images/2_r4_c11.gif" width="13" height="10"></td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</td>
<td width="57"> </td>
</tr>
<tr>
<td width="65"></td>
<td width="778" height="7"></td>
<td width="57"></td>
</tr>
<tr>
<td width="65"> </td>
<td width="778">
<table border="0" width="778" cellspacing="0" cellpadding="0">
<tr>
<td width="778" height=7></td>
</tr>
<tr>
<td width="778"><!--#include file="bottom.asp"-->
</td>
</tr>
<tr>
<td width="778">
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</td>
<td width="57"> </td>
</tr>
</table>
</td>
</tr>
</table>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -