<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Paper_Edit.aspx.cs" Inherits="TotCms.Web.Admin.NewsPaper.Paper_Edit" %>

<!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>期刊编辑</title>
    <link href="../style/global.css" rel="stylesheet" type="text/css" />
    <script src="../js/common.js" type="text/javascript"></script>
    <script src="../../ckeditor/ckeditor.js" type="text/javascript"></script>
    <link href="../../swfupload/swfupload.css" rel="stylesheet" type="text/css" />
    <script src="../../swfupload/swfupload.js" type="text/javascript"></script>
    <script type="text/javascript" src="js/handlers.js"></script>
    <script src="../../js/jquery-1.5.1.min.js" type="text/javascript"></script>
    <script src="../../js/jquery-ui-1.8.10/js/jquery-ui-1.8.10.custom.min.js" type="text/javascript"></script>
    <script src="../../js/jquery-ui-1.8.10/js/i18n/jquery.ui.datepicker-zh-CN.js" type="text/javascript"></script>
    <link href="../../js/jquery-ui-1.8.10/css/ui-lightness/jquery-ui-1.8.10.custom.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
        var swfu;
        $(function () {
            $(".dates").datepicker({
                changeMonth: true,
                changeYear: true,
                regional: 'zh-CN'
            });   
            $("#dialog:ui-dialog").dialog("destroy");
            $("#dialog-win").dialog({
                autoOpen: false,
                height: 350,
                width: 400,
                modal: true,
                buttons: {
                    "确定": function () {
                        $(this).dialog("close");
                    },
                    "取消": function () {
                        $(this).dialog("close");
                    }
                },
                close: function () {

                }
            });

            $("#selclass").click(function () {
                $("#dialog-win").dialog("open");
            });

            //swf upload
            swfu = new SWFUpload({
                // Backend Settings
              upload_url: "../UploadFace/UploadImg.aspx?issmall=0",
                post_params: {
                    "ASPSESSID": "<%=Session.SessionID %>"
                },

                // File Upload Settings
                file_size_limit: "200 MB",
                file_types: "*.*",
                file_types_description: "files",
                file_upload_limit: "0",    // Zero means unlimited

                // Event Handler Settings - these functions as defined in Handlers.js
                //  The handlers are not part of SWFUpload but are part of my website and control how
                //  my website reacts to the SWFUpload events.
                file_queue_error_handler: fileQueueError,
                file_dialog_complete_handler: fileDialogComplete,
                upload_progress_handler: uploadProgress,
                upload_error_handler: uploadError,
                upload_success_handler: uploadSuccess,
                upload_complete_handler: uploadComplete,

                // Button settings
                button_image_url: "../UploadFace/Images/XPButtonUploadText_61x22.png",
                button_placeholder_id: "spanButtonPlaceholder",
                button_width: 61,
                button_height: 22,
                button_text: '<span class="button"></span>',
                button_text_style: '.button { font-family: 宋体; font-size: 14px; } .buttonSmall { font-size: 12px; }',
                button_text_top_padding: 1,
                button_text_left_padding: 5,

                // Flash Settings
                flash_url: "../../swfupload/swfupload.swf", // Relative to this file

                custom_settings: {
                    upload_target: "divFileProgressContainer",
                    upload_returnobjid: "Photo"
                },

                // Debug Settings
                debug: false
            });
        });
        function CloseFrame() {
            $("#dialog-win").dialog("close");
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <table style="width:100%;" border="0" cellpadding="0" cellspacing="1" 
      class="black_border">
      <tr class="suphead">
        <td colspan="2">
            <asp:Label ID="lbTitle" runat="server" Text="Label"></asp:Label>
          </td>
    </tr>
    <tr>
      <td class="fields_text" width="100">
          名称：</td>
      <td class="fields_input">
        <asp:TextBox ID="tbTitle" runat="server" CssClass="input_middle"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
          ControlToValidate="tbTitle" ErrorMessage="请填写名称"></asp:RequiredFieldValidator>
        </td>
    </tr>
    <tr>
      <td class="fields_text" width="100">
          日期：</td>
      <td class="fields_input">
          <asp:TextBox ID="tbDate" runat="server" CssClass="dates"></asp:TextBox>
          <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
            ControlToValidate="tbDate" ErrorMessage="请选择日期"></asp:RequiredFieldValidator>
        </td>
    </tr>
    <tr>
      <td class="fields_text" width="100">
          总：</td>
      <td class="fields_input">
          <asp:TextBox ID="tbZq" runat="server" CssClass="input_normal"></asp:TextBox>
          期　第<asp:TextBox ID="tbDq" runat="server" CssClass="input_normal"></asp:TextBox>
          期</td>
    </tr>
    <tr>
      <td class="fields_text" width="100">
          图片：</td>
      <td class="fields_input">
      <asp:TextBox ID="Photo" runat="server" CssClass="input_middle"></asp:TextBox>
        <span id="spanButtonPlaceholder"></span>
        <div id="divFileProgressContainer"></div>
        </td>
    </tr>
    <tr>
      <td></td>
      <td align="left" height="55">
                    <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="确 定" 
                      CssClass="btn-submit" />
                    &nbsp;<input id="Button2" type="reset" value="取 消" class="btn-cancel" onclick="javascript:history.back();" /></td>
    </tr>
    </table>
    </form>
</body>
</html>
