fixing lits of bits of html removing borders, adding submit class to buttons

git-svn-id: http://www.observium.org/svn/observer/trunk@778 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2010-02-07 14:17:02 +00:00
parent e9ef8db683
commit 78672ecf4c
18 changed files with 33 additions and 113 deletions

View File

@@ -1,6 +1,7 @@
.submit {
background-image:url('/images/submitbg.png');
background-position:0 100%;
border-color:#B2B2B2 #525252 #525252 #B2B2B2;
}
input,select {
padding:2px 5px;
@@ -10,7 +11,7 @@ input,select {
border:1px solid #B2B2B2
bbackground-color:cornsilk;
border:1px solid #B2B2B2;
bborder-color:#B2B2B2 #000000 #000000 #B2B2B2;
border-color:#B2B2B2 #d2d2d2 #d2d2d2 #B2B2B2;
border-style:solid;
border-width:1px;
font-family:'Trebuchet MS','Lucida Grande',Verdana,Arial,sans-serif;

View File

@@ -52,7 +52,7 @@ echo("<p class='errorbox'><b>Error:</b> A hostname is required.</p>");
</td>
</tr>
<tr>
<td></td><td><input type="submit" name="Submit" value="Add Host"></td>
<td></td><td><input type="submit" class="submit" name="Submit" value="Add Host"></td>
</tr>
</table>
</div>

View File

@@ -46,7 +46,7 @@ print_optionbar_start('40');
</select>
</td>
<td>
<input type=submit value=Search>
<input type=submit class=submit value=Search>
</td>
<td width='80' style='font-weight:bold; font-size: 12px;'>
<a href='bills/add/'><img src="images/16/add.png" align=absmiddle alt="Add"> Add Bill</a>

View File

@@ -30,7 +30,7 @@ while($data = mysql_fetch_array($query)) {
?>
</select>
<input type="submit" name="Submit" value="Delete Host">
<input type="submit" class="submit" name="Submit" value="Delete Host">
</p>
</form>

View File

@@ -1,15 +1,6 @@
<?php // vim:fenc=utf-8:filetype=php:ts=4
<?php
echo("<div style='margin:auto; text-align: center; margin-top: 0px; margin-bottom: 10px;'>
<b class='rounded'>
<b class='rounded1'></b>
<b class='rounded2'></b>
<b class='rounded3'></b>
<b class='rounded4'></b>
<b class='rounded5'></b></b>
<div class='roundedfg' style='padding: 0px 5px;'>
<div style='margin: auto; text-align: left; padding: 2px 5px; padding-left: 11px; clear: both; display:block; height:20px;'>
");
print_optionbar_start();
unset ($sep);
$query = mysql_query("SELECT `entSensorType` FROM `entPhysical` WHERE device_id = '".$device['device_id']."' AND entSensorType != '' AND entSensorType NOT LIKE 'No%' GROUP BY `entSensorType` ORDER BY `entSensorType`");
@@ -23,16 +14,8 @@ echo("<div style='margin:auto; text-align: center; margin-top: 0px; margin-botto
$sep = ' | ';
}
unset ($sep);
echo("</div>
</div>
<b class='rounded'>
<b class='rounded5'></b>
<b class='rounded4'></b>
<b class='rounded3'></b>
<b class='rounded2'></b>
<b class='rounded1'></b></b>
</div>
");
print_optionbar_end();
$query = mysql_query("SELECT * FROM `entPhysical` WHERE device_id = '".$device['device_id']."' and entSensorType = '".$_GET['opta']."' ORDER BY `entPhysicalName`");
while($data = mysql_fetch_array($query)) {

View File

@@ -1,4 +1,4 @@
<?php // vim:fenc=utf-8:filetype=php:ts=4
<?php
$temp = mysql_result(mysql_query("select count(*) from temperature WHERE temp_host = '" . $device['device_id'] . "'"), 0);
$storage = mysql_result(mysql_query("select count(*) from storage WHERE host_id = '" . $device['device_id'] . "'"), 0);
@@ -23,19 +23,6 @@ $type_text['storage'] = "Disk Usage";
$type_text['hrprocessors'] = "Processor Usage";
/*
echo("<div style='margin:auto; text-align: center; margin-top: 0px; margin-bottom: 10px;'>
<b class='rounded'>
<b class='rounded1'></b>
<b class='rounded2'></b>
<b class='rounded3'></b>
<b class='rounded4'></b>
<b class='rounded5'></b></b>
<div class='roundedfg' style='padding: 0px 5px;'>
<div style='margin: auto; text-align: left; padding: 2px 5px; padding-left: 11px; clear: both; display:block; height:20px;'>
");
*/
print_optionbar_start();
unset ($sep);

View File

@@ -22,7 +22,7 @@ print_optionbar_start('25');
?>
</select>
</label>
<input type=submit value=Search>
<input class=submit type=submit value=Search>
</form>
<?php

View File

@@ -1,31 +1,16 @@
<?php
echo("
<div style='margin:auto; text-align: center; margin-top: 0px; margin-bottom: 0px;'>
<b class='rounded'>
<b class='rounded1'></b>
<b class='rounded2'></b>
<b class='rounded3'></b>
<b class='rounded4'></b>
<b class='rounded5'></b></b>
<div class='roundedfg' style='padding: 0px 5px;'>
<div style='margin: auto; text-align: left; padding: 2px 5px; padding-left: 11px; clear: both; display:block; height:20px;'>
print_optionbar_start();
echo("<div style='margin: auto; text-align: left; padding: 2px 5px; padding-left: 11px; clear: both; display:block; height:20px;'>
<a href='".$config['base_url']."/device/" . $device['device_id'] . "/vlans/'>Basic</a> | Graphs :
<a href='".$config['base_url']."/device/" . $device['device_id'] . "/vlans/bits/'>Bits</a> |
<a href='".$config['base_url']."/device/" . $device['device_id'] . "/vlans/pkts/'>Packets</a> |
<a href='".$config['base_url']."/device/" . $device['device_id'] . "/vlans/nupkts/'>NU Packets</a> |
<a href='".$config['base_url']."/device/" . $device['device_id'] . "/vlans/errors/'>Errors</a>
</div>
</div>
<b class='rounded'>
<b class='rounded5'></b>
<b class='rounded4'></b>
<b class='rounded3'></b>
<b class='rounded2'></b>
<b class='rounded1'></b></b>
</div>
<a href='".$config['base_url']."/device/" . $device['device_id'] . "/vlans/errors/'>Errors</a> ");
print_optionbar_end();
");
echo("<table border=0 cellspacing=0 cellpadding=5 width=100%>");
$i = "1";

View File

@@ -88,7 +88,7 @@
}
?>
</select>
<input class="submit" type="submit" value="Search">
<input class="submit" type="submit" class="submit" value="Search">
</td>
<td width="10"></td>
</tr>

View File

@@ -67,7 +67,7 @@
Deleted <input type=checkbox id="deleted" name="deleted" value=1 <?php if($_POST['deleted']) { echo("checked"); } ?> ></input>
</td>
<td style="text-align: right;">
<input style="align:right;" type=submit value=Search></div>
<input style="align:right;" type=submit class=submit value=Search></div>
</td>
</form>
</tr>

View File

@@ -39,7 +39,7 @@
</select>
</label>
<input type="text" size=24 name="device_string" id="device_string" value="<?php echo($_POST['device_string']); ?>" />
<input style type=submit value=Search>
<input style type=submit class=submit value=Search>
<?php

View File

@@ -1,12 +1,4 @@
<div style='margin:auto; text-align: center; margin-top: 0px; margin-bottom: 10px;'>
<b class='rounded'>
<b class='rounded1'></b>
<b class='rounded2'></b>
<b class='rounded3'></b>
<b class='rounded4'></b>
<b class='rounded5'></b></b>
<div class='roundedfg' style='padding: 0px 5px;'>
<div style='margin: auto; text-align: left; padding: 5px 5px; padding-left: 10px; clear: both; display:block;'>
<?php print_optionbar_start(28); ?>
<table cellpadding=0 cellspacing=0 class=devicetable width=100%>
<tr>
@@ -35,25 +27,16 @@
</td>
<td width=400>
<input type="text" name="address" id="address" size=40 value="<?php echo($_POST['address']); ?>" />
<input style="align:right;" type=submit value=Search></div>
<input style="align:right;" type=submit class=submit value=Search></div>
</td>
</form>
</tr>
</table>
</div>
</div>
<b class='rounded'>
<b class='rounded5'></b>
<b class='rounded4'></b>
<b class='rounded3'></b>
<b class='rounded2'></b>
<b class='rounded1'></b></b>
</div>
<?php
print_optionbar_end();
echo("<table width=100% cellspacing=0 cellpadding=2>");
if($_POST['device_id']) { $where .= " AND I.device_id = '".$_POST['device_id']."'"; }

View File

@@ -1,12 +1,5 @@
<div style='margin:auto; text-align: center; margin-top: 0px; margin-bottom: 10px;'>
<b class='rounded'>
<b class='rounded1'></b>
<b class='rounded2'></b>
<b class='rounded3'></b>
<b class='rounded4'></b>
<b class='rounded5'></b></b>
<div class='roundedfg' style='padding: 0px 5px;'>
<div style='margin: auto; text-align: left; padding: 5px 5px; padding-left: 10px; clear: both; display:block;'>
<?php print_optionbar_start(28); ?>
<table cellpadding=0 cellspacing=0 class=devicetable width=100%>
<tr>
<form method='post' action=''>
@@ -34,22 +27,14 @@
</td>
<td width=400>
<input type="text" name="address" id="address" size=40 value="<?php echo($_POST['address']); ?>" />
<input style="align:right;" type=submit value=Search></div>
<input style="align:right;" type=submit class=submit value=Search></div>
</td>
</form>
</tr>
</table>
</div>
</div>
<b class='rounded'>
<b class='rounded5'></b>
<b class='rounded4'></b>
<b class='rounded3'></b>
<b class='rounded2'></b>
<b class='rounded1'></b></b>
</div>
<?php print_optionbar_end(); ?>
<?php

View File

@@ -21,7 +21,7 @@
<font size="2">Remember Me</font></td>
</tr>
<tr>
<td colspan="2" align="right"><input name="submit" type="submit" value="Login" /></td>
<td colspan="2" align="right"><input class="submit" name="submit" type="submit" value="Login" /></td>
</tr>
<?php
if($auth_message) {
@@ -46,4 +46,4 @@ if($config['login_message']) {
<!--
document.logonform.username.focus();
// -->
</script>
</script>

View File

@@ -19,7 +19,7 @@ echo("<form method='post' action='".$config['baseurl']."/preferences/'><input ty
<tr><td>Old Password</td><td><input type=password name=old_pass autocomplete='off'></input></td></tr>
<tr><td>New Password</td><td><input type=password name=new_pass autocomplete='off'></input></td></tr>
<tr><td>New Password</td><td><input type=password name=new_pass2 autocomplete='off'></input></td></tr>
<tr><td></td><td align=right><input type=submit></td></tr></table></form>");
<tr><td></td><td align=right><input type=submit class=submit></td></tr></table></form>");
echo("</div>");

View File

@@ -37,7 +37,7 @@
</select>
</label>
<input type=submit value=Search>
<input type=submit class=submit value=Search>
</form>

View File

@@ -116,6 +116,7 @@
## LMSensors Temperatures
if($device['os'] == "linux") {
$oids = shell_exec($config['snmpwalk'] . " -m LM-SENSORS-MIB -$snmpver -CI -Osqn -c $community $hostname:$port lmTempSensorsDevice");
if($debug) { echo($oids."\n"); }
$oids = trim($oids);
if ($oids) echo("LM-SENSORS ");
foreach(explode("\n", $oids) as $data) {

View File

@@ -22,13 +22,10 @@ include("includes/syslog.php");
#mysql_query("DELETE FROM `syslog` WHERE `processed` = '0' AND `msg` LIKE '%PM-3-INVALID_BRIDGE_PORT%'");
#mysql_query("DELETE FROM `syslog` WHERE `processed` = '0' AND `msg` LIKE '%RHWatchdog%'");
#mysql_query("DELETE FROM `syslog` WHERE `processed` = '0' AND `msg` LIKE '%Hardware Monitoring%'");
#mysql_query("DELETE FROM `syslog` WHERE `program` LIKE 'SNMP-3-AUTHFAIL'");
#mysql_query("DELETE FROM `syslog` WHERE `program` LIKE 'SW_MATM-4-MACFLAP_NOTIF'");
#mysql_query("DELETE FROM `syslog` WHERE `priority` = 'debug'");
## Delete all the old old old syslogs (as per config.php variable)
mysql_query("DELETE FROM `syslog` WHERE `datetime` < DATE_SUB(NOW(), INTERVAL ".$config['syslog_age'].")");
@@ -36,8 +33,6 @@ mysql_query("DELETE FROM `syslog` WHERE `datetime` < DATE_SUB(NOW(), INTERVAL ".
$q = mysql_query("SELECT * FROM `syslog` where `processed` = '0'");
while($entry = mysql_fetch_array($q)){
print_r($entry);
process_syslog($entry, 1);