<%@ Page Language="c#" AutoEventWireup="True" CodeBehind="PostUseReport.aspx.cs"
    Inherits="MTCUN.User.PostUseReport" Title="我要反馈" %>

<%@ Import Namespace="MTCUN" %>
<!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 id="linkStyle" runat="server" href="../Themes/Blue/css.css" rel="stylesheet"
        type="text/css" />
    <title>反馈</title>
</head>
<body>
    <form id="Form1" runat="server">
        <div class="main">
            <div class="divpanel" style="margin-left: auto; margin-right: auto;">
                <table class="table" cellspacing="0" style="margin-left: auto; margin-right: auto">
                    <tr>
                        <th colspan="2">使用反馈</th>
                    </tr>
                    <tr>
                        <td width="13%">反馈主题：
                        </td>
                        <td width="823">
                            <asp:TextBox ID="tbxReportName" runat="server" Width="245px"></asp:TextBox>
                            <span style="color: Red">*</span>
                            <asp:RequiredFieldValidator ID="_tbxReportName" runat="server" ControlToValidate="tbxReportName"
                                ErrorMessage="名称不能为空！" Display="Dynamic"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td width="13%">反馈类型：
                        </td>
                        <td style="height: 11px" width="67%">
                            <asp:DropDownList ID="ddlUseReportType" runat="server">
                                <asp:ListItem>BUG报告</asp:ListItem>
                                <asp:ListItem>功能改进建议</asp:ListItem>
                                <asp:ListItem>其它</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td width="13%">内容：
                        </td>
                        <td>
                            <asp:TextBox ID="tbxReportContent" runat="server" Height="137px" TextMode="MultiLine"
                                Width="439px"></asp:TextBox>
                            <span style="color: Red">*</span>
                            <asp:RequiredFieldValidator ID="_tbxReportContent" runat="server" ControlToValidate="tbxReportName"
                                ErrorMessage="内容不能为空！" Display="Dynamic"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td width="13%"></td>
                        <td width="823">
                            <label class="lab_button">
                                <asp:Button ID="btnPost" runat="server" Text="提交" OnClick="btnPost_Click"></asp:Button>
                            </label>
                            <label class="lab_button">
                                <input causesvalidation="false" type="button" runat="server" onclick="back(this)" value="返回" />
                            </label>
                        </td>
                    </tr>
                </table>
                <br />
                <br />
                <asp:DataList ID="DataList1" runat="server" CellPadding="0" CellSpacing="0" Width="100%">
                    <ItemTemplate>
                        <table cellpadding="4" cellspacing="0" style="width: 100%; margin-top: 5px; margin-left: auto; margin-right: auto; border: 1px solid #FFFF99">
                            <tr>
                                <td align="center" bgcolor="#FFFF99" width="135">
                                    <asp:Literal ID="litName" runat="server" Mode="Encode" Text='<%#Eval("ClientName")%>' />
                                </td>
                                <td bgcolor="#ffffff" style="position: relative" valign="top">
                                    <asp:Literal ID="litTitle" runat="server" Mode="Encode" Text='<%#Eval("ReportName")%>' />
                                    <hr size="1px" />
                                    <%#swq.Tools.UBBEncode(Eval("ReportContent").ToString())%><br />
                                    <br />
                                    <div style="float: right; position: absolute; margin: 5px; bottom: 0px; right: 0px">
                                        留言时间：<%#Eval("DateAndTime")%><%# (DateTime.Now - (DateTime)Eval("DateAndTime")).TotalMinutes > 5 ? "<span style='color:green'>已阅</span>" : "<span style='color:red'>未阅</span>"%></div>
                                </td>
                            </tr>
                        </table>
                    </ItemTemplate>
                </asp:DataList>
                <br />
                <br />
            </div>
        </div>
    </form>
    <div class="divpanel" style="margin-top: 10px; text-align: center">
    </div>
</body>
</html>
