<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Skin_Custom.aspx.cs" Inherits="MyITJob.Company.Skin_Custom" %>

<%@ Register TagPrefix="ascx" TagName="PageFooter" Src="~/ascx/PageFooter.ascx" %>
<%@ Register TagPrefix="ascx" TagName="LeftPage" Src="~/Company/LeftDH.ascx" %>
<%@ Register TagPrefix="ascx" TagName="PageTop2" Src="~/ascx/PageTop2.ascx" %>
<!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">
    <title>
        <%=Application["PageTitle"] %> - 企业模板制作中心</title>
    <link href="../images/Admin_Style.css" rel="stylesheet" type="text/css" />
    <link href="../jquery/uploadify.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../jquery/jquery-1.3.2.min.js"></script>
    <script type="text/javascript" src="../jquery/swfobject.js"></script>
    <script type="text/javascript" src="../jquery/jquery.uploadify.v2.1.0.min.js"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            $("#uploadify").uploadify({
                'uploader': '../jquery/uploadify.swf',
                'script': 'UpLoadTemplateImg.aspx', // UploadHandler.ashx is localhost bate.UpLoadFlv.aspx is Internet bate.
                'cancelImg': '/jquery/cancel.png',
                'folder': 'TemplatePic/<%= _ID %>', // 上传html的图片，_ID就是身份区别
                'queueID': 'fileQueue',
                'fileDesc': '请上传JPG GIF PNG图片格式文件（可多选）。',
                'fileExt': '*.jpg;*.gif;*.png', // UpFile Class
                'sizeLimit': '<%=FlvSize %>', // UpFile Size
                'buttonText': 'SelectFile',
                'multi': true
            });
        });
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <ascx:PageTop2 ID="PageTop2" runat="server" />
    <table width="990" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
            <td width="13%" valign="top">
                <ascx:LeftPage ID="LeftPage" runat="server" />
            </td>
            <td width="8%" valign="top">
            </td>
            <td width="79%" valign="top">
            <div style="width:98%; padding:8px; text-align:center; background:#eee;">上传网页相关图片</div>
                <div id="fileQueue">
                </div>
                <input type="file" name="uploadify" id="uploadify" /><br />
                <div style="margin: 4px auto;">
                    <a style="font-size: 14px; font-family: Verdana;" href="javascript:$('#uploadify').uploadifyUpload()">
                        上传网页相关图片</a> | <a style="font-size: 14px; font-family: Verdana;" href="javascript:$('#uploadify').uploadifyClearQueue()">
                            取消上传</a></div>
                <span style="color: Red;">备注：</span>选择图片后，点击“上传”即可。文件上传完以后，进度条会自动消失。每个图片大小不能超过<strong>1MB</strong>。<br />
                您网页的图片路径生成格式为：<span style="color: Red;"><b>/Company/TemplatePic/<%= _ID %>/图片名称</b></span><br />
                <div><a href="http://item.taobao.com/item.htm?spm=686.1000925.1000774.6.RWRGx8&id=26428188892" target="_blank">【点击获取更多模板……】</a></div>
                <div style="width:97%; padding:8px; margin-top:30px; text-align:center; background:#ddd;">上传网页相关HTML代码 [<a href="http://pan.baidu.com/share/link?shareid=541754&uk=3472948565" target="_blank">→下载模板制作教程←</a>]</div>
                <div style="width:97%; padding:3px 8px; background:#efefef; color:Red;">
                    尊贵的企业您好，为保证系统模板的干净和安全，请遵守以下html注意事项，否则模板不予保存：<br />
                    1、HTML代码只允许上传&lt;body&gt;...&lt;/body&gt;之间的代码段。  <div>
                    <textarea id="Article_Text" style="height: 800px; width:728px" runat="server"></textarea>
                    <asp:Button ID="Button1" runat="server" Text="保存模板" onclick="Button1_Click" /> [<a href="http://pan.baidu.com/share/link?shareid=541754&uk=3472948565" target="_blank">→下载模板制作教程←</a>] </div>
            </td>
        </tr>
    </table>
    <ascx:PageFooter ID="PageFooter" runat="server" />
    </form>
</body>
</html>
