<%@ page language="C#" autoeventwireup="true" inherits="AddConsi, 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" type="text/css" rel="stylesheet" />
        <script type="text/javascript"> 
        var start=new Date().getTime();
        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 class="addconsi_body">
   (最多添加12项)
   <div style="width:380px;">
   <div style="float:left;"><a class="Link2" onclick="SelectAllCheckBox()" href="javascript:;">全选</a> |<a class="Link2" onclick="ReSelectCheckBox()" href="javascript:;">反选</a></div>
   <div style="float:right;">
    <asp:DropDownList runat="server" ID="ddlstType" OnSelectedIndexChanged="ddlstType_SelectedIndexChanged" AutoPostBack="True"></asp:DropDownList>
   </div>
   </div>
    <asp:Panel ID="pnlCom" runat="server" ScrollBars="Vertical"  CssClass="addconsi_panel">
    <asp:Repeater runat="server" ID="rpCom">
        <ItemTemplate>
            <div class="div_consi_item">
            <input type="hidden" id="hidId" value='<%#Eval("Id") %>' runat="server" />
                <div style="float:left;"><input type="checkbox" id="chktuis" runat="server" /></div>
                <div style="float:left; margin-top:2px;"><%#Eval("Cname") %></div>
            </div>
        </ItemTemplate>
    </asp:Repeater> 
    </asp:Panel>
    <div class="div_consi_man"><asp:Button runat="server" ID="btnAdd" CssClass="btn_submit"  Text="确定" OnClick="btnAdd_Click"/>
    <input type="button" value="取消" class="btn_cancel"  onclick="new parent.dialog().reset();" />
    </div>
    </div>
    </form>
    
</body>
</html>
