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

<%@ 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 runat="server">
    <meta http-equiv="x-ua-compatible" content="ie=7" />

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

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

    <%--   <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" language="javascript"></script>

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

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

    <link rel="stylesheet" type="text/css" href="../js/vtip/css/vtip.css" />
    <title></title>
    <style type="text/css">
        .style1
        {
            width: 70px;
            text-align: right;
        }
        .style3
        {
            width: 128px;
        }
        .style4
        {
            width: 169px;
        }
    </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">
    <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" />
                    您的当前位置：<asp:Label ID="lblNum" runat="server" ></asp:Label></span>
            </td>
        </tr>
        <tr>
            <td class="r_top_box">
                <table cellspacing="0" cellpadding="5" class="r_top_title_box">
                    <tr>
                        <td class="style1">
                            课程形式：
                        </td>
                        <td class="style4" align="left">
                            <asp:RadioButton ID="rbtnAll" runat="server" AutoPostBack="True" Checked="True" GroupName="a"
                                OnCheckedChanged="rbtnMust_CheckedChanged" Text="全部" />
                            <asp:RadioButton ID="rbtnMust" runat="server" AutoPostBack="True" GroupName="a" OnCheckedChanged="rbtnMust_CheckedChanged"
                                Text="必修" />
                            <asp:RadioButton ID="rbtnNotMust" runat="server" AutoPostBack="True" GroupName="a"
                                OnCheckedChanged="rbtnMust_CheckedChanged" Text="自选" />
                        </td>
                        <td class="style1">
                            课程状态：
                        </td>
                        <td align="left" class="style3">
                            <asp:RadioButtonList ID="rbtlist" runat="server" RepeatColumns="2" AutoPostBack="True"
                                OnSelectedIndexChanged="rbtlist_SelectedIndexChanged">
                                <asp:ListItem Value="1" Selected="True">可用</asp:ListItem>
                                <asp:ListItem Value="0">不可用</asp:ListItem>
                            </asp:RadioButtonList>
                        </td>
                        <td align="left">
                            <asp:RadioButtonList ID="rbtListOne" runat="server" RepeatColumns="2" AutoPostBack="True"
                                OnSelectedIndexChanged="rbtListOne_SelectedIndexChanged" Visible="False">
                                <asp:ListItem Value="1" Selected="True">是</asp:ListItem>
                                <asp:ListItem Value="0">否</asp:ListItem>
                            </asp:RadioButtonList>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td class="grid_box">
                <table cellpadding="0" cellspacing="0" width="100%">
                    <tr>
                        <td>
                            <asp:GridView ID="gvCourse" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                                DataKeyNames="CourseID,ExamID" OnRowCommand="gvCourse_RowCommand" OnRowDataBound="gvCourse_RowDataBound"
                                Width="100%" Height="100%">
                                <PagerSettings Visible="False" />
                                <Columns>
                                    <asp:BoundField DataField="leixing" HeaderText="类型" />
                                    <asp:TemplateField HeaderText="课程名称">
                                        <ItemTemplate>
                                            <asp:Label ID="lblCourseId" Font-Names="微软雅黑" ForeColor="Green" runat="server" Text='<%# Bind("CourseID") %>'
                                                Visible="False"></asp:Label>
                                            <a style="text-decoration: none;" 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>
                                            <asp:Label ID="lblState" runat="server" Text='<%# GetCState(Eval("State").ToString()) %>'
                                                Visible="false"></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="所属类型">
                                        <ItemTemplate>
                                            <asp:Label ID="Label2" runat="server" Text='<%# GetCourseTypeName(Eval("TypeID").ToString()) %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="学习进度" ItemStyle-HorizontalAlign="Left">
                                        <ItemTemplate>
                                            <asp:Label ID="lblMinutes" Visible="false" runat="server" Text='<%# Bind("Minutes") %>'></asp:Label>
                                              <asp:Label ID="lblProgress"  runat="server" ></asp:Label>
                                        </ItemTemplate>
                                     
                                    </asp:TemplateField>
                                    <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="ibtnStudy" runat="server" CommandArgument='<%# Eval("courseid") %>'
                                                CommandName="study" ImageUrl="../images/book.png" CssClass="img_style png" />
                                            <asp:LinkButton ID="lbtnStudy" runat="server" CommandName="study" ToolTip="学习">学习</asp:LinkButton>
                                            <asp:ImageButton ID="ibtnExam" runat="server" CommandArgument='<%# Eval("courseid") %>'
                                                CommandName="exam" ImageUrl="../images/calculator_edit.png" CssClass="img_style png" />
                                            <asp:LinkButton ID="lbtnExam" runat="server" CommandName="exam" ToolTip="考试">考试</asp:LinkButton>
                                            <asp:ImageButton ID="ibtnExam0" runat="server" CommandArgument='<%# Eval("courseid") %>'
                                                CommandName="practice" ImageUrl="../images/chart_line_edit.png" CssClass="img_style png" />
                                            <asp:LinkButton ID="lbtnPractice" runat="server" CommandArgument='<%# Eval("courseid") %>'
                                                CommandName="practice" ToolTip="练习">练习</asp:LinkButton>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="备注">
                                        <ItemTemplate>
                                            <asp:Label ID="lblScore" runat="server" Font-Bold="True" ForeColor="#0066FF"></asp:Label>
                                            &nbsp;<asp:Label ID="lblIsPass" runat="server" Font-Bold="True" ForeColor="#006666"></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>
    </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>
