summaryrefslogblamecommitdiffstats
path: root/LogReceiver/html/networkdiscovery.html
blob: c24c86be6c6255af674e0e37e9c86ea50e4b378a (plain) (tree)
1
2
3
4
5
6
7
8
9
10

      
                                                              




                                                                                   

                               


                                    


                                                          







































                                                                                          

























                                                      


                                   

           

       




































                                                                                                                                                               

       
<html>
<head>
<!--qrc:/html/ is needed. otherwise qt won't find the files-->
<link rel="stylesheet" type="text/css" href="qrc:/html/networkdiscovery.css">
<link rel="stylesheet" type="text/css" href="qrc:/html/css/jquery-ui-1.8.16.css">
<script type="text/javascript" src="qrc:/html/js/jquery-1.6.4.min.js"></script>
<script type="text/javascript" src="qrc:/html/js/jquery-ui-1.8.16.min.js"></script>
<script type="text/javascript" src="qrc:/html/js/nd-functions.js"></script>

<script type="text/javascript">
var abortBootDialog = function (m) {
  $("#nd_abort_boot_msg").html(m);
  $("#nd_abort_boot_dialog").dialog(
    { buttons: { "Manual Configure": function() { 
                   $(this).dialog("close");}, 
                 "Show Log": function() {fbgui.showLog(); 
                   $(this).dialog("close");}, 
                 "Restart": function() {fbgui.restartSystem();
                   $(this).dialog("close"); },
                 "Shut Down": function() { fbgui.shutDownSystem(); 
                   $(this).dialog("close"); } 
               } ,
      minWidth: 450, 
      modal: true,
      resizable: false,
      draggable: false,
      open: function(event, ui) { $(".ui-dialog-titlebar-close").hide();}
    });
};

var chooseInterfaceDialog = function (i) {
  var cb = "<label> Choose your interface: </label>"+
           "<select>"+
           "  <option>eth0</option>"+ //should look like this: "  <option>"+ +"</option>"+
           "  <option>eth1</option>"+
           "  <option>eth2</option>"+
           "</select>";
  $("#nd_choose_interface_msg").html(cb);
  $("#nd_choose_interface_dialog").dialog(
    { buttons: { "Show Log": function() {fbgui.showLog(); 
                   $(this).dialog("close");}, 
                 "Restart": function() {fbgui.restartSystem();
                   $(this).dialog("close"); },
                 "Shut Down": function() { fbgui.shutDownSystem(); 
                   $(this).dialog("close"); },
                 "Continue": function() { fbgui.continueBoot(); 
                   $(this).dialog("close"); }
               } ,
      minWidth: 550, 
      modal: true,
      resizable: false,
      draggable: false,
      open: function(event, ui) { $(".ui-dialog-titlebar-close").hide();}
    });
}

var updateStatus = function (s){

};

var updateIfProgressBar = function (i, p){
  if (p >= 0 && p <= 100){
    $("#"+i+"_progress").progressbar({ value: p });
  }else{
  $("#"+i+"_progress").progressbar({ value: 0 });
  }
};

var updateIfStatus = function(i, s){
  $("#"+i+"_status").html(s);
};

var addInterface = function (i){
  $("#nd_progress_container").append(
    "<div class='interface'>"+
    "  Interface: " +i+
    "  <span id='"+i+"_status'>Start DHCP </span>" +
    "  <div id='"+i+"_progress' class='progressbar' "+
    "       style='height: 10px;'></div>"+
    "</div>"
  );
  $("#"+i+"_progress").progressbar({ value: 33 });
};

                                   
 </script> 

</head>
<body>
    <header>  
      <h1>Network Discovery</h1>  
    </header> 
      <section id="intro">  
        <p>Welcome to the Network Discovery. We are now looking for usable interfaces and will go on as soon as we found one. This may take a few seconds.</p> 
      </section> 
      <div id="content">
        <div id="left_spacer">        
          <aside>  
            <!-- free space -->  
          </aside>
        </div>
        <div id="mainContent">
          <section>  
            <!-- Main content area -->
            <p>test</p>
            <!-- anchor for the abort boot dialog -->
            <div id="nd_abort_boot_dialog">
              <p id="nd_abort_boot_msg"> <p>
            </div>
            <!-- anchor for the choose interface dialog -->
            <div id="nd_choose_interface_dialog">
              <p id="nd_choose_interface_msg"></p>
            </div>
            <!-- anchor for qt interface progress foo -->
            <div id="nd_progress_container"></div>  
          </section>  
        </div>
        <div id="right_spacer">        
          <aside>  
            <!-- free space -->  
          </aside>
        </div>
      </div> 
      <footer>  
        <p>RZ Uni Freiburg, 2011</p> 
      </footer>
</body>
</html>