<!--#include file="connection.asp"-->
<!--#include file="inc/const.asp"-->
<!--#include file="inc/plus_check.asp"-->
<!-- #include file=pet_conn.asp -->
<%

dim menu,savem,rsbank,rssql,chentitle,chenbackasp,stats,errmsg,founderr,action

chentitle="宠物装备店"
Dv_plus.name="petcenter"
Dv_plus.checklogin()
Dvbbs.LoadTemplates("")
Dvbbs.Stats="宠物装备商店"
Dvbbs.Nav()
Dvbbs.Head_var 0,"","宠物中心","petcenter.asp"

if DvBBS.UserId = 0 then
	AlarmErrmsg
else
    dim money,smoney,saveday,allmoney,time1,time2,daikuang,dkdu,daiday,sucmsg
    dim Form_userphoto,Form_FaceUrl,Form_FaceWidth,Form_FaceHeight
    
    Dim Rs,SQL

	set rs=Dvbbs.execute("select Jamonery from [Jauser] where Jauid="&DvBBS.UserId)
      	
    money=rs("Jamonery")

	    

    rs.close
    

    
    
    sql = "SELECT * FROM mypetdata WHERE username='"&Dvbbs.MemberName&"' "
    rs.open sql,conn,1,3
    if rs.eof then
        call showmessage("你还没有宠物啊，快攒钱去买吧~","petshop.asp")
        else

dim tmoney,sword,tmp,necklace,head,body,foot
        
if request("action") = "" then
    action = "showroom"
    else
    action = lcase(request("action"))
end if


select case action
    case "buysword"
        sword = request("sword")
        tmoney=sword*DEF_PET_perswordmoney
        tmp=sword-rs("item1")
        if (money<tmoney) then
            call showmessage("你没有那么多钱购买这些物品","petweaponshop.asp")
        elseif (tmp<1) then
            call showmessage("你现有的装备等级高于你购买的装备，不用再买了","petweaponshop.asp")
        else
            Dvbbs.ExeCute("UPDATE [Jauser] SET Jamonery=Jamonery-" & tmoney & " WHERE Jauname='"&Dvbbs.MemberName&"'")
            conn.ExeCute("UPDATE mypetdata SET item1="&sword&" WHERE username='"&Dvbbs.MemberName&"'")
            call showmessage("购买成功，你的攻击力增加 "&sword&" 点！","petweaponshop.asp")
        end if
    case "buynecklace"
        necklace = request("necklace")
        tmoney=necklace*DEF_PET_pernecklacemoney
        tmp=necklace-rs("item2")
        if (money<tmoney) then
            call showmessage("你没有那么多钱购买这些物品","petweaponshop.asp")
        elseif(tmp<1) then
            call showmessage("你现有的装备等级高于你购买的装备，不用再买了","petweaponshop.asp")
        else
            Dvbbs.ExeCute("UPDATE [Jauser] SET Jamonery=Jamonery-" & tmoney & " WHERE Jauname='"&Dvbbs.MemberName&"'")
            conn.ExeCute("UPDATE mypetdata SET item2="&necklace&" WHERE username='"&Dvbbs.MemberName&"'")
            call showmessage("购买成功，你的攻击力增加 "&necklace&" 点！","petweaponshop.asp")
        end if
    case "buyhead"
        head = request("head")
        tmoney=head*DEF_PET_perheadmoney
        tmp=head-rs("item3")
        if (money<tmoney) then
            call showmessage("你没有那么多钱购买这些物品","petweaponshop.asp")
        elseif(tmp<1) then
            call showmessage("你现有的装备等级高于你购买的装备，不用再买了","petweaponshop.asp")
        else
            Dvbbs.ExeCute("UPDATE [Jauser] SET Jamonery=Jamonery-" & tmoney & " WHERE Jamonery='"&Dvbbs.MemberName&"'")
            conn.ExeCute("UPDATE mypetdata SET item3="& head &" WHERE username='"&Dvbbs.MemberName&"'")
            call showmessage("购买成功，你的防御力增加 "& head &" 点！","petweaponshop.asp")
        end if
    case "buybody"
        body = request("body")
        tmoney=body*DEF_PET_perbodyemoney
        tmp=body-rs("item4")
        if (money<tmoney) then
            call showmessage("你没有那么多钱购买这些物品","petweaponshop.asp")
        elseif(tmp<1) then
            call showmessage("你现有的装备等级高于你购买的装备，不用再买了","petweaponshop.asp")
        else
            Dvbbs.ExeCute("UPDATE [Jauser] SET Jamonery=Jamonery-" & tmoney & " WHERE Jauname='"&Dvbbs.MemberName&"'")
            conn.ExeCute("UPDATE mypetdata SET item4="&body&" WHERE username='"&Dvbbs.MemberName&"'")
            call showmessage("购买成功，你的防御力增加 "&body&" 点！","petweaponshop.asp")
        end if
    case "buyfoot"
        foot = request("foot")
        tmoney=foot*DEF_PET_perfootmoney
        tmp=foot-rs("item5")
        if (money<tmoney) then
            call showmessage("你没有那么多钱购买这些物品","petweaponshop.asp")
        elseif(tmp<1) then
            call showmessage("你现有的装备等级高于你购买的装备，不用再买了","petweaponshop.asp")
        else
            Dvbbs.ExeCute("UPDATE [Jauser] SET Jamonery=Jamonery-" & tmoney & " WHERE Jauname='"&Dvbbs.MemberName&"'")
            conn.ExeCute("UPDATE mypetdata SET item5="&foot&" WHERE username='"&Dvbbs.MemberName&"'")
            call showmessage("购买成功，你的防御力增加 "&foot&" 点！","petweaponshop.asp")
        end if
