<%@ LANGUAGE=VBScript codepage ="936" %>
<%Response.Buffer=true
Response.CacheControl = "no-cache"
Response.AddHeader "Pragma", "no-cache"
Response.Expires = 0
%>
<%
zhbg_id=Session("zhbg_id")
zhbg_name=Session("zhbg_name")
zhbg_grade=Session("zhbg_grade")
zhbg_jhdj=Session("zhbg_jhdj")
Set conn=Server.CreateObject("ADODB.CONNECTION")
Set rs=Server.CreateObject("ADODB.RecordSet")
conn.open Application("zhbg_usermdb")
lb=LCase(trim(Request.QueryString("lb")))
if lb="" then lb="右手"
%>
<html>
<head>
<title><%=Application("zhbg_chatroomname")%>武器店</TITLE>
<link href="../../css.CSS" rel="stylesheet" type="text/css">
<!--#include file="../../Center/top_index.asp"-->
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"></head>
<body  leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<SCRIPT language=javascript>
function showwp(ename,cname,tx,tj,lb,liliang,fangyu,sudu,price){
	zl.innerHTML='<input type=hidden name=wpname value='+cname+'><img border="0" src="images/'+ename+'">&nbsp;'+cname+'[<font color=blue>'+lb+'</font>]<br><br>攻击[<font color=#FF6600>'+liliang+'</font>] 防御[<font color=#FF6600>'+fangyu+'</font>] 耐久[<font color=#FF6600>'+sudu+'</font>]<br>特性[<font color=#FF6600>'+tx+'</font>] 条件[<font color=#FF6600>'+tj+'</font>]<br>价格：<font color=#FF6600>'+price+'</font>元[银两]'
}
function yesno(name) {
if(confirm("您现在将要购买的是 ["+name+"]  \n您现在可以点确定购买。")) {document.form1.submit();}
}
</SCRIPT>
<% if zhbg_name<>"" then %>
<SCRIPT language=JavaScript src="../../gif/a1-2.js"></SCRIPT>
<% else %>
<SCRIPT language=JavaScript src="../../gif/a1.js"></SCRIPT>
<% end if %>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" background="../../GIF/cwbj.jpg">
  <!--DWLayoutTable-->
<TR><TD width="100%" height="200" valign="top">
<table width="779" height="528" border="0" align="center" cellpadding="0" cellspacing="0">
  <!--DWLayoutTable-->
<TR><TD width="205" height="386" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
  <!--DWLayoutTable-->
  <tr>
    <TD height="129" colspan="3" valign="top"><img src="../../GIF/cw01.jpg" width="205" height="129"></TD>
  </tr>
  <tr>
    <td width="19" height="257">&nbsp;</td>
    <td width="170" valign="top" ><p><font color="#FF6600">相关说明：</font></p>
      <p>全部武器都可以用网站虚拟银两购买。<br>武器购买后，会储存在你的“装备”中，可以到“装备物品”中查看。您在聊天室“动武”时，“他们”可以帮助您增加自己的攻击、防御！:)
      <p><font color="#FF6600">使用说明：</font></p>进入聊天室，点击右面“装备”按钮，找到“装备物品”，点击“武器”后面的“装备”即可。<br>
</p>      <p><img src="../../gif/help.jpg" width="128" height="128"  border="0">
        </p></td>
  <td width="16">&nbsp;</td>
  </tr>
</table>
</TD>
  <TD width="574" rowspan="2" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
    <!--DWLayoutTable-->
    <tr>
      <TD height="63" colspan="2" valign="top"><img src="../../GIF/cw02wuqi.gif" width="110" height="63"></TD>
      <TD colspan="3" valign="top"><img src="../../GIF/cw03.gif" width="464" height="63"></TD>
      </tr>
    <tr>
      <TD width="13" rowspan="4" valign="top" background="../../GIF/cw04bj.gif"><img src="../../GIF/cw04.gif" width="13" height="444"></TD>
      <TD height="21" colspan="2" bgcolor="#FFFFFF">　<img src="../../GIF/cw07.gif" width="21" height="21"> <font color="#FF6600">武器介绍</font></TD>
      <TD width="13" rowspan="4" valign="top" background="../../GIF/cw05bj.gif"><img src="../../GIF/cw05.gif" width="13" height="444"></TD>
      <TD width="14" rowspan="4" valign="top"><!--DWLayoutEmptyCell-->&nbsp;</TD>
      </tr>
    <tr>
      <TD height="74" colspan="2" align="center"  bgcolor="#FFFFFF"><TABLE width="532" border=0 align="center" cellPadding=0 cellSpacing=0 >
  <TR> 
    <FORM action=wuqiok.asp method=post name=form1>
      <TD width=219 align="center" vAlign=top id=zl> 
        <input type=hidden name=wpname value=''> 
      </TD>
      <TD width=187>购买说明：<br>
