Changeset 129 for www/is


Ignore:
Timestamp:
Jan 5, 2009, 7:31:45 AM (16 years ago)
Author:
george
Message:
  • Odstraněno: Openwebmail. * Odstraněno: phpMyAdmin. * Upraveno: Mnoho malých úprav a oprav.
Location:
www/is
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • www/is/tc.php

    r1 r129  
    66    <title>Traffic Control stat</title>
    77    <meta http-equiv="Content-Language" content="cs">
    8     <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2">
     8    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    99<style type="text/css">
    1010table td
     
    121121  {
    122122    global $ClassList;
     123
    123124    if(array_key_exists('Leaf', $Class)) $Class['Id'] .= ' Leaf';
    124125    if(!array_key_exists('Prio', $Class)) $Class['Prio'] = '&nbsp;';
     
    136137      foreach($Class['SubClasses'] as $Index => $SubClassId)
    137138        ShowClass($ClassList[$SubClassId], $Level + 1);
    138       //echo('</table></td></tr>');   
     139      //echo('</table></td></tr>');
    139140    }
    140141  }
    141142
    142   echo('<table style="font-size: small;" border="0" cellspacing="0" cellpadding="1"><tr><th>Id</th><th>Level</th><th>Description</th><th>Prio</th>
     143  echo('<table style="font-size: x-small;" border="0" cellspacing="0" cellpadding="1"><tr><th>Id</th><th>Level</th><th>Description</th><th>Prio</th>
    143144  <th>Rate [bit/s]</th><th>Ceil [bit/s]</th><th>Burst [B/s]</th><th>CBurs [B/s]t</th><th>Quantum [B]</th>
    144145  <th>CurrentRate [bit/s]</th><th>Dropped</th></tr>');
  • www/is/topologie-img.php

    r16 r129  
    55if(array_key_exists('debug', $_GET)) $debug = $_GET['debug'];
    66else $debug = 0;
    7 $TopHostName = 'NIX-ROUTER';
     7$TopHostName = 'nix-router';
    88// $debug = 0;
    99
     
    179179$im_dev = imagecreatefrompng('images/device.png');
    180180// === Generování obrázku ======================================================
    181 $im = imagecreate(($width + 1.6) * $spacex, ($height + 1) * $spacey);
     181$im = imagecreate(($datawidth+$width+3.2) * $halfx, ($height + 1) * $spacey);
    182182$background_color = imagecolorallocate($im, 255, 255, 255);
    183183$black = imagecolorallocate($im, 0, 0, 0);
     
    236236//    imagerectangle($im,xpos($id)+$halfx-6,$vtop[$id]*$spacey+16,xpos($id)+$halfx+6,$vtop[$id]*$spacey+28,$color);
    237237    if ($debug) {
    238       imagestring($im,2,xpos($id)+($spacex-strlen($item['id'])*imagefontwidth(2))/2,$vtop[$id]*$spacey+31+imagefontheight(2),$item['id'],$color);
    239     } else imagestring($im,2,xpos($id)+($spacex-strlen($item['name'])*imagefontwidth(2))/2,$vtop[$id]*$spacey+31+imagefontheight(2),$item['name'],$color);
    240   }   
     238      imagestring($im, 2, xpos($id) + ($spacex - strlen($item['id']) * imagefontwidth(2)) / 2, $vtop[$id] * $spacey + 31 + imagefontheight(2), $item['id'], $color);
     239    } else imagestring($im, 2, xpos($id) + ($spacex - strlen($item['name']) * imagefontwidth(2)) / 2, $vtop[$id] * $spacey + 31 + imagefontheight(2), strtoupper($item['name']), $color);
     240  }
    241241}
    242242
Note: See TracChangeset for help on using the changeset viewer.