<%@ page language="C#" autoeventwireup="true" inherits="Plan_AddCourse, App_Web_dy1ncacz" theme="Themes" stylesheettheme="Themes" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="cc1" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<!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" 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/artDialog3/artDialog.min.js"></script>
      <script>          (function($) { var d = $.dialog.defaults; d.skin = ['chrome']; })(art);</script>
    <style type="text/css">
        .style1
        {
            width: 19%;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
         <asp:ToolkitScriptManager ID="ToolkitScriptManager1" 
                    runat="server">
                </asp:ToolkitScriptManager>
                <asp:AutoCompleteExtender ID="AutoCompleteExtender1" runat="server" TargetControlID="txtCourseName"
    CompletionSetCount="12" CompletionInterval="1" EnableCaching="true" MinimumPrefixLength="1"
    ServicePath="../services/AutoComplete.asmx" ServiceMethod="GetCourseNameList">
                </asp:AutoCompleteExtender>
       <div class="box">
        <table width="100%" border="0" cellspacing="0" cellpadding="5" bgcolor="white">
            <tr>
                <td align="right">
                  <asp:Button runat="server" Text="保存" ID="btnSave" onclick="btnSave_Click"></asp:Button>
                   </td>
            </tr>
        </table>
        </div>
        <div class="box">
            <table id="tblActivity" runat="server" border="0" cellpadding="5" cellspacing="1" width="100%" class="table_notitle">
                                        <tr class="td_3">
                                            <td bgcolor="#ffffff" height="25" align="right" class="style1">
                                                学习活动中对应的课程:
                                            </td>
                                            <td bgcolor="#ffffff" height="25" width="*" align="left">
                                                <asp:Label ID="lblSelectCourse" runat="server" Text="未选择" Font-Bold="True" 
                                                    ForeColor="#CC0000"></asp:Label>
                                            &nbsp;<asp:HiddenField ID="hideCourseId" runat="server" Value="0" />
                                            </td>
                                        </tr>
                                        <tr class="td_3">
                                            <td bgcolor="#ffffff" height="25" align="right" class="style1">
                                                可选课程:</td>
                                            <td bgcolor="#ffffff" height="25" width="*" align="left">
                                                <asp:DropDownList runat="server" AutoPostBack="True" ID="ddlCourseType" 
                                                    OnSelectedIndexChanged="ddlCourseType_SelectedIndexChanged">
                                                </asp:DropDownList>
                                                课程名称：<asp:TextBox ID="txtCourseName" runat="server" Width="192px"></asp:TextBox>
                  <asp:Button runat="server" Text="查询" ID="btnSearch" onclick="btnSearch_Click"></asp:Button>
                                                <asp:GridView runat="server" AutoGenerateColumns="False" 
                                                    DataKeyNames="CourseID" ID="gvCourse" 
                                                    OnRowCommand="gvCourse_RowCommand" AllowPaging="True" PageSize="5">
                                                    <Columns>
                                                        <asp:BoundField DataField="name" HeaderText="课程名称"></asp:BoundField>
                                                        <asp:BoundField DataField="Minutes" HeaderText="课时"></asp:BoundField>
                                                        <asp:BoundField DataField="credit" HeaderText="学分"></asp:BoundField>
                                                        <asp:TemplateField>
                                                            <ItemTemplate>
                                                                <asp:LinkButton ID="lbtnAdd" ForeColor="Blue" CommandName="addasaactivity" runat="server">设置为活动内容</asp:LinkButton>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                    </Columns>
                                                    <EmptyDataTemplate>
                                                        请通过课程类别选择课程
                                                    </EmptyDataTemplate>
                                                </asp:GridView>
                                                  <cc1:AspNetPager ID="myAspNetPager" runat="server" AlwaysShow="True" CssClass="cut_pager" PageSize="5"
                                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>
                                        <tr class="td_3">
                                            <td bgcolor="#ffffff" height="25" align="right" class="style1">
                                                学习活动名称:</td>
                                            <td bgcolor="#ffffff" height="25" width="*" align="left">
                    <asp:HiddenField ID="hideActivityID" runat="server" Value="0" />
                                                <asp:TextBox ID="txtActivityName" runat="server" Width="304px" tooltipText="提示：请先选择上面的课程作为学习活动，然后再视情况修改活动名称。" MaxLength="50"></asp:TextBox>
                    <asp:HiddenField ID="hidePlanID" runat="server" Value="0" />
                                                <font color="red">
                                                *</font>
                                            </td>
                                        </tr>
                                        </table>

        </div>
    </form>
     <script type="text/javascript">
	
　　         var tooltipObj = new DHTMLgoodies_formTooltip();
         tooltipObj.setTooltipWidth('240');
         tooltipObj.setTooltipPosition('right');
         tooltipObj.setPageBgColor('#EEE');
         tooltipObj.setCloseMessage('');
         tooltipObj.initFormFieldTooltip();

　　</script>
</body>
</html>
