Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jan 13th, 2012  |  syntax: None  |  size: 3.27 KB  |  hits: 53  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <title>Franchise</title>
  6. <link rel="stylesheet" type="text/css" href="http://o.aolcdn.com/dojo/1.1/dojo/resources/dojo.css" />
  7. <link rel="stylesheet" type="text/css" href="http://o.aolcdn.com/dojo/1.1/dijit/themes/soria/soria.css" />
  8. <link rel="stylesheet" type="text/css" href="dijit/themes/claro/claro.css" />
  9. <link rel="stylesheet" type="text/css" href="dojox/grid/resources/Grid.css" />
  10. <link rel="stylesheet" type="text/css" href="dojox/grid/resources/claroGrid.css" />
  11. <link rel="stylesheet" type="text/css" href="dojox/grid/resources/soriaGrid.css" />
  12. </head>
  13. <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/dojo/1.5/dojo/dojo.xd.js" djConfig="parseOnLoad:true"></script>
  14. <script type="text/javascript">
  15.     dojo.require("dojox.grid.DataGrid");
  16.     dojo.require("dojo.data.ItemFileReadStore");
  17. </script>
  18. <script type="text/javascript">
  19. dojo.ready(function() {
  20.     var theGreatestTeamOfAllTime = {
  21.         items: [ {
  22.                   "number":"BurgerKing",
  23.                   "name":"Enabled",
  24.                   "position":"215",
  25.                   "victories1":"17",
  26.                   "victories2":"27,500"
  27.                   },
  28.                  {
  29.                   "number":"SmoothieKing",
  30.                   "name":"Enabled",
  31.                   "position":"185",
  32.                   "victories1":"23",
  33.                   "victories2":"67,231"
  34.                   },
  35.                  {
  36.                   "number":"Subway",
  37.                   "name":"Disabled",
  38.                   "position":"433",
  39.                   "victories1":"99",
  40.                   "victories2":"192,435"
  41.                   }
  42.            
  43.                ],
  44.         identifier: "number"
  45.     };
  46.  
  47.     var dataStore =
  48.     new dojo.data.ItemFileReadStore(
  49.         { data:theGreatestTeamOfAllTime }
  50.     );
  51.     var grid = dijit.byId("billsGrid");
  52.     grid.setStore(dataStore);
  53. });
  54. </script>
  55. <script type="text/javascript">
  56.                 dojo.require("dojo.parser");
  57.                 dojo.require("dijit.layout.ContentPane");
  58.                 dojo.require("dijit.layout.TabContainer");
  59.                 dojo.require("dijit.form.Button");
  60. </script>
  61.  
  62. <body class="claro" >
  63.      <div dojoType="dijit.layout.TabContainer"  style="width:880px;  height:500px; margin:15px; margin:0 auto; border:solid 1px;">
  64.          
  65.              
  66.             <div style="width: 200px; height: 200px">  
  67.           <table id="billsGrid" dojoType="dojox.grid.DataGrid">
  68.             <thead>
  69.                 <tr>
  70.                     <th field="number" width="130px">Franchise</th>
  71.                     <th field="name">State</th>
  72.                     <th field="position">Stores</th>
  73.                     <th field="victories1">Groups</th>
  74.                     <th field="victories2">Guests</th>
  75.                 </tr>
  76.             </thead>
  77.        </table>
  78.                   <br/>
  79.           <button href="Franchise-details.html" dojoType="dijit.form.Button">Details</button>
  80.           <button dojoType="dijit.form.Button">Add</button>
  81.               </div>
  82.            
  83.           </div>      
  84. </body>
  85. </html>