summaryrefslogtreecommitdiffstats
path: root/usr/local/www/classes
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2015-04-14 14:10:58 +0545
committerPhil Davis <phil.davis@inf.org>2015-04-14 14:10:58 +0545
commitf3ec04877ba7ef9aa4e0c43d34cec0f58a53891f (patch)
tree05bf5b60f03bcba80cdfbe6de0394b09fab8e14e /usr/local/www/classes
parent460610b2076ed39fd3f0d36a5c758c2bc9afefb0 (diff)
downloadpfsense-f3ec04877ba7ef9aa4e0c43d34cec0f58a53891f.zip
pfsense-f3ec04877ba7ef9aa4e0c43d34cec0f58a53891f.tar.gz
Code style for small things in usr-local-www
Diffstat (limited to 'usr/local/www/classes')
-rw-r--r--usr/local/www/classes/maintable.inc64
1 files changed, 34 insertions, 30 deletions
diff --git a/usr/local/www/classes/maintable.inc b/usr/local/www/classes/maintable.inc
index 49d614e..1478de8 100644
--- a/usr/local/www/classes/maintable.inc
+++ b/usr/local/www/classes/maintable.inc
@@ -1,31 +1,31 @@
<?php
/* $Id$ */
/*
- part of pfSense (https://www.pfsense.org/)
-
- Copyright (C) 2008 Bill Marquette <bill.marquette@gmail.com>.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without
- modification, are permitted provided that the following conditions are met:
-
- 1. Redistributions of source code must retain the above copyright notice,
- this list of conditions and the following disclaimer.
-
- 2. Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions and the following disclaimer in the
- documentation and/or other materials provided with the distribution.
-
- THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
- INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
- AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
- OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
+ part of pfSense (https://www.pfsense.org/)
+
+ Copyright (C) 2008 Bill Marquette <bill.marquette@gmail.com>.
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are met:
+
+ 1. Redistributions of source code must retain the above copyright notice,
+ this list of conditions and the following disclaimer.
+
+ 2. Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+
+ THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
+ INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
+ AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+ AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
+ OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ POSSIBILITY OF SUCH DAMAGE.
*/
/*
@@ -52,7 +52,7 @@ class MainTable {
}
function add_content_array($rows) {
- foreach($rows as $row) {
+ foreach ($rows as $row) {
$this->content[] = $row;
$this->rows++;
}
@@ -160,16 +160,20 @@ class MainTable {
private function display_buttons($row) {
echo " <table border=\"0\" cellspacing=\"0\" cellpadding=\"1\" summary=\"display buttons\">\n";
echo " <tr>\n";
- if ($this->buttons['move'])
+ if ($this->buttons['move']) {
echo $this->display_button('move', $row);
- if ($this->buttons['edit'])
+ }
+ if ($this->buttons['edit']) {
echo $this->display_button('edit', $row);
+ }
echo " </tr>\n";
echo " <tr>\n";
- if ($this->buttons['del'])
+ if ($this->buttons['del']) {
echo $this->display_button('del', $row);
- if ($this->buttons['dup'])
+ }
+ if ($this->buttons['dup']) {
echo $this->display_button('dup', $row);
+ }
echo " </tr>\n";
echo " </table>\n";
}
OpenPOWER on IntegriCloud