aboutsummaryrefslogtreecommitdiffstats
path: root/jinhtml/month.html
blob: 7d5c01a41679f5ff0650be3cce3468dc3e760d53 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
{% extends "jinhtml/skel.html" %}
{% block headcss %}
  <style type="text/css">
    div#timeselect{
      margin-top: 20px;
      margin-bottom: 20px;
      font-size: x-large;
      text-align: center;
    }
    div#timeselect input{
      vertical-align: text-top;
    }
    table#cal{
      min-width: 800px;
      width: 100%;
    }
    tbody#calbody td{
      border-width: 1px;
      border-style: solid;
      vertical-align: top;
      height: 100px;
      width: 14.285%;
    }
    #timeselect_year, #timeselect_month{
      font-family: serif;
    }
    #timeedit_month, #timeedit_year, #timeedit_apply, #timeedit_cancel{
      display: none;
    }
    #timeedit_month, #timeedit_year{
      width: 50px;
    }
  </style>
{% endblock %}

{% block onload %}
  setyearmonth();
  setmonthcal();
  var switchmonthobj = document.getElementById("switchmonth");
  switchmonthobj.className += "selected";
  switchmonthobj.onclick = "";
  status_bar_append("(y)修改年份 (m)修改月份");
{% endblock %} 
  
{% block headjs %}
  <script src="js/month.js" type="text/javascript"></script>
  <script type="text/javascript">
    $(document).bind("keydown", "m", timeedit_month_kbd);
    $(document).bind("keydown", "y", timeedit_year_kbd);
  </script>
{% endblock %}

{% block body %}
  <div id="timeselect">
    <input type="button" value="<" id="timeselect_prev" onclick="timeselect_prev()">
    <span id="timeselect_year" onclick="timeselect_direct()">XXXX</span>
    <input type="text" maxlength="4" id="timeedit_year"><span id="timeselect_month" onclick="timeselect_direct()">XX</span>
    <input type="text" maxlength="2" id="timeedit_month"><input type="button" value=">" id="timeselect_fwd" onclick="timeselect_fwd()">
    <input type="button" value="改" id="timeedit_button" onclick="timeselect_direct()">
    <input type="button" value="確定" id="timeedit_apply" onclick="timeedit_apply()">
    <input type="button" value="取消" id="timeedit_cancel" onclick="timeedit_cancel()">
  </div>
  <div id="monthcal">
    <table id="cal">
      <thead>
        <tr>
          <td>週日</td>
          <td>週一</td>
          <td>週二</td>
          <td>週三</td>
          <td>週四</td>
          <td>週五</td>
          <td>週六</td>
        </tr>
      </thead>
      <tbody id="calbody">
      </tbody>
    </table>
  </div>
{% endblock %}