📄 dangpu.asp
字号:
<!-- #include file="setup.asp" -->
<%
top
if Request.Cookies("username")=empty then
response.redirect "login.asp"
end if
if instr(Request.Cookies("username")," ")>0 then:error("<li>非法操作"):end if
sql="select * from [user] where username='"&Request.Cookies("username")&"'"
rs.Open sql,Conn,1,3
if Request.Cookies("userpass")<>rs("userpass") then
error2("密码错误!")
end if
rs.close
username=Request.Cookies("username")
%>
<head>
<title>社区当铺</title>
</head>
<table border=0 width=97% align=center cellspacing=1 cellpadding=4 class=a2>
<tr class=a3>
<td height=25> <img src=images/Forum_nav.gif> <%ClubTree%> →
<a href="dangpu.asp">社区当铺</a></td>
</tr>
</table><br>
<table border="0" cellpadding="0" align="center" cellspacing="0" style="border-collapse: collapse; border-width: 0" width="97%" id="AutoNumber1">
<tr>
<td width="3%"><img src="images/announce.gif" align="middle"></td>
<td width="67%"><marquee onmouseover="this.stop()" onmouseout="this.start()" width="400" scrollAmount="3"><a href="#" onclick="javascript:open('affiche.asp','','width=400,height=180,resizable,scrollbars')"><%=affichetitle%></a> [<%=affichetime%>]</marquee></td>
</tr>
</table>
<SCRIPT>valigntop()</SCRIPT>
<table cellspacing="1" cellpadding="1" width="97%" align="center" border="0" class="a2"><tr><td height="25" class="a1" colspan="2"> ■<b>社区物品选购<font color=#000000> <a href="shop2.asp"><font color=#000000>礼品店</font></a> | <a href="wqshop.asp"><font color=#000000>武器店</font></a> | <a href="aqshop.asp"><font color=#000000>暗器店</font></a> | <a href="fjshop.asp"><font color=#000000>防具店</font></a> | <a href="dangpu.asp"><font color=#000000>社区当铺</font></a> | <a href="shop.asp"><font color=#000000>其他商品</font></a> | <a href="mytools.asp"><font color=#000000>我的物品</font></a></font></b></td></tr><tr>
<td class="a3"><table cellspacing="0" cellpadding="3" width="97%" border="0" style="border-left: 0px none; border-top: 0px none; border-bottom: 1px none"><tr><td><table border="0" cellpadding="0" cellspacing="0" width="97%">
<br>
<table width="97%" border="0" cellspacing="1" cellpadding="0" height="20" class="a2">
<tr align="center">
<td width="12%" height="25" class="a1">物品名称</td>
<td width="12%" height="25" class="a1">购买价格</td>
<td width="12%" height="25" class="a1">出售价格</td>
<td width="12%" height="25" class="a1">购买日期</td>
<td width="40%" height="25" class="a1">物品介绍</td>
<td width="12%" height="25" class="a1">使用物品</td>
</tr>
<form method="post" action="mytools.asp?menu=sell">
<%
rs.Open "select * from [mytools] where username='"&username&"'",Conn,1,3
if rs.eof then
Response.Write "<table width=100% border=0 cellspacing=1 cellpadding=0 height=20 class=a2><tr align=center>"
Response.Write "<td width=100% height=25 class=a4>你现在没有武器!</td></tr>"
end if
while not rs.eof
%>
<tr align="center">
<td width="12%" class="a3"><a href=# onclick=javascript:open('showtool.asp?toolname=<%=rs("toolname")%>','','width=220,height=170')><%=rs("toolname")%></a></td>
<td width="12%" class="a4"><%=rs("price")%></td>
<td width="12%" class="a3"><%=rs("price")/2%></td>
<td width="12%" class="a4"><%=rs("buydate")%></td>
<td width="40%" align="left" class="a3"><%=rs("info")%></td>
<td width="12%" class="a4"><input type="radio" name="toolname" value="<%=rs("toolname")%>"></td>
</tr>
<%
rs.movenext
wend
rs.close
%></table><br><br>
<table width="97%" border="0" cellspacing="0" cellpadding="0" height="20">
<tr>
<td align="center"><input type="submit" name="Submit" value="出售物品" class="a7" style="width:70px;height:22px">
</td>
</tr>
</table>
</form>
<br>
</td>
</tr>
</table>
</table>
<SCRIPT>valignbottom()</SCRIPT>
<br>
<SCRIPT>valigntop()</SCRIPT>
<table cellspacing="1" cellpadding="1" width="97%" align="center" border="0" class="a2"><tr><td height="25" class="a1" colspan="2"> ■<b> 您的个人状态</b></td></tr><tr>
<td align="middle" width="5%" bgcolor=FFFFFF><img src="images/mystate.gif"></td><td class="a4"><table cellspacing="0" cellpadding="3" width="100%" border="0" style="border-left: 0px none; border-top: 0px none; border-bottom: 1px none"><tr><td><table border="0" cellpadding="0" cellspacing="0" width="100%">
<%sql="select * from [user] where username='"&Request.Cookies("username")&"'"
rs.Open sql,Conn,1,3
%> <tr><td width="25%"> 社区昵称:<%=rs("username")%></td><td width="20%">
社区等级:<Script>document.write(level(<%=rs("experience")%>,<%=rs("membercode")%>,'','')+levelname);</Script> </td><td width="20%">
社区金币:<%=rs("money")%> </td><td width="17%">
发表文章:<%=rs("posttopic")+rs("postrevert")%> </td><td width="18%">
精华文章:<%=rs("goodtopic")%> </td></tr><tr><td>
社区经验:<%=rs("experience")%> </td><td>
社区存款:<%=rs("savemoney")%> </td><td>
魅 力 值:<%=rs("magicpower")%> </td><td>
体 力 值:<%=rs("userlife")%> </td></tr> <tr><td>
社区伴侣:<%if ""&rs("consort")&""=empty then
response.write "无"
else
response.write "<a href=Profile.asp?username="&rs("consort")&">"&rs("consort")&"</a>"
end if%> </td><td>
社区门派:<%if ""&rs("faction")&""="" then
response.write "无"
else
response.write rs("faction")
end if%></td><td colspan="2">
注册日期: <%=rs("regtime")%> </td></tr>
</table></td></tr>
</table></td></tr>
</table>
<SCRIPT>valignbottom()</SCRIPT><br><%
rs.close
htmlend
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -