From 909f991be86d703902b581bfe56f9da19ed16280 Mon Sep 17 00:00:00 2001 From: Ermal Date: Wed, 18 Aug 2010 21:54:41 +0000 Subject: Whitespace changes. --- .../wizards/traffic_shaper_wizard_multi_lan.inc | 83 +++++++++++----------- 1 file changed, 41 insertions(+), 42 deletions(-) diff --git a/usr/local/www/wizards/traffic_shaper_wizard_multi_lan.inc b/usr/local/www/wizards/traffic_shaper_wizard_multi_lan.inc index c8ec0f1..5474011 100644 --- a/usr/local/www/wizards/traffic_shaper_wizard_multi_lan.inc +++ b/usr/local/www/wizards/traffic_shaper_wizard_multi_lan.inc @@ -171,53 +171,52 @@ function step2_stepbeforeformdisplay() { $field['type'] = "listtopic"; $fields[] = $field; - $field = array(); - $field['name'] = "conn{$i}interface"; - $field['displayname'] = "LAN interface"; - $field['type'] = "select"; - $field['typehint'] = "Interface of this connection."; - $field['options']['option'] = array(); - $ifselect = 0; - foreach ($iflist as $ifname => $ifdescr) { - if ($ifselect > 0 && $ifselect == ($i + 1)) - $field['value'] = $ifname; - $opts = array(); - $opts['displayname'] = $ifdescr; - $opts['name'] = $ifname; - $opts['value'] = $ifname; - $field['options']['option'][] = $opts; - $ifselect++; - } - $field['bindstofield'] = "ezshaper->step2->conn{$i}interface"; - $fields[] = $field; - $field = array(); - $field['name'] = "conn{$i}downloadscheduler"; - $field['displayname'] = "LAN Scheduler"; - $field['type'] = "select"; - $field['typehint'] = "Queueing discipline to apply on the upload of this connection."; - $field['options']['option'] = array(); - $opts = array(); - $opts['name'] = "HFSC"; - $opts['value'] = "HFSC"; - $field['options']['option'][] = $opts; - $opts = array(); - $opts['name'] = "CBQ"; - $opts['value'] = "CBQ"; - $field['options']['option'][] = $opts; - $opts = array(); - $opts['name'] = "PRIQ"; - $opts['value'] = "PRIQ"; - $field['options']['option'][] = $opts; - $field['bindstofield'] = "ezshaper->step2->conn{$i}downloadscheduler"; - $fields[] = $field; - + $field['name'] = "conn{$i}interface"; + $field['displayname'] = "LAN interface"; + $field['type'] = "select"; + $field['typehint'] = "Interface of this connection."; + $field['options']['option'] = array(); + $ifselect = 0; + foreach ($iflist as $ifname => $ifdescr) { + if ($ifselect > 0 && $ifselect == ($i + 1)) + $field['value'] = $ifname; + $opts = array(); + $opts['displayname'] = $ifdescr; + $opts['name'] = $ifname; + $opts['value'] = $ifname; + $field['options']['option'][] = $opts; + $ifselect++; } + $field['bindstofield'] = "ezshaper->step2->conn{$i}interface"; + $fields[] = $field; $field = array(); - $field['name'] = "Next"; - $field['type'] = "submit"; + $field['name'] = "conn{$i}downloadscheduler"; + $field['displayname'] = "LAN Scheduler"; + $field['type'] = "select"; + $field['typehint'] = "Queueing discipline to apply on the upload of this connection."; + $field['options']['option'] = array(); + $opts = array(); + $opts['name'] = "HFSC"; + $opts['value'] = "HFSC"; + $field['options']['option'][] = $opts; + $opts = array(); + $opts['name'] = "CBQ"; + $opts['value'] = "CBQ"; + $field['options']['option'][] = $opts; + $opts = array(); + $opts['name'] = "PRIQ"; + $opts['value'] = "PRIQ"; + $field['options']['option'][] = $opts; + $field['bindstofield'] = "ezshaper->step2->conn{$i}downloadscheduler"; $fields[] = $field; + } + + $field = array(); + $field['name'] = "Next"; + $field['type'] = "submit"; + $fields[] = $field; } function step2_stepsubmitphpaction() { -- cgit v1.1