aboutsummaryrefslogtreecommitdiffstats
path: root/jinhtml/skel.html
blob: f9152d0491d16e9084baf38e55e61d8019f37694 (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
<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <title>{{ productname }}</title>
  <link rel="stylesheet" href="css/format.css" type="text/css">
  {% block headcss %}{% endblock %}
  <script src="js/cookie.js" type="text/javascript"></script>
  <script src="js/common.js" type="text/javascript"></script>
  <script src="js/jquery.js" type="text/javascript"></script>
  <script src="js/jquery.hotkeys.js" type="text/javascript"></script>
  <script type="text/javascript">
    var googleuser = "{{ googleuser }}";
    var productname = "{{ productname }}";
    function google_logout(){
        window.location = "{{ logouturl }}";
    }
    function switch_month(){
        window.location = "{{ myhost }}?view=month";
    }
    function switch_list(){
        window.location = "{{ myhost }}?view=list";
    }
    function switch_import(){
        window.location = "{{ myhost }}/port?function=import"
    }
    function switch_export(){
        window.location = "{{ myhost }}/port?function=export"
    }
    function switch_doc(){
        window.location = "{{ myhost }}/help"
    }
    window.onload = function(){
        status_bar_init();
        {% block onload %}{% endblock %}
    }
  </script>
  {% block headjs %}{% endblock %}
</head>
<body>
  <div id="topprodname">
    {{ googleuser }} - {{ productname }}
  </div>
  <div id="controlpanel">
    <div id="controlleft">
      <input type="button" value="月曆" id="switchmonth" onclick="switch_month()">
      <input type="button" value="清單" id="switchlist" onclick="switch_list()">
    </div>
    <div id="controlright">
      <input type="button" value="匯入" id="buttonimport" onclick="switch_import()">
      <input type="button" value="匯出" id="buttonexport" onclick="switch_export()">
      <input type="button" value="說明" id="aboutandhelp" onclick="switch_doc()" style="background-color: firebrick;">
      <input type="button" value="{{ logouttext }}" id="googlelogout" onclick="google_logout()" style="background-color: darkgray">
    </div>
  </div>
  <div id="statusbar">
  </div>
  {% block body %}{% endblock %}
  <div id="bottomemptybar">
  </div>
</body>
</html>