<%@ page language="VB" autoeventwireup="false" inherits="parrot_admin_user_lei, App_Web_admin_user_lei.aspx.25f04327" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>会员分类</title>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<!--#include file="js/tanboxf4.inc"-->
<script src="js/intjs.js" type="text/javascript"></script>
<link href="css/css.css" rel="stylesheet" type="text/css" />
<link href="css/body.css" rel="stylesheet" type="text/css" />
<link href="css/text.css" rel="stylesheet" type="text/css" />
<link href="css/button.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
<!--
    function img_mappath(img_val, input_val) {
        var arr = showModalDialog("admin_select_img.aspx?temp="+ Math.random , "", "dialogWidth:963px; dialogHeight:600px; status:0; help:0");
        if (arr != null) {
            document.getElementById(input_val).value = arr;
        }
    }
document.oncontextmenu=new Function('event.returnValue=false;'); 
//-->
</script>
</head>
<body> 
<form id="form1" runat="server">
<table width="100%" border="0" cellspacing="3" cellpadding="0">
  <tr>
    <td><table width="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td bgcolor="#E7E7E7"><table width="100%" border="0" cellspacing="1" cellpadding="0">
            <tr>
              <td bgcolor="#FFFFFF"><table width="100%" height="29" border="0" cellpadding="0" cellspacing="5">
                  <tr>
                    <td height="19" bgcolor="#EBEBEB"><table width="100%" border="0" cellspacing="8" cellpadding="0">
                        <tr>
                          <td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="3" cellpadding="0">
                              <tr>
                                <td width="15%" height="25" align="center" class="wuse16"><strong class="16huise">管理中心</strong></td>
                                <td width="76%" valign="bottom" class="huise12">会员分类 </td>
                                <td width="9%" valign="bottom" class="huise12">&nbsp;</td>
                              </tr>
                          </table></td>
                        </tr>
                    </table></td>
                  </tr>
              </table></td>
            </tr>
            
        </table></td>
      </tr>
    </table></td>
  </tr>
</table>

<fieldset style="margin:10px 5px 5px 5px; padding:0px 5px 5px 5px;"><legend class="wuse12"><strong>添加新分类</strong></legend>
 <table width="100%" border="1" cellpadding="0" cellspacing="1" bordercolor="#E7E7E7" style="margin-top:5px;">
   <tr>
     <td width="17%" height="30" align="center" bgcolor="#F6F6F6" class="wuse12">请输入分类名称：</td>
     <td height="30"><asp:TextBox ID="user_lei_name" runat="server" 
                                        CssClass="text_autox22_cccccc" Width="250px" MaxLength="50"></asp:TextBox>
         <span class="hongse12">* 不能使用特殊符号</span></td>
   </tr>
   <%If ubb.xml_tables("red_parrot.xml", "parrot_shop") = "True" Then%>
   <tr>
     <td height="30" align="center" bgcolor="#F6F6F6" class="wuse12">商品优惠打折：</td>
     <td height="30"><asp:TextBox ID="user_lei_jiage" runat="server" onkeydown="intjs()"
                                        CssClass="text_autox22_cccccc" Width="50px">1</asp:TextBox>
         <span class="hongse12">* 商品原价格　</span><span class="wuse12">x　</span><span class="lanse12"> 商品优惠打折 </span><span class="wuse12">= 会员价格</span></td>
   </tr>
   <%End If%>
   <tr>
     <td height="30" align="center" bgcolor="#F6F6F6" class="wuse12">积分下限：</td>
     <td height="30"><asp:TextBox ID="user_lei_grade" runat="server" 
                                        CssClass="text_autox22_cccccc" Text='0' onkeydown="intjs()" Width="50px"></asp:TextBox>
         <span class="hongse12">* </span>
         <asp:CheckBox ID="user_lei_grade_true" runat="server" Checked="True" 
                                                          CssClass="wuse12" Text="加入积分下限规则" />   
       &nbsp;&nbsp;&nbsp;&nbsp; <span class="hongse12">(勾选后系统将自动调整符合要求会员的级别)</span></td>
   </tr>
   <tr>
     <td height="30" align="center" bgcolor="#F6F6F6" class="wuse12">会员类别标识图标：</td>
     <td height="30"><asp:TextBox ID="user_lei_image" runat="server" CssClass="text_autox22_cccccc" 
                                                        Width="400px" ></asp:TextBox>
         <a href="javascript:img_mappath(this,'user_lei_image');" class="wuse12"> 打开图象库</td>
   </tr>
 </table>
 <table width="100%" border="0" cellspacing="0" cellpadding="0">
   <tr>
     <td width="50%" height="30" align="right"><asp:Button ID="user_lei_ok" runat="server" CssClass="btn" Text="确认添加"/></td>
     <td width="50%"><span class="hongse12">
       <asp:Label ID="user_lei_ts" runat="server"></asp:Label>
      </span></td>
   </tr>
 </table>
