<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="selColumn.aspx.cs" Inherits="ZYDN.Web.inputBBS.selColumn" EnableViewState="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>
      <link rel="stylesheet" type="text/css" href="../skins/CSS/main.css" />
    <link rel="stylesheet" type="text/css" href="../skins/CSS/Sys.css" />
    <script language="javascript" type="text/javascript" src="../JS/Sys.js"></script>
     <style type="text/css">
         table{border="0" cellpadding="0" cellspacing="0"}
        .biaotouTd{font-size:12px;font-weight:bold; text-align:left;height:20px; boder:1px #cccccc solid;  background-color:#A8C1DD; color:#01439a; line-height:20px; border-right:1px #cccccc solid; border-left:1px #cccccc solid;padding-left:5px;}
        .oushutd{border-top:1px #cccccc solid; font-size:12px; text-align:left;color:#01439a; line-height:20px;background-color:#F0F5FB;padding-left:5px;padding-right:5px;}
        .jishutd{border-top:1px #cccccc solid;text-align:left; line-height:20px;font-size:12px;background-color:#FFFFFF;padding-left:5px;padding-right:5px;}
    </style>
    <script type="text/javascript" language="javascript">
    function ok()
    {
      var radioList=document.form1.sel;
      var selVale=null;
       for (var i = 0; i < radioList.length; i++) 
       {
            if (radioList[i].checked) {
                    selVale=radioList[i].value;
             }
        }
        if(selVale==null||selVale=="")
        {
         alert("请选择栏目");
        }
        else
        {
          window.returnValue=selVale.toString().replace(',',c1);
          window.close();
        }

    }
    
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <div style="height:161px; width:240px; overflow-y:scroll;">
            <asp:Repeater ID="ColumnRep" runat="server">
                    <HeaderTemplate>
                        <table width="220px;">
                          <tr>
                            <td style="padding-left:20px;" class="biaotouTd">栏目名称</td>
                          </tr>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <tr>
                            <td class="oushutd"><input id="Radio1" type="radio" name="sel" value="<%# Eval("MID")%>,<%# Eval("MName")%>" /><%# Eval("MName")%></td>
                        </tr>
                    </ItemTemplate>
                    <AlternatingItemTemplate>
                        <tr>
                            <td class="jishutd"><input id="Radio1" type="radio" name="sel" value="<%# Eval("MID") %>,<%# Eval("MName")%>" /><%# Eval("MName")%></td>
                        </tr>        
                    </AlternatingItemTemplate>
                    <FooterTemplate>
                        </table>
                    </FooterTemplate>
            </asp:Repeater> 
        </div>
    <div style="text-align:center;"><input id="Button1" type="button" value="确定选择" onclick="ok()" /></div>
    </div>
    </form>
</body>
</html>
