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

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script src="/Common/js/Common_Class.js" type="text/javascript"></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" />
    <link href="../ColorPicker/colorpicker.css" rel="stylesheet" />
    <script src="../ColorPicker/colorpicker.js"></script>
    <script src="../js/Setting.Download.js"></script>
</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="DownloadName" id="DownloadName"
                                class="ui-input-small" value="<%=md.DownloadName %>" /><span
                                    class="DownloadName 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="<%=md.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">
                        <input type="text" name="FileUrl" id="FileUrl"
                            class="ui-input" value="<%=md.FileUrl %>" /><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(md.FileICO) ? "" : "<a href=\"/upload/" + md.FileICO + "\" 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, md.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="DownInfo" type="text/plain"><%=md.DownInfo %></script>
                        <script type="text/javascript">
                            var editor = new baidu.editor.ui.Editor({
                                textarea: 'DownInfo'
                            });
                            editor.render("DownInfo");
                        </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>
