<%@ page language="C#" autoeventwireup="true" enableviewstate="false" inherits="WebAdmin_CommonityType, LebiMall" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!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 runat="server">
    <title>分类管理</title>
    <link href="css/css.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" language="javascript" src="js/Common.js"></script>
    <script type="text/javascript" language="javascript" src="js/ryjs.js"></script>
    <script type="text/javascript" language="javascript" src="js/checked.js"></script>
    <link href="css/tipswindown.css" type="text/css" rel="stylesheet" />
    <script src="js/jquery.js" type="text/javascript"></script>
    <script src="js/tipswindown.js" type="text/javascript"></script>
    <script src="js/topHead.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
        <script>header(2,1,"images/");</script>
    <!--面包屑-->
    <div class="blank clearfix"></div>
    <!--功能区-->
    <div class="tabmenus mainwidth">
        <ul>
            <li class="current"><a href="CommonityType.aspx"><span>类别管理</span></a></li>
            <li><a href="Commodity_type_Add.aspx"><span>类别添加</span></a></li>
        </ul>
    </div>
    <div class="tab-mainbody">
        <div class="tab-mainbody2">
        <div class="functionHandleArea clearfix" style="padding:3px 0 3px 4px;">
             <table cellpadding="0" cellspacing="0">
                <tr>
                    <td>
                        <input type="text" id="TextBox1" style="width:150px;" class="input" runat="server" onkeydown="quickQueryCust(event);"/><input type="button" name="sou" class="btn-search" id="btnSou" runat="server" onserverclick="btnSou_ServerClick" />
                    </td>
                </tr> 
                <tr>
                    <td colspan="6" style="height:30px;"> 
                        <input type="image" border="0" title=" 编辑 " onclick="return CheckEdit();" runat="server" onserverclick="btnEdit_Click" src="images/bt_update2.gif" align="absmiddle" id="Image2"> &nbsp;
                        <input type="image" name="Submit" title=" 删除 " onClick="return CheckDel();" runat="server" onserverclick="btnDel_Click" src="images/bt_delete.gif" align="absmiddle" id="Image1"> &nbsp;
                        <input type="image" border="0" title=" 添加 " onclick="location.href='Commodity_type_add.aspx?page=<%=page %>';return false;" src="images/bt_add.gif" align="absmiddle">  &nbsp;
                        <input type="image" border="0" title=" 恢复 " onclick="return huifu();" src="images/bt_huifu.gif" align="absmiddle" >&nbsp;
                    </td>
                </tr>  
            </table>
        </div>
        <div id="datalist">
                <table cellpadding="3" cellspacing="0" width="100%" border="0" id="list">
                       
                    <tr>
                        <th style="width: 5%; cursor: pointer;" title="全选" onclick="AllChecked()">
                            选择</th>
                        <th width="25%" title="排序">
                            <asp:LinkButton ID="LinkButton1" runat="server" OnClick="LinkButton1_Click" >分类名称</asp:LinkButton>
                            <span class="title_r" id="msg_sub"></span>

                            <script type="text/javascript">
                                var $=jQuery;
                                var i = 2;
                                var f="<%=Session["returnValue"] %>";
                               if(f=="true"){
                                    tipsWindown('操作结果','text:操作成功！','250','60','true','2000','true','text');
                                    <% Session["returnValue"]= null; %>
                                    setInterval("fun()", 1000);
                                }
                                if(f=="false"){
                                    tipsWindown('操作结果','text:操作失败！','250','60','true','2000','true','text');
                                    <% Session["returnValue"]= null; %>
                                }
                                function fun() {
                                    if (i == 1) {
                                        window.location.href="CommonityType.aspx";
                                    }
                                    i--;
                                }
                            </script>
                            </th>
                        <th width="12%">
                            分类ID</th>
                        <th width="12%">
                            商品数量</th>
                        <th width="12%">
                            分类排序</th>
                        <th width="12%">
                            父类ID</th>
                        <th width="12%">
                            首页显示</th>
                        <th width="10%">
                            操作</th>
                    </tr>
                    <div id="listinfo" runat="server">
                    </div>
                    <tr><td colspan="8" class="list-foot"> <div style="float: left; padding-top: 3px;">
                            </div>
            <div id="divAsp" runat="server" style="float: right;padding-top: 3px;">
            <webdiyer:AspNetPager CssClass="pages" CurrentPageButtonClass="cpb" ID="AspNetPager1"
                runat="server" RecordCount="228" FirstPageText="首页" LastPageText="尾页" NextPageText="下一页"
                PrevPageText="上一页" PageSize="10" UrlPaging="True" ShowMoreButtons="False" CustomInfoClass="pages1"
                ShowDisabledButtons="False" CurrentPageButtonPosition="Center" ShowBoxThreshold="50"
                ShowFirstLast="true" NumericButtonCount="4">
            </webdiyer:AspNetPager>
        </div></td></tr>
                </table>
                <script type="text/javascript">tdshowm("list");</script>
            </div>
        </div>
        <div id="hiddenfield" style="display: none">
            <input id="CheckedIDS" runat="server" value="0" />
            <input id="PageIndex" runat="server" value="0" />
            <input id="MaxPageIndex" runat="server" value="0" />
            <input type="button" name="inputbtndel" runat="server" id="inputbtndel" onserverclick="inputbtndel_ServerClick" />
            <input type="button" id="btnhuifu" runat="server" onserverclick="btnhuifu_ServerClick" />
        </div>
            </div>
        <div style="clear:both;"></div>
    </form>
</body>
</html>
