<%@ Page Language="C#" AutoEventWireup="true" Inherits="System_Common_SelChannel, QianboCMS" EnableEventValidation="false" %>
<!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>
    <base target="_self"></base>
    <link href="../Css/layout.css" type="text/css" rel="Stylesheet" />
    <script type="text/javascript" src="../../Js/Common.js"></script>
    <script type="text/javascript">
		var gvElement = 'repChannel'
		function SetCheckBox()
		{
			if($(gvElement)!=null)
			{
				var s=$(gvElement).getElementsByTagName("input")
				for(var i=0;i<s.length;i++)
				{
					if(s[i].type=="checkbox")
					{
						s[i].checked=$("chkBoxChooseAll").checked;
					}
				}
			}
		}
    </script>
    <script type="text/javascript">
		var api = frameElement.api, W = api.opener, D = W.document;
    </script>
</head>

<body>
    <table cellspacing="1" cellpadding="0" class="wzdh" align="center">
        <tr>
            <td style="padding-left: 10px;">
                <img src="../Images/Skin/Default/you.gif" align="absmiddle" />
                您现在的位置：<a href="../SystemInfo.aspx">后台管理</a> &gt;&gt; 选择频道
			</td>
        </tr>
    </table>
    <form id="form1" runat="server">
        <table align="center" class="border" cellspacing="1" cellpadding="0" id="repChannel">
            <asp:Repeater ID="Repeater1" runat="server">
                <HeaderTemplate>
                    <tr class="title">
                        <td width="30px">选择</td>
                        <td width="90px">频道编号</td>
                        <td>频道名称</td>
                    </tr>
                </HeaderTemplate>
                <ItemTemplate>
                    <tr class="tdbg" onmouseover="this.className='tdbgmouseover'" onmouseout="this.className='tdbg'">
                        <td><asp:CheckBox ID="chkBox" runat="server" /></td>
                        <td><asp:Label ID="Label1" runat="server" Text='<%#Eval("ChId") %>'></asp:Label></td>
                        <td><%#Eval("ChName") %></td>
                    </tr>
                </ItemTemplate>
            </asp:Repeater>
        </table>
        <table cellpadding="0" cellspacing="1" class="border" align="center">
            <tr>
                <td class="wzlist">
                    <input type="checkbox" onclick="SetCheckBox()" id="chkBoxChooseAll" />全选
                    <span style="margin-left: 20px;">默认</span>
                    <asp:RadioButton ID="Check1" runat="server" Checked="True" GroupName="Check" />勾选
                    <asp:RadioButton ID="Check2" runat="server" GroupName="Check" />不勾选
                    <asp:Button ID="Button1" runat="server" Text="重新选择" CssClass="btn" Style="margin: 0px 0px 0px 50px;" OnClick="Button1_Click" />
                    <asp:Button ID="Button3" runat="server" Text="追加选择" CssClass="btn" OnClick="Button3_Click" />
                    <input id="Button2" type="button" value="关闭本窗口" class="btn" onclick="javascript:api.close();" />
                    <asp:TextBox ID="tempValue" runat="server" Style="display: none;"></asp:TextBox>
				</td>
            </tr>
        </table>
        <script>
			var val = D.getElementById('<%=ControlId %>').value;
			document.getElementById('tempValue').value = val;
        </script>
    </form>
</body>
</html>