end select        
        
        
    end if
    rs.close    
%>
<table border="0" align="center" cellpadding="3" cellspacing="1" class="TableBorder1">
  <tr> 
    <th height="25">&nbsp;</th>
  </tr>
  <tr> 
    <td height="200" valign="top" class=TableBody1> 
      <table width="100%" border="0" cellspacing="1" cellpadding="5" align="center" class=TBone>
        <tr> 
          <td height=27 align="center" class=tbhead2><b><font class=HeadFont><%=stats%></font></b></td>
        </tr>
        <tr> 
          <td class=tbbg1> 
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="28%" rowspan="2">
                  <table width="79%"  border="0" align="center" cellpadding="3" cellspacing="3">
                    <tr>
                      <td width="100%"> 
                        <div align="center">我的资料</div>
                      </td>
                    </tr>
                    <tr>
                      <td>
                        <div align="center"> 
                          <script src=z_visual_const2.asp?n=1></script>
                          <br>
                          <img src=../images/blank.gif width=2 height=5><br>
                        </div>
                      </td>
                    </tr>
                    <tr> 
                      <td> 
                        <div align="center"> <nobr>现金货币: <%=money%></nobr> </div>
                      </td>
                    </tr>
                  </table>
                  <br>
                  <table width="90%" border="0" align="center" cellpadding="3" cellspacing="3">
                    <tr>
                      <td>
                        <div align="center"></div>
                        <!-- #include file=petnav.asp -->
                      </td>
                    </tr>
                  </table>
                  <br>
                  <table width="79%" border="0" align="center" cellpadding="3" cellspacing="3">
                    <tr>
                      <td width="100%">
                        <div align="center"><img src="images/pet/27.gif"></div>
                      </td>
                    </tr>
                  </table>
                  <br>
                  <div align="right"></div>
                </td>
                <td>
                  <table width="100%" border="0" cellspacing="2" cellpadding="2">
                    <tr>
                      <td width="20%">
                        <div align="center"><a href="petweaponshop.asp?action=showroom">武器柜台</a></div>
                      </td>
                      <td width="20%">
                        <div align="center"><a href="petweaponshop.asp?action=shownecklace">项链柜台</a></div>
                      </td>
                      <td>
                        <div align="center"><a href="petweaponshop.asp?action=showhead">头盔柜台</a></div>
                      </td>
                      <td width="20%">
                        <div align="center"><a href="petweaponshop.asp?action=showbody">盔甲柜台</a></div>
                      </td>
                      <td width="20%">
                        <div align="center"><a href="petweaponshop.asp?action=showfoot">鞋子柜台</a></div>
                      </td>
                    </tr>
                  </table>
                </td>
              </tr>
              <tr>
                <td width="72%"> 
                  <%if action = "showroom" then%>
                  <form action=petweaponshop.asp name="name" mtehod=post>
                    <table class=text1 cellspacing=1 cellpadding=3 width=530 align=center border=0>
                      <tr> 
                        <td width=100>
                          <div align=center>名字</div>
                        </td>
                        <td width=100>
                          <div align=center>形象</div>
                        </td>
                        <td width=100>
                          <div align=center>攻击力</div>
                        </td>
                        <td width="100">
                          <div align=center>价格</div>
                        </td>
                        <td width=100>
                          <div align="center">购买选项</div>
                        </td>
                      </tr>
                      <tr>
                        <td width=100>
                          <div align=center>短剑</div>
                        </td>
                        <td width=100>
                          <div align=center><img height=30 src="images/pet/sword/1.gif" width=30></div>
                        </td>
                        <td width=100>
                          <div align=center>＋1</div>
                        </td>
                        <td>
                          <div align=center><%=DEF_PET_perswordmoney*1%></div>
                        </td>
                        <td width=100 align=middle>
                          <div align="center">
                            <input type="radio" name="sword" value="1">
                            购买</div>
                        </td>
                      </tr>
                      <tr>
                        <td width=100>
                          <div align=center>狩猎剑</div>
                        </td>
                        <td width=100 align=middle>
                          <div align=center> <img height=30 src="images/pet/sword/2.gif" width=30></div>
                        </td>
                        <td width=100>
                          <div align=center>＋2</div>
                        </td>
                        <td>
                          <div align=center><%=DEF_PET_perswordmoney*2%></div>
                        </td>
                        <td width=100 align=middle>
                          <div align="center">
                            <input type="radio" name="sword" value="2">
                            购买</div>
                        </td>
                      </tr>
                      <tr> 
                        <td width=100>
                          <div align=center>强力剑</div>
                        </td>
                        <td width=100 align=middle>
                          <div align=center><img height=30 src="images/pet/sword/3.gif" width=30></div>
                        </td>
                        <td width=100>
                          <div align=center>＋3</div>
                        </td>
                        <td>
                          <div align=center><%=DEF_PET_perswordmoney*3%></div>
                        </td>
                        <td width=100 align=middle>
                          <div align="center">
                            <input type="radio" name="sword" value="3">
                            购买</div>
                        </td>
                      </tr>
                      <tr>
                        <td width=100>
                          <div align=center>正义剑</div>
                        </td>
                        <td width=100 align=middle>
                          <div align=center><img height=30 src="images/pet/sword/4.gif" width=30></div>
                        </td>
                        <td width=100>
                          <div align=center>＋4</div>
                        </td>
                        <td>
                          <div align=center><%=DEF_PET_perswordmoney*4%></div>
                        </td>
                        <td width=100 align=middle>
                          <div align="center">
                            <input type="radio" name="sword" value="4">
                            购买</div>
                        </td>
                      </tr>
                      <tr>
                        <td width=100>
                          <div align=center>男爵剑</div>
                        </td>
                        <td width=100 align=middle> 
                          <div align=center><img height=30 
