OSDN Git Service

424c4bf85f7124851635d01b66d5a642886cc809
[rec10/rec10-git.git] / Rec10WEB / trunk / src / schedule.htm
1
2 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
3 <html lang="ja">
4     <head>
5         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
6         <meta http-equiv="Content-Style-Type" content="text/css">
7         <meta http-equiv="Content-Script-Type" content="text/javascript">
8         <title>Rec10Web Schedule管理</title>
9         <script src="./dojo/dojo/dojo.js" djConfig="parseOnLoad:true">
10         </script>
11         <!-- テーマの読み込み -->
12         <style type="text/css">
13             @import "./dojo/dojo/resources/dojo.css";
14             @import "./dojo/dijit/themes/tundra/tundra.css";
15             @import "./dojo/dojox/grid/resources/Grid.css";
16             @import "./dojo/dojox/grid/resources/tundraGrid.css";
17         </style>
18         <script type="text/javascript">
19             <!--
20             dojo.require('dojo.parser');
21             dojo.require('dojox.grid.DataGrid');
22             dojo.require('dojo.data.ItemFileReadStore');
23             dojo.require('dojox.data.CsvStore');
24             dojo.require("dijit.form.Form");
25             dojo.require('dijit.form.FilteringSelect');
26             dojo.require('dijit.form.Button');
27             // グリッドに表示する元データをロード
28             var store = new dojox.data.CsvStore({url:'./recdatum.csv'});
29             function click(){
30                 var items=dijit.byId("grid").selection.getSelected();
31                 var str="";
32                 for (i=0;i<items.length;i++){
33                     var s=dijit.byId("grid").store.getValue(items[i],"id");
34                     str=str+s+",";
35                 }
36                 dijit.byId("tasknum").setValue(str);
37             }
38             -->
39         </script>
40     </head>
41
42     <!-- テーマの読み込み -->
43     <body class="tundra">
44         <div dojoType="dijit.form.Form" action="rec10web.py" onExecute="this.submit()">
45             <table
46                 id="grid"
47                 name="grid"
48                 dojoType="dojox.grid.DataGrid"
49                 store="store"
50                 query="{id:'*'}"
51                 autoHeight="true"
52                 width="100%"
53                 autoWidth="true"
54                 clientSort="true"
55                 onClick="click">
56                 <thead>
57                     <tr>
58                         <th width="30px" field="id">ID</th>
59                         <th width="90px" field="type">タイプ</th>
60                         <th width="50px" field="chtxt">チャンネル</th>
61                         <th width="150px" field="title">タイトル</th>
62                         <th width="100px" field="btime">開始</th>
63                         <th width="100px" field="etime">終了</th>
64                         <th width="30px" field="opt">オプション</th>
65                         <th width="50px" field="deltaday">周期</th>
66                     </tr>
67                 </thead>
68             </table>
69             <select name="exec"
70                     dojoType="dijit.form.FilteringSelect"
71                     autocomplete="false"
72                     value="del"
73                     onChange="setType">
74                 <option value="del">削除(複数同時可能)</option>
75                 <option value="change">変更(最後に選択したもの)</option>
76             </select>
77             <div dojoType="dijit.form.Button" type="submit">実行</div>
78             <div dojoType="dijit.form.TextBox"
79                  name="tasknum"
80                  id="tasknum"
81                  value=""
82                  style="display:none">
83             </div>
84         </div>
85     </body>
86 </html>