<%@ page language="C#" autoeventwireup="true" inherits="admin_storeConfig_TabChildEdit, 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>
    <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;
            }
        }
        function setValue_(id){
            document.getElementById("hid_id").value=id;
            document.getElementById("form3").submit();
        }
    </script>
</head>
<body>
    <form id="form3" runat="server" action="TabChildEdit.aspx" method="post" >
            <input type=hidden id="hid_id" name="hid_id"/>
            <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%;">选择</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] %>" onclick="setValue_('<%=ds.Tables[0].Rows[i][0] %>')" /></td>
                            <td align="left"><%=ds.Tables[0].Rows[i]["ctname"] %></td>
                        </tr>
                    <%} %>
                </table>
                <script type="text/javascript">tdshowm("listcc");</script>
            </div>
    </form>
</body>
</html>