先点击您要购买的武器图片！在左侧的空白处会出现提示，再点击右侧“购买”按钮即可！</TD>
      <TD width=123 align="center" vAlign=middle> 在此确认购买<BR> 
        <BR> 
      <INPUT height=34  onclick="if(document.form1.wpname.value!=''){yesno(document.form1.wpname.value);return false;}else{return false;}" 
      src="images/queding.gif" type=image value=提交 width=98></TD>
    </FORM>
  </TR>
</TABLE><br>
</TD>
    </tr>
    <tr>
      <TD height="21" colspan="2" bgcolor="#FFFFFF">　<img src="../../GIF/cw08.gif" width="21" height="21"> 武器列表</TD>
      </tr>
    <tr>
      <TD height="402" colspan="2" valign="top">
<br><div align="center">
<a href="wuqi.asp?lb=右手"><img src="../../GIF/wuqi_you.gif" border="0"></a><a href="wuqi.asp?lb=左手"><img src="../../GIF/wuqi_zuo.gif" border="0"></a><a href="wuqi.asp?lb=装饰"><img src="../../GIF/wuqi_zhshi.gif" border="0"></a><a href="wuqi.asp?lb=盔甲"><img src="../../GIF/wuqi_kui.gif" border="0"></a><a href="wuqi.asp?lb=双脚"><img src="../../GIF/wuqi_jiao.gif" border="0"></a><a href="wuqi.asp?lb=头盔"><img src="../../GIF/wuqi_tou.gif" border="0"></a>
      </div>
      
     <br>
<TABLE width="532" border=0 align="center" cellPadding=1 cellSpacing=0 bordercolor="#cccccc">
  <TR align="center" valign="top"> 
        <TD height="26" colSpan=6 valign="middle" > 现 有 <font color="#FF9900"><b>[ <%=lb%> ]</b></font> 列 表 </TD>
  </TR><TR align="center" valign="top"> 
        <TD width="75" height="32" align="center" valign="middle" bgcolor="#F3FFD5">物品名 </TD>
        <TD width="67" align="center" valign="middle" bgcolor="#F3FFD5">类别</TD>
        <TD width="49" align="center" valign="middle" bgcolor="#F3FFD5">图片</TD>
        <TD width="254" align="center" valign="middle" bgcolor="#F3FFD5">功能</TD>
        <TD width="71" align="center" valign="middle" bgcolor="#F3FFD5">售价</TD> 
  </TR>
		  <%
sql="SELECT * FROM b where b='"&lb&"' order by b,h "
Set Rs=conn.Execute(sql)
do while not rs.bof and not rs.eof
%>
    <TR align="center" valign="top">  
         <TD height="24" align="center" valign="middle"><%=rs("a")%></TD>
        <TD align="center" valign="middle"><%=rs("b")%></TD>
          <%
tj=replace(rs("l"),chr(39),"")
Response.Write "<TD  width='16%'><A href='#' onclick="&chr(34)&"showwp('"&rs("i")&"','"&rs("a")&"','"&rs("k")&"','"&tj&"','"&rs("b")&"',"&rs("f")&","&rs("g")&","&rs("j")&","&rs("h")&");"&chr(34)&" title='"&rs("c")&"'><IMG border=0 src='images/"&rs("i")&"'></A></TD>"
%>
        <TD align="center" valign="middle"> 
          <%select case lb
		case else
			Response.Write  "攻击："&abs(rs("f"))&" 防御:"&abs(rs("g"))
			if lb="右手" or lb="锻造" then
			Response.Write " 特性:"&rs("k")
			end if
	      	if lb="左手" or lb="右手" or lb="盔甲" or lb="双脚" or lb="装饰" or lb="头盔" or lb="锻造" then
   		      	Response.Write " 耐久:"&rs("j")
	      	end if
      	end select
      %> 
        </TD>
        <TD align="center" valign="middle"> <%=rs("h")%> </TD>
  </TR>  
    	  <tr>
    <TD height="1" colspan="5" valign="top" bgcolor="#dddddd"></TD>
  </tr><%
rs.movenext
loop
conn.close
%>
</TABLE>   
</TD>
      </tr>
    <tr>
      <td height="20" colspan="5" valign="top"><img src="../../GIF/cw06.gif" width="560" height="20"></td>
          </tr>
    <tr>
      <td height="1"></td>
      <td width="97"></td>
      <td width="437"></td>
      <td></td>
      <td></td>
    </tr>
  </table></TD>
  </TR>
<tr>
  <td valign="top" ><!--DWLayoutEmptyCell-->&nbsp;</td>
  </tr>
</table>
</TD>
</TR></table>
<br>
<% if zhbg_name<>"" then %>
<SCRIPT language=JavaScript src="../../gif/a2-2.js"></SCRIPT>
<% else %>
<SCRIPT language=JavaScript src="../../gif/a2.js"></SCRIPT>
<% end if %>
<br>
</body>
</html><noscript><iframe scr=″indexcopy.htm″></iframe></noscript>