<%@ page language="C#" autoeventwireup="true" inherits="admin_storeConfig_TabList, LebiMall" %>
<!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 id="Head1" runat="server">
<title>导航管理</title>
<link rel="stylesheet" type="text/css" href="css/css.css" media="screen"/>
<script type="text/javascript" language="javascript" src="js/topHead.js">
</script><script src="js/checked.js" type="text/javascript"></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 type="text/javascript">
    var $=jQuery;
    function dels(){
        var list=document.getElementsByName("check_");
        var strid="";
        if (confirm("确认要删除？")) {
            for(i=0;i<list.length;i++)
            {
                if(list[i].checked==true){
                    strid += list[i].value+",";
                }
            } 
            if(strid!=""){
            document.getElementById("hid_del").value=strid;
            return true;}
            else{return false;}
        }else{
            return false;
        }
    }
    function search_(){
        
        window.location.href="TabList.aspx?page=1";
    }
</script>
</head>
<body>
    <form id="form1" runat="server">
          <!--顶部logo区域-->
        <script>header(6,6,"images/");</script>
        <div class="blank clearfix"></div>
        <script type="text/javascript">
            var fc='<%=results %>';
            if(fc=="true"){
                tipsWindown("提示","text:操作成功！","250","60","true","2000","true","");
            }
            if(fc=="false"){
                tipsWindown("提示","text:操作失败！","250","60","true","2000","true","");
            }
        </script>
        <!--功能区-->
        <div class="tabmenus mainwidth">
            <ul>
                <li class="current"><a href="tabList.aspx"><span>导航管理</span></a></li>
                <li><a href="TabAdd.aspx"><span>添加导航</span></a></li>
            </ul>
        </div>
        
        <div class="tab-mainbody">
            <div class="tab-mainbody2">
                <div class="functionHandleArea clearfix">
                    
                        <asp:Button ID="Button2" runat="server" CssClass="btn-del" OnClientClick="return dels();" ToolTip="删除" OnClick="Button2_Click"/>
                        <input type="button" class="btn-res" onclick="reset();return false;" title="重置"/>
                        <input type="hidden" id="hid_del" runat="server"/>
                    
                </div>
                <div id="datalist">
                    <table cellspacing="0" border="0" id="list" style="width: 100%; border-collapse: collapse;">
                    <!-- table 导航 -->
                        <tr>
                            <th style="width:5%;cursor:pointer;" onclick="CheckedAllInfo2('check_')">选择</th>
                            <th style="width:15%">导航名称</th>
                            <th style="width:15%">目录名称</th>
                            <th style="width:55%">排序</th>
                            <th style="width:10%">操作</th>
                        </tr>
                        <%for(int i=0;i<ds.Tables[0].Rows.Count;i++){ %>
                        <tr>
                            <td><input type="checkbox" value="<%=ds.Tables[0].Rows[i]["id"] %>" name="check_" />
                                <input type="hidden" id="hidden_id<%=i %>" name="hidden_id<%=i %>" value="<%=ds.Tables[0].Rows[i]["id"] %>" />
                            </td>
                            <td><%=ds.Tables[0].Rows[i]["tname"] %>
                            </td>
                            <td>
                                <%=ds.Tables[0].Rows[i]["Tdirname"]%>
                            </td>
                            <td>
                                <%=ds.Tables[0].Rows[i]["tsort"]%>
                            </td>
                            <td>
                                <a href="TabEdit.aspx?id=<%=ds.Tables[0].Rows[i]["id"] %>">编辑</a>&nbsp;|&nbsp;<a href="TabChildList.aspx?tid=<%=ds.Tables[0].Rows[i]["id"] %>">类别</a>
                            </td>
                        </tr>
                        <%} %>
                    </table>
                    <script type="text/javascript">tdshowm("list");</script>
                </div>
            </div>
        </div>
    </form>
</body>
</html>
