+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+ <meta http-equiv="Content-Style-Type" content="text/css">
+ <meta http-equiv="Content-Script-Type" content="text/javascript">
<title>Rec10 Simple Web Interface ver.0.7.0 iEPGデータ表示</title>
<script src="./dojo/dojo/dojo.js" djConfig="parseOnLoad:true">
</script>
<style type="text/css">
@import "./dojo/dojo/resources/dojo.css";
@import "./dojo/dijit/themes/tundra/tundra.css";
-
-
+ @import "./dojo/dojox/grid/resources/Grid.css";
+ @import "./dojo/dojox/grid/resources/tundraGrid.css";
</style>
<script type="text/javascript">
-
dojo.require("dojo.parser");
// ※ ここで、使用するウィジェットの読み込みを行う
+ dojo.require('dojox.grid.DataGrid');
+ dojo.require("dijit.form.Form");
dojo.require("dijit.form.Button");
dojo.require("dijit.form.TextBox");
- dojo.require("dijit.form.Form");
- var iepgStore = new dojo.data.ItemFileWriteStore({data:{items:[
- <!--text_for_replace_iepg//-->
- ]}});
+ dojo.require("dojo.data.ItemFileWriteStore");
+ dojo.require("dijit.form.ValidationTextBox");
+ dojo.require("dojox.data.CsvStore");
+ dojo.require("dijit.form.TextBox");
+ dojo.require("dojox.grid.cells.dijit")
+ var iepgstore = new dojox.data.CsvStore({url:'./iepgdatum.csv'});
+ //var iepgStructure=[
+ // {name:"ID",field:"id",width:"30px"},
+ // {name:"チャンネル",field:"name",width:"200px"},
+ // {name:"chtxt",field:"chtxt",width:"100px"}
+ //]
+ function changeGrid(grid){
+ var s=dijit.byId("iepgGrid").store.getValue(dijit.byId("iepgGrid").getItem(grid.rowIndex),"id");
+ var str=dijit.byId("iepg_delnum").value;
+ str=str+","+s;
+ dijit.byId("iepg_delnum").setValue(str);
+ };
+ dojo.addOnLoad(function(){
+ dojo.connect(dijit.byId("iepgGrid"),"onRowClick",changeGrid);
+ dojo.connect(dijit.byId("del"),"onClick",function(e){
+ dijit.byId("MainForm").submit();
+ });
+ });
</script>
</head>
<body class="tundra">
- <div dojoType="dijit.form.Form" action="rec10web.py" onExecute="this.submit()">
+ <div dojoType="dijit.form.Form" action="rec10web.py" onExecute="this.submit()" id="MainForm">
<h1>Rec10 Simple Web Interface ver.0.7.0 iEPGデータ表示</h1><br>
- <table dojoType="dojox.grid.DataGrid" id="iepggrid" store="iepgStore">
+ <table dojoType="dojox.grid.DataGrid"
+ id="iepgGrid"
+ jsid="iepgGrid"
+ store="iepgstore"
+ query="{id:'*'}"
+ autoHeight="true"
+ width="100%"
+ autoHeight="true"
+ autoWidth="true"
+ clientSort="true"
+ onRowClick="changeGrid"
+ >
<thead>
<tr>
- <th field="name" width="auto">放送局名</th>
- <th field="chtxt" width="auto">内部放送局コード(chtxt)</th>
+ <th field="id" width="30px">ID</th>
+ <th field="name" width="200px">チャンネル</th>
+ <th field="chtxt" width="100px">chtxt</th>
</tr>
</thead>
</table>
+ </div>
+ <div dojoType="dijit.form.Button" type="submit" id="del">DEL</div>
+ <div name="exec"
+ dojoType="dijit.form.ValidationTextBox"
+ value="iepg-del"
+ style="display:none">
+ </div>
+ <div name="iepg_delnum:"
+ id="iepg_delnum"
+ dojoType="dijit.form.TextBox"
+ value=""
+ style="display:none">
+ </div>
</div>
</body>
</html>