| 1 | | <?php |
|---|
| | 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>Reconnoiter</title> |
|---|
| | 6 | <link href="css/style.css" rel="stylesheet" type="text/css" /> |
|---|
| | 7 | <script src="js/htmlentities.js"></script> |
|---|
| | 8 | <script src="js/json2.js"></script> |
|---|
| | 9 | <script src="js/jquery.min.js"></script> |
|---|
| | 10 | <script src="js/jquery.jeditable.pack.js"></script> |
|---|
| | 11 | <script src="js/jquery.cookie.js" type="text/javascript"></script> |
|---|
| | 12 | <script src="js/jquery.treeview.js" type="text/javascript"></script> |
|---|
| | 13 | <script src="js/jquery.treeview.async.js" type="text/javascript"></script> |
|---|
| 9 | | ?> |
|---|
| 10 | | <html> |
|---|
| | 23 | <!-- Confirm JS and CSS files --> |
|---|
| | 24 | <script src='js/confirm.js' type='text/javascript'></script> |
|---|
| | 25 | <link type='text/css' href='css/confirm.css' rel='stylesheet' media='screen' /> |
|---|
| | 26 | |
|---|
| | 27 | <!-- IE 6 hacks --> |
|---|
| | 28 | <!--[if lt IE 7]> |
|---|
| | 29 | <link type='text/css' href='css/confirm_ie.css' rel='stylesheet' media='screen' /> |
|---|
| | 30 | <![endif]--> |
|---|
| | 31 | |
|---|
| | 32 | <!--accordion--> |
|---|
| | 33 | <script type="text/javascript"> |
|---|
| | 34 | $(document).ready(function(){ |
|---|
| | 35 | $(".accordion h3").eq(1).addClass("active"); |
|---|
| | 36 | $(".accordion span").eq(1).slideUp(); |
|---|
| | 37 | $(".accordion span:last").slideDown(); |
|---|
| | 38 | |
|---|
| | 39 | $(".accordion h3").click(function(){ |
|---|
| | 40 | $(this).next("span").slideToggle("normal") |
|---|
| | 41 | .siblings("span:visible").slideUp("normal"); |
|---|
| | 42 | $(this).toggleClass("active"); |
|---|
| | 43 | $(this).siblings("h3").removeClass("active"); |
|---|
| | 44 | }); |
|---|
| | 45 | |
|---|
| | 46 | }); |
|---|
| | 47 | </script> |
|---|
| | 48 | |
|---|
| | 49 | <script type="text/javascript"> |
|---|
| | 50 | jQuery(document).ready(function(){ |
|---|
| | 51 | $("#targets").treeview({ |
|---|
| | 52 | url: "json/ds/remote_address/target/name/metric_name", |
|---|
| | 53 | params: {} // will become hash, indexed by id, of url params |
|---|
| | 54 | }) |
|---|
| | 55 | }); |
|---|
| | 56 | </script> |
|---|
| | 57 | |
|---|
| | 58 | |
|---|
| | 59 | <!--accordion 2--> |
|---|
| | 60 | <script type="text/javascript"> |
|---|
| | 61 | $(document).ready(function(){ |
|---|
| | 62 | $(".accordion2 h4").eq(1).addClass("active"); |
|---|
| | 63 | $(".accordion2 div").eq(1).slideUp(); |
|---|
| | 64 | $(".accordion2 div:last").slideDown(); |
|---|
| | 65 | |
|---|
| | 66 | $(".accordion2 h4").click(function(){ |
|---|
| | 67 | $(this).next("div").slideToggle("normal") |
|---|
| | 68 | .siblings("div:visible").slideUp("normal"); |
|---|
| | 69 | $(this).toggleClass("active"); |
|---|
| | 70 | $(this).siblings("h4").removeClass("active"); |
|---|
| | 71 | }); |
|---|
| | 72 | |
|---|
| | 73 | }); |
|---|
| | 74 | </script> |
|---|
| | 75 | |
|---|
| | 76 | <!-- search tabs --> |
|---|
| | 77 | <script type="text/javascript"> |
|---|
| | 78 | $(function () { |
|---|
| | 79 | var tabContainers = $('div.tabs > div'); |
|---|
| | 80 | tabContainers.hide().filter(':first').show(); |
|---|
| | 81 | |
|---|
| | 82 | $('div.tabs ul.tabNavigation a').click(function () { |
|---|
| | 83 | tabContainers.hide(); |
|---|
| | 84 | tabContainers.filter(this.hash).show(); |
|---|
| | 85 | $('div.tabs ul.tabNavigation a').removeClass('selected'); |
|---|
| | 86 | $(this).addClass('selected'); |
|---|
| | 87 | return false; |
|---|
| | 88 | }).filter(':first').click(); |
|---|
| | 89 | }); |
|---|
| | 90 | </script> |
|---|
| | 91 | |
|---|
| | 92 | <!-- math box --> |
|---|
| | 93 | |
|---|
| | 94 | <!-- alert / Remove this when new script is made --> |
|---|
| | 95 | <script type="text/javascript"> |
|---|
| | 96 | function disp_alert() |
|---|
| | 97 | { |
|---|
| | 98 | alert("display the correct graph") |
|---|
| | 99 | } |
|---|
| | 100 | function MM_jumpMenu(targ,selObj,restore){ //v3.0 |
|---|
| | 101 | eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'"); |
|---|
| | 102 | if (restore) selObj.selectedIndex=0; |
|---|
| | 103 | } |
|---|
| | 104 | </script> |
|---|
| | 105 | |
|---|
| | 106 | </head> |
|---|
| | 107 | |
|---|
| 12 | | <?php require_once('thumb.inc'); ?> |
|---|
| 13 | | <ul> |
|---|
| 14 | | <?php foreach($targets as $target) { ?> |
|---|
| 15 | | <li><?php print $target ?></li> |
|---|
| 16 | | <ul> |
|---|
| 17 | | <?php foreach($db->get_checks($target) as $name => $check) { ?> |
|---|
| 18 | | <li> |
|---|
| 19 | | <a href="bw_graph.php?id=<?php print $check['sid'] ?>"><?php print $name ?></a><br /> |
|---|
| 20 | | <?php 0 && thumb_flash($id) ?> |
|---|
| 21 | | <ul> |
|---|
| 22 | | <?php foreach($check['numeric'] as $n) { ?> |
|---|
| 23 | | <li><a href="generic_graph.php?metric=nl-<?php print $check['sid'] ?>-<?php print $n ?>&cnt=1400"><?php print $n ?></a></li> |
|---|
| 24 | | <?php } ?> |
|---|
| 25 | | </ul> |
|---|
| 26 | | <ul> |
|---|
| 27 | | <?php foreach($check['text'] as $n) { ?> |
|---|
| 28 | | <li>Text: <?php print $n ?></li> |
|---|
| 29 | | <?php } ?> |
|---|
| 30 | | </ul> |
|---|
| 31 | | </li> |
|---|
| 32 | | <?php } ?> |
|---|
| 33 | | </ul> |
|---|
| 34 | | <?php } ?> |
|---|
| 35 | | </ul> |
|---|
| | 109 | <div id="header"> |
|---|
| | 110 | <h1><a href="#">Reconnoiter</a></h1> |
|---|
| | 111 | <ul> |
|---|
| | 112 | <li><a href="#">Username</a></li> |
|---|
| | 113 | <li class="xx"><a href="#">Logout</a></li> |
|---|
| | 114 | </ul> |
|---|
| | 115 | </div><!-- end header --> |
|---|
| | 116 | <div id="left"> |
|---|
| | 117 | <div class="accordion"> |
|---|
| | 118 | <?php include('worksheet_controls.inc') ?> |
|---|
| | 119 | <?php include('search_controls.inc') ?> |
|---|
| | 120 | </div> |
|---|
| | 121 | </div><!-- end left --> |
|---|
| | 122 | <div id="container"> |
|---|
| | 123 | <div id="content"> |
|---|
| | 124 | <div id="tab_content"> |
|---|
| | 125 | <ul> |
|---|
| | 126 | <li><a href="#" class="selected">Graph Panel</a></li> |
|---|
| | 127 | <li><a href="#">Worksheet</a></li> |
|---|
| | 128 | </ul><div style="clear:both;"></div> |
|---|
| | 129 | </div> |
|---|
| | 130 | <!-- graph and controls --> |
|---|
| | 131 | <div id="main"> |
|---|
| | 132 | <?php include('graph_controls.inc') ?> |
|---|
| | 133 | </div><!-- end main --> |
|---|
| | 134 | </div><!-- end content --> |
|---|
| | 135 | </div><!-- end container --> |
|---|