diff options
author | Scott Dale <sdale@pfsense.org> | 2007-06-19 01:08:26 +0000 |
---|---|---|
committer | Scott Dale <sdale@pfsense.org> | 2007-06-19 01:08:26 +0000 |
commit | 9d55100123dc01220ad105c6f886192b3d70876a (patch) | |
tree | b45050e128e6e1ea538e3ab37bf47556c8881292 /usr/local/www/widgets | |
parent | cfeba570107d033271de931a9e7e1845579bf03e (diff) | |
download | pfsense-9d55100123dc01220ad105c6f886192b3d70876a.zip pfsense-9d55100123dc01220ad105c6f886192b3d70876a.tar.gz |
backout previous, accidental commit
Diffstat (limited to 'usr/local/www/widgets')
-rw-r--r-- | usr/local/www/widgets/widgets/system_information.widget.php | 119 |
1 files changed, 47 insertions, 72 deletions
diff --git a/usr/local/www/widgets/widgets/system_information.widget.php b/usr/local/www/widgets/widgets/system_information.widget.php index 74ba744..47dc650 100644 --- a/usr/local/www/widgets/widgets/system_information.widget.php +++ b/usr/local/www/widgets/widgets/system_information.widget.php @@ -1,15 +1,11 @@ <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tbody> - <tr> - <td width="15%" class="vncellt"><?=gettext("Current User");?></td> - <td width="75%" class="listr"><?= $HTTP_SERVER_VARS['AUTH_USER']; ?></td> - </tr> <tr> - <td width="15%" class="vncellt"><?=gettext("Name");?></td> + <td width="25%" class="vncellt">Name</td> <td width="75%" class="listr"><?php echo $config['system']['hostname'] . "." . $config['system']['domain']; ?></td> </tr> <tr> - <td width="15%" valign="top" class="vncellt"><?=gettext("Version");?></td> + <td width="25%" valign="top" class="vncellt">Version</td> <td width="75%" class="listr"> <strong><?php readfile("/etc/version"); ?></strong> <br /> @@ -17,11 +13,11 @@ </td> </tr> <tr> - <td width="15%" class="vncellt"><?=gettext("Platform");?></td> + <td width="25%" class="vncellt">Platform</td> <td width="75%" class="listr"><?=htmlspecialchars($g['platform']);?></td> </tr> <tr> - <td width="15%" class="vncellt"><?=gettext("CPU Type");?></td> + <td width="25%" class="vncellt">CPU Type</td> <td width="75%" class="listr"> <?php $cpumodel = ""; @@ -32,18 +28,16 @@ </tr> <?php if ($hwcrypto): ?> <tr> - <td width="15%" class="vncellt"><?=gettext("Hardware crypto");?></td> + <td width="25%" class="vncellt">Hardware crypto</td> <td width="75%" class="listr"><?=htmlspecialchars($hwcrypto);?></td> </tr> <?php endif; ?> - <tr> - <td width="15%" class="vncellt"><?=gettext("Uptime");?></td> - <td width="75%" class="listr"> - <div id="uptime"><?= htmlspecialchars(get_uptime()); ?></div> - </td> - </tr> + <tr> + <td width="25%" class="vncellt">Uptime</td> + <td width="75%" class="listr"><input style="border: 0px solid white;" size="30" name="uptime" id="uptime" value="<?= htmlspecialchars(get_uptime()); ?>" /></td> + </tr> <tr> - <td width="30%" class="vncellt"><?=gettext("DNS server(s)");?></td> + <td width="30%" class="vncellt">DNS server(s)</td> <td width="70%" class="listr"> <?php $dns_servers = get_dns_servers(); @@ -55,44 +49,39 @@ </tr> <?php if ($config['revision']): ?> <tr> - <td width="15%" class="vncellt"><?=gettext("Last config change");?></td> + <td width="25%" class="vncellt">Last config change</td> <td width="75%" class="listr"><?= htmlspecialchars(date("D M j G:i:s T Y", $config['revision']['time']));?></td> </tr> <?php endif; ?> - <tr> - <td width="15%" class="vncellt"><?=gettext("State table size");?></td> - <td width="75%" class="listr"> - <div id="pfstate"><?= htmlspecialchars(get_pfstate()); ?></div> - <a href="diag_dump_states.php"><?=gettext("Show states");?></a> - </td> - </tr> <tr> - <td width="15%" class="vncellt"><?=gettext("CPU usage history");?></td> - <td width="75%" class="listr"> - <div class="GraphLink" id="GraphOutput"></div> - </td> - </tr> - <tr> - <td width="15%" class="vncellt"><?=gettext("CPU usage");?></td> - <td width="75%" class="listr"> - <?php $cpuUsage = "0"; ?> - <img src="./themes/<?= $g['theme']; ?>/images/misc/bar_left.gif" height="15" width="4" border="0" align="middle" alt="left bar" /><img src="./themes/<?= $g['theme']; ?>/images/misc/bar_blue.gif" height="15" name="cpuwidtha" id="cpuwidtha" width="<?= $cpuUsage; ?>" border="0" align="middle" alt="red bar" /><img src="./themes/<?= $g['theme']; ?>/images/misc/bar_gray.gif" height="15" name="cpuwidthb" id="cpuwidthb" width="<?= (100 - $cpuUsage); ?>" border="0" align="middle" alt="gray bar" /><img src="./themes/<?= $g['theme']; ?>/images/misc/bar_right.gif" height="15" width="5" border="0" align="middle" alt="right bar" /> - - <div id="cpumeter">(<?=gettext("Updating in 5 seconds");?>)</div> - </td> - </tr> - <tr> - <td width="15%" class="vncellt"><?=gettext("Memory usage");?></td> - <td width="75%" class="listr"> - <?php $memUsage = mem_usage(); ?> - <img src="./themes/<?= $g['theme']; ?>/images/misc/bar_left.gif" height="15" width="4" border="0" align="middle" alt="left bar" /><img src="./themes/<?= $g['theme']; ?>/images/misc/bar_blue.gif" height="15" name="memwidtha" id="memwidtha" width="<?= $memUsage; ?>" border="0" align="middle" alt="red bar" /><img src="./themes/<?= $g['theme']; ?>/images/misc/bar_gray.gif" height="15" name="memwidthb" id="memwidthb" width="<?= (100 - $memUsage); ?>" border="0" align="middle" alt="gray bar" /><img src="./themes/<?= $g['theme']; ?>/images/misc/bar_right.gif" height="15" width="5" border="0" align="middle" alt="right bar" /> - - <div id="memusagemeter"><?= $memUsage.'%'; ?></div> - </td> - </tr> + <td width="25%" class="vncellt">State table size</td> + <td width="75%" class="listr"> + <input style="border: 0px solid white;" size="30" name="pfstate" id="pfstate" value="<?= htmlspecialchars(get_pfstate()); ?>" /> + <br /> + <a href="diag_dump_states.php">Show states</a> + </td> + </tr> + <tr> + <td width="25%" class="vncellt">CPU usage</td> + <td width="75%" class="listr"> + <?php $cpuUsage = "0"; ?> + <img src="./themes/<?= $g['theme']; ?>/images/misc/bar_left.gif" height="15" width="4" border="0" align="middle" alt="left bar" /><img src="./themes/<?= $g['theme']; ?>/images/misc/bar_blue.gif" height="15" name="cpuwidtha" id="cpuwidtha" width="<?= $cpuUsage; ?>" border="0" align="middle" alt="red bar" /><img src="./themes/<?= $g['theme']; ?>/images/misc/bar_gray.gif" height="15" name="cpuwidthb" id="cpuwidthb" width="<?= (100 - $cpuUsage); ?>" border="0" align="middle" alt="gray bar" /><img src="./themes/<?= $g['theme']; ?>/images/misc/bar_right.gif" height="15" width="5" border="0" align="middle" alt="right bar" /> + + <input style="border: 0px solid white;" size="30" name="cpumeter" id="cpumeter" value="(Updating in 5 seconds)" /> + </td> + </tr> + <tr> + <td width="25%" class="vncellt">Memory usage</td> + <td width="75%" class="listr"> + <?php $memUsage = mem_usage(); ?> + <img src="./themes/<?= $g['theme']; ?>/images/misc/bar_left.gif" height="15" width="4" border="0" align="middle" alt="left bar" /><img src="./themes/<?= $g['theme']; ?>/images/misc/bar_blue.gif" height="15" name="memwidtha" id="memwidtha" width="<?= $memUsage; ?>" border="0" align="middle" alt="red bar" /><img src="./themes/<?= $g['theme']; ?>/images/misc/bar_gray.gif" height="15" name="memwidthb" id="memwidthb" width="<?= (100 - $memUsage); ?>" border="0" align="middle" alt="gray bar" /><img src="./themes/<?= $g['theme']; ?>/images/misc/bar_right.gif" height="15" width="5" border="0" align="middle" alt="right bar" /> + + <input style="border: 0px solid white;" size="30" name="memusagemeter" id="memusagemeter" value="<?= $memUsage.'%'; ?>" /> + </td> + </tr> <?php if($showswap == true): ?> <tr> - <td width="15%" class="vncellt"><?=gettext("SWAP usage");?></td> + <td width="25%" class="vncellt">SWAP usage</td> <td width="75%" class="listr"> <?php $swapusage = swap_usage(); ?> <img src="./themes/<?= $g['theme']; ?>/images/misc/bar_left.gif" height="15" width="4" border="0" align="middle" alt="left bar" /><img src="./themes/<?= $g['theme']; ?>/images/misc/bar_blue.gif" height="15" width="<?= $swapUsage; ?>" border="0" align="middle" alt="red bar" /><img src="./themes/<?= $g['theme']; ?>/images/misc/bar_gray.gif" height="15" width="<?= (100 - $swapUsage); ?>" border="0" align="middle" alt="gray bar" /><img src="./themes/<?= $g['theme']; ?>/images/misc/bar_right.gif" height="15" width="5" border="0" align="middle" alt="right bar" /> @@ -105,7 +94,7 @@ if(has_temp()): ?> <tr> - <td width='15%' class='vncellt'><?=gettext("Temperature");?></td> + <td width='25%' class='vncellt'>Temperature</td> <td width='75%' class='listr'> <?php $temp = get_temp(); ?> <img src="./themes/<?= $g["theme"]; ?>/images/misc/bar_left.gif" height="15" width="4" border="0" align="middle" alt="left bar" /><img src="./themes/<?= $g["theme"]; ?>/images/misc/bar_blue.gif" height="15" name="tempwidtha" id="tempwidtha" width="<?= $temp; ?>" border="0" align="middle" alt="red bar" /><img src="./themes/<?= $g["theme"]; ?>/images/misc/bar_gray.gif" height="15" name="tempwidthb" id="tempwidthb" width="<?= (100 - $temp); ?>" border="0" align="middle" alt="gray bar" /><img src="./themes/<?= $g["theme"]; ?>/images/misc/bar_right.gif" height="15" width="5" border="0" align="middle" alt="right bar" /> @@ -114,28 +103,14 @@ </td> </tr> <?php endif; ?> - <tr> - <td width="15%" class="vncellt"><?=gettext("Disk usage");?></td> - <td width="75%" class="listr"> - <?php $diskusage = disk_usage(); ?> - <img src="./themes/<?= $g["theme"]; ?>/images/misc/bar_left.gif" height="15" width="4" border="0" align="middle" alt="left bar" /><img src="./themes/<?= $g["theme"]; ?>/images/misc/bar_blue.gif" height="15" name="diskwidtha" id="diskwidtha" width="<?= $diskusage; ?>" border="0" align="middle" alt="red bar" /><img src="./themes/<?= $g["theme"]; ?>/images/misc/bar_gray.gif" height="15" name="diskwidthb" id="diskwidthb" width="<?= (100 - $diskusage); ?>" border="0" align="middle" alt="gray bar" /><img src="./themes/<?= $g["theme"]; ?>/images/misc/bar_right.gif" height="15" width="5" border="0" align="middle" alt="right bar" /> - - <div id="diskusagemeter"><?= $diskusage.'%'; ?></div> - </td> - </tr> <tr> - <td width="15%" class="vncellt"><?=gettext("webConfigurator lock");?></td> - <td width="75%" class="listr"> - <?php - file_exists("{$g['tmp_path']}/webconfigurator.lock") ? $lock = "{$g['tmp_path']}/webconfigurator.lock" : $lock = "none"; - ?> - <?= $lock ?> - <?php if(hasLockAbility($HTTP_SERVER_VARS['AUTH_USER']) && $lock <> "none"): ?> - <input type="button" title="Delete" name="delete_lock" id="delete_lock" class="formbtn" value="Delete" onclick="deleteLock();" /> - <?php else: ?> - <input type="button" title="Creat Lock" name="create_lock" id="create_lock" class="formbtn" value="Create" onclick="createLock();" /> - <?php endif; ?> - </td> - </tr> + <td width="25%" class="vncellt">Disk usage</td> + <td width="75%" class="listr"> + <?php $diskusage = disk_usage(); ?> + <img src="./themes/<?= $g["theme"]; ?>/images/misc/bar_left.gif" height="15" width="4" border="0" align="middle" alt="left bar" /><img src="./themes/<?= $g["theme"]; ?>/images/misc/bar_blue.gif" height="15" width="<?= $diskusage; ?>" border="0" align="middle" alt="red bar" /><img src="./themes/<?= $g["theme"]; ?>/images/misc/bar_gray.gif" height="15" width="<?= (100 - $diskusage); ?>" border="0" align="middle" alt="gray bar" /><img src="./themes/<?= $g["theme"]; ?>/images/misc/bar_right.gif" height="15" width="5" border="0" align="middle" alt="right bar" /> + + <input style="border: 0px solid white;" size="30" name="diskusagemeter" id="diskusagemeter" value="<?= $diskusage.'%'; ?>" /> + </td> + </tr> </tbody> -</table> +</table>
\ No newline at end of file |