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

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>

<%@ Register Src="~/UserControls/ABCD.ascx" TagPrefix="rmn" TagName="Abcd"%>

<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 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="lblFrameTitle" 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">
                                        <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
                                            <ContentTemplate>
                                                <asp:GridView ID="GridView1" runat="server" style="width:100%;" 
                                                    AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" 
                                                    CssClass="grid" PageSize="15" PagerStyle-CssClass="gridPager" >
                                                    <PagerSettings NextPageText="&gt;" PreviousPageText="&lt;" />
                                                    <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="context" HeaderText="متن پرسش" HeaderStyle-CssClass="gridHeader" ItemStyle-CssClass="gridCell"/>
                                                        <asp:BoundField DataField="answerType" HeaderText="نوع پرسش" HeaderStyle-CssClass="gridHeader" ItemStyle-CssClass="gridCell"/>
                                                        <asp:BoundField DataField="barom" HeaderText="بارم" HeaderStyle-CssClass="gridHeader" ItemStyle-CssClass="gridCell"/>
                                                        <asp:BoundField DataField="manfi" HeaderText="نمره منفی" HeaderStyle-CssClass="gridHeader" ItemStyle-CssClass="gridCell"/>
                                                        <asp:BoundField DataField="answerA" HeaderText="جواب الف" HeaderStyle-CssClass="gridHeader" ItemStyle-CssClass="gridCell"/>
                                                        <asp:BoundField DataField="answerB" HeaderText="جواب ب" HeaderStyle-CssClass="gridHeader" ItemStyle-CssClass="gridCell"/>
                                                        <asp:BoundField DataField="answerC" HeaderText="جواب ج" HeaderStyle-CssClass="gridHeader" ItemStyle-CssClass="gridCell"/>
                                                        <asp:BoundField DataField="answerD" HeaderText="جواب د" HeaderStyle-CssClass="gridHeader" ItemStyle-CssClass="gridCell"/>
                                                        <asp:BoundField DataField="testAnswer" HeaderText="جواب صحیح" HeaderStyle-CssClass="gridHeader" ItemStyle-CssClass="gridCell"/>
                                                    </Columns>
                                                    <PagerStyle CssClass="gridPager" BorderStyle="None" HorizontalAlign="Center" 
                                                        VerticalAlign="Middle" />
                                                </asp:GridView>
                                                <div style="text-align:left; padding-top:8px;"><asp:LinkButton ID="btnAddStudent" runat="server" CssClass="gridsmallbuttonstrue" Width="60px" Height="20px" style="margin-top:4px;" onclick="btnNewClass_Click" >جدید</asp:LinkButton></div>
                                                <asp:Button ID="btnAddClasses2" runat="server" Text="" style="display:none;"/>
                                                <cc1:ModalPopupExtender ID="mpeClasses" runat="server" 
                                                     TargetControlID="btnAddClasses2" PopupControlID="panelClasses" 
                                                     BackgroundCssClass="modalback" CacheDynamicResults="True">
                                                </cc1:ModalPopupExtender>
                                            </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>
                            <tr>
                                <td colspan="3" style="padding-top:5px;">
                                    <table border="0" cellpadding="0" cellspacing="0" width="100%">
                                        <tr>
                                            <td align="center" valign="top">
                                                <asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional">
                                                    <ContentTemplate>
                                                        <asp:LinkButton ID="btnOk" runat="server"  Height="25px" style="margin-top : 10px;"
                                                            Width="100px" CssClass="buttons" onclick="btnOk_Click"  >تأیید</asp:LinkButton>
                                                        <div id="divProgressOkButton" style="width:40px; height:40px; vertical-align:middle; text-align:center;">
                                                        <asp:UpdateProgress ID="UpdateProgressOkButton" runat="server" AssociatedUpdatePanelID="UpdatePanel2">
                                                            <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>
                                            <td align="left" valign="top" width="70px">
                                                <asp:LinkButton ID="btnBack" runat="server"  Height="35px" style="position:relative; top: 0px; right: 0px;"
                                                    Width="70px" CssClass="backbutton" onclick="btnBack_Click"></asp:LinkButton>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                    </div>
                    <asp:Panel ID="panelClasses" runat="server" BorderStyle="Solid" Width="600px" BorderColor="Khaki" BorderWidth="2px" style="padding:10px 10px 10px 10px; background-color:rgb(0,0,0)">
                    <div style="font-family:Tahoma; font-size:8pt; color:White; text-align:center;">
                        <asp:UpdatePanel ID="upClasses" runat="server" UpdateMode="Conditional">
                            <ContentTemplate> <!-- PANEL COURSES CONTENT : !-->
                                <table border="0" cellpadding="0" cellspacing="5px" width="100%" style="text-align:center;">
                                    <tr>
                                        <td align="left" valign="top" >
                                            <asp:Label ID="Label1" runat="server" Text="متن پرسش :"></asp:Label>
                                        </td>
                                        <td align="right" valign="top" >
                                            <asp:TextBox ID="tbContext" runat="server" Font-Names="Tahoma" Font-Size="8pt" Width="400px" TextMode="MultiLine" Height="100px"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="left" valign="top" >
                                            <asp:Label ID="Label2" runat="server" Text="نوع جواب :"></asp:Label>
                                        </td>
                                        <td align="right" valign="top">
                                            <asp:DropDownList ID="cmbAnswerType" runat="server" Font-Names="Tahoma" 
                                                Font-Size="8pt" Width="200px" 
                                                onselectedindexchanged="DropDownList1_SelectedIndexChanged" 
                                                AutoPostBack="True">
                                                <asp:ListItem>تستی</asp:ListItem>
                                                <asp:ListItem>تشریحی</asp:ListItem>
                                            </asp:DropDownList>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="left">
                                            <asp:Label ID="Label4" runat="server" Text="بارم :"></asp:Label>
                                        </td>
                                        <td align="right">
                                            <asp:TextBox ID="tbBarom" runat="server" Font-Names="Tahoma" Font-Size="8pt" Width="40px"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="left">
                                            <asp:Label ID="Label3" runat="server" Text="نمره منفی :"></asp:Label>
                                        </td>
                                        <td align="right">
                                            <asp:TextBox ID="tbManfi" runat="server" Font-Names="Tahoma" Font-Size="8pt" Width="40px"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="left" valign="top">
                                            <asp:Label ID="lblA" runat="server" Text="جواب الف :"></asp:Label>
                                        </td>
                                        <td align="right" valign="top" >
                                            <asp:TextBox ID="tbAnswerA" runat="server" Font-Names="Tahoma" Font-Size="8pt" Width="200px"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="left" valign="top">
                                            <asp:Label ID="lblB" runat="server" Text="جواب ب :"></asp:Label>
                                        </td>
                                        <td align="right" valign="top" >
                                            <asp:TextBox ID="tbAnswerB" runat="server" Font-Names="Tahoma" Font-Size="8pt" Width="200px"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="left" valign="top">
                                            <asp:Label ID="lblC" runat="server" Text="جواب ج :"></asp:Label>
                                        </td>
                                        <td align="right" valign="top" >
                                            <asp:TextBox ID="tbAnswerC" runat="server" Font-Names="Tahoma" Font-Size="8pt" Width="200px"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="left" valign="top">
                                            <asp:Label ID="lblD" runat="server" Text="جواب د :"></asp:Label>
                                        </td>
                                        <td align="right" valign="top" >
                                            <asp:TextBox ID="tbAnswerD" runat="server" Font-Names="Tahoma" Font-Size="8pt" Width="200px"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="left" valign="top" >
                                            <asp:Label ID="lblTestAnswer" runat="server" Text="جواب صحیح :"></asp:Label>
                                        </td>
                                        <td align="right" valign="top" >
                                            <rmn:Abcd runat="server" ID="testAnswer"/>
                                        </td>
                                    </tr>
                                </table>
                                <table>
                                    <tr>
                                        <td align="left" valign="middle">
                                            <asp:LinkButton ID="LinkButton1" runat="server" CssClass="gridsmallbuttons" 
                                                Width="60px" Height="20px" style="margin-top:4px;" 
                                                onclick="LinkButton1_Click"   >تأیید</asp:LinkButton>
                                        </td>
                                        <td align="right" valign="middle">
                                            <asp:LinkButton ID="btnStudentsCancel" runat="server" CssClass="gridsmallbuttons" 
                                                Width="60px" Height="20px" style="margin-top:4px;" 
                                                onclick="btnStudentsCancel_Click"   >انصراف</asp:LinkButton>
                                        </td>
                                    </tr>
                                </table>
                             </ContentTemplate>
                        </asp:UpdatePanel>
                    </div>
                    </asp:Panel>
                </td>
            </tr>
        </table>
    </div>
</asp:Content>