src="images/pet/sword/5.gif" width=30></div>
                        </td>
                        <td width=100> 
                          <div align=center>＋5</div>
                        </td>
                        <td>
                          <div align=center><%=DEF_PET_perswordmoney*5%></div>
                        </td>
                        <td width=100 align=middle>
                          <div align="center">
                            <input type="radio" name="sword" value="5">
                            购买</div>
                        </td>
                      </tr>
                      <tr>
                        <td width=100>
                          <div align=center>烈焰剑</div>
                        </td>
                        <td width=100 align=middle> 
                          <div align=center><img height=30 
src="images/pet/sword/6.gif" width=30></div>
                        </td>
                        <td width=100>
                          <div align=center>＋6</div>
                        </td>
                        <td>
                          <div align=center><%=DEF_PET_perswordmoney*6%></div>
                        </td>
                        <td width=100 align=middle>
                          <div align="center"> 
                            <input type="radio" name="sword" value="6">
                            购买</div>
                        </td>
                      </tr>
                      <tr>
                        <td width=100>
                          <div align=center>青钢剑</div>
                        </td>
                        <td width=100 align=middle> 
                          <div align=center><img height=30 
src="images/pet/sword/7.gif" width=30></div>
                        </td>
                        <td width=100> 
                          <div align=center>＋7</div>
                        </td>
                        <td>
                          <div align=center><%=DEF_PET_perswordmoney*7%></div>
                        </td>
                        <td width=100 align=middle>
                          <div align="center"> 
                            <input type="radio" name="sword" value="7">
                            购买</div>
                        </td>
                      </tr>
                      <tr>
                        <td width=100> 
                          <div align=center>多刃剑</div>
                        </td>
                        <td width=100 align=middle>
                          <div align=center><img height=30 src="images/pet/sword/8.gif" width=30></div>
                        </td>
                        <td width=100>
                          <div align=center>＋8</div>
                        </td>
                        <td>
                          <div align=center><%=DEF_PET_perswordmoney*8%></div>
                        </td>
                        <td width=100 align=middle>
                          <div align="center"> 
                            <input type="radio" name="sword" value="8">
                            购买</div>
                        </td>
                      </tr>
                      <tr> 
                        <td width=100>
                          <div align=center>战神剑</div>
                        </td>
                        <td width=100 align=middle> 
                          <div align=center><img height=30 src="images/pet/sword/9.gif" 
width=30></div>
                        </td>
                        <td width=100> 
                          <div align=center>＋9</div>
                        </td>
                        <td width="100"> 
                          <div 
