<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="pg_Registers.aspx.cs" Inherits="rl_admins_pg_Registers" Title="Untitled Page" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cphMain" Runat="Server">
    <div class="contentDiv">
        <table border="0" cellpadding="0" cellspacing="0" >
            <tr id="Tr1">
                <td id="rightTableData" valign="top">
                    <div id="linksPanel" style="margin-right:15px; margin-top : 10px;">
                        <table id="tblpanel" border="0" cellpadding="0" cellspacing="0" style="width:200px;">
                            <tr>
                                <td id="panelheadright" class="panelheadright">
                                </td>
                                <td id="panelheadrepeat" class="panelheadrepeat" align="center" style="width:160px;">
                                    <asp:Label ID="lblpanelHead" runat="server" Text="منوی سایت" style="color:White; font-weight:bold; "></asp:Label>
                                </td>
                                <td id="panelheadleft" class="panelheadleft">
                                </td>
                            </tr>
                            <tr>
                                <td id="panelmarginright" class="panelmarginright">
                                </td>
                                <td valign="top" class="panelcontentback" style="background-image:none; background-color : White; "> <!-- ************ Content Place !-->
                                    <div class="panelcontent" style="margin-top:17px;">
                                        <asp:Panel ID="panelMenues" runat="server">
                                        </asp:Panel>
                                    </div>
                                </td>
                                <td id="panelmarginleft" class="panelmarginleft" align="left">
                                </td>
                            </tr>
                            <tr>
                                <td id="panelbottomright" class="panelbottomright" align="right" >
                                </td>
                                <td id="panelbottomrepeat" class="panelbottomrepeat" style="width:160px;">
                                </td>
                                <td id="panelbottomleft" class="panelbottomleft" align="left";>
                                </td>
                            </tr>
                        </table>
                    </div>
                </td>
                <td id="contentTableData" style="width:100%; padding-right : 10px;" align="right"; valign="top"; >
                    <div id="frameContainer" style="padding:10px 10px 25px 20px;">
                        <table id="Table2" border="0" cellpadding="0" cellspacing="0" style="width:100%;">
                            <tr>
                                <td id="Td92" class="panelheadright">
                                </td>
                                <td id="Td102" class="panelheadrepeat" align="center" >
                                    <asp:Label ID="Label12" runat="server" Text="لیست ثبت نام های صورت گرفته" style="color:White;"></asp:Label>
                                </td>
                                <td id="Td112" class="panelheadleft">
                                </td>
                            </tr>
                            <tr>
                                <td id="Td122" class="panelmarginright">
                                </td>
                                <td valign="top" class="panelcontentback"> <!-- ************ Content Place !-->
                                    <div id="divRoleType" class="panelcontent" style="text-align:right; " runat="server">
                                        <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
                                            <ContentTemplate>
                                                <div id="gridUsers" style="padding-right: 20px; padding-left : 20px;">
                                                    <asp:GridView ID="GridView1" runat="server" style="width:100%;" 
                                                        AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" 
                                                        DataKeyNames="regId" CssClass="grid" PageSize="15" PagerStyle-CssClass="gridPager" 
                                                        onrowcommand="GridView1_RowCommand" OnPageIndexChanging="GridView1_PageIndexChanging">
                                                        <Columns>
                                                            <asp:BoundField DataField="regId" HeaderText="کد ثبت نام" 
                                                                InsertVisible="False" ReadOnly="True" HeaderStyle-CssClass="gridHeader" ItemStyle-CssClass="gridCell" >
                                                            </asp:BoundField>
                                                            <asp:BoundField DataField="fullName" HeaderText="نام دانشجو" 
                                                                InsertVisible="False" ReadOnly="True" HeaderStyle-CssClass="gridHeader" ItemStyle-CssClass="gridCell" >
                                                            </asp:BoundField>
                                                            <asp:BoundField DataField="courseName" HeaderText="نام دوره" 
                                                                InsertVisible="False" ReadOnly="True" HeaderStyle-CssClass="gridHeader" ItemStyle-CssClass="gridCell" >
                                                            </asp:BoundField>
                                                            <asp:BoundField DataField="regDate" HeaderText="تاریخ ثبت نام" 
                                                                InsertVisible="False" ReadOnly="True" HeaderStyle-CssClass="gridHeader" ItemStyle-CssClass="gridCell" >
                                                            </asp:BoundField>
                                                            <asp:TemplateField HeaderText="وضعیت ثبت نام" HeaderStyle-CssClass="gridHeader" ItemStyle-CssClass="gridCell">
                                                                <ItemTemplate>
                                                                    <asp:Label ID="lblRegStatus" runat="server" Text='<%#FindStatusText(Eval("regId")) %>' CssClass='<%#FindStatusCssClass(Eval("regId")) %>'></asp:Label>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderText="عملیات" HeaderStyle-CssClass="gridHeader" ItemStyle-CssClass="gridCell">
                                                                <ItemTemplate>
                                                                    <asp:LinkButton ID="btnOperation" runat="server" CommandName="CommitPress" CommandArgument='<%#Eval("regId") %>' CssClass='<%#FindCssClass(Eval("regStatus")) %>' Width="60px" Height="20px" style="margin-top:4px;" ><%#FindShowButtonText(Eval("regStatus"))%></asp:LinkButton>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderText="عملیات" HeaderStyle-CssClass="gridHeader" ItemStyle-CssClass="gridCell">
                                                                <ItemTemplate>
                                                                    <asp:LinkButton ID="btnOperation2" runat="server" CommandName="CancelPress" CommandArgument='<%#Eval("regId") %>' CssClass='<%#FindCssClass2(Eval("regStatus")) %>' Width="60px" Height="20px" style="margin-top:4px;" ><%#FindShowButtonText2(Eval("regStatus"))%></asp:LinkButton>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderText="حذف" HeaderStyle-CssClass="gridHeader" ItemStyle-CssClass="gridCell">
                                                                <ItemTemplate>
                                                                    <asp:LinkButton ID="btnDelete" runat="server" CommandName="DeletePress" CommandArgument='<%#Eval("regId") %>' CssClass="gridsmallbuttons" Width="60px" Height="20px" style="margin-top:4px;" >حذف</asp:LinkButton>
                                                                    <cc1:ConfirmButtonExtender ID="ConfirmButtonExtender1" runat="server" TargetControlID="btnDelete" ConfirmText="آیا برای حذف اطلاعات این ثبت نام اطمینان دارید؟">
                                                                    </cc1:ConfirmButtonExtender>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                        </Columns>
                                                        <PagerStyle CssClass="gridPager" />
                                                    </asp:GridView>
                                                    <div style="width:99%; height:25px; border-style:solid; border-width:1px; border-color:Gray; margin-top:8px; font-family:Tahoma; font-size:8pt;text-align:right;vertical-align:middle; padding:0px 5px 0px 5px;">
                                                        <table border="0" cellpadding="0" cellspacing="4px"; width="100%">
                                                            <tr>
                                                                <td align="left" width="65px">
                                                                    <asp:Label ID="Label1" runat="server" Text="نام دانشجو :"></asp:Label>
                                                                </td>
                                                                <td align="right" width="200px">
                                                                    <asp:TextBox ID="tbSearch" runat="server" Font-Names="Tahoma" Font-Size="8pt" Width="200px" ></asp:TextBox>
                                                                </td>
                                                                <td align="right" width="60px">
                                                                    <asp:LinkButton ID="btnSearch" runat="server" CssClass="gridsmallbuttons" 
                                                                        Width="60px" Height="20px" style="margin-top:4px;" onclick="btnSearch_Click" >جستجو</asp:LinkButton>
                                                                </td>
                                                                <td align="right" width="25px">
                                                                    <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel1">
                                                                        <ProgressTemplate>
                                                                            <asp:Image ID="imgProgress" runat="server" ImageUrl="~/images/loading1.gif" Height="25px" Width="25px"/>
                                                                        </ProgressTemplate>
                                                                    </asp:UpdateProgress>
                                                                </td>
                                                                <td align="left" style="padding-left:8px;">
                                                                    <asp:LinkButton ID="btnAllShow" runat="server" CssClass="gridsmallbuttons" 
                                                                        Width="60px" Height="20px" style="margin-top:4px;" 
                                                                        onclick="btnAllShow_Click"  >مشاهده همه</asp:LinkButton>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </div>
                                                </div>
                                            </ContentTemplate>
                                        </asp:UpdatePanel>
                                    </div>
                                </td>
                                <td id="Td132" class="panelmarginleft" align="left">
                                </td>
                            </tr>
                            <tr>
                                <td id="Td142" class="panelbottomright" align="right" >
                                </td>
                                <td id="Td152" class="panelbottomrepeat" >
                                </td>
                                <td id="Td162" class="panelbottomleft" align="left";>
                                </td>
                            </tr>
                        </table>
                    </div>
                </td>
            </tr>
        </table>
    </div>
</asp:Content>

