<%@ Page Language="C#" ValidateRequest="false" MasterPageFile="../Global.Master" AutoEventWireup="true" CodeBehind="Service.aspx.cs" Inherits="Web.AdminManager.Setting.Service" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script src="../js/Setting.service.js"></script>
    <script src="/Common/js/Common_Class.js" type="text/javascript"></script>
    <%if (Action == "info")
      { %>
    <script src="/Common/UEditor/editor_config.js" type="text/javascript"></script>
    <script src="/Common/UEditor/editor_all_min.js" type="text/javascript"></script>
    <link rel="stylesheet" type="text/css" href="/Common/UEditor/themes/default/ueditor.css" />
    <%} %>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="UI_Info" runat="server" visible="false">
        <form method="post" action="">
            <table class="ui-table ui-table-bordered">
                <colgroup>
                    <col style="width: 150px;" />
                    <col />
                </colgroup>
                <thead>
                    <tr>
                        <th>发帖人</th>
                        <th>内容</th>
                    </tr>
                </thead>

                <%=MsgInfoList %>
                <%if (ms.State != Web.Lib.ServiceState.已完结.GetHashCode())
                  { %>
                <tr>
                    <td>回复</td>
                    <td>
                        <script id="ServiceInfo" type="text/plain"></script>
                        <script type="text/javascript">
                            var editor = new baidu.editor.ui.Editor({
                                textarea: 'ServiceInfo'
                            });
                            editor.render("ServiceInfo");
                        </script>
                    </td>
                </tr>
                <tr>
                    <td></td>
                    <td>
                        <div>
                            <button type="submit" class="ui-btn ui-btn-primary">提交</button>
                            &nbsp; 
                    <button onclick="history.back()" type="button" class="ui-btn">返回</button>
                        </div>
                    </td>
                </tr>
                <%}
                  else
                  { %>
                <tr>
                    <td></td>
                    <td>
                        <input type="button" class="ui-btn" onclick="history.back()" value="返回" /></td>
                </tr>
                <%} %>
            </table>
        </form>
    </div>
    <div id="UI_List" runat="server" visible="false">
        <table class="ui-table ui-table-bordered">
            <thead>
                <tr>
                    <td colspan="6">
                        <form action="" method="post">
                            关键词：<input class="ui-input-small" type="text" value="<%=sKey %>" name="skey" />
                            类型：<select name="stype">
                                <option value="0">不限</option>
                                <option value="1" <%=stype==1?"selected":"" %>>编号</option>
                                <option value="2" <%=stype==2?"selected":"" %>>标题</option>
                            </select>
                            状态：<select name="State">
                                <option value="0">不限</option>
                                <option value="1" <%=State==1?"selected":"" %>>待处理</option>
                                <option value="2" <%=State==2?"selected":"" %>>处理中</option>
                                <option value="3" <%=State==3?"selected":"" %>>已完成</option>
                            </select>
                            分类：<%=Web.Lib.ClassHelper.GetStepSelect(CommonLib.Enums.ClassType.有问必答.GetHashCode(),AgentUserId,sClassId,"sClassId") %>
                            <button type="submit" class="ui-btn ui-btn-primary"><span class="icon-search"></span></button>
                        </form>
                    </td>
                </tr>
                <tr class="ui-widget-header p5 talc">
                    <th>问答标题
                    </th>
                    <th>会员
                    </th>
                    <th>所属分类
                    </th>
                    <th>状态
                    </th>
                    <th>发表时间
                    </th>
                    <th>操作
                    </th>
                </tr>
            </thead>
            <%=ServiceMsgList %>
            <tr>
                <td colspan="6" id="Pager" class="Pager" runat="server"></td>
            </tr>
        </table>
    </div>
</asp:Content>

