<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Schedule_Edit.aspx.cs" Inherits="TotCms.Web.Office.Schedule.Schedule_Edit" ValidateRequest="false" %>
<!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 id="Head1" runat="server">
  <title>添加日程</title>
  <link href="../style/global.css" rel="stylesheet" type="text/css" />
  <link href="../../js/jquery-ui-1.8.10/css/ui-lightness/jquery-ui-1.8.10.custom.css" rel="stylesheet" type="text/css" />
  <link href="../../swfupload/swfupload.css" rel="stylesheet" type="text/css" />
  <script type="text/javascript" src="../js/common.js"></script>
  <script src="../../js/jquery-1.5.1.min.js" type="text/javascript"></script>
  <script src="../../ckeditor/ckeditor.js" type="text/javascript"></script>
  <script src="../../swfupload/swfupload.js" type="text/javascript"></script>
  <script src="js/handlers.js" type="text/javascript"></script>
  <script src="../../js/jquery-ui-1.8.10/js/jquery.ui.core.min.js" type="text/javascript"></script>
  <script src="../../js/jquery-ui-1.8.10/js/jquery.ui.widget.min.js" type="text/javascript"></script>
  <script src="../../js/jquery-ui-1.8.10/js/jquery.ui.datepicker.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>
  <script type="text/javascript">
    $(function () {
      $('.dates').datepicker($.datepicker.regional["zh-CN"]);
    });
  </script>
    <script type="text/javascript">
      var swfu;
      window.onload = function () {
        //swf upload
        swfu = new SWFUpload({
          // Backend Settings
          upload_url: "../Upload/UploadFiles.aspx",
          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: "../Upload/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: "tbAttachment"
          },

          // Debug Settings
          debug: false
        });
      }
    </script>
