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

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="cc1" %>
<!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 id="Head1" runat="server">
    <title>申请课程</title>

    <script src="../js/artDialog3/artDialog.min.js"></script>

    <script>        (function($) { var d = $.dialog.defaults; d.skin = ['chrome']; })(art);</script>

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <%--  <link rel="stylesheet" href="../css/form-field-tooltip.css" media="screen" type="text/css">
	<script type="text/javascript" src="../js/rounded-corners.js"></script>
	<script type="text/javascript" src="../js/form-field-tooltip.js"></script>--%>

    <script src="../js/calendar.js" type="text/javascript"></script>

    <script type="text/javascript" src="../Js/jquery.js"></script>

    <script type="text/javascript" src="../Js/jquery.pngFix.pack.js"></script>

    <script type="text/javascript" src="../Js/WebValidator.js"></script>

    <script src="../js/jquery.js" type="text/javascript"></script>

    <script src="../js/scoll_hidden.js" type="text/javascript"></script>

    <script type="text/javascript" src="../Js/InterfaceContrl.js"></script>

    <script type="text/javascript" src="../js/vtip/vtip.js"></script>

    <link rel="stylesheet" type="text/css" href="../js/vtip/css/vtip.css" />
    <style type="text/css">
        html
        {
            overflow-x: hidden;
        }
        #txtCourseName
        {
            width: 100px;
        }
        a:link
        {
            color: #000;
            text-decoration: none;
        }
        a:visited
        {
            color: #000;
            text-decoration: none;
        }
        a:hover
        {
            color: Blue;
        }
        #divNum
        {
            position: absolute;
            width: 460px;
            height: 10%;
            z-index: 2;
            left: 20%;
            top: 10%;
        }
        #LayerAll
        {
            position: absolute;
            filter: alpha(opacity = 50);
            width: 100%;
            height: 100%;
            background-color: #FAFAFA;
            border: 0px;
            left: 1px;
            top: 1px;
            z-index: 1;
            display: none;
        }
        #right
        {
            position: absolute;
            width: 80%;
            height: 30%;
            z-index: 2;
            left: 10%;
            top: 16%;
        }
        .t1
        {
            border-bottom: #99cc66 1px solid;
            position: relative;
            line-height: 23px;
            padding-left: 5px;
            margin-bottom: 10px;
            height: 23px;
            color: #5b9400;
            font-size: 14px;
            font-weight: bold;
        }
        .t2
        {
            border-bottom: #99cc66 1px solid;
            position: relative;
            line-height: 23px;
            padding-left: 5px;
            margin-bottom: 10px;
            height: 23px;
            color: #5b9400;
            font-size: 14px;
            font-weight: bold;
        }
        .t1 .m
        {
            position: absolute;
            padding-right: 15px;
            background: url(http://img.baidu.com/hi/img/index/arrow.gif) no-repeat right -5px;
            font-size: 14px;
            top: 2px;
            right: 0px;
        }
        .t1 .m2
        {
            position: absolute;
            padding-right: 15px;
            background: url(http://img.baidu.com/hi/img/index/arrow.gif) no-repeat right -5px;
            font-size: 14px;
            top: 2px;
            right: 0px;
        }
        .t1 .m2
        {
            line-height: 18px;
            font-size: 12px;
            font-weight: normal;
        }
        .t2
        {
            padding-bottom: 0px;
            line-height: 18px;
            border-right-width: 0px;
            padding-left: 0px;
            padding-right: 0px;
            margin-bottom: 2px;
            border-top-width: 0px;
            border-bottom-width: 0px;
            color: #5b9400;
            border-left-width: 0px;
            padding-top: 0px;
        }
        .t3
        {
            z-index: 6553;
            position: relative;
            line-height: 30px;
            padding-left: 55px;
            background: url(http://img.baidu.com/hi/img/index/iconhi.gif) no-repeat;
            height: 35px;
            font-size: 14px;
            font-weight: bold;
        }
        .rcb
        {
            height: 5px;
            clear: both;
        }
        .rct .l
        {
            background-image: url(../images/rc.gif);
            position: relative;
            width: 5px;
            height: 5px;
            font-size: 1px;
            overflow: hidden;
        }
        .rct .r
        {
            background-image: url(../images/rc.gif);
            position: relative;
            width: 5px;
            height: 5px;
            font-size: 1px;
            overflow: hidden;
        }
        .rcb .l
        {
            background-image: url(../images/rc.gif);
            position: relative;
            width: 5px;
            height: 5px;
            font-size: 1px;
            overflow: hidden;
        }
        .rcb .r
        {
            background-image: url(../images/rc.gif);
            position: relative;
            width: 5px;
            height: 5px;
            font-size: 1px;
            overflow: hidden;
        }
        .rct .l
        {
            float: left;
            left: -1px;
        }
        .rcb .l
        {
            float: left;
            left: -1px;
        }
        .rct .r
        {
            float: right;
            right: -1px;
        }
        .rcb .r
        {
            float: right;
            right: -1px;
        }
        .rct .l
        {
            top: -1px;
        }
        .rct .r
        {
            top: -1px;
        }
        .rcb .l
        {
            top: 1px;
        }
        .rcb .r
        {
            top: 1px;
        }
        .b2
        {
            border-bottom: #ccc 1px solid;
            border-left: #ccc 1px solid;
            margin-bottom: 10px;
            background: #fff;
            border-top: #ccc 1px solid;
            border-right: #ccc 1px solid;
        }
        .b2 .cnt
        {
            padding-bottom: 10px;
            padding-left: 10px;
            padding-right: 10px;
            padding-top: 10px;
        }
        .tl1
        {
            background-position: left top;
        }
        .tr1
        {
            background-position: right top;
        }
        .bl1
        {
            background-position: left bottom;
        }
        .br1
        {
            background-position: right bottom;
        }
        .lginfo
        {
            line-height: 22px;
            clear: both;
        }
        .fan
        {
            margin-top: 10px;
        }
        .fan TD
        {
            padding-bottom: 2px;
            padding-left: 8px;
            padding-right: 8px;
            color: #666;
            padding-top: 2px;
        }
        .f14
        {
            line-height: 24px;
            font-size: 14px;
        }
        .style1
        {
            width: 284px;
        }
    </style>

    <script type="text/javascript">

        function ApplyCourseDetail(ID) {
            window.open("ApplyCouseInfo.aspx?id=" + ID);
        }
        
        
        
    </script>

    <script src="../js/artDialog3/artDialog.min.js"></script>

    <script>        (function($) { var d = $.dialog.defaults; d.skin = ['chrome']; })(art);</script>

    <script type="text/javascript">
        //artDialog js的完美弹出层
        function showEdit(strId) {
            var sURL = "ApplyCourseEFRM.aspx?Planid=" + strId;
            // art.dialog({ id: 'myDialogNote', title: '申请原因', iframe: sURL, width: '550', height: '300', lock: true });
            art.dialog.open(sURL, { id: 'myDialogNote', title: '申请原因', width: '450px', height: '160px', lock: true, closeFn: function() {
                document.getElementById("btnArtRefresh").click();
            }
            });
            return false;
        };
  
    </script>
<style>
#left{width:120px; float:left;}
#right{width:200px; float:right;}
</style>
</head>
<body>
    <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>
    <form id="form1" runat="server">
    <div id="PartOne" style="display: block" runat="server">
        <table cellpadding="0" cellspacing="0" class="table_box">
            <tr>
                <td class="right_bg">
                    <span class="right_title">
                        <img src="../Images/homen.gif" class="img_style" />
                        您的当前位置：我的学习 > 选修课程</span>
                </td>
            </tr>
            <tr>
                <td class="r_top_box">
                    <table cellspacing="0" cellpadding="5" class="r_top_title_box">
                        <tr>
                            <td align="left">
                                <asp:RadioButton ID="rdbAll" runat="server" AutoPostBack="True" Checked="True" GroupName="a"
                                    OnCheckedChanged="rdbAll_CheckedChanged" Text="<img src='../images/92.gif' />可申请课程" />&nbsp;&nbsp;
                                <asp:RadioButton ID="rdbMy" runat="server" Text="<img src='../images/15.gif' />在学课程"
                                    AutoPostBack="True" GroupName="a" OnCheckedChanged="rdbMy_CheckedChanged" />
                                &nbsp;&nbsp;
                                <asp:RadioButton ID="rdbHot" runat="server" AutoPostBack="True" GroupName="a" OnCheckedChanged="rdbHot_CheckedChanged"
                                    Text="<img src='../images/hot.gif' />热门课程" />&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                <%--      课程类别：&nbsp;<asp:DropDownList ID="ddlType" runat="server">
                     <asp:ListItem Value="0">全部</asp:ListItem>
                        <asp:ListItem Value="2">内部课</asp:ListItem>
                        <asp:ListItem Value="1">外训课</asp:ListItem>
                        <asp:ListItem Value="3">选修</asp:ListItem>
                    </asp:DropDownList>--%>
                                &nbsp;&nbsp;&nbsp; 课程类别：
                                <asp:DropDownList ID="ddlSearchType" runat="server">
                                </asp:DropDownList>
                                &nbsp;&nbsp;名称：
                                <input type="text" maxlength="20" id="txtCourseName" runat="server" class="txt" />&nbsp;<asp:Button
                                    ID="btnSelect" runat="server" Text="查 询" OnClick="btnSelect_Click" />&nbsp;&nbsp;&nbsp;&nbsp;
                                <asp:Button ID="btnArtRefresh" runat="server" Text="查 询" OnClick="btnArtRefresh_Click" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td style="padding-top: 5px;">
                    <table cellpadding="0" cellspacing="0" width="100%" id="div1" runat="server">
                        <tr>
                            <td>
                                <asp:GridView ID="gvCourse" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                                    DataKeyNames="CourseID" OnRowCommand="gvCourse_RowCommand" OnRowDataBound="gvCourse_RowDataBound">
                                    <PagerSettings Visible="False" />
                                    <Columns>
                                        <asp:TemplateField HeaderText="课程名称">
                                            <ItemTemplate>
                                                <asp:Label ID="lblCourseId" Font-Names="微软雅黑" ForeColor="Green" runat="server" Text='<%# Bind("CourseID") %>'
                                                    Visible="False"></asp:Label>
                                             <a class="vtip" title='<%#  "<img height=160 width=120  src=\""+"../Upload/CourseImage/"+Eval("photopath")+"\" />" %>'>
                                                <asp:Label ID="lblCourseName" runat="server" Style="cursor: hand" Text='<%# Bind("Name") %>'
                                                    Visible="true"></asp:Label></a>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="所属类型">
                                            <ItemTemplate>
                                                <asp:Label ID="Label2" runat="server" Text='<%# GetCourseTypeName(Eval("TypeID").ToString()) %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:BoundField DataField="Minutes" HeaderText="课时分钟" />
                                        <asp:TemplateField HeaderText="是否考试">
                                            <ItemTemplate>
                                                <asp:Label ID="Label3" runat="server" Text='<%# GetExamCheck(Eval("IsMustExam").ToString()) %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="状态">
                                            <ItemTemplate>
                                                <asp:Label ID="Label4" runat="server" Text='<%# GetCState(Eval("State").ToString()) %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="操作">
                                            <ItemTemplate>
                                                <%-- <asp:ImageButton ID="ibtnEdit" Width="16px" Height="16px" runat="server" CommandName="edit1" ImageUrl="~/images/sq.gif"
                                                ToolTip="申请" />--%>
                                                <asp:LinkButton ID="ibtnEdit" CommandName="edit1" runat="server" ForeColor="Blue"><img src="../Images/bullet_add.png" class="img_style" />申请</asp:LinkButton>
                                                <asp:Label ID="lblYSQ" runat="server" Text="已申请" ForeColor="Red" Visible="False"></asp:Label>
                                                <asp:Label ID="lblSX" runat="server" Text="已达上限人数" ForeColor="Red" Visible="False"></asp:Label>
                                                已有:<asp:Label ID="lblSum" runat="server" Text='<%# Bind("ac") %>'></asp:Label>
                                                人申请
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                    </Columns>
                                </asp:GridView>
                            </td>
                        </tr>
                        <tr>
                            <td class="page_bg_left">
                                <cc1:AspNetPager ID="myAspNetPager" runat="server" AlwaysShow="True" CssClass="cut_pager"
                                    PageSize="10" FirstPageText="首页&nbsp;&nbsp;" HorizontalAlign="Right" InputBoxStyle="width:20px;"
                                    LastPageText="尾页" NextPageText="&nbsp;&nbsp;下一页&nbsp;&nbsp;" NumericButtonTextFormatString="  {0}"
                                    OnPageChanging="AspNetPager1_PageChanging" PrevPageText="上一页" ShowCustomInfoSection="Left"
                                    CustomInfoTextAlign="Left" ShowInputBox="Always">
                                </cc1:AspNetPager>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </div>
    <div id="divNum" algin="center" style="display: none" runat="server">
        <!---->
        <div id="Div2" class="b2">
            <div class="rct">
                <div class="l tl1">
                </div>
                <div class="r tr1">
                </div>
            </div>
            <div class="cnt f14">
                <div style="color: #666;" align="center">
                    <div id="div3" runat="server" style="border: solid 1px #cccccc;" class="just_align">
                    </div>
                </div>
            </div>
            <div class="rcb">
                <div class="l bl1">
                </div>
                <div class="r br1">
                </div>
            </div>
        </div>
        <!--CMSLOADOK--->
    </div>
    <div id="LayerAll" runat="server">
    </div>
    <div id="PartTwo" style="display: none" runat="server">
        <table border="0" cellpadding="0" cellspacing="1" width="100%" class="table_notitle">
            <tr>
                <td align="right" width="200" class="td01">
                    申请原因：
                </td>
                <td align="left">
                    <asp:TextBox ID="txtApplyCourseAetiology" runat="server" TextMode="MultiLine" Height="100px"
                        Width="400px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td align="right" width="200">
                    &nbsp;
                </td>
                <td align="left">
                    <asp:Button ID="btnEnter" runat="server" Text="确定" OnClick="btnEnter_Click" />&nbsp;
                    <asp:Button ID="btncancel" runat="server" Text="取消" OnClick="btncancel_Click" />
                </td>
            </tr>
        </table>
    </div>
    </form>
    <%-- <script type="text/javascript">
	
　　         var tooltipObj = new DHTMLgoodies_formTooltip();
         tooltipObj.setTooltipWidth('135');
         tooltipObj.setTooltipPosition('right');
         tooltipObj.setPageBgColor('#EEE');
         tooltipObj.setTooltipBgColor('#FFF');
         tooltipObj.setArrowVisibility(false);
         tooltipObj.setCloseMessage('');
         tooltipObj.initFormFieldTooltip();

　　</script>--%>

    <script type="text/javascript">
        $("#loading").fadeOut()
    </script>

</body>
</html>
