<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="pg_ClassEdit.aspx.cs" Inherits="rl_admins_pg_ClassEdit" Title="ویرایش کلاس" %>
<%@ 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"; >
                    <asp:UpdatePanel ID="up1" runat="server">
                        <ContentTemplate>
                             <div id="Div3" style="padding:10px 10px 25px 10px;">
                                <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:center;" runat="server">
                                                <table border="0" cellpadding="0" cellspacing="5px">
                                                    <tr>
                                                        <td align="left" valign="middle">
                                                            <asp:Label ID="Label1" runat="server" Text="عنوان کلاس :"></asp:Label>
                                                        </td>
                                                        <td colspan="3" align="right" valign="middle">
                                                            <asp:TextBox ID="tbClassTitle" runat="server" Font-Names="Tahoma" Font-Size="8pt" Width="230px"></asp:TextBox>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td align="left" valign="middle">
                                                            <asp:Label ID="Label2" runat="server" Text="دوره :"></asp:Label>
                                                        </td>
                                                        <td align="right" valign="middle" width="30px">
                                                            <asp:TextBox ID="tbCourseId" runat="server" Font-Names="Tahoma" Font-Size="8pt" Width="30px" ReadOnly="true" BackColor="Control"></asp:TextBox>
                                                        </td>
                                                        <td align="right" valign="middle" width="130px">
                                                            <asp:TextBox ID="tbCourseName" runat="server" Font-Names="Tahoma" Font-Size="8pt" Width="130px" ReadOnly="true" BackColor="Control"></asp:TextBox>
                                                        </td>
                                                        <td align="left" valign="middle">
                                                            <asp:LinkButton ID="btnAddCourse" runat="server" CssClass="gridsmallbuttons" 
                                                                Width="60px" Height="20px" style="margin-top:4px;" 
                                                                onclick="btnAddCourse_Click" >انتخاب</asp:LinkButton>
                                                            <asp:Button ID="btnAddCourse2" runat="server" Text="" style="display:none;"/>
                                                            <cc1:ModalPopupExtender ID="mpeCourses" runat="server" 
                                                                 TargetControlID="btnAddCourse2" PopupControlID="panelCourses" 
                                                                 BackgroundCssClass="modalback" CacheDynamicResults="True" Drag="True">
                                                            </cc1:ModalPopupExtender>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td align="left" valign="middle">
                                                            <asp:Label ID="Label4" runat="server" Text="مدرس :"></asp:Label>
                                                        </td>
                                                        <td align="right" valign="middle" width="30px">
                                                            <asp:TextBox ID="tbTeacherId" runat="server" Font-Names="Tahoma" Font-Size="8pt" Width="30px" ReadOnly="true" BackColor="Control"></asp:TextBox>
                                                        </td>
                                                        <td align="right" valign="middle" width="130px">
                                                            <asp:TextBox ID="tbTeacherName" runat="server" Font-Names="Tahoma" Font-Size="8pt" Width="130px" ReadOnly="true" BackColor="Control"></asp:TextBox>
                                                        </td>
                                                        <td align="left" valign="middle">
                                                            <asp:LinkButton ID="btnTeacherSelect" runat="server" CssClass="gridsmallbuttons" 
                                                                Width="60px" Height="20px" style="margin-top:4px;" 
                                                                onclick="btnTeacherSelect_Click"  >انتخاب</asp:LinkButton>
                                                            <asp:Button ID="btnAddTeacher2" runat="server" Text="" style="display:none;"/>
                                                            <cc1:ModalPopupExtender ID="mpeTeachers" runat="server" 
                                                                 TargetControlID="btnAddTeacher2" PopupControlID="panelTeachers" 
                                                                 BackgroundCssClass="modalback" CacheDynamicResults="True" Drag="True">
                                                            </cc1:ModalPopupExtender>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td colspan="4" align="left">
                                                            <asp:CheckBox ID="checkStatus" runat="server" Text="جاری" Font-Names="Tahoma" Font-Size="8pt"/>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </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>
                            
                            
                        </ContentTemplate>
                    </asp:UpdatePanel>
                    
                    <!-- **************************************** STUDENTS !-->        
                    
                    <div id="frameContainer" style="padding:10px 10px 25px 10px;">
                        <table id="Table1" border="0" cellpadding="0" cellspacing="0" style="width:100%;">
                            <tr>
                                <td id="Td1" class="panelheadright">
                                </td>
                                <td id="Td2" class="panelheadrepeat" align="center" >
                                    <asp:Label ID="Label5" runat="server" Text="لیست دانشجویان" style="color:White;"></asp:Label>
                                </td>
                                <td id="Td3" class="panelheadleft">
                                </td>
                            </tr>
                            <tr>
                                <td id="Td4" class="panelmarginright">
                                </td>
                                <td valign="top" class="panelcontentback" > <!-- ************ Content Place !-->
                                    <div id="div1" class="panelcontent" style="text-align:right; " runat="server">
                                        <asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional">
                                            <ContentTemplate>
                                                <div id="gridUsers" style="padding-right: 20px; padding-left : 20px;">
                                                    <asp:GridView ID="GridView2" runat="server" style="width:100%;" 
                                                        AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" 
                                                        CssClass="grid" PageSize="10" PagerStyle-CssClass="gridPager" 
                                                        onpageindexchanging="GridView2_PageIndexChanging"  >
                                                        <Columns>
                                                            <asp:TemplateField HeaderText="عملیات" HeaderStyle-CssClass="gridHeader" ItemStyle-CssClass="gridCell">
                                                                <ItemTemplate>
                                                                    <asp:DropDownList ID="cmbOp" runat="server" Font-Names="Tahoma" Font-Size="8pt" Width="50px">
                                                                        <asp:ListItem>ثبت</asp:ListItem>
                                                                        <asp:ListItem>حذف</asp:ListItem>
                                                                    </asp:DropDownList>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:BoundField DataField="studentId" HeaderText="کد دانشجو" HeaderStyle-CssClass="gridHeader" ItemStyle-CssClass="gridCell"/>
                                                            <asp:BoundField DataField="fullName" HeaderText="نام و نام خانوادگی" HeaderStyle-CssClass="gridHeader" ItemStyle-CssClass="gridCell"/>
                                                            <asp:BoundField DataField="tahsilat" HeaderText="میزان تحصیلات" HeaderStyle-CssClass="gridHeader" ItemStyle-CssClass="gridCell"/>
                                                            <asp:BoundField DataField="dateOfBirth" HeaderText="تاریخ تولد" HeaderStyle-CssClass="gridHeader" ItemStyle-CssClass="gridCell"/>
                                                            <asp:BoundField DataField="userName" HeaderText="نام کاربری" HeaderStyle-CssClass="gridHeader" ItemStyle-CssClass="gridCell"/>
                                                        </Columns>
                                                        <PagerStyle CssClass="gridPager" BorderStyle="None" HorizontalAlign="Center" VerticalAlign="Middle" />
                                                    </asp:GridView>
                                                    <div style="text-align:left; margin-top:5px;"><asp:LinkButton ID="btnAddStudent" 
                                                            runat="server" CssClass="gridsmallbuttonstrue" Width="60px" Height="20px" 
                                                            onclick="btnAddStudent_Click"  >جدید</asp:LinkButton></div>
                                                </div>
                                                <cc1:ModalPopupExtender ID="mpeStudents" runat="server" 
                                                     TargetControlID="btnAddStudent2" PopupControlID="panelStudents" 
                                                     BackgroundCssClass="modalback" CacheDynamicResults="True" Drag="True">
                                                </cc1:ModalPopupExtender>
                                                <asp:LinkButton ID="btnAddStudent2" runat="server" style="display:none;" >جدید</asp:LinkButton>
                                            </ContentTemplate>
                                        </asp:UpdatePanel>
                                    </div>
                                </td>
                                <td id="Td5" class="panelmarginleft" align="left">
                                </td>
                            </tr>
                            <tr>
                                <td id="Td6" class="panelbottomright" align="right" >
                                </td>
                                <td id="Td7" class="panelbottomrepeat" >
                                </td>
                                <td id="Td8" class="panelbottomleft" align="left";>
                                </td>
                            </tr>
                            <tr>
                                <td align="center" colspan="3" style="padding-top:5px;">
                                    <asp:UpdatePanel ID="UpdatePanel3" runat="server" UpdateMode="Conditional">
                                        <ContentTemplate>
                                            <asp:LinkButton ID="btnOk" runat="server" Height="25px" 
                                                Width="100px" CssClass="buttons" onclick="btnOk_Click" >تأیید</asp:LinkButton>
                                            <div style="display:inline; float:left;">
                                                <asp:LinkButton ID="btnBack" 
                                                    runat="server"  Height="35px" style="position:relative; top: 0px; right: 0px;"
                                                Width="70px" CssClass="backbutton" onclick="btnBack_Click" ></asp:LinkButton></div>
                                            <div id="divProgressOkButton" style="width:40px; height:40px; vertical-align:middle; text-align:center; padding-right:70px;">
                                                <asp:UpdateProgress ID="UpdateProgressOkButton" runat="server" AssociatedUpdatePanelID="UpdatePanel3" DisplayAfter="0">
                                                    <ProgressTemplate>
                                                        <asp:Image ID="Image3" runat="server" ImageUrl="~/images/loading1.gif" Width="40px" Height="40px"/>
                                                    </ProgressTemplate>
                                                </asp:UpdateProgress>
                                            </div>
                                            <asp:Label ID="lblMessage" runat="server" Text=""></asp:Label>
                                        </ContentTemplate>
                                    </asp:UpdatePanel>
                                </td>
                            </tr>
                        </table>
                    </div>
       
                    
                    
                    <!-- **************************** COURSE SELECT PANEL : !-->                                    
                    <asp:Panel ID="panelCourses" runat="server" BorderStyle="Solid" Width="600px" BorderColor="Khaki" BorderWidth="2px" style="padding:10px 10px 10px 10px; background-color:rgb(0,0,0)">
                        <asp:UpdatePanel ID="up2" runat="server">
                            <ContentTemplate> <!-- PANEL COURSES CONTENT : !-->
                                <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                                    ConnectionString="<%$ ConnectionStrings:ASPNETDB_ConnectionString %>"
                                    ProviderName="System.Data.SqlClient" 
                                    SelectCommand="SELECT * FROM [t_Courses] ORDER BY [courseId]"></asp:SqlDataSource>
                                <div style="font-family:Tahoma; font-size:8pt; text-align:right; color:White;">جهت 
                                    انتخاب دوره مورد نظرتان ، گزینه انتخاب را کلیک کنید.</div>
                                <div style="margin-top : 10px;">
                                    <asp:GridView ID="GridCourses" runat="server" AllowPaging="True" 
                                        AllowSorting="True" AutoGenerateColumns="False" CssClass="grid" 
                                        DataKeyNames="courseId" DataSourceID="SqlDataSource1" 
                                        PagerStyle-CssClass="gridPager" PageSize="10" style="width:100%;" 
                                        onpageindexchanging="GridCourses_PageIndexChanging" 
                                        onrowcommand="GridCourses_RowCommand">
                                        <Columns>
                                            <asp:BoundField DataField="courseId" HeaderStyle-CssClass="gridHeader" 
                                                HeaderText="کد دوره" InsertVisible="False" ItemStyle-CssClass="gridCell" 
                                                ReadOnly="True" />
                                            <asp:BoundField DataField="courseName" HeaderStyle-CssClass="gridHeader" 
                                                HeaderText="نام دوره" ItemStyle-CssClass="gridCell" />
                                            <asp:BoundField DataField="beginDate" HeaderStyle-CssClass="gridHeader" 
                                                HeaderText="تاریخ شروع" ItemStyle-CssClass="gridCell" />
                                            <asp:BoundField DataField="duration" HeaderStyle-CssClass="gridHeader" 
                                                HeaderText="مدت دوره" ItemStyle-CssClass="gridCell" />
                                            <asp:BoundField DataField="endDate" HeaderStyle-CssClass="gridHeader" 
                                                HeaderText="تاریخ پایان" ItemStyle-CssClass="gridCell" />
                                            <asp:BoundField DataField="amount" HeaderStyle-CssClass="gridHeader" 
                                                HeaderText="هزینه دوره" ItemStyle-CssClass="gridCell" />
                                            <asp:TemplateField HeaderStyle-CssClass="gridHeader" HeaderText="انتخاب" 
                                                ItemStyle-CssClass="gridCell">
                                                <ItemTemplate>
                                                    <asp:LinkButton ID="btnSelect" runat="server" 
                                                        CommandArgument='<%#Eval("courseId") %>' CommandName="SelectPress" 
                                                        style="text-decoration:none;">انتخاب</asp:LinkButton>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                        </Columns>
                                        <PagerStyle CssClass="gridPager" />
                                    </asp:GridView>
                                </div>
                                <div style="text-align:left; padding-top:5px; font-family:Tahoma; font-size:8pt; color:White;">
                                    <table border="0" cellpadding="0" cellspacing="5px" width="100%">
                                        <tr>
                                            <td align="left" valign="middle" width="60px">
                                                <asp:Label ID="Label3" runat="server" Text="نام دوره :"></asp:Label>
                                            </td>
                                            <td align="right" valign="middle" width="200px">
                                                <asp:TextBox ID="tbSearch" runat="server" Font-Names="Tahoma" Font-Size="8pt" Width="200px"></asp:TextBox>
                                            </td>
                                            <td align="right" valign="middle">
                                                <asp:LinkButton ID="btnSearch" runat="server" CssClass="gridsmallbuttons" 
                                                    Width="60px" Height="20px" style="margin-top:4px;" >جستجو</asp:LinkButton>
                                            </td>
                                            <td align="left" valign="middle" width="60px">
                                                <asp:LinkButton ID="btnAllShow" runat="server" CssClass="gridsmallbuttons" 
                                                    Width="60px" Height="20px" style="margin-top:4px;" 
                                                    onclick="btnAllShow_Click"   >مشاهده همه</asp:LinkButton>
                                            </td>
                                            <td align="left" valign="middle" width="60px">
                                                <asp:LinkButton ID="btnCancel" runat="server" CssClass="gridsmallbuttons" 
                                                    Width="60px" Height="20px" style="margin-top:4px;" >انصراف</asp:LinkButton>
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                             </ContentTemplate>
                        </asp:UpdatePanel>
                    </asp:Panel>
                    <!--***************************** Teachers PANEL : !-->
                    
                    <asp:Panel ID="panelTeachers" runat="server" BorderStyle="Solid" Width="600px" BorderColor="Khaki" BorderWidth="2px" style="padding:10px 10px 10px 10px; background-color:rgb(0,0,0)">
                        <asp:UpdatePanel ID="upTeachers" runat="server" >
                            <ContentTemplate> <!-- PANEL COURSES CONTENT : !-->
                                <asp:SqlDataSource ID="SqlDataSource3" runat="server" 
                                    ConnectionString="<%$ ConnectionStrings:ASPNETDB_ConnectionString %>"
                                    ProviderName="System.Data.SqlClient" 
                                    SelectCommand="SELECT [teacherId], [fullName], [tahsilat], [userName] FROM [t_Teachers] ORDER BY [teacherId]"></asp:SqlDataSource>
                                <div style="font-family:Tahoma; font-size:8pt; text-align:right; color:White;">برای 
                                    انتخاب مدرس مورد نظر روی گزینه &#39;انتخاب&#39; کلیک نمایید. :</div>
                                <div style="margin-top : 10px;">
                                    <asp:GridView ID="GridTeachers" runat="server" style="width:100%;" 
                                        AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" 
                                        DataKeyNames="teacherId" DataSourceID="SqlDataSource3" CssClass="grid" 
                                        PagerStyle-CssClass="gridPager" 
                                        onpageindexchanging="GridTeachers_PageIndexChanging" 
                                        onrowcommand="GridTeachers_RowCommand"  >
                                        <Columns>
                                            <asp:BoundField DataField="teacherId" HeaderText="کد مدرس" InsertVisible="False" ReadOnly="True" HeaderStyle-CssClass="gridHeader" ItemStyle-CssClass="gridCell"/>
                                            <asp:BoundField DataField="fullName" HeaderText="نام و نام خانوادگی" HeaderStyle-CssClass="gridHeader" ItemStyle-CssClass="gridCell"/>
                                            <asp:BoundField DataField="tahsilat" HeaderText="میزان تحصیلات" HeaderStyle-CssClass="gridHeader" ItemStyle-CssClass="gridCell" />
                                            <asp:BoundField DataField="userName" HeaderText="نام کاربری"  HeaderStyle-CssClass="gridHeader" ItemStyle-CssClass="gridCell"/>
                                            <asp:TemplateField HeaderText="انتخاب" HeaderStyle-CssClass="gridHeader" ItemStyle-CssClass="gridCell">
                                                <ItemTemplate>
                                                    <asp:LinkButton ID="btnSelect" CommandName="SelectTeacher" CommandArgument='<%#Eval("teacherId") %>' runat="server" style="text-decoration:none;">انتخاب</asp:LinkButton>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                        </Columns>
                                        <PagerStyle CssClass="gridPager" />
                                    </asp:GridView>
                                </div>
                                <div style="text-align:left; padding-top:5px; font-family:Tahoma; font-size:8pt; color:White;">
                                    <table border="0" cellpadding="0" cellspacing="5px" width="100%">
                                        <tr>
                                            <td align="left" valign="middle" width="100%">
                                                <asp:LinkButton ID="LinkButton1" runat="server" CssClass="gridsmallbuttons" 
                                                    Width="60px" Height="20px" style="margin-top:4px;" >انصراف
                                                </asp:LinkButton>
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                             </ContentTemplate>
                        </asp:UpdatePanel>
                    </asp:Panel>
                    
                    <!--***************************** STUDENTS PANEL : !-->
                    <asp:Panel ID="panelStudents" runat="server" BorderStyle="Solid" Width="600px" BorderColor="Khaki" BorderWidth="2px" style="padding:10px 10px 10px 10px; background-color:rgb(0,0,0)">
                        <asp:UpdatePanel ID="upStudents" runat="server" >
                            <ContentTemplate> <!-- PANEL COURSES CONTENT : !-->
                                <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
                                    ConnectionString="<%$ ConnectionStrings:ASPNETDB_ConnectionString %>"
                                    ProviderName="System.Data.SqlClient" 
                                    SelectCommand="SELECT t_Students.studentId, t_Students.fullName, t_Students.gender, t_Students.tahsilat, t_Students.dateOfBirth, t_Students.melliCode, t_Students.studentPhotoUrl, t_Students.userName, t_Students.userCreater, t_Registers.courseId FROM t_Students INNER JOIN t_Registers ON t_Students.studentId = t_Registers.studentId"></asp:SqlDataSource>
                                <div style="font-family:Tahoma; font-size:8pt; text-align:right; color:White;">لیست 
                                    دانشجویان ثبت نام کرده برای دوره انتخابی :</div>
                                <div style="margin-top : 10px;">
                                    <asp:GridView ID="GridStudents" runat="server" style="width:100%;" 
                                        AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" 
                                        DataKeyNames="studentId" DataSourceID="SqlDataSource2" CssClass="grid" 
                                        PagerStyle-CssClass="gridPager" PageSize="10" 
                                        onpageindexchanging="GridStudents_PageIndexChanging" 
                                        onrowcommand="GridStudents_RowCommand" >
                                        <Columns>
                                            <asp:BoundField DataField="studentId" HeaderText="کد دانشجو" 
                                                InsertVisible="False" ReadOnly="True" HeaderStyle-CssClass="gridHeader" 
                                                ItemStyle-CssClass="gridCell" >
                                                <HeaderStyle CssClass="gridHeader" />
                                                <ItemStyle CssClass="gridCell" />
                                            </asp:BoundField>
                                            <asp:BoundField DataField="fullName" HeaderText="نام و نام خانوادگی" 
                                                HeaderStyle-CssClass="gridHeader" ItemStyle-CssClass="gridCell" >
                                                <HeaderStyle CssClass="gridHeader" />
                                                <ItemStyle CssClass="gridCell" />
                                            </asp:BoundField>
                                            <asp:BoundField DataField="dateOfBirth" HeaderText="تاریخ تولد" 
                                                HeaderStyle-CssClass="gridHeader" ItemStyle-CssClass="gridCell">
                                                <HeaderStyle CssClass="gridHeader" />
                                                <ItemStyle CssClass="gridCell" />
                                            </asp:BoundField>
                                            <asp:BoundField DataField="tahsilat" HeaderText="میزان تحصیلات" 
                                                HeaderStyle-CssClass="gridHeader" ItemStyle-CssClass="gridCell" >
                                                <HeaderStyle CssClass="gridHeader" />
                                                <ItemStyle CssClass="gridCell" />
                                            </asp:BoundField>
                                            <asp:BoundField DataField="melliCode" HeaderText="کد ملی" 
                                                HeaderStyle-CssClass="gridHeader" ItemStyle-CssClass="gridCell" >
                                                <HeaderStyle CssClass="gridHeader" />
                                                <ItemStyle CssClass="gridCell" />
                                            </asp:BoundField>
                                            <asp:BoundField DataField="userName" HeaderText="نام کاربری" 
                                                HeaderStyle-CssClass="gridHeader" ItemStyle-CssClass="gridCell" >
                                                <HeaderStyle CssClass="gridHeader" />
                                                <ItemStyle CssClass="gridCell" />
                                            </asp:BoundField>
                                            <asp:TemplateField HeaderText="انتخاب" HeaderStyle-CssClass="gridHeader" ItemStyle-CssClass="gridCell">
                                                <ItemTemplate>
                                                    <asp:LinkButton ID="btnSelectStudent" CommandName="SelectStudentPress" CommandArgument='<%#Eval("studentId") %>' runat="server" style="text-decoration:none;">انتخاب</asp:LinkButton>
                                                </ItemTemplate>
                                                <HeaderStyle CssClass="gridHeader" />
                                                <ItemStyle CssClass="gridCell" />
                                            </asp:TemplateField>
                                        </Columns>
                                        <PagerStyle CssClass="gridPager" />
                                    </asp:GridView>
                                    <asp:Label ID="lblstuerror" runat="server" Text="Label"></asp:Label>
                                </div>
                                <div style="text-align:left; padding-top:5px; font-family:Tahoma; font-size:8pt; color:White;">
                                    <table border="0" cellpadding="0" cellspacing="5px" width="100%">
                                        <tr>
                                            <td align="left" valign="middle" width="100%">
                                                <asp:LinkButton ID="btnStudentsCancel" runat="server" CssClass="gridsmallbuttons" 
                                                    Width="60px" Height="20px" style="margin-top:4px;" 
                                                    onclick="btnStudentsCancel_Click"  >انصراف</asp:LinkButton>
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                             </ContentTemplate>
                        </asp:UpdatePanel>
                    </asp:Panel>
                    <!--***************************** STUDENTS PANEL : !-->
                    
                    
                </td>
            </tr>
        </table>
    </div>
</asp:Content>

