<%@ page language="C#" autoeventwireup="true" inherits="admin_storeConfig_TabChildAdd, 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 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>
    <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">
        function setid(){
            var list=document.getElementsByName("check_c");
            var strid="";
            for(i=0;i<list.length;i++)
            {
                if(list[i].checked==true){
                    strid += list[i].value+",";
                }
            }
            if(strid!=""){
                document.getElementById("hid_id").value=strid;
                return true;
            }
            else{
                return false;
            }
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
            <div class="functionHandleArea clearfix" style="width:300px; text-align:left;">
                <asp:Button ID="Button3" runat="server" CssClass="btn-app" OnClick="Button3_Click" OnClientClick="return setid();" />
                <input type=button class="btn-res" onclick="reset();return false;" title="重置"/>
                <input type=hidden id="hid_id" runat="server" />
            </div>
            <div id="datalist" style="width:312px;">
                <table cellspacing="0" border="0" id="listcc" style="width: 100%; border-collapse: collapse;">
                <!-- table 导航 -->
                    <tr>
                            <th style="width:5%;cursor:pointer;" onclick="CheckedAllInfo2('check_c')">选择</th>
                            <th style="width:95%">类别名称</th>
                    </tr>
                    <%for(int i=0;i<ds.Tables[0].Rows.Count;i++){%>
                        <tr>
                            <td><input id="Checkbox1" type="checkbox" name="check_c" value="<%=ds.Tables[0].Rows[i][0] %>" /></td>
                            <td align="left"><%=ds.Tables[0].Rows[i]["ctname"] %></td>
                        </tr>
                    <%} %>
                    <tr>
                        <td colspan="2" class="list-foot" align="left">
                            <asp:Button ID="Button1" runat="server" CssClass="btn-app" OnClick="Button3_Click" OnClientClick="return setid();" />
                            <input type=button class="btn-res" onclick="reset();return false;" title="重置"/>
                        </td>
                    </tr>
                </table>
                <script type="text/javascript">tdshowm("listcc");</script>
            </div>
    </form>
</body>
</html>