</head>
<body>
    <form id="form1" runat="server">   
    <div class="br"></div> 
    <table style="width:100%;" border="0" cellpadding="0" cellspacing="1" 
      class="border">
      <tr class="suphead">
        <td colspan="2">修改日程任务</td>
    </tr>
    <tr>
      <td width="120" class="fields_text">
          名称：</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="名称不能为空" SetFocusOnError="True"></asp:RequiredFieldValidator>
          </td>
    </tr>
    <tr>
      <td class="fields_text">
          地址：</td>
      <td class="fields_input">
          <asp:TextBox ID="tbAddress" runat="server"></asp:TextBox>
      </td>
    </tr>
    <tr>
      <td class="fields_text">
          起始日期：</td>
      <td class="fields_input">
          从<asp:TextBox ID="tbStaffId" runat="server" CssClass="hidden"></asp:TextBox>
          &nbsp;<asp:TextBox ID="tbFromDate" runat="server" CssClass="dates"></asp:TextBox>
          <asp:DropDownList ID="fHour" runat="server">
            <asp:ListItem>1</asp:ListItem>
            <asp:ListItem>2</asp:ListItem>
            <asp:ListItem>3</asp:ListItem>
            <asp:ListItem>4</asp:ListItem>
            <asp:ListItem>5</asp:ListItem>
            <asp:ListItem>6</asp:ListItem>
            <asp:ListItem>7</asp:ListItem>
            <asp:ListItem>8</asp:ListItem>
            <asp:ListItem>9</asp:ListItem>
            <asp:ListItem>10</asp:ListItem>
            <asp:ListItem>11</asp:ListItem>
            <asp:ListItem>12</asp:ListItem>
            <asp:ListItem>13</asp:ListItem>
            <asp:ListItem>14</asp:ListItem>
            <asp:ListItem>15</asp:ListItem>
            <asp:ListItem>16</asp:ListItem>
            <asp:ListItem>17</asp:ListItem>
            <asp:ListItem>18</asp:ListItem>
            <asp:ListItem>19</asp:ListItem>
            <asp:ListItem>20</asp:ListItem>
            <asp:ListItem>21</asp:ListItem>
            <asp:ListItem>22</asp:ListItem>
            <asp:ListItem>23</asp:ListItem>
            <asp:ListItem>24</asp:ListItem>
          </asp:DropDownList>
          时
          <asp:DropDownList ID="fMinute" runat="server">
          <asp:ListItem>1</asp:ListItem>
          <asp:ListItem>2</asp:ListItem>
          <asp:ListItem>3</asp:ListItem>
          <asp:ListItem>4</asp:ListItem>
          <asp:ListItem>5</asp:ListItem>
          <asp:ListItem>6</asp:ListItem>
          <asp:ListItem>7</asp:ListItem>
          <asp:ListItem>8</asp:ListItem>
          <asp:ListItem>9</asp:ListItem>
          <asp:ListItem>10</asp:ListItem>
          <asp:ListItem>11</asp:ListItem>
          <asp:ListItem>12</asp:ListItem>
          <asp:ListItem>13</asp:ListItem>
          <asp:ListItem>14</asp:ListItem>
          <asp:ListItem>15</asp:ListItem>
          <asp:ListItem>16</asp:ListItem>
          <asp:ListItem>17</asp:ListItem>
          <asp:ListItem>18</asp:ListItem>
          <asp:ListItem>19</asp:ListItem>
          <asp:ListItem>20</asp:ListItem>
          <asp:ListItem>21</asp:ListItem>
          <asp:ListItem>22</asp:ListItem>
          <asp:ListItem>23</asp:ListItem>
          <asp:ListItem>24</asp:ListItem>
          <asp:ListItem>25</asp:ListItem>
          <asp:ListItem>26</asp:ListItem>
          <asp:ListItem>27</asp:ListItem>
          <asp:ListItem>28</asp:ListItem>
          <asp:ListItem>29</asp:ListItem>
          <asp:ListItem>30</asp:ListItem>
          <asp:ListItem>31</asp:ListItem>
          <asp:ListItem>32</asp:ListItem>
          <asp:ListItem>33</asp:ListItem>
          <asp:ListItem>34</asp:ListItem>
          <asp:ListItem>35</asp:ListItem>
          <asp:ListItem>36</asp:ListItem>
          <asp:ListItem>37</asp:ListItem>
          <asp:ListItem>38</asp:ListItem>
          <asp:ListItem>39</asp:ListItem>
          <asp:ListItem>40</asp:ListItem>
          <asp:ListItem>41</asp:ListItem>
          <asp:ListItem>42</asp:ListItem>
          <asp:ListItem>43</asp:ListItem>
          <asp:ListItem>44</asp:ListItem>
          <asp:ListItem>45</asp:ListItem>
          <asp:ListItem>46</asp:ListItem>
          <asp:ListItem>47</asp:ListItem>
          <asp:ListItem>48</asp:ListItem>
          <asp:ListItem>49</asp:ListItem>
          <asp:ListItem>50</asp:ListItem>
          <asp:ListItem>51</asp:ListItem>
          <asp:ListItem>52</asp:ListItem>
          <asp:ListItem>53</asp:ListItem>
          <asp:ListItem>54</asp:ListItem>
          <asp:ListItem>55</asp:ListItem>
          <asp:ListItem>56</asp:ListItem>
          <asp:ListItem>57</asp:ListItem>
          <asp:ListItem>58</asp:ListItem>
          <asp:ListItem>59</asp:ListItem>
          <asp:ListItem>60</asp:ListItem>
          </asp:DropDownList>
          分
          到<asp:TextBox ID="tbToDate" runat="server" CssClass="dates"></asp:TextBox>
          <asp:DropDownList ID="tHour" runat="server">
            <asp:ListItem>1</asp:ListItem>
            <asp:ListItem>2</asp:ListItem>
            <asp:ListItem>3</asp:ListItem>
            <asp:ListItem>4</asp:ListItem>
            <asp:ListItem>5</asp:ListItem>
            <asp:ListItem>6</asp:ListItem>
            <asp:ListItem>7</asp:ListItem>
            <asp:ListItem>8</asp:ListItem>
            <asp:ListItem>9</asp:ListItem>
            <asp:ListItem>10</asp:ListItem>
            <asp:ListItem>11</asp:ListItem>
            <asp:ListItem>12</asp:ListItem>
            <asp:ListItem>13</asp:ListItem>
            <asp:ListItem>14</asp:ListItem>
            <asp:ListItem>15</asp:ListItem>
            <asp:ListItem>16</asp:ListItem>
            <asp:ListItem>17</asp:ListItem>
            <asp:ListItem>18</asp:ListItem>
            <asp:ListItem>19</asp:ListItem>
            <asp:ListItem>20</asp:ListItem>
            <asp:ListItem>21</asp:ListItem>
            <asp:ListItem>22</asp:ListItem>
            <asp:ListItem>23</asp:ListItem>
            <asp:ListItem>24</asp:ListItem>
          </asp:DropDownList>
          时
          <asp:DropDownList ID="tMinute" runat="server">
          <asp:ListItem>1</asp:ListItem>
          <asp:ListItem>2</asp:ListItem>
          <asp:ListItem>3</asp:ListItem>
          <asp:ListItem>4</asp:ListItem>
          <asp:ListItem>5</asp:ListItem>
          <asp:ListItem>6</asp:ListItem>
          <asp:ListItem>7</asp:ListItem>
          <asp:ListItem>8</asp:ListItem>
          <asp:ListItem>9</asp:ListItem>
          <asp:ListItem>10</asp:ListItem>
          <asp:ListItem>11</asp:ListItem>
          <asp:ListItem>12</asp:ListItem>
          <asp:ListItem>13</asp:ListItem>
          <asp:ListItem>14</asp:ListItem>
          <asp:ListItem>15</asp:ListItem>
          <asp:ListItem>16</asp:ListItem>
          <asp:ListItem>17</asp:ListItem>
          <asp:ListItem>18</asp:ListItem>
          <asp:ListItem>19</asp:ListItem>
          <asp:ListItem>20</asp:ListItem>
          <asp:ListItem>21</asp:ListItem>
          <asp:ListItem>22</asp:ListItem>
          <asp:ListItem>23</asp:ListItem>
          <asp:ListItem>24</asp:ListItem>
          <asp:ListItem>25</asp:ListItem>
          <asp:ListItem>26</asp:ListItem>
          <asp:ListItem>27</asp:ListItem>
          <asp:ListItem>28</asp:ListItem>
          <asp:ListItem>29</asp:ListItem>
          <asp:ListItem>30</asp:ListItem>
          <asp:ListItem>31</asp:ListItem>
          <asp:ListItem>32</asp:ListItem>
          <asp:ListItem>33</asp:ListItem>
          <asp:ListItem>34</asp:ListItem>
          <asp:ListItem>35</asp:ListItem>
          <asp:ListItem>36</asp:ListItem>
          <asp:ListItem>37</asp:ListItem>
          <asp:ListItem>38</asp:ListItem>
          <asp:ListItem>39</asp:ListItem>
          <asp:ListItem>40</asp:ListItem>
          <asp:ListItem>41</asp:ListItem>
          <asp:ListItem>42</asp:ListItem>
          <asp:ListItem>43</asp:ListItem>
          <asp:ListItem>44</asp:ListItem>
          <asp:ListItem>45</asp:ListItem>
          <asp:ListItem>46</asp:ListItem>
          <asp:ListItem>47</asp:ListItem>
          <asp:ListItem>48</asp:ListItem>
          <asp:ListItem>49</asp:ListItem>
          <asp:ListItem>50</asp:ListItem>
          <asp:ListItem>51</asp:ListItem>
          <asp:ListItem>52</asp:ListItem>
          <asp:ListItem>53</asp:ListItem>
          <asp:ListItem>54</asp:ListItem>
          <asp:ListItem>55</asp:ListItem>
          <asp:ListItem>56</asp:ListItem>
          <asp:ListItem>57</asp:ListItem>
          <asp:ListItem>58</asp:ListItem>
          <asp:ListItem>59</asp:ListItem>
          <asp:ListItem>60</asp:ListItem>
          </asp:DropDownList>
          分
      </td>
    </tr>
    <tr>
      <td class="fields_text">
          详细内容：</td>
      <td class="fields_input">
          <asp:TextBox ID="Content" runat="server" TextMode="MultiLine"></asp:TextBox>
          <script type="text/javascript">
		      //<![CDATA[
            // Replace the <textarea id="Content"> with an CKEditor instance.
            var editor = CKEDITOR.replace('Content',
			      {
			        filebrowserBrowseUrl: '../../ckfinder/ckfinder.html', //启用浏览功能
			        filebrowserImageBrowseUrl: '../../ckfinder/ckfinder.html?Type=Images',
			        filebrowserFlashBrowseUrl: '../../ckfinder/ckfinder.html?Type=Flash',
			        filebrowserUploadUrl: '../../ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Files',
			        filebrowserImageUploadUrl: '../../ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Images',
			        filebrowserFlashUploadUrl: '../../ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Flash'
			      }
            );
		      //]]>
		      </script>
      </td>
    </tr>
    <tr>
      <td class="fields_text">
          提醒：</td>
      <td class="fields_input">
        <asp:CheckBox ID="IsWarn" runat="server" />
        提前：<asp:DropDownList ID="ddWarnBefore" runat="server">
          <asp:ListItem Value="5">5分钟</asp:ListItem>
          <asp:ListItem Value="10">10分钟</asp:ListItem>
          <asp:ListItem Value="15">15分钟</asp:ListItem>
          <asp:ListItem Value="30">半小时</asp:ListItem>
          <asp:ListItem Value="60">1小时</asp:ListItem>
          <asp:ListItem Value="120">2小时</asp:ListItem>
          <asp:ListItem Value="1440">一天</asp:ListItem>
        </asp:DropDownList>
&nbsp;频率：<asp:DropDownList ID="ddWarnLimit" runat="server">
          <asp:ListItem Value="1">1次</asp:ListItem>
          <asp:ListItem Value="2">2次</asp:ListItem>
          <asp:ListItem>3次</asp:ListItem>
        </asp:DropDownList>
      </td>
    </tr>
    <tr>
      <td class="fields_text">
          附件：</td>
      <td class="fields_input">
      <div id="swfu_container" style="margin: 0px 0px;">
        <asp:TextBox ID="tbAttachment" runat="server" CssClass="input_middle"></asp:TextBox>
        <span id="spanButtonPlaceholder"></span>
        <div id="divFileProgressContainer"></div>
      </div>      
      </td>
    </tr>
    <tr>
      <td align="center">&nbsp;</td>
      <td height="32" align="left"><asp:Button CssClass="button_blue" ID="Button1" runat="server" Text="确 定" OnClick="Button1_Click" /> 
      <input type="reset" class="button_gray" id="Button2" 
          onclick="javascript:history.back();" value="返 回" /></td>
    </tr>
  </table>
    </form>
</body>
</html>
