<%@ page language="C#" autoeventwireup="true" inherits="AddTypeMode, 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>
    <meta name="generator" content="LBMall 3.0.0" />
    <link href="images/css/shopcss.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript"> 
        function SelectAllCheckBox()
        {
            var form =document.forms[0];
            for(i=0;i<form.elements.length;i++)
            {
                if(form.elements[i].type=="checkbox")
                {
                    form.elements[i].checked=true;
                }
            }
        }
        function ReSelectCheckBox()
        {
            var form =document.forms[0];
            for(i=0;i<form.elements.length;i++)
            {
                if(form.elements[i].type=="checkbox")
                {
                    if(form.elements[i].checked)
                        form.elements[i].checked=false;
                    else
                        form.elements[i].checked=true;
                }
             }
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div style="font-size:12px; padding:10px 0px 10px 10px;">
     <a class="Link2" onclick="SelectAllCheckBox()" href="javascript:;">全选</a> |<a class="Link2" onclick="ReSelectCheckBox()" href="javascript:;">反选</a><br />
     <div>
     <asp:Repeater runat="server" ID="rpType">
     <ItemTemplate>
        <div class="tab_type">
           <input type="checkbox" id="chktuis" runat="server"  value='<%#Eval("Id") %>'/><asp:Label runat="server" ID="lblName" Text='<%#Eval("Sctname")%>'></asp:Label>
        </div>
     </ItemTemplate>
     </asp:Repeater>
     </div>
     <div style="clear:left;">
    <asp:Button ID="btnAdd" runat="server" CssClass="btn_submit" Text="确定" OnClick="btnAdd_Click" />
    <input type="button" class="btn_cancel" onclick="new parent.dialog().reset();"  value="取消"/>
    </div>
    </div>
    </form>
</body>
</html>
