diff options
author | Phil Davis <phil.davis@inf.org> | 2015-05-27 16:25:15 +0545 |
---|---|---|
committer | Phil Davis <phil.davis@inf.org> | 2015-05-27 16:25:15 +0545 |
commit | 699737d90221580b18adfbd30abdbd609803cffd (patch) | |
tree | c899d693cdc72c36c9893d8f58d5f9d18217f703 /usr/local/www/diag_dump_states_sources.php | |
parent | 7fd939939c7cfd73ea5e944e05ce28a73cb073e2 (diff) | |
download | pfsense-699737d90221580b18adfbd30abdbd609803cffd.zip pfsense-699737d90221580b18adfbd30abdbd609803cffd.tar.gz |
Code style www diag more bits
Diffstat (limited to 'usr/local/www/diag_dump_states_sources.php')
-rw-r--r-- | usr/local/www/diag_dump_states_sources.php | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/usr/local/www/diag_dump_states_sources.php b/usr/local/www/diag_dump_states_sources.php index e46a316..4cb14c2 100644 --- a/usr/local/www/diag_dump_states_sources.php +++ b/usr/local/www/diag_dump_states_sources.php @@ -62,7 +62,7 @@ if ($_GET['filter']) { exec("/sbin/pfctl -s Sources", $sources); } -$pgtitle = array(gettext("Diagnostics"),gettext("Show Source Tracking")); +$pgtitle = array(gettext("Diagnostics"), gettext("Show Source Tracking")); include("head.inc"); ?> @@ -74,10 +74,10 @@ include("head.inc"); <script type="text/javascript"> //<![CDATA[ function removeSource(srcip, dstip) { - var busy = function(index,icon) { - jQuery(icon).bind("onclick",""); - jQuery(icon).attr('src',jQuery(icon).attr('src').replace("\.gif", "_d.gif")); - jQuery(icon).css("cursor","wait"); + var busy = function(index, icon) { + jQuery(icon).bind("onclick", ""); + jQuery(icon).attr('src', jQuery(icon).attr('src').replace("\.gif", "_d.gif")); + jQuery(icon).css("cursor", "wait"); } jQuery('img[name="i:' + srcip + ":" + dstip + '"]').each(busy); @@ -97,7 +97,7 @@ include("head.inc"); } jQuery('tr[name="r:' + values[1] + ":" + values[2] + '"]').each( - function(index,row) { jQuery(row).fadeOut(1000); } + function(index, row) { jQuery(row).fadeOut(1000); } ); } //]]> @@ -170,19 +170,19 @@ if (count($sources) > 0) { list($all, $srcip, $dstip) = $source_split; ?> - <tr valign='top' name='r:<?php echo "{$srcip}:{$dstip}" ?>'> - <td class='listlr'><?php echo $info;?></td> - <td class='listr'><?php echo $numstates;?></td> - <td class='listr'><?php echo $numconnections;?></td> - <td class='listr'><?php echo $rate;?></td> - <td class='list'> - <img src='/themes/<?php echo $g['theme']; ?>/images/icons/icon_x.gif' height='17' width='17' border='0' - onclick="removeSource(<?php echo "'{$srcip}', '{$dstip}'"; ?>);" style='cursor:pointer;' - name='i:<?php echo "{$srcip}:{$dstip}"; ?>' - title='<?php echo gettext("Remove all source tracking entries from") . " {$srcip} " . gettext("to") . " {$dstip}";?>' alt='' /> - </td> - </tr> - <?php + <tr valign='top' name='r:<?php echo "{$srcip}:{$dstip}" ?>'> + <td class='listlr'><?php echo $info;?></td> + <td class='listr'><?php echo $numstates;?></td> + <td class='listr'><?php echo $numconnections;?></td> + <td class='listr'><?php echo $rate;?></td> + <td class='list'> + <img src='/themes/<?php echo $g['theme']; ?>/images/icons/icon_x.gif' height='17' width='17' border='0' + onclick="removeSource(<?php echo "'{$srcip}', '{$dstip}'"; ?>);" style='cursor:pointer;' + name='i:<?php echo "{$srcip}:{$dstip}"; ?>' + title='<?php echo gettext("Remove all source tracking entries from") . " {$srcip} " . gettext("to") . " {$dstip}";?>' alt='' /> + </td> + </tr> +<?php $row++; } } else { @@ -193,7 +193,7 @@ if (count($sources) > 0) { </tr>"; } ?> - </tbody> + </tbody> </table> </td> </tr> @@ -201,9 +201,9 @@ if (count($sources) > 0) { <!-- End of tab content --> - </div> - </td> - </tr> + </div> + </td> + </tr> </table> <?php require("fend.inc"); ?> |