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

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <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" />
    <link href="../ColorPicker/colorpicker.css" rel="stylesheet" />
    <script src="../ColorPicker/colorpicker.js"></script>
     <script src="../js/Setting.Agreement.js"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="UI_Edit" runat="server" visible="false">
        <form action="" class="ui-form ui-form-vertical" method="post">
            <fieldset class="p5">
                <legend>协议设置</legend>
                <div class="ui-form-group">
                    <label class="ui-form-label">协议名称</label><div class="ui-form-ctrls">
                        <input type="text" name="AgreeName" id="AgreeName"
                            value="<%=mam.AgreeName %>" /><span
                                class="AgreeName ui-help-inline">协议标题</span>
                    </div>
                </div>
                <div class="ui-form-group">
                    <label class="ui-form-label">标题颜色</label><div class="ui-form-ctrls">
                        <input type="text" name="TitleColor" id="TitleColor"
                            class="ui-input-small" value="<%=mam.TitleColor %>" /><span
                                class="Title ui-help-inline">选择标题颜色</span>
                    </div>
                </div>
                <div class="ui-form-group">
                    <label class="ui-form-label">协议内容：</label><div class="ui-form-ctrls">
                        <script id="Contect" type="text/plain"><%=mam.Contect %></script>
                        <script type="text/javascript">
                            var editor = new baidu.editor.ui.Editor({
                                textarea: 'Contect'
                            });
                            editor.render("Contect");
                        </script>
                    </div>
                </div>
                <div class="ui-form-group">
                    <label class="ui-form-label"></label>
                    <div class="ui-form-ctrls">
                        <button type="submit" class="ui-btn ui-btn-primary">保存</button>
                        <input type="button" onclick="history.back();" class="ui-btn" value="返回" />
                    </div>
                </div>
            </fieldset>
        </form>
    </div>
    <div id="UI_List" runat="server" visible="false">
        <div class="ui-widget">
            <table class="ui-table ui-table-bordered">
                <thead>
                    <tr>
                        <td colspan="5">
                            <a href="?Action=Add" class="ui-btn ui-btn-primary">添加</a>
                        </td>
                    </tr>
                    <tr>
                        <th>协议名称
                        </th>
                        <th>操作
                        </th>
                    </tr>
                </thead>
                <%=ShowList%>
            </table>
        </div>
    </div>
</asp:Content>