align=center><%=DEF_PET_perswordmoney*9%></div>
                        </td>
                        <td width=100 align=middle>
                          <div align="center"> 
                            <input type="radio" name="sword" value="9">
                            购买</div>
                        </td>
                      </tr>
                      <tr>
                        <td colspan="5">
                          <div align="center"><br>
                            <input type="hidden" name="action" value="buysword">
                            <input type="submit" name="Submit" value="结帐购买">
                          </div>
                        </td>
                      </tr>
                    </table>
                  </form>
                  <%end if%>
                  <%if action = "shownecklace" then%>
                  <br>
                  <br>
                  <form action=petweaponshop.asp name="name" mtehod=post>
                    <table class=text1 cellspacing=1 cellpadding=3 width=530 align=center border=0>
                      <tr>
                        <td width=100>
                          <div align=center>名字</div>
                        </td>
                        <td width=100>
                          <div align=center>形象</div>
                        </td>
                        <td width=100>
                          <div align=center>攻击力</div>
                        </td>
                        <td width=100>
                          <div align=center>价格</div>
                        </td>
                        <td width=100>
                          <div align="center">购买选项</div>
                        </td>
                      </tr>
                      <tr>
                        <td width=100>
                          <div align=center>普通项链</div>
                        </td>
                        <td width=100>
                          <div align=center><img height=30 src="images/pet/necklace/1.gif" width=30></div>
                        </td>
                        <td align=middle width=100> 
                          <div align=center>＋1</div>
                        </td>
                        <td width=100 align=middle> 
                          <div align=center><%=DEF_PET_pernecklacemoney*1%></div>
                        </td>
                        <td align=middle width=100>
                          <div align="center">
                            <input type="radio" name="necklace" value="1">
                            购买</div>
                        </td>
                      </tr>
                      <tr> 
                        <td width=100>
                          <div align=center>宝石项链</div>
                        </td>
                        <td align=middle width=100>
                          <div align=center><img height=30 src="images/pet/necklace/2.gif" width=30></div>
                        </td>
                        <td align=middle width=100>
                          <div align=center>＋2</div>
                        </td>
                        <td width=100 align=middle>
                          <div align=center><%=DEF_PET_pernecklacemoney*2%></div>
                        </td>
                        <td align=middle width=100>
                          <div align="center">
                            <input type="radio" name="necklace" value="2">
                            购买</div>
                        </td>
                      </tr>
                      <tr>
                        <td width=100>
                          <div align=center>绿宝石项链</div>
                        </td>
                        <td align=middle width=100>
                          <div align=center><img height=30 src="images/pet/necklace/3.gif" width=30></div>
                        </td>
                        <td align=middle width=100>
                          <div align=center>＋3</div>
                        </td>
                        <td width=100 align=middle>
                          <div align=center><%=DEF_PET_pernecklacemoney*3%></div>
                        </td>
                        <td align=middle width=100>
                          <div align="center">
                            <input type="radio" name="necklace" value="3">
                            购买</div>
                        </td>
                      </tr>
                      <tr >
                        <td width=100>
                          <div align=center>蓝宝石项链</div>
                        </td>
                        <td align=middle width=100>
                          <div align=center><img height=30 src="images/pet/necklace/4.gif" width=30></div>
                        </td>
                        <td align=middle width=100>
                          <div align=center>＋4</div>
                        </td>
                        <td width=100 align=middle>
                          <div align=center><%=DEF_PET_pernecklacemoney*4%></div>
                        </td>
                        <td align=middle width=100>
                          <div align="center">
                            <input type="radio" name="necklace" value="4">
                            购买</div>
                        </td>
                      </tr>
                      <tr> 
                        <td width=100>
                          <div align=center>红宝石项链</div>
                        </td>
                        <td align=middle width=100>
                          <div align=center><img height=30 src="images/pet/necklace/5.gif" width=30></div>
                        </td>
                        <td align=middle width=100>
                          <div align=center>＋5</div>
                        </td>
                        <td width=100 align=middle>
                          <div align=center><%=DEF_PET_pernecklacemoney*5%></div>
                        </td>
                        <td align=middle width=100>
                          <div align="center">
                            <input type="radio" name="necklace" value="5">
                            购买</div>
                        </td>
                      </tr>
                      <tr> 
                        <td width=100>
                          <div align=center>精致项链</div>
                        </td>
                        <td align=middle width=100>
                          <div align=center><img height=30 src="images/pet/necklace/6.gif" width=30></div>
                        </td>
                        <td align=middle width=100>
                          <div align=center>＋6</div>
                        </td>
                        <td width=100 align=middle>
                          <div align=center><%=DEF_PET_pernecklacemoney*6%></div>
                        </td>
                        <td align=middle width=100>
                          <div align="center">
                            <input type="radio" name="necklace" value="6">
                            购买</div>
                        </td>
                      </tr>
                      <tr> 
                        <td width=100>
                          <div align=center>无暇之链</div>
                        </td>
                        <td align=middle width=100>
                          <div align=center><img height=30 src="images/pet/necklace/7.gif" width=30></div>
                        </td>
                        <td align=middle width=100>
                          <div align=center>＋7</div>
                        </td>
                        <td width=100 align=middle>
                          <div align=center><%=DEF_PET_pernecklacemoney*7%></div>
                        </td>
                        <td align=middle width=100>
                          <div align="center">
                            <input type="radio" name="necklace" value="7">
                            购买</div>
                        </td>
                      </tr>
                      <tr>
                        <td width=100>
                          <div align=center>优雅之链</div>
                        </td>
                        <td align=middle width=100> 
                          <div align=center><img height=30 src="images/pet/necklace/8.gif" width=30></div>
                        </td>
                        <td align=middle width=100>
                          <div align=center>＋8</div>
                        </td>
                        <td width=100 align=middle>
                          <div align=center><%=DEF_PET_pernecklacemoney*8%></div>
                        </td>
                        <td align=middle width=100>
                          <div align="center">
                            <input type="radio" name="necklace" value="8">
                            购买</div>
                        </td>
                      </tr>
                      <tr>
                        <td>
                          <div align=center>祝福之链</div>
                        </td>
                        <td align=middle>
                          <div align=center><img height=30 src="images/pet/necklace/9.gif" width=30></div>
                        </td>
                        <td align=middle>
                          <div align=center>＋9</div>
                        </td>
                        <td align=middle>
                          <div align=center><%=DEF_PET_pernecklacemoney*9%></div>
                        </td>
                        <td align=middle>
                          <div align="center">
                            <input type="radio" name="necklace" value="9">
                            购买</div>
                        </td>
                      </tr>
                      <tr>
                        <td colspan="5">
                          <div align=center><br>
                            <input name="action" type="hidden" id="action" value="buynecklace">
                            <input type="submit" name="Submit2" value="结帐购买">
                          </div>
                        </td>
                      </tr>
                    </table>
                  </form>
                  <%end if%>
                  <%if action = "showhead" then%>
                  <br>
                  <form action=petweaponshop.asp name="name" mtehod=post>
                    <table class=text1 cellspacing=1 cellpadding=3 width=536 align=center border=0>
                      <tr>
                        <td width=100>
                          <div align=center>名字</div>
                        </td>
                        <td width=100>
                          <div align=center>形象</div>
                        </td>
                        <td width=100>
                          <div align=center>防御力</div>
                        </td>
                        <td width=100>
                          <div align=center>价格</div>
                        </td>
                        <td width=100>
                          <div align="center">购买选项</div>
                        </td>
                      </tr>
                      <tr> 
                        <td width=100>
                          <div align=center>棉质头盔</div>
                        </td>
                        <td width=100>
                          <div align=center><img height=30 src="images/pet/head/1.gif" width=30></div>
                        </td>
                        <td align=middle width=100>
                          <div align=center>＋1</div>
                        </td>
                        <td width=100 align=middle>
                          <div align=center><%=DEF_PET_perheadmoney*1%></div>
                        </td>
                        <td align=middle width=100>
                          <div align="center">
                            <input type="radio" name="head" value="1">
                            购买</div>
                        </td>
                      </tr>
                      <tr>
                        <td width=100>
                          <div align=center>皮质头盔</div>
                        </td>
                        <td align=middle width=100>
                          <div align=center><img height=30 src="images/pet/head/2.gif" width=30></div>
                        </td>
                        <td align=middle width=100>
                          <div align=center>＋2</div>
                        </td>
                        <td width=100 align=middle>
                          <div align=center><%=DEF_PET_perheadmoney*2%></div>
                        </td>
                        <td align=middle width=100>
                          <div align="center">
                            <input type="radio" name="head" value="2">
                            购买</div>
                        </td>
                      </tr>
                      <tr>
                        <td width=100>
                          <div align=center>兽骨头盔</div>
                        </td>
                        <td align=middle width=100>
                          <div align=center><img height=30 src="images/pet/head/3.gif" width=30></div>
                        </td>
                        <td align=middle width=100>
                          <div align=center>＋3</div>
                        </td>
                        <td width=100 align=middle>
                          <div align=center><%=DEF_PET_perheadmoney*3%></div>
                        </td>
                        <td align=middle width=100>
                          <div align="center">
                            <input type="radio" name="head" value="3">
                            购买</div>
                        </td>
                      </tr>
                      <tr>
                        <td width=100>
                          <div align=center>特制兽骨头盔</div>
                        </td>
                        <td align=middle width=100>
                          <div align=center><img height=30 src="images/pet/head/4.gif" width=30></div>
                        </td>
                        <td align=middle width=100>
                          <div align=center>＋4</div>
                        </td>
                        <td width=100 align=middle>
                          <div align=center><%=DEF_PET_perheadmoney*4%></div>
                        </td>
                        <td align=middle width=100>
                          <div align="center">
                            <input type="radio" name="head" value="4">
                            购买</div>
                        </td>
                      </tr>
                      <tr>
                        <td width=100>
                          <div align=center>全银头盔</div>
                        </td>
                        <td align=middle width=100>
                          <div align=center><img height=30 src="images/pet/head/5.gif" width=30></div>
                        </td>
                        <td align=middle width=100>
                          <div align=center>＋5</div>
                        </td>
                        <td width=100 align=middle>
                          <div align=center><%=DEF_PET_perheadmoney*5%></div>
                        </td>
                        <td align=middle width=100>
                          <div align="center">
                            <input type="radio" name="head" value="5">
                            购买</div>
                        </td>
                      </tr>
                      <tr>
                        <td width=100>
                          <div align=center>黄金头盔</div>
                        </td>
                        <td align=middle width=100>
                          <div align=center><img height=30 src="images/pet/head/6.gif" width=30></div>
                        </td>
                        <td align=middle width=100>
                          <div align=center>＋6</div>
                        </td>
                        <td width=100 align=middle>
                          <div align=center><%=DEF_PET_perheadmoney*6%></div>
                        </td>
                        <td align=middle width=100>
                          <div align="center">
                            <input type="radio" name="head" value="6">
                            购买</div>
                        </td>
                      </tr>
                      <tr>
                        <td width=100> 
                          <div align=center>优雅之头盔</div>
                        </td>
                        <td align=middle width=100>
                          <div align=center><img height=30 src="images/pet/head/7.gif" width=30></div>
                        </td>
                        <td align=middle width=100>
                          <div align=center>＋7</div>
                        </td>
                        <td width=100 align=middle>
                          <div align=center><%=DEF_PET_perheadmoney*7%></div>
                        </td>
                        <td align=middle width=100>
                          <div align="center"> 
                            <input type="radio" name="head" value="7">
                            购买</div>
                        </td>
                      </tr>
                      <tr> 
                        <td width=100>
                          <div align=center>高贵之头盔</div>
                        </td>
                        <td align=middle width=100>
                          <div align=center><img height=30 src="images/pet/head/8.gif" width=30></div>
                        </td>
                        <td align=middle width=100>
                          <div align=center>＋8</div>
                        </td>
                        <td width=100 align=middle>
                          <div align=center><%=DEF_PET_perheadmoney*8%></div>
                        </td>
                        <td align=middle width=100>
                          <div align="center">
                            <input type="radio" name="head" value="8">
                            购买</div>
                        </td>
                      </tr>
                      <tr> 
                        <td width=100> 
                          <div align=center>飞翔之头盔</div>
                        </td>
                        <td align=middle> 
                          <div align=center><img height=30 src="images/pet/head/9.gif" width=30></div>
                        </td>
                        <td align=middle> 
                          <div align=center>＋9</div>
                        </td>
                        <td align=middle>
                          <div align=center><%=DEF_PET_perheadmoney*9%></div>
                        </td>
                        <td align=middle>
                          <div align="center"> 
                            <input type="radio" name="head" value="9">
                            购买</div>
                        </td>
                      </tr>
                      <tr>
                        <td colspan="5">
                          <div align=center><br>
                            <input name="action" type="hidden" id="action" value="buyhead">
                            <input type="submit" name="Submit2" value="结帐购买">
                          </div>
                        </td>
                      </tr>
                    </table>
                  </form>
                  <%end if%>
                  <%if action = "showbody" then%>
                  <br>
                  <form action=petweaponshop.asp name="name" mtehod=post>
                    <table class=text1 cellspacing=1 cellpadding=3 width=536 align=center border=0>
                      <tr>
                        <td width=100>
                          <div align=center>名字</div>
                        </td>
                        <td width=100>
                          <div align=center>形象</div>
                        </td>
                        <td width=100>
                          <div align=center>防御力</div>
                        </td>
                        <td width=100>
                          <div align=center>价格</div>
                        </td>
                        <td width=100>
                          <div align="center">购买选项</div>
                        </td>
                      </tr>
                      <tr>
                        <td width=100>
                          <div align=center>棉质甲</div>
                        </td>
                        <td width=100>
                          <div align=center><img height=30 src="images/pet/body/1.gif" width=30></div>
                        </td>
                        <td align=middle width=100> 
                          <div align=center>＋1</div>
                        </td>
                        <td width=100 align=middle> 
                          <div align=center><%=DEF_PET_perbodyemoney*1%></div>
                        </td>
                        <td align=middle width=100>
                          <div align="center"> 
                            <input type="radio" name="body" value="1">
                            购买</div>
                        </td>
                      </tr>
                      <tr>
                        <td width=100> 
                          <div align=center>皮质甲</div>
                        </td>
                        <td align=middle width=100>
                          <div align=center><img height=30 src="images/pet/body/2.gif" width=30></div>
                        </td>
                        <td align=middle width=100>
                          <div align=center>＋2</div>
                        </td>
                        <td width=100 align=middle>
                          <div align=center><%=DEF_PET_perbodyemoney*2%></div>
                        </td>
                        <td align=middle width=100>
                          <div align="center"> 
                            <input type="radio" name="body" value="2">
                            购买</div>
                        </td>
                      </tr>
                      <tr>
                        <td width=100> 
                          <div align=center>兽骨软甲</div>
                        </td>
                        <td align=middle width=100>
                          <div align=center><img height=30 src="images/pet/body/3.gif" width=30></div>
                        </td>
                        <td align=middle width=100>
                          <div align=center>＋3</div>
                        </td>
                        <td width=100 align=middle>
                          <div align=center><%=DEF_PET_perbodyemoney*3%></div>
                        </td>
                        <td align=middle width=100>
                          <div align="center"> 
                            <input type="radio" name="body" value="3">
                            购买</div>
                        </td>
                      </tr>
                      <tr >
                        <td width=100> 
                          <div align=center>兽骨铠甲</div>
                        </td>
                        <td align=middle width=100>
                          <div align=center><img height=30 src="images/pet/body/4.gif" width=30></div>
                        </td>
                        <td align=middle width=100>
                          <div align=center>＋4</div>
                        </td>
                        <td width=100 align=middle>
                          <div align=center><%=DEF_PET_perbodyemoney*4%></div>
                        </td>
                        <td align=middle width=100>
                          <div align="center"> 
                            <input type="radio" name="body" value="4">
                            购买</div>
                        </td>
                      </tr>
                      <tr>
                        <td width=100> 
                          <div align=center>全银铠甲</div>
                        </td>
                        <td align=middle width=100>
                          <div align=center><img height=30 src="images/pet/body/5.gif" width=30></div>
                        </td>
                        <td align=middle width=100>
                          <div align=center>＋5</div>
                        </td>
                        <td width=100 align=middle>
                          <div align=center><%=DEF_PET_perbodyemoney*5%></div>
                        </td>
                        <td align=middle width=100>
                          <div align="center"> 
                            <input type="radio" name="body" value="5">
                            购买</div>
                        </td>
                      </tr>
                      <tr>
                        <td width=100> 
                          <div align=center>黄金铠甲</div>
                        </td>
                        <td align=middle width=100>
                          <div align=center><img height=30 src="images/pet/body/6.gif" width=30></div>
                        </td>
                        <td align=middle width=100>
                          <div align=center>＋6</div>
                        </td>
                        <td width=100 align=middle>
                          <div align=center><%=DEF_PET_perbodyemoney*6%></div>
                        </td>
                        <td align=middle width=100>
                          <div align="center"> 
                            <input type="radio" name="body" value="6">
                            购买</div>
                        </td>
                      </tr>
                      <tr>
                        <td width=100> 
                          <div align=center>优雅之甲胄装</div>
                        </td>
                        <td align=middle width=100> 
                          <div align=center><img height=30 src="images/pet/body/7.gif" width=30></div>
                        </td>
                        <td align=middle width=100>
                          <div align=center>＋7</div>
                        </td>
                        <td width=100 align=middle>
                          <div align=center><%=DEF_PET_perbodyemoney*7%></div>
                        </td>
                        <td align=middle width=100>
                          <div align="center"> 
                            <input type="radio" name="body" value="7">
                            购买</div>
                        </td>
                      </tr>
                      <tr>
                        <td width=100> 
                          <div align=center>高贵之甲胄装</div>
                        </td>
                        <td align=middle width=100>
                          <div align=center><img height=30 src="images/pet/body/8.gif" width=30></div>
                        </td>
                        <td align=middle width=100>
                          <div align=center>＋8</div>
                        </td>
                        <td width=100 align=middle>
                          <div align=center><%=DEF_PET_perbodyemoney*8%></div>
                        </td>
                        <td align=middle width=100>
                          <div align="center"> 
                            <input type="radio" name="body" value="8">
                            购买</div>
                        </td>
                      </tr>
                      <tr>
                        <td width=100> 
                          <div align=center>神秘之甲胄装</div>
                        </td>
                        <td align=middle>
                          <div align=center><img height=30 src="images/pet/body/9.gif" width=30></div>
                        </td>
                        <td align=middle>
                          <div align=center>＋9</div>
                        </td>
                        <td align=middle>
                          <div align=center><%=DEF_PET_perbodyemoney*9%></div>
                        </td>
                        <td align=middle>
                          <div align="center"> 
                            <input type="radio" name="body" value="9">
                            购买</div>
                        </td>
                      </tr>
                      <tr>
                        <td colspan="5">
                          <div align=center><br>
                            <input name="action" type="hidden" id="action" value="buybody">
                            <input type="submit" name="Submit2" value="结帐购买">
                          </div>
                        </td>
                      </tr>
                    </table>
                  </form>
                  <%end if%>
                  <%if action = "showfoot" then%>
                  <br>
                  <form action=petweaponshop.asp name="name" mtehod=post>
                    <table class=text1 cellspacing=1 cellpadding=3 width=536 align=center border=0>
                      <tr> 
                        <td width=100>
                          <div align=center>名字</div>
                        </td>
                        <td width=100>
                          <div align=center>形象</div>
                        </td>
                        <td width=100>
                          <div align=center>防御力</div>
                        </td>
                        <td width=100>
                          <div align=center>价格</div>
                        </td>
                        <td width=100>
                          <div align="center">购买选项</div>
                        </td>
                      </tr>
                      <tr> 
                        <td width=100>
                          <div align=center>棉质鞋子</div>
                        </td>
                        <td width=100>
                          <div align=center><img height=30 src="images/pet/foot/1.gif" width=30></div>
                        </td>
                        <td align=middle width=100>
                          <div align=center>＋1</div>
                        </td>
                        <td width=100 align=middle>
                          <div align=center><%=DEF_PET_perfootmoney*1%></div>
                        </td>
                        <td align=middle width=100>
                          <div align="center"> 
                            <input type="radio" name="foot" value="1">
                            购买</div>
                        </td>
                      </tr>
                      <tr> 
                        <td width=100>
                          <div align=center>皮质鞋子</div>
                        </td>
                        <td align=middle width=100>
                          <div align=center><img height=30 src="images/pet/foot/2.gif" width=30></div>
                        </td>
                        <td align=middle width=100>
                          <div align=center>＋2</div>
                        </td>
                        <td width=100 align=middle>
                          <div align=center><%=DEF_PET_perfootmoney*2%></div>
                        </td>
                        <td align=middle width=100>
                          <div align="center"> 
                            <input type="radio" name="foot" value="2">
                            购买</div>
                        </td>
                      </tr>
                      <tr> 
                        <td width=100>
                          <div align=center>兽骨鞋子</div>
                        </td>
                        <td align=middle width=100>
                          <div align=center><img height=30 src="images/pet/foot/3.gif" width=30></div>
                        </td>
                        <td align=middle width=100>
                          <div align=center>＋3</div>
                        </td>
                        <td width=100 align=middle> 
                          <div align=center><%=DEF_PET_perfootmoney*3%></div>
                        </td>
                        <td align=middle width=100>
                          <div align="center"> 
                            <input type="radio" name="foot" value="3">
                            购买</div>
                        </td>
                      </tr>
                      <tr > 
                        <td width=100> 
                          <div align=center>特制兽骨鞋子</div>
                        </td>
                        <td align=middle width=100>
                          <div align=center><img height=30 src="images/pet/foot/4.gif" width=30></div>
                        </td>
                        <td align=middle width=100>
                          <div align=center>＋4</div>
                        </td>
                        <td width=100 align=middle>
                          <div align=center><%=DEF_PET_perfootmoney*4%></div>
                        </td>
                        <td align=middle width=100>
                          <div align="center">
                            <input type="radio" name="foot" value="4">
                            购买</div>
                        </td>
                      </tr>
                      <tr> 
                        <td width=100>
                          <div align=center>全银鞋子</div>
                        </td>
                        <td align=middle width=100>
                          <div align=center><img height=30 src="images/pet/foot/5.gif" width=30></div>
                        </td>
                        <td align=middle width=100>
                          <div align=center>＋5</div>
                        </td>
                        <td width=100 align=middle>
                          <div align=center><%=DEF_PET_perfootmoney*5%></div>
                        </td>
                        <td align=middle width=100>
                          <div align="center"> 
                            <input type="radio" name="foot" value="5">
                            购买</div>
                        </td>
                      </tr>
                      <tr> 
                        <td width=100>
                          <div align=center>黄金鞋子</div>
                        </td>
                        <td align=middle width=100>
                          <div align=center><img height=30 src="images/pet/foot/6.gif" width=30></div>
                        </td>
                        <td align=middle width=100>
                          <div align=center>＋6</div>
                        </td>
                        <td width=100 align=middle>
                          <div align=center><%=DEF_PET_perfootmoney*6%></div>
                        </td>
                        <td align=middle width=100>
                          <div align="center">
                            <input type="radio" name="foot" value="6">
                            购买</div>
                        </td>
                      </tr>
                      <tr>
                        <td width=100>
                          <div align=center>优雅之靴</div>
                        </td>
                        <td align=middle width=100>
                          <div align=center><img height=30 src="images/pet/foot/7.gif" width=30></div>
                        </td>
                        <td align=middle width=100>
                          <div align=center>＋7</div>
                        </td>
                        <td width=100 align=middle>
                          <div align=center><%=DEF_PET_perfootmoney*7%></div>
                        </td>
                        <td align=middle width=100>
                          <div align="center">
                            <input type="radio" name="foot" value="7">
                            购买</div>
                        </td>
                      </tr>
                      <tr>
                        <td width=100>
                          <div align=center>高贵之靴</div>
                        </td>
                        <td align=middle width=100>
                          <div align=center><img height=30 src="images/pet/foot/8.gif" width=30></div>
                        </td>
                        <td align=middle width=100>
                          <div align=center>＋8</div>
                        </td>
                        <td width=100 align=middle>
                          <div align=center><%=DEF_PET_perfootmoney*8%></div>
                        </td>
                        <td align=middle width=100>
                          <div align="center">
                            <input type="radio" name="foot" value="8">
                            购买</div>
                        </td>
                      </tr>
                      <tr> 
                        <td width=100> 
                          <div align=center>神秘之靴</div>
                        </td>
                        <td align=middle> 
                          <div align=center><img height=30 src="images/pet/foot/9.gif" width=30></div>
                        </td>
                        <td align=middle>
                          <div align=center>＋9</div>
                        </td>
                        <td align=middle>
                          <div align=center><%=DEF_PET_perfootmoney*9%></div>
                        </td>
                        <td align=middle>
                          <div align="center">
                            <input type="radio" name="foot" value="9">
                            购买</div>
                        </td>
                      </tr>
                      <tr>
                        <td colspan="5">
                          <div align=center><br>
                            <input name="action" type="hidden" id="action" value="buyfoot">
                            <input type="submit" name="Submit2" value="结帐购买">
                          </div>
                        </td>
                      </tr>
                    </table>
                  </form>
                  <%end if%>
                  <br>
                  <br>
                </td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<% End If :  Set Dv_plus=Nothing : Dvbbs.Footer%>