Ignore:
Timestamp:
May 25, 2011, 3:14:54 PM (14 years ago)
Author:
dennisw
Message:

Some work on site. Messing with django queries, trying to get a nice json for filterlist.

Location:
src/django_gheat/website
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/django_gheat/website/static/heatmap_extensions.js

    r9213 r9214  
    1515      var list;
    1616      if (json.length>0){
    17         list = '<center>Wireless Leiden nodes on mouseposition:<br /><b>';
     17        list = 'Wireless Leiden nodes on mouseposition:<br /><b>';
    1818        for (var i=0; i<json.length; i++){
    1919          list += json[i].fields.ssid + '<br />';
    2020        }
    21         list += '</b></center>';
     21        list += '</b>';
    2222      }
    2323      else{
    24         list = '<center>No nodes to display.</center>';
     24        list = 'No nodes to display.';
    2525      }
    2626      document.getElementById('node_list').innerHTML=list;
     
    4242    filterlist=new ActiveXObject("Microsoft.XMLHTTP");
    4343  }
    44 
     44  // todo: Get new options if one option is selected; every user has different datasets, make sure when user 'John' is selected, you can only choose datasets who are his.
    4545  filterlist.onreadystatechange=function(){
    4646    if (filterlist.readyState==4 && filterlist.status==200){
    4747      json=eval('(' + filterlist.responseText + ')');
    4848      var list = '<form method="get" action="">';
     49      list += '<input type="text" id="user" name="user" size="10"/> User<br />';
     50      list += '<input type="text" id="dataset" name="dataset" size="10"/> Dataset<br />';
     51      list += '<input type="text" id="date" name="date" size="10"/> Date<br />';
     52     
    4953      list += '<select id="wlnode" style="width:104px"><option></option>';
    5054      for (var i=0; i<json.length; i++){
     
    5256      }
    5357      list += '</select> WLnode<br />';
     58
     59      list += '<input type="text" id="enc" name="enc" size="10"/> Encrypted<br />';
    5460      list += '<input type="text" id="colour" name="colour" size="10"/> Colour<br />';
    5561      list += '<input type="text" id="lname" name="lname" size="10"/> Layername<br />';
  • src/django_gheat/website/static/style.css

    r9213 r9214  
    3232#header{
    3333  width:100%-10px;
    34   height:30px;
     34 
    3535  top:0px;
    3636  background-color:#BA0000;
     
    3838  padding-right:5px;
    3939  text-align:center;
     40  font-size:18px;
     41  color:white;
    4042}
    4143
    4244#menu{
    4345  width:100%-10px;
    44   height:20px;
    4546  background-color:#BA0000;
    4647  padding-left:5px;
     
    8081#node_list{
    8182  position:absolute;
    82   left:50%;
    83   margin-left:-150px;
     83  left:-2px;
    8484  bottom:-2px;
    85   width:300px;
     85  width:200px;
    8686  background-color:#FFF;
    8787  border:2px solid #BA0000;
    8888  z-index:1;
    8989  padding:5px;
     90  font-size:10px;
    9091}
    9192       
  • src/django_gheat/website/templates/home.html

    r9213 r9214  
    3333  <div id="container">
    3434    <div id="header">
    35       <font style="font-size:24px; color:white;">Stichting Wireless Leiden - Heatmap</font>
     35      Stichting Wireless Leiden - Heatmap
    3636    </div>
    3737    <div id="menu">
     
    4040    </div>
    4141    <div id="info">
    42        test<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />test
     42       This might need some work done.
    4343    </div>
    4444    <div id="filter">
     
    4949      </div>
    5050      <div id="filter_list">
    51       <form method="get" action="">
    52       <table border="0">
    53         <tr>
    54           <td>User</td>
    55           <td><input type="text" id="user" name="user" size="10"/></td>
    56         </tr>
    57         <tr>
    58           <td>Set</td>
    59           <td><input type="text" id="dataset" name="dataset" size="10"/></td>
    60         </tr>
    61         <tr>
    62           <td>Date</td>
    63           <td><input type="text" id="date" name="date" size="10"/></td>
    64         </tr>
    65         <tr>
    66           <td>WL Node</td>
    67           <td><input type="text" id="wlnode" name="wlnode" size="10"/></td>
    68         </tr>
    69         <tr>
    70           <td>Encrypted</td>
    71           <td><input type="checkbox" id="enc" name="enc"/></td>
    72         </tr>
    73         <tr>
    74           <td>Layer colour</td>
    75           <td><input type="text" id="colour" name="colour" size="10"/></td>
    76         </tr>
    77         <tr>
    78           <td>Layer name</td>
    79           <td><input type="text" id="lname" name="lname" size="10"/></td>
    80         </tr>
    81         <tr>
    82           <td></td>
    83           <td><input type="button" value="Add filter" onClick="filters()"/></td>
    84         </tr>
    85       </table>
    86       </form>
     51
    8752      </div>
    8853    </div>
    8954  </div>
    9055  <div id='node_list'>
    91   <center>Click on the map to display Wireless Leiden nodes.</center>
     56  Click on map to display Wireless Leiden nodes.
    9257  </div>
    9358</body>
Note: See TracChangeset for help on using the changeset viewer.