<%@ page language="C#" autoeventwireup="true" inherits="Plan_PersonalPlans, App_Web_dy1ncacz" theme="Themes" stylesheettheme="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 runat="server">
    <title></title>
    <meta http-equiv="x-ua-compatible" content="ie=7" />
    <script src="../Js/tip.js" type="text/javascript"></script>
     <script src="../js/jquery.js" type="text/javascript"></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">
        .style1
        {
            width: 34px;
        }
    </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" Text="Label"></asp:Label></span>
            </td>
        </tr>
        <tr>
            <td>
                     <table cellspacing="0" cellpadding="5" class="r_top_title_box">
                    <tr>
                        <td align="left" class="style1">
                            &nbsp;</td>
                        <td align="left">
                            <asp:Label ID="Label1" runat="server" Text="计划名称："></asp:Label>
                            <asp:TextBox ID="txtName" runat="server" MaxLength="20"></asp:TextBox>
                            <asp:Button ID="btnSearch" runat="server" Text="查 询" OnClick="btnSearch_Click" />
                        </td>
                        <td align="right">
                        </td>
                    </tr>
                </table></td>
        </tr>
        <tr>
            <td class="grid_box">
                <table cellpadding="0" cellspacing="0" width="100%">
                    <tr>
                        <td>
                            <asp:GridView ID="gvTrainingPlan" runat="server" AutoGenerateColumns="False" PageSize="10"
                                Width="100%" DataKeyNames="PlanID" OnRowCommand="gvTrainingPlan_RowCommand" OnRowDataBound="gvTrainingPlan_RowDataBound">
                                <PagerSettings Visible="False" />
                                <Columns>
                                    <asp:BoundField DataField="TypeID" HeaderText="计划类型" HeaderStyle-CssClass="rowStyle" />
                                    <asp:TemplateField HeaderText="计划名称" HeaderStyle-CssClass="rowStyle">
                                        <ItemTemplate>
                                              <a id="hrefToolTip" runat="server" style="text-decoration: none;" class="vtip" title='<%#  GetDes(Eval("Descrip").ToString()) %>'><asp:Label ID="lblName" runat="server" Text='<%#  Eval("PlanName") %>'></asp:Label></a>
                                            <asp:Label ID="lblDescrip" runat="server" Text='<%#  Eval("Descrip").ToString() %>'
                                                Visible="false"></asp:Label>
                                            <asp:Label ID="lblBeginTime" runat="server" Text='<%#  Eval("BeginTime").ToString() %>'
                                                Visible="false"></asp:Label>
                                            <asp:Label ID="lblEndTime" runat="server" Text='<%#  Eval("EndTime").ToString() %>'
                                                Visible="false"></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:BoundField DataField="BeginTime" DataFormatString="{0:D}" HeaderText="开始时间"
                                        HeaderStyle-CssClass="rowStyle" />
                                    <asp:BoundField DataField="EndTime" DataFormatString="{0:D}" HeaderText="结束时间" HeaderStyle-CssClass="rowStyle" />
                                    <asp:TemplateField HeaderText="状态" HeaderStyle-CssClass="rowStyle" Visible="false">
                                        <ItemTemplate>
                                             <asp:Label ID="lblFinish" runat="server"></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="进入计划" HeaderStyle-CssClass="rowStyle">
                                        <ItemTemplate>
                                            <asp:LinkButton ID="ibtn" runat="server" CommandName="enter" Text="进入计划" HeaderStyle-CssClass="rowStyle" />
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                </Columns>
                                <RowStyle Height="30px" />
                                <EmptyDataTemplate>
                                    <asp:Label ID="lblEmpty" runat="server" Text="没有符合条件的数据！"></asp:Label>
                                </EmptyDataTemplate>
                            </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>
        <tr>
            <td>
            </td>
        </tr>
    </table>
    </form>
        <script type="text/javascript">
            $("#loading").fadeOut()
</script>
</body>
</html>
