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

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script src="/Common/js/Common_Class.js" type="text/javascript"></script>
    <script src="../js/Setting.Success.js"></script>
    <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_Edit" runat="server" visible="false">
        <form action="" method="post" class="ui-form ui-form-vertical" enctype="multipart/form-data">
            <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="SiteName" id="SiteName"
                            class="ui-input-small" value="<%=ms.SiteName %>" /><span
                                class="SiteName 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="SiteUrl" id="SiteUrl" value="<%=ms.SiteUrl %>" /><span
                            class="SiteUrl ui-help-inline">网站地址</span>
                    </div>
                </div>
                <div class="ui-form-group">
                    <label class="ui-form-label">缩略图</label><div class="ui-form-ctrls">
                        <input type="file" name="PicUrl" />
                        <%=string.IsNullOrEmpty(ms.PicUrl)?"":"<a href=\"/upload/"+ms.PicUrl+"\" target=\"_blank\">点击查看</a>" %><span
                            class="PicUrl ui-help-inline">案例缩略图</span>
                    </div>
                </div>
                <div class="ui-form-group">
                    <label class="ui-form-label">所属分类</label><div class="ui-form-ctrls">
                        <%=Web.Lib.ClassHelper.GetStepSelect(CommonLib.Enums.ClassType.成功案例.GetHashCode(),AgentUserId, ms.ClassId, "ClassId")%><span class="ClassId ui-help-inline">属分类</span>
                    </div>
                </div>
                <div class="ui-form-group">
                    <label class="ui-form-label">案例介绍：</label><div class="ui-form-ctrls">
                        <script id="Info" type="text/plain"><%=ms.Info %></script>
                        <script type="text/javascript">
                            var editor = new baidu.editor.ui.Editor({
                                textarea: 'Info'
                            });
                            editor.render("Info");
                        </script>
                    </div>
                </div>
                <div class="ui-form-group">
                    <label class="ui-form-label">&nbsp;</label><div class="ui-form-ctrls">
                        <button type="submit" class="ui-btn ui-btn-primary">保存设置</button>
                        &nbsp;
                        <button class="ui-btn" onclick="history.back();" type="button">返回</button>
                    </div>
                </div>
            </fieldset>
        </form>
    </div>
    <div id="ui_List" runat="server" visible="false">
        <table class="ui-table ui-table-bordered">
            <thead>
                <tr>
                    <td colspan="4">
                        <a href="?Action=Add" class="ui-btn ui-btn-primary">添加案例</a>
                    </td>
                </tr>
                <tr>
                    <th>网站名称
                    </th>
                    <th>所属分类
                    </th>
                    <th>操作
                    </th>
                </tr>
            </thead>
            <%=ShowList%>
            <tr>
                <td colspan="4" id="Pager" class="Pager" runat="server"></td>
            </tr>
        </table>
    </div>
</asp:Content>
