<%@ page language="C#" autoeventwireup="true" inherits="Plan_SetActiveLFRM, App_Web_dy1ncacz" theme="Themes" stylesheettheme="Themes" %>

<!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 id="artDialogSkin" href="../js/skin/default.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../js/artDialog.js"></script>--%>
     <script src="../js/artDialog3/artDialog.min.js"></script>
      <script>          (function($) { var d = $.dialog.defaults; d.skin = ['chrome']; })(art);</script>
          <script type="text/javascript" src="../Js/jquery.js"></script>
<script type="text/javascript">
    //artDialog js的完美弹出层
    function showEdit(url) {
        var sURL = url;
//        art.dialog({ id: 'myDialogNote', title: '编辑学习活动', iframe: sURL, width: '750', height: '380', lock: true }).close(function() {
//        document.getElementById("btnBindData").click();
//    });

    art.dialog.open(sURL, { id: 'myDialogNote', title: '编辑学习活动', width: '750px', height: '370px', lock: true, closeFn: function() { document.getElementById("btnBindData").click(); } });
        return false;
    };

    function showExam(url) {
        var sURL = url;
//        art.dialog({ id: 'myDialogNote', title: '编辑考试活动', iframe: sURL, width: '750', height: '380', lock: true }).close(function() {
//            document.getElementById("btnBindData").click();
//        });
        art.dialog.open(sURL, { id: 'myDialogNote', title: '编辑考试活动', width: '750px', height: '370px', lock: true, closeFn: function() { document.getElementById("btnBindData").click(); } });
        return false;
    };
  
</script>
</head>
<body>
    <form id="form1" runat="server">
    <div id="loading">
        <div style="position: absolute; top: 0px; left: 0px; width: 100%; height: 100%; background-color: #ffffff;
            z-index: 10; filter: alpha(opacity=90); opacity: 0.9;">
        </div>
        <div id="msg_area" style="z-index: 200; left: 289px; position: absolute; top: 202px;">
            <div id="msgPanel" style="z-index: 200;" height="24px" width="100px" bordercolor="#eeeeee"
                borderstyle="Solid" borderwidth="1px">
                <asp:Image ID="img" runat="server" ImageUrl="~/images/loading.gif" />
                <font style="font-size: 9pt;color:Gray;">loading...读取中......</font>
            </div>
        </div>
    </div>
    <table cellpadding="0" cellspacing="0" class="table_box">
        <tr>
             <td class="r_top_box">
                <table cellspacing="0" cellpadding="5" class="r_top_title_box">
                    <tr>
                <td align="right">
                    <asp:Button runat="server" Text="button" ID="btnBindData" 
                        OnClick="btnBindData_Click"></asp:Button>
&nbsp;<asp:Button runat="server" Text="添加学习活动" ID="btnAddCourse" SkinID="big_btn"
                        OnClick="btnAddCourse_Click"></asp:Button>
&nbsp;<asp:Button runat="server" Text="添加考试活动" ID="btnAddExam" SkinID="big_btn" onclick="btnAddExam_Click"></asp:Button>
                   </td>
            </tr>
                </table>
            </td>
        </tr>
         <tr>
            <td class="margintop5">
            <asp:GridView runat="server" AutoGenerateColumns="False" DataKeyNames="ID" 
                ID="gvSelectedActivity" OnRowCommand="gvSelectedActivity_RowCommand" 
                OnRowDataBound="gvSelectedActivity_RowDataBound">
                <Columns>
                    <asp:TemplateField HeaderText="活动名称">
                      
                        <ItemTemplate>
                            <asp:Label ID="Label1" runat="server" Text='<%# Bind("Name") %>'></asp:Label>
                            <asp:Label ID="lblErr" runat="server" ForeColor="Red"></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="Type" HeaderText="类型" Visible="false"></asp:BoundField>
                    <asp:BoundField DataField="ActivityID" HeaderText="活动内容" Visible="false">
                    <ItemStyle Wrap="True" Width="350px"></ItemStyle>
                    </asp:BoundField>
                        <asp:TemplateField HeaderText="类型">
                        <ItemTemplate>
                               <asp:Label ID="lblType" BorderStyle="Ridge" BorderColor="Gray" BorderWidth="1px" BackColor="White" runat="server" Text='<%# Eval("Type") %>' 
                                                    Visible="true" Font-Bold="True" Font-Names="微软雅黑"></asp:Label>
                                                     
                        </ItemTemplate>
                    </asp:TemplateField>
                    
                    <asp:TemplateField HeaderText="编辑">
                        <ItemTemplate>
                            <asp:LinkButton ID="lbtnEditActivity" CommandName="EditActivity" runat="server">编辑</asp:LinkButton>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="配置" Visible="false">
                        <ItemTemplate>
                            <asp:LinkButton ID="lbtnSetActivity" CommandName="SetActivity" 
                                                    CommandArgument='<%# Eval("Type") %>' runat="server">配置</asp:LinkButton>
                            <asp:Label ID="lblAID" runat="server" Text='<%# Eval("ActivityID") %>' 
                                                    Visible="false"></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="移除">
                        <ItemTemplate>
                            <asp:LinkButton ID="lbtnRemoveActivity" CommandName="RemovActivity" 
                                                    runat="server">移除</asp:LinkButton>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <EmptyDataTemplate>
                    <asp:Label ID="lblEmpty" runat="server" Text="没有符合条件的数据！"></asp:Label>
                </EmptyDataTemplate>
            </asp:GridView>
            </td>
        </tr>
    </table>  
    </form>
             <script type="text/javascript">
                 $("#loading").fadeOut()
</script>
</body>
</html>
