Revision: 6242
http://ipcop.svn.sourceforge.net/ipcop/?rev=6242&view=rev
Author: eoberlander
Date: 2012-01-19 13:38:59 +0000 (Thu, 19 Jan 2012)
Log Message:
-----------
Fix table row colours, and tweak columns widths.
Modified Paths:
--------------
ipcop/trunk/html/cgi-bin/urlfilter.cgi
Modified: ipcop/trunk/html/cgi-bin/urlfilter.cgi
===================================================================
--- ipcop/trunk/html/cgi-bin/urlfilter.cgi 2012-01-19 08:19:18 UTC (rev
6241)
+++ ipcop/trunk/html/cgi-bin/urlfilter.cgi 2012-01-19 13:38:59 UTC (rev
6242)
@@ -1745,10 +1745,10 @@
foreach $line (@repositoryfiles) {
$id++;
if ($id % 2) {
- print "<tr bgcolor='$Header::table1colour'>\n";
+ print "<tr class='table1colour'>\n";
}
else {
- print "<tr bgcolor='$Header::table2colour'>\n";
+ print "<tr class='table2colour'>\n";
}
$filesize = (-s "$repository/$line");
1 while $filesize =~ s/^(-?\d+)(\d{3})/$1.$2/;
@@ -2037,11 +2037,11 @@
print <<END
<table width='100%'>
<tr>
- <td width='5%' class='boldbase'
align='center'><b>$Lang::tr{'urlfilter constraint definition'}</b></td>
- <td width='10%' class='boldbase'
align='center'><b>$Lang::tr{'urlfilter time space'}</b></td>
- <td width='15%' class='boldbase'
align='center'><b>$Lang::tr{'source'}</b></td>
- <td width='5%' class='boldbase'
align='center'><b>$Lang::tr{'destination'}</b></td>
- <td width='10%' class='boldbase' colspan='5'
align='center'> </td>
+ <td width='25%' class='boldbase'
align='center'><b>$Lang::tr{'urlfilter constraint definition'}</b></td>
+ <td width='25%' class='boldbase'
align='center'><b>$Lang::tr{'urlfilter time space'}</b></td>
+ <td width='25%' class='boldbase'
align='center'><b>$Lang::tr{'source'}</b></td>
+ <td width='25%' class='boldbase'
align='center'><b>$Lang::tr{'destination'}</b></td>
+ <td width='1%' class='boldbase' colspan='5'
align='center'> </td>
</tr>
END
;
@@ -2058,13 +2058,13 @@
chomp($line);
@temp = split(/\,/, $line);
if ($tcsettings{'ACTION'} eq $Lang::tr{'edit'} && $tcsettings{'ID'} eq
$id) {
- print "<tr bgcolor='$Header::colouryellow'>\n";
+ print "<tr class='selectcolour'>\n";
}
elsif ($id % 2) {
- print "<tr bgcolor='$Header::table1colour'>\n";
+ print "<tr class='table1colour'>\n";
}
else {
- print "<tr bgcolor='$Header::table2colour'>\n";
+ print "<tr class='table2colour'>\n";
}
if ($temp[0] eq 'within') {
@@ -2198,13 +2198,13 @@
END
;
if ($tcsettings{'ACTION'} eq $Lang::tr{'edit'} && $tcsettings{'ID'} eq
$id) {
- print "<tr bgcolor='$Header::colouryellow'>\n";
+ print "<tr class='selectcolour'>\n";
}
elsif ($id % 2) {
- print "<tr bgcolor='$Header::table1colour'>\n";
+ print "<tr class='table1colour'>\n";
}
else {
- print "<tr bgcolor='$Header::table2colour'>\n";
+ print "<tr class='table2colour'>\n";
}
print <<END
<td align='center' colspan='4'>$temp[16]
@@ -2367,11 +2367,11 @@
print <<END
<table width='100%'>
<tr>
- <td width='15%' class='boldbase'
align='center'><b><nobr>$Lang::tr{'urlfilter time quota'}</nobr></b></td>
- <td width='15%' class='boldbase'
align='center'><b><nobr>$Lang::tr{'urlfilter activity
detection'}</nobr></b></td>
- <td width='10%' class='boldbase'
align='center'><b>$Lang::tr{'urlfilter renewal'}</b></td>
+ <td width='25%' class='boldbase'
align='center'><b><nobr>$Lang::tr{'urlfilter time quota'}</nobr></b></td>
+ <td width='25%' class='boldbase'
align='center'><b><nobr>$Lang::tr{'urlfilter activity
detection'}</nobr></b></td>
+ <td width='25%' class='boldbase'
align='center'><b>$Lang::tr{'urlfilter renewal'}</b></td>
<td class='boldbase' align='center'><b>$Lang::tr{'urlfilter
assigned users'}</b></td>
- <td width='20%' class='boldbase' colspan='4'
align='center'> </td>
+ <td width='1%' class='boldbase' colspan='4'
align='center'> </td>
</tr>
END
;
@@ -2389,13 +2389,13 @@
@temp = split(/\,/, $line);
if ($uqsettings{'ACTION'} eq $Lang::tr{'edit'} && $uqsettings{'ID'} eq
$id) {
- print "<tr bgcolor='$Header::colouryellow'>\n";
+ print "<tr class='selectcolour'>\n";
}
elsif ($id % 2) {
- print "<tr bgcolor='$Header::table1colour'>\n";
+ print "<tr class='table1colour'>\n";
}
else {
- print "<tr bgcolor='$Header::table2colour'>\n";
+ print "<tr class='table2colour'>\n";
}
if ($temp[4] eq 'on') {
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Ipcop-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ipcop-svn