OSDN Git Service

df7f8b61cedd13d2e5df9f417b41b1ebefc50da1
[rec10/rec10-git.git] / Rec10WEB / trunk / src / iepg_show.htm
1
2 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
3 <html>
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>Rec10 Simple Web Interface ver.0.9.1 iEPGデータ表示</title>
9         <script type="text/javascript" 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             dojo.require("dojo.parser");
20             // ※ ここで、使用するウィジェットの読み込みを行う
21             dojo.require('dojox.grid.DataGrid');
22             dojo.require("dijit.form.Form"); 
23             dojo.require("dijit.form.Button");
24             dojo.require("dijit.form.TextBox");
25             dojo.require("dojo.data.ItemFileWriteStore");
26             dojo.require("dojox.data.CsvStore");
27             dojo.require("dijit.form.TextBox");
28             dojo.require("dojox.grid.Selection");
29             var iepgstore = new dojox.data.CsvStore({url:'./iepgdatum.csv'});
30             function click(){
31                 var items=dijit.byId("iepgGrid").selection.getSelected();
32                 var str="";
33                 for (i=0;i<items.length;i++){
34                     var s=dijit.byId("iepgGrid").store.getValue(items[i],"id");
35                     str=str+s+",";
36                 }
37                 dijit.byId("iepgdelnum").setValue(str);
38             }
39         </script>
40     </head>
41     <body class="tundra">
42         <div dojoType="dijit.form.Form" action="rec10web.py" onExecute="this.submit()">
43             <h1>Rec10 Simple Web Interface ver.0.9.1 iEPGデータ表示</h1><br>
44             <table dojoType="dojox.grid.DataGrid"
45                    id="iepgGrid"
46                    jsid="iepgGrid"
47                    store="iepgstore"
48                    query="{id:'*'}"
49                    width="100%"
50                    autoHeight="true"
51                    autoWidth="true"
52                    clientSort="true"
53                    onClick="click"
54                    >
55                 <thead>
56                     <tr>
57                         <th field="id" width="30px">ID</th>
58                         <th field="name" width="200px">チャンネル</th>
59                         <th field="chtxt" width="100px">chtxt</th>
60                     </tr>
61                 </thead>
62             </table>
63             <div dojoType="dijit.form.Button" type="submit">DEL</div>
64             <div name="exec"
65                  dojoType="dijit.form.TextBox"
66                  value="iepg-del"
67                  style="display:none">
68             </div>
69             <div dojoType="dijit.form.TextBox"
70                  name="iepgdelnum"
71                  id="iepgdelnum"
72                  value=""
73                  style="display:none">
74             </div>
75         </div>
76     </body>
77 </html>