<%@ page language="VB" autoeventwireup="false" inherits="qiye_admin_admin_add_cp_pp_lei, App_Web_admin_add_changpin_pp_lei.aspx.25f04327" %>
<head>
<title>品牌分类</title>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<script language="JavaScript" src="js/tanbox.js"></script>
<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="hongse12">分类名称：</td>
    <td height="30"><asp:TextBox ID="add_cp_pp_lei_bt" runat="server" 
                                        CssClass="text_autox22_cccccc" Width="250px" MaxLength="50"></asp:TextBox>
        <span class="hongse12">* 不能使用特殊符号</span></td>
  </tr>
  <tr>
    <td height="30" align="center" bgcolor="#F6F6F6" class="wuse12">分类图标背景：</td>
    <td height="30"><asp:TextBox ID="add_cp_pp_lei_photo" runat="server" 
                                        CssClass="text_autox22_cccccc" Width="400px" MaxLength="255"></asp:TextBox>
      <a href="javascript:img_mappath(this,'add_cp_pp_lei_photo');" class="wuse12">打开图象库</a></td>
  </tr>
  <tr>
    <td height="30" align="center" bgcolor="#F6F6F6" class="wuse12">排序：</td>
    <td height="30"><asp:TextBox ID="add_cp_pp_lei_px" runat="server" 
                                        CssClass="text_autox22_cccccc" Text='0' onkeydown="intjs()" Width="50px" 
                                                  MaxLength="10"></asp:TextBox>
        <span class="hongse12">* 数值越小越靠前 </span></td>
  </tr>
  <tr>
    <td height="30" align="center" bgcolor="#F6F6F6" class="wuse12">&nbsp;</td>
    <td height="30"><asp:Button ID="add_cp_pp_lei_ok" runat="server" CssClass="btn_2k3" Text="添加" />
        <asp:Button ID="up_cp_pp_lei_ok" runat="server" CssClass="btn1_mouseout" 
                                                  Text="修  改" Visible="False" />  
        <span class="hongse12">
        <asp:Label ID="add_cp_pp_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>
                            <%
                                                            Dim i, j As Integer
                                                            For i = 0 To CInt(cp_pp_lei_tb.Rows.Count - 1)%>
                                                         <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                           <tr>
                                                             <td><table width="100%" border="0" cellpadding="0" cellspacing="3" onMouseOver="this.bgColor='#DBDBDB';" onMouseOut="this.bgColor='#D7F7FF';" bgcolor="#D7F7FF">
                                                                 <tr>
                                                                   <td width="1%" align="center"><img src="image/gif-0900_2.gif" width="12" height="17" /></td>
                                                                   <td width="58%" class="wuse12"><%=cp_pp_lei_tb.Rows(i).Item("cp_pp_lei_bt")%><span class="hongse12">[ <%=cp_pp_lei_tb.Rows(i).Item("cp_pp_lei_px")%> ]</span><a name="nameid<%=cp_pp_lei_tb.Rows(i).Item("cp_pp_lei_id")%>" id="nameid<%=cp_pp_lei_tb.Rows(i).Item("cp_pp_lei_id")%>"></a></td>
                                                                   <td width="14%" align="center" class="wuse12"><a href="javascript:ShowHtmlString(570,220,'admin_cp_pp_lei.aspx?admin_url=add&fleiid=<%=cp_pp_lei_tb.Rows(i).Item("cp_pp_lei_id")%>','添加二级分类');" >添加二级分类</a></td>
                                                                   <td width="12%" align="center" class="wuse12"></td>
                                                                   <td width="15%" align="center" class="wuse12"><a href="?admin_url=uplei&leiid=<%=cp_pp_lei_tb.Rows(i).Item("cp_pp_lei_id")%>">修改</a>　|　<a href="?admin_url=lei_delete&leiid=<%=cp_pp_lei_tb.Rows(i).Item("cp_pp_lei_id")%>" onClick="javascrip:return confirm('你确认要删除此分类吗？');">删除</a> </td>
                                                                 </tr>
                                                                 <tr>
                                                                   <td colspan="5" bgcolor="#CCCCCC"><img src="image/bj/gli.gif" width="22" height="1" /></td>
                                                                 </tr>
                                                               </table>
                                                                 <% 
                                                  Dim lei_dt As New Data.DataTable
                                                  lei_dt = ubb.tables("select cp_pp_lei_px,cp_pp_lei_bt,cp_pp_lei_id from wn_cp_pp_lei where cp_pp_lei_fid=" & cp_pp_lei_tb.Rows(i).Item("cp_pp_lei_id") & " order by cp_pp_lei_px asc")
                                                  For j = 0 To lei_dt.Rows.Count - 1
                          %>
                                                                 <table width="100%" border="0" cellpadding="0" cellspacing="3" onMouseOver="this.bgColor='#DBDBDB';" onMouseOut="this.bgColor='#F7F7F7';" bgcolor="#F7F7F7" >
                                                                   <tr>
                                                                     <td width="5%" align="center" class="chense12">[ <%=lei_dt.Rows(j).Item("cp_pp_lei_px")%> ]</td>
                                                                     <td width="1%" align="right"><img src="image/gif-0900.gif" width="12" height="17" /></td>
                                                                     <td width="79%" class="wuse12"><%=lei_dt.Rows(j).Item("cp_pp_lei_bt")%><a href="?up=True&up_id=<%=lei_dt.Rows(j).Item("cp_pp_lei_id")%>"></a><a name="nameid<%=lei_dt.Rows(j).Item("cp_pp_lei_id")%>" id="nameid<%=lei_dt.Rows(j).Item("cp_pp_lei_id")%>"></a><a href="?de=True&de_id=<%=lei_dt.Rows(j).Item("cp_pp_lei_id")%>"></a></td>
                                                                     <td width="15%" align="center" class="wuse12"><a href="javascript:ShowHtmlString(570,190,'admin_cp_pp_lei.aspx?admin_url=upzlei&zleiid=<%=lei_dt.Rows(j).Item("cp_pp_lei_id")%>','修改二级分类');" > 修改</a>　|　<a href="?admin_url=lei_delete&leiid=<%=lei_dt.Rows(j).Item("cp_pp_lei_id")%>" onClick="javascrip:return confirm('你确认要删除此分类吗？');">删除</a></td>
                                                                   </tr>
                                                                   <tr>
                                                                     <td colspan="4" bgcolor="#CCCCCC"><img src="image/bj/gli.gif" width="22" height="1" /></td>
                                                                   </tr>
                                                                 </table>
                                                               <%Next
                      %>
                                                             </td>
                                                           </tr>
                                                         </table>
                                                       <%Next%>
                                    </fieldset>
    </form>
    </body>