<%@ Page Language="c#" CodeBehind="PostTeacher.aspx.cs" AutoEventWireup="True" Inherits="SWTraining.Mobile.Student.PostTeacher"
    ValidateRequest="false" Title="评价老师" %>

<%@ Import Namespace="SWTraining" %>
<%@ Register src="Header.ascx" tagname="Header" tagprefix="uc1" %>
<!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">
    <link href="Themes/css.css" rel="stylesheet"
        type="text/css" />
        
</head>
<body>
    <form id="FormPost" method="post" runat="server"><uc1:Header ID="Header1" runat="server" />
    <div class="divpanel" style="margin-bottom:30px">
        <table class="table clearTDStyle" style="width: 100%; margin-left: auto; margin-right: auto"
            border="0" cellspacing="0">
            <tr>
                <th colspan="2">
                    评价老师
                 
                    
                </th>
            </tr>
            <tr>
                <td>
                    班级：
                </td>
                <td>
                    <asp:DropDownList ID="ddlStuClass" DataTextField="ClassName" DataValueField="StuClassID"
                        runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlStuClass_SelectedIndexChanged">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td>
                    评价给：
                </td>
                <td>
                    <asp:DropDownList ID="ddlUsers" DataTextField="TrueName" DataValueField="UserID"
                        runat="server">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td>
                    级别：
                </td>
                <td>
                    <asp:RadioButtonList ID="rblLevel" runat="server" RepeatDirection="Horizontal">
                        <asp:ListItem Selected="True" Value="1">好评</asp:ListItem>
                        <asp:ListItem Value="2">中评</asp:ListItem>
                        <asp:ListItem Value="3">差评</asp:ListItem>
                    </asp:RadioButtonList>
                </td>
            </tr>
            <tr>
                <td>
                    内容：
                </td>
                <td>
                    <asp:TextBox runat="server" Width="183px" MaxLength="70" ID="tbxContent" Height="75px"
                        TextMode="MultiLine"></asp:TextBox>
                    <span style="color: #ff0000">*</span>
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                    <label class="lab_buttom">
                        <asp:Button ID="btnGoto" runat="server" Text="发送" OnClick="btnGoto_Click"></asp:Button>
                    </label>
                    <label class="lab_buttom">
                        <input causesvalidation="false" type="button" runat="server" onclick="back()" value="返回" />
                    </label>
                </td>
            </tr>
        </table>
    </div>


    <div class="divpanel">
        <div style="width: 100%;margin-left: auto; margin-right: auto" class="topline">
            <asp:DataList ID="DataList1" runat="server" DataKeyField="EvalTeacherID" Width="100%"
                CssClass="ClearCollapse">
                <ItemTemplate>
                    <table cellpadding="4" cellspacing="0" class="table" style="height: 40px" width="100%">
                        <tr>
                            <td rowspan="2">
                                <%#Eval("TeacherName")%>
                            </td>
                            <td style="height: 20px;">
                                评级：<asp:Image ID="imgIco" runat="server" ImageUrl='<%# "../../Images/leftico/icon_p" + Eval("Level") + ".gif"%>'
                                    ImageAlign="AbsMiddle" /><%# Rs.Items.GetEvalTeacherLevel(Eval("Level"))%></td>
                        </tr>
                        <tr>
                            <td height="50">
                                <%#swq.Tools.HtmlEncode(Eval("Content").ToString())%>
                                <p align="right">
                                    时间：<%#Eval("DateAndTime")%></td>
                        </tr>
                    </table>
                </ItemTemplate>
            </asp:DataList>
        </div>
    </div>
    <div class="divpanel">
        <div style="width: 100%; margin-left: auto; margin-right: auto">
            <asp:Literal ID="litPagerButton" runat="server"></asp:Literal>
        </div>
    </div>
    </form>
</body>
</html>