</fieldset>
                                    <fieldset style="margin:10px 5px 5px 5px; padding:0px 5px 5px 5px;"><legend class="wuse12"><strong>已建立的分类项</strong></legend>
                                     <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                       <tr>
                                         <td width="0%" align="right"><strong class="wuse12"> <a href="?">刷新列表</a> </strong></td>
                                       </tr>
                                     </table>
                                     <table width="100%" border="1" cellpadding="0" cellspacing="1" bordercolor="#F6F6F6">
                                       <tr background="image/listbg.gif">
                                         <td width="3%" align="center" background="image/listbg.gif" class="huise12">ID</td>
                                       <td width="5%" align="center" background="image/listbg.gif" class="huise12">标识</td>
                                         <td height="21" background="image/listbg.gif" class="huise12">分类名称</td>
                                         <%If ubb.xml_tables("red_parrot.xml", "parrot_shop") = "True" Then%>
                                         <td width="11%" align="center" background="image/listbg.gif" class="huise12">商品打折</td>
                                         <%End If%>
                                         <td width="11%" align="center" background="image/listbg.gif" class="huise12">积分下限</td>
                                         <td width="11%" align="center" background="image/listbg.gif" class="huise12">规则状态</td>
                                         <td width="16%" align="center" background="image/listbg.gif" class="huise12"> 管理</td>
                                       </tr>
                                       <asp:Repeater ID="user_lei" runat="server">
                                         <ItemTemplate>
                                           <tr onMouseOver="this.bgColor='#DBDBDB';" onMouseOut="this.bgColor='#ffffff';" bgColor=#ffffff>
                                             <td align="center" class="wuse12"><%#eval("user_lei_id")%></td>
                                           <td align="center" class="wuse12"><img src="user_leiimg/<%#Eval("user_lei_id")%>.gif?temp=<%=r1.next(0,100)%>" width="20" height="35"/></td>
                                             <td height="30" class="wuse12"><%#eval("user_lei_name")%></td>
                                             <%If ubb.xml_tables("red_parrot.xml", "parrot_shop") = "True" Then%>
                                             <td align="center" class="wuse12"><%#eval("user_lei_jiage")%></td>
                                             <%End If%>
                                             <td align="center" class="wuse12"><%#eval("user_lei_grade")%></td>
                                             <td align="center" class="wuse12"><%#eval("user_lei_grade_true")%></td>
                                             <td align="center" class="wuse12"><a href="javascript:ShowHtmlString(570,250,'admin_user_lei_update.aspx?&amp;user_lei_id=<%#eval("user_lei_id")%>','修改会员分类');">修改</a>　|　<a href="?delete_user_lei=delete&amp;delete_user_lei_id=<%#eval("user_lei_id")%>" onclick="javascrip:return confirm('你确认要删除此分类吗？一旦删除此分类所有隶属该分类的会员都会自动恢复默认《普通会员》');">删除</a> </td>
                                           </tr>
                                         </ItemTemplate>
                                       </asp:Repeater>
                                    </table>
  </fieldset>
    </form>
</body>
</html>