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

<%@ 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="divTest" runat="server" 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:SqlDataSource ID="SqlDataSource1" runat="server" 
                                                    ConnectionString="<%$ ConnectionStrings:ASPNETDB_ConnectionString %>"
                                                    ProviderName="System.Data.SqlClient" 
                                                    SelectCommand="SELECT * FROM [t_OnlineQuestions]"></asp:SqlDataSource>
                                                <asp:DataList ID="DataList1" runat="server" DataKeyField="questionId" Width="100%" 
                                                    DataSourceID="SqlDataSource1" BackColor="White" BorderColor="#DEDFDE" 
                                                    BorderStyle="None" BorderWidth="1px" CellPadding="4" ForeColor="Black" 
                                                    GridLines="Vertical" style="text-align:right; line-height:20px;" 
                                                    onitemdatabound="DataList1_ItemDataBound" 
                                                    onitemcommand="DataList1_ItemCommand">
                                                    <FooterStyle BackColor="#CCCC99" />
                                                    <AlternatingItemStyle BackColor="White" />
                                                    <ItemStyle BackColor="#F7F7DE"/>
                                                    <SelectedItemStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
                                                    <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblrowNumber" runat="server" Text=""></asp:Label>:
                                                        <asp:Label ID="contextLabel" runat="server" Text='<%# Eval("context") %>' style="font-size:9pt; font-weight:bold; color:DarkRed;"/>
                                                        <asp:Label ID="lblQuestionId" runat="server" Text='<%# Eval("questionId") %>' style="display:none;"/>
                                                        <br />
                                                        الف :
                                                        <asp:Label ID="answerALabel" runat="server" Text='<%# Eval("answerA") %>' />
                                                        <br />
                                                        ب :
                                                        <asp:Label ID="answerBLabel" runat="server" Text='<%# Eval("answerB") %>' />
                                                        <br />
                                                        ج :
                                                        <asp:Label ID="answerCLabel" runat="server" Text='<%# Eval("answerC") %>' />
                                                        <br />
                                                        د :
                                                        <asp:Label ID="answerDLabel" runat="server" Text='<%# Eval("answerD") %>' />
                                                        <br />
                                                        <div style="line-height:normal; margin-top:10px;"><rmn:abcd runat="server" ID="abcd"/></div>
                                                    </ItemTemplate>
                                                </asp:DataList>
                                            </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>
                    <!-- **********************************************************************************!-->
                    <div id="divExplain" runat="server" 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="Label1" 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="div2" class="panelcontent" style="text-align:center; " runat="server">
                                        <asp:UpdatePanel ID="UpdatePanel3" runat="server" UpdateMode="Conditional">
                                            <ContentTemplate>
                                                <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
                                                    ConnectionString="<%$ ConnectionStrings:ASPNETDB_ConnectionString %>"
                                                    ProviderName="System.Data.SqlClient" 
                                                    SelectCommand="SELECT * FROM [t_OnlineQuestions]"></asp:SqlDataSource>
                                                <asp:DataList ID="DataList2" runat="server" DataKeyField="questionId" Width="100%" 
                                                    DataSourceID="SqlDataSource2" BackColor="White" BorderColor="#DEDFDE" 
                                                    BorderStyle="None" BorderWidth="1px" CellPadding="4" ForeColor="Black" 
                                                    GridLines="Vertical" style="text-align:right; line-height:20px;" 
                                                    onitemdatabound="DataList1_ItemDataBound" 
                                                    onitemcommand="DataList1_ItemCommand">
                                                    <FooterStyle BackColor="#CCCC99" />
                                                    <AlternatingItemStyle BackColor="White" />
                                                    <ItemStyle BackColor="#F7F7DE"/>
                                                    <SelectedItemStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
                                                    <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblrowNumber" runat="server" Text=""></asp:Label>:
                                                        <asp:Label ID="contextLabel" runat="server" Text='<%# Eval("context") %>' style="font-size:9pt; font-weight:bold; color:DarkRed;"/>
                                                        <asp:Label ID="lblQuestionId" runat="server" Text='<%# Eval("questionId") %>' style="display:none;"/>
                                                        <br />
                                                        <div style="width:90%; padding:5px 20px 5px 20px;"><asp:TextBox ID="tbAnswer" runat="server" Width="90%" Font-Names="Tahoma" Font-Size="8pt" TextMode="MultiLine" Height="70px"></asp:TextBox></div>
                                                    </ItemTemplate>
                                                </asp:DataList>
                                            </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>
                        </table>
                    </div>
                    <div>
                        <table border="0" cellpadding="0" cellspacing="5px" width="100%">
                            <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="UpdatePanel4" 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="div3" style="width:40px; height:40px; vertical-align:middle; text-align:center;">
                                                        <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel4">
                                                            <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="LinkButton2" 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>
                    <!--*******************************************************************************!-->
                </td>
            </tr>
        </table>
    </div>
</asp:Content>

