OSDN Git Service

f45989d7d41fae1ea3843c1b30204b332bb0273b
[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('dojox.grid.DataGrid');
21             dojo.require('dojo.data.ItemFileReadStore');
22             dojo.require('dojox.data.CsvStore');
23             dojo.require('dojo.parser');
24             dojo.require('dijit.form.FilteringSelect');
25             dojo.require('dijit.form.Button');
26             // グリッドに表示する元データをロード
27             var store = new dojox.data.CsvStore({url:'./recdatum.csv'});
28             function click(){
29                 var items=dijit.byId("grid").selection.getSelected();
30                 var str="";
31                 for (i=0;i<items.length;i++){
32                     var s=dijit.byId("grid").store.getValue(items[i],"id");
33                     str=str+s+",";
34                 }
35                 dijit.byId("tasknum").setValue(str);
36             }
37             -->
38         </script>
39     </head>
40
41     <!-- テーマの読み込み -->
42     <body class="tundra">  
43         <table
44             id="grid"
45             name="grid"
46             dojoType="dojox.grid.DataGrid"
47             store="store"
48             query="{id:'*'}"
49             autoHeight="true"
50             width="100%"
51             autoWidth="true"
52             clientSort="true"
53             onClick="click">
54             <thead>
55                 <tr>
56                     <th width="30px" field="id">ID</th>
57                     <th width="90px" field="type">タイプ</th>
58                     <th width="50px" field="chtxt">チャンネル</th>
59                     <th width="150px" field="title">タイトル</th>
60                     <th width="100px" field="btime">開始</th>
61                     <th width="100px" field="etime">終了</th>
62                     <th width="30px" field="opt">オプション</th>
63                     <th width="50px" field="deltaday">周期</th>
64                 </tr>
65             </thead>
66         </table>
67         <select name="exec"
68                 dojoType="dijit.form.FilteringSelect"
69                 autocomplete="false"
70                 value="del"
71                 onChange="setType">
72             <option value="del">削除(複数同時可能)</option>
73             <option value="change">変更(最後に選択したもの)</option>
74         </select>
75         <div dojoType="dijit.form.Button" type="submit">実行</div>
76         <div dojoType="dijit.form.TextBox"
77              name="tasknum"
78              id="tasknum"
79              value=""
80              style="display:none">
81         </div>
82     </body>
83 </html>