Changeset 86bd53ef91b671f4e3ebd48b47c57178cdacc001

Show
Ignore:
Timestamp:
11/26/08 23:07:10 (10 years ago)
Author:
Umar Farooq <umar@omniti.com>
git-committer:
Umar Farooq <umar@omniti.com> 1227740830 +0000
git-parent:

[2ae0d656b5aaa5165e389e7f58e3d820268d1313]

git-author:
Umar Farooq <umar@omniti.com> 1227740830 +0000
Message:

notify button for saving graphs and hiding sids in templates

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • ui/web/htdocs/css/style.css

    r477b283 r86bd53e  
    552552#browselist ul li ul li ul li span.templatesid { 
    553553padding-left:30px; 
     554} 
     555#browselist ul li ul li ul li span.CreateGraph { 
     556border:1px solid #DDDDDD; 
     557padding-left: 0px; 
     558padding:0 4px; 
     559width:67px; 
     560background:transparent; 
     561} 
     562#browselist ul li ul li ul li span.CreateGraphButton{ 
     563border:1px solid #DDDDDD; 
     564padding-left: 0px; 
     565padding:0 4px; 
     566width:67px; 
     567background:transparent; 
    554568} 
    555569#browselist ul li ul li ul li ul li span { 
  • ui/web/htdocs/template_browse_json.php

    r2ae0d65 r86bd53e  
    9494     $ctext .= "<br>Graph Title:"; 
    9595     $ctext.="<input type='text' size='15' name='graph_name' id='graph_name'><br>"; 
    96  
    97      $ctext.=<<<LINK 
     96     $ctext.="<span class='CreateGraphButton'>"; 
     97     $link=<<<LINK 
    9898<a href="javascript:CreateGraphFromTemplate('$thetemplateid', '$num_sids')"> 
    9999LINK; 
    100  
    101      $ctext.=" <b>Create Graph</b></a></form>";      
     100     $ctext.=$link; 
     101     $ctext.="<b>Create Graph</b></a></span></form>"; 
     102     $ctext.="<span class='CreateGraph'></span>"; 
    102103     $ctext.= <<<JS 
    103104<script type='text/javascript'> 
     
    109110 
    110111$("#sid_select :selected").each(function(i, selected){ 
    111          sids[i] = $(selected).text(); 
     112         sids[i] = $(selected).val(); 
    112113}); 
    113114 
     
    121122        success: function() { } 
    122123        }); 
     124        $(".CreateGraph").html('Graph Saved').fadeIn('slow'); 
     125        $(".CreateGraph").html('Graph Saved').fadeOut('slow'); 
     126} 
     127else { 
     128     alert("Did not specify correct number of metrics!") 
    123129} 
    124130} 
     
    127133JS; 
    128134 
    129      $jitem = array ('id' => 'whatever', 
     135     $jitem = array ('id' => '', 
    130136                           'text' => $ctext, 
    131137                           'hasChildren' => false, 
  • ui/web/htdocs/template_graph.php

    r477b283 r86bd53e  
    1515$i = 1; 
    1616 
    17 foreach ($sid_list as $term){ 
     17foreach ($sid_list as $sid){ 
    1818   $sname = ($i==1) ? "SwitchPort": "SwitchPort".$i; 
    19    $sid = explode("`", $term); $sid = $sid[3]; 
    2019   $rparams[$sname] = $sid; 
    2120   $i++; 
    2221} 
    23  
    2422$graph_json = $template->newGraph($rparams); 
    2523 
  • ui/web/lib/Reconnoiter_DB.php

    r477b283 r86bd53e  
    471471      $row = $sth->fetch(); 
    472472    } 
    473    return $row['target']."`".$row['module']."`".$row['name']."`".$sid
     473   return $row['target']."`".$row['module']."`".$row['name']
    474474  } 
    475475}