Commit b74126cf authored by José Luis  Gutiérrez's avatar José Luis Gutiérrez Committed by Alessandro Rubini

www: fixing css style for sfpcalibration endpointcalibration and management

New CSS style for sfpcalibration.php and endpointcalibration.php and
management.php to make it fit in the layout for both Firefox and Chrome
for both Windows and Linux.
parent c3dd8042
......@@ -282,7 +282,7 @@ table.altrowstable td {
table.altrowstablesmall {
font-family: verdana,arial,sans-serif;
font-size: 11px;
font-size: 12px;
color: #333333;
border-width: 1px;
border-color: #a9c6c9;
......@@ -297,10 +297,15 @@ table.altrowstablesmall th {
}
table.altrowstablesmall td {
border-width: 1px;
padding: 4px;
padding: 1px;
border-style: solid;
border-color: #a9c6c9;
font-size: 10px;
width: 100%;
}
table.altrowstablesmall input {
width: 70px;
font-size: 100%;
}
table.altrowstabledash {
......
......@@ -30,9 +30,9 @@
target='_blank'> here </a>*<hr><br>";
$formatID = "alternatecolor";
$class = "altrowstable firstcol";
$class = "altrowstablesmall firstcol";
$infoname = "Endpoint Configuration";
$size = "6";
//$size = "6";
$header = array ("WR port","Protocol","Tx","Rx","Mode","Fiber");
$matrix = array ("key=CONFIG_PORT00_PARAMS,".$_SESSION["KCONFIG"]["CONFIG_PORT00_PARAMS"],
......@@ -64,7 +64,7 @@
}
$formatID = "alternatecolor1";
$class = "altrowstable firstcol";
$class = "altrowstablesmall firstcol";
$infoname = "Available Fibers";
$size = "10";
......
......@@ -53,7 +53,7 @@
<hr>
<br><br>
<center><p><strong>Load configuration files</strong></p></center>
<table class='altrowstable' id='alternatecolor' width="100%">
<table class='altrowstable' id='alternatecolor'>
<tr>
<FORM method="POST" ENCTYPE="multipart/form-data" onsubmit="return confirm('Are you sure you want to upload a dotconfig file? \nThis could result in the malfunction of the switch.');">
<td ><INPUT type=file name="kconfig" ></td>
......@@ -62,7 +62,7 @@
</tr>
<tr>
<FORM method="POST" onsubmit="return confirm('Are you sure you want to set an URL for dotconfig? \nThis could result in the malfunction of the switch.');">
<td><INPUT type=text name="dotconfigURL" size="44%" VALUE= <?php echo $_SESSION['KCONFIG']['CONFIG_DOTCONF_URL'];?>></td>
<td align="center"><INPUT type=text name="dotconfigURL" size="35%" VALUE= <?php echo $_SESSION['KCONFIG']['CONFIG_DOTCONF_URL'];?>></td>
<input type="hidden" name="cmd" value="kconfigURL">
<td><INPUT type=submit value="Load from URL" class="btn" ></td>
</form>
......@@ -72,11 +72,13 @@
</center>
<br>
<FORM align="center" method="POST" ENCTYPE="multipart/form-data">
Backup configuration file to your computer</center>
<center>
<FORM method="POST" ENCTYPE="multipart/form-data">
Backup configuration file to your computer
<input type="hidden" name="cmd" value="Backup">
<INPUT type=submit value="Backup" class="btn" >
</form>
</center>
<div id="bottommsg">
<hr>
......
......@@ -28,8 +28,6 @@
$formatID = "alternatecolor";
$class = "altrowstablesmall firstcol";
$infoname = "SFP Calibration";
$size = "13";
$font_size = "10px";
$vn = 0;
$vs = 0;
$counter = 0;
......@@ -91,28 +89,28 @@
$sfp_number=$columns[1][11];
}
if($columns[0]=="vn"){
echo '<td align="center"><INPUT style="font-size: '.$font_size.';" size="'.$size.'" type="text" value="'.$columns[1].'" name="vn'.$i.'" ></td>';
echo '<td align="center"><INPUT type="text" value="'.$columns[1].'" name="vn'.$i.'" ></td>';
$vn=1;
}
if($columns[0]=="vs"){
if(!$vn) echo '<td align="center"><INPUT style="font-size: '.$font_size.';" size="'.$size.'" type="text" value="" name="vn'.$i.'" ></td>';
echo '<td align="center"><INPUT style="font-size: '.$font_size.';" size="'.$size.'" type="text" value="'.$columns[1].'" name="vs'.$i.'" ></td>';
if(!$vn) echo '<td align="center"><INPUT type="text" value="" name="vn'.$i.'" ></td>';
echo '<td align="center"><INPUT type="text" value="'.$columns[1].'" name="vs'.$i.'" ></td>';
$vs=1;
$vn=1;
}
if($columns[0]=="pn"){
if (!$vn) echo '<td align="center"><INPUT style="font-size: '.$font_size.';" size="'.$size.'" type="text" value="" name="vn'.$i.'" ></td>';
if (!$vs) echo '<td align="center"><INPUT style="font-size: '.$font_size.';" size="'.$size.'" type="text" value="" name="vs'.$i.'" ></td>';
echo '<td align="center"><INPUT style="font-size: '.$font_size.';" size="'.$size.'" type="text" value="'.$columns[1].'" name="pn'.$i.'" ></td>';
if (!$vn) echo '<td align="center"><INPUT type="text" value="" name="vn'.$i.'" ></td>';
if (!$vs) echo '<td align="center"><INPUT type="text" value="" name="vs'.$i.'" ></td>';
echo '<td align="center"><INPUT type="text" value="'.$columns[1].'" name="pn'.$i.'" ></td>';
}
if($columns[0]=="tx"){
echo '<td align="center"><INPUT style="font-size: '.$font_size.';" size="'.($size/3).'" type="text" value="'.$columns[1].'" name="tx'.$i.'" ></td>';
echo '<td align="center"><INPUT type="text" value="'.$columns[1].'" name="tx'.$i.'" ></td>';
}
if($columns[0]=="rx"){
echo '<td align="center"><INPUT style="font-size: '.$font_size.';" size="'.($size/3).'" type="text" value="'.$columns[1].'" name="rx'.$i.'" ></td>';
echo '<td align="center"><INPUT type="text" value="'.$columns[1].'" name="rx'.$i.'" ></td>';
}
if($columns[0]=="wl_txrx" ){
echo '<td align="center"><INPUT style="font-size: '.$font_size.';" size="'.($size-4).'" type="text" value="'.$columns[1].'" name="wl_txrx'.$i.'" ></td>';
echo '<td align="center"><INPUT type="text" value="'.$columns[1].'" name="wl_txrx'.$i.'" ></td>';
}
}
echo '<td align="center"><a href="deletesfp.php?id='.$sfp_number.'"><img src="img/delete.png" title="Delete SFP"></a></td>';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment