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

www: css display format changes

New format changes
	- New CSS descriptors
	- table format change for endpoint, firmware, load, management

		and vlan php files
parent 2b305a41
......@@ -242,7 +242,7 @@ a:hover {
table.altrowstable {
font-family: verdana,arial,sans-serif;
font-size: 10px;
font-size: 11px;
color: #333333;
border-width: 1px;
border-color: #a9c6c9;
......@@ -250,13 +250,33 @@ table.altrowstable {
}
table.altrowstable th {
border-width: 1px;
padding: 8px;
padding: 2px;
border-style: solid;
border-color: #a9c6c9;
}
table.altrowstable td {
border-width: 1px;
padding: 8px;
padding: 4px;
border-style: solid;
border-color: #a9c6c9;
}
table.altrowstabledash {
font-family: verdana,arial,sans-serif;
font-size: 11px;
color: #333333;
border-width: 1px;
border-color: #a9c6c9;
border-collapse: collapse;
}
table.altrowstabledash th {
border-width: 1px;
padding: 4px;
border-style: solid;
border-color: #a9c6c9;
}
table.altrowstabledash td {
border-width: 1px;
padding: 4px;
border-style: solid;
border-color: #a9c6c9;
}
......
......@@ -26,7 +26,7 @@
//$modes = parse_wrsw_hal_file();
$modes = parse_ppsi_conf_file();
echo '<table align=center border="1" class="altrowstable" id="alternatecolor">';
echo '<table align=center border="1" class="altrowstable" id="alternatecolor" width="50%">';
//echo '<tr><th><center>Endpoint</center></th><th><center>Mode</center></th></tr>';
for($i = 0; $i < 9; $i++){
echo '<tr>';
......
......@@ -24,7 +24,7 @@
<table border="0" align="center">
<tr>
<form method="post">
<th>Change PHP File Size Upload: (<?php wrs_php_filesize();?>M)<INPUT type="text" name="size" > </th>
<th>New PHP filesize: (<?php wrs_php_filesize();?>M) <INPUT type="text" name="size" ></th>
<input type="hidden" name="cmd" value="size">
<th><input type="submit" value="Change" class="btn"></th>
</form>
......
......@@ -101,7 +101,7 @@ function wrs_main_info(){
if(empty($_SESSION["utc"])) $_SESSION["utc"]="UTC";
echo "<table border='1' align='left' class='altrowstable' id='alternatecolor'>";
echo "<table border='1' align='center' class='altrowstabledash' id='alternatecolor'>";
echo '<tr class="sub"><td> <b><center>Switch Info </center></b></td></tr>';
$str = shell_exec("uname -n");
......
......@@ -41,10 +41,16 @@
<br><br><br><center>Max. filesize is now <?php echo shell_exec("cat /etc/php.ini | grep upload_max_filesize | awk '{print $3}'");
?></center>
<table border="0" align="center">
<tr>
<form align="center" method="post">
Change PHP File Size Upload: <INPUT type="text" name="size" >
<input type="submit" value="Change" class="btn">
<th>New PHP Filesize: </th><th><INPUT type="text" name="size" > </th>
<th><input type="submit" value="Change" class="btn"></th>
</tr>
</form>
</table>
<br><br><br><hr>
*Note: After loading a FPGA or lm32 binary the switch will reboot.
......
......@@ -22,30 +22,32 @@
<?php $_SESSION['advance']=""; ?>
<table border="0" align="center">
<tr>
<center>
<form method="post">
<th>Switch Mode: (<?php $str = check_switch_mode(); echo $str; ?>)</th>
<input type="hidden" name="cmd" value="change">
<th><input type="submit" value="Change Mode" class="btn"></th>
</form>
</tr>
<tr>
<form method="post">
<th>Reboot system: </th>
<input type="hidden" name="cmd" value="reboot">
<th><input type="submit" value="Reboot switch" class="btn"> </th>
</form>
</center>
</tr>
</table>
<table border="0" align="center">
<tr>
<form method="post">
<th><center>Switch Mode: (<?php $str = check_switch_mode(); echo $str; ?>) </center><input type="hidden" name="cmd" value="change"></th>
<th><input type="submit" value="Change Mode" class="btn"></th>
</form>
</tr>
<tr>
<form method="post">
<th><center>Reboot system: </center><input type="hidden" name="cmd" value="reboot"></th>
<th><input type="submit" value="Reboot switch" class="btn"></th>
</form>
</tr>
</tr><th> </th><th> </th><tr></tr><th> </th><th> </th><tr>
</tr><th> </th><th> </th><tr></tr><th> </th><th> </th><tr>
<hr>
<tr>
<form method="post">
<th>NTP Server: <INPUT type="text" name="ntpip" value="<?php $str = check_ntp_server(); echo $str; ?>"> </th>
<input type="hidden" name="cmd" value="ntp">
<th><select name="utc" >
<th><center>NTP Server:</center></th><th><INPUT type="text" name="ntpip" value="<?php $str = check_ntp_server(); echo $str; ?>"> </th>
<th><input type="hidden" name="cmd" value="ntp">
<select name="utc" >
<?php
$selected_utc=$_SESSION['utc'];
$selected_utc=str_replace("UTC","",$selected_utc);
......@@ -81,7 +83,7 @@
<hr>
<br><br>
<center><p><strong>Load configuration files</strong></p></center>
<table border="1" align="center" class='altrowstable' id='alternatecolor'>
<table border="1" align="center" class='altrowstable' id='alternatecolor' width="80%">
<tr>
<FORM method="POST" ENCTYPE="multipart/form-data">
<th>PPSi Config </th>
......@@ -126,11 +128,13 @@
</table>
<br><br><br><br>
<FORM align="right" method="POST" ENCTYPE="multipart/form-data">
<center>
<FORM align="center" method="POST" ENCTYPE="multipart/form-data">
<th>Backup Configuration files to your computer </th>
<input type="hidden" name="cmd" value="Backup">
<th><INPUT type=submit value="Backup" class="btn" ></th>
</form>
</center>
<?php
wrs_change_wrfs("rw");
......
......@@ -10,8 +10,8 @@ echo '</ul><br><hr>';
echo '<div class="login">
<h3>Login</h3>
<form method="post" action="login.php">
<p><input type="text" name="login" value="" placeholder="Username"></p>
<p><input type="password" name="password" value="" placeholder="Password"></p>
<input type="text" name="login" value="" placeholder="Username" size="15">
<input type="password" name="password" value="" placeholder="Password" size="15">
<!--<p class="remember_me">
<label>
<input type="checkbox" name="remember_me" id="remember_me">
......
......@@ -28,7 +28,7 @@
$vlans = shell_exec("cat ".$tmp_vlan_file." | sed -n '/ /s/ \+/ /gp'");
$vlans = explode("\n", $vlans);
echo '<table align=center border="1" class="altrowstable" id="alternatecolor">';
echo '<table align=center border="1" class="altrowstable" id="alternatecolor" width="100%">';
echo '<tr align=center><th>VID</th><th>FID</th><th>Ports</th><th>DROP</th><th>PRIO</th><th>Action</th></tr>';
$counter = 0;
foreach($vlans as $line){
......
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