diff options
author | Renato Botelho <garga@FreeBSD.org> | 2015-03-03 08:06:45 -0300 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2015-03-03 08:06:45 -0300 |
commit | 3a1810a9ae892448ef12469338e4c7c6ca85d0a7 (patch) | |
tree | eb500534337812b9d13d6a2c08ea44d5cc4df6a8 /usr | |
parent | f6aa92a10885341f9f3e36defb1b6e95797a9ea3 (diff) | |
parent | 47aa60f9711902978096ced6ee26e87adef337f3 (diff) | |
download | pfsense-3a1810a9ae892448ef12469338e4c7c6ca85d0a7.zip pfsense-3a1810a9ae892448ef12469338e4c7c6ca85d0a7.tar.gz |
Merge pull request #1536 from phil-davis/patch-4
Diffstat (limited to 'usr')
-rw-r--r-- | usr/local/www/system_advanced_misc.php | 58 |
1 files changed, 35 insertions, 23 deletions
diff --git a/usr/local/www/system_advanced_misc.php b/usr/local/www/system_advanced_misc.php index d97bdfa..6d927df 100644 --- a/usr/local/www/system_advanced_misc.php +++ b/usr/local/www/system_advanced_misc.php @@ -389,30 +389,42 @@ function tmpvar_checked(obj) { <input name="powerd_enable" type="checkbox" id="powerd_enable" value="yes" <?php if ($pconfig['powerd_enable']) echo "checked=\"checked\""; ?> /> <strong><?=gettext("Use PowerD"); ?></strong><br /> <br /> - <?=gettext("On AC Power Mode"); ?> : - <select name="powerd_ac_mode" id="powerd_ac_mode"> - <option value="hadp"<?php if($pconfig['powerd_ac_mode']=="hadp") echo " selected=\"selected\""; ?>><?=gettext("Hiadaptive");?></option> - <option value="adp"<?php if($pconfig['powerd_ac_mode']=="adp") echo " selected=\"selected\""; ?>><?=gettext("Adaptive");?></option> - <option value="min"<?php if($pconfig['powerd_ac_mode']=="min") echo " selected=\"selected\""; ?>><?=gettext("Minimum");?></option> - <option value="max"<?php if($pconfig['powerd_ac_mode']=="max") echo " selected=\"selected\""; ?>><?=gettext("Maximum");?></option> - </select> - - <?=gettext("On Battery Power Mode"); ?> : - <select name="powerd_battery_mode" id="powerd_battery_mode"> - <option value="hadp"<?php if($pconfig['powerd_battery_mode']=="hadp") echo " selected=\"selected\""; ?>><?=gettext("Hiadaptive");?></option> - <option value="adp"<?php if($pconfig['powerd_battery_mode']=="adp") echo " selected=\"selected\""; ?>><?=gettext("Adaptive");?></option> - <option value="min"<?php if($pconfig['powerd_battery_mode']=="min") echo " selected=\"selected\""; ?>><?=gettext("Minimum");?></option> - <option value="max"<?php if($pconfig['powerd_battery_mode']=="max") echo " selected=\"selected\""; ?>><?=gettext("Maximum");?></option> - </select> + <table border="0" cellspacing="0" cellpadding="2" summary="powerd"> + <tr> + <td><?=gettext("On AC Power Mode:");?> </td> + <td> + <select name="powerd_ac_mode" id="powerd_ac_mode"> + <option value="hadp"<?php if($pconfig['powerd_ac_mode']=="hadp") echo " selected=\"selected\""; ?>><?=gettext("Hiadaptive");?></option> + <option value="adp"<?php if($pconfig['powerd_ac_mode']=="adp") echo " selected=\"selected\""; ?>><?=gettext("Adaptive");?></option> + <option value="min"<?php if($pconfig['powerd_ac_mode']=="min") echo " selected=\"selected\""; ?>><?=gettext("Minimum");?></option> + <option value="max"<?php if($pconfig['powerd_ac_mode']=="max") echo " selected=\"selected\""; ?>><?=gettext("Maximum");?></option> + </select> + </td> + </tr> + <tr> + <td><?=gettext("On Battery Power Mode:");?> </td> + <td> + <select name="powerd_battery_mode" id="powerd_battery_mode"> + <option value="hadp"<?php if($pconfig['powerd_battery_mode']=="hadp") echo " selected=\"selected\""; ?>><?=gettext("Hiadaptive");?></option> + <option value="adp"<?php if($pconfig['powerd_battery_mode']=="adp") echo " selected=\"selected\""; ?>><?=gettext("Adaptive");?></option> + <option value="min"<?php if($pconfig['powerd_battery_mode']=="min") echo " selected=\"selected\""; ?>><?=gettext("Minimum");?></option> + <option value="max"<?php if($pconfig['powerd_battery_mode']=="max") echo " selected=\"selected\""; ?>><?=gettext("Maximum");?></option> + </select> + </td> + </tr> + <tr> + <td><?=gettext("On Unknown Power Mode:");?> </td> + <td> + <select name="powerd_normal_mode" id="powerd_normal_mode"> + <option value="hadp"<?php if($pconfig['powerd_normal_mode']=="hadp") echo " selected=\"selected\""; ?>><?=gettext("Hiadaptive");?></option> + <option value="adp"<?php if($pconfig['powerd_normal_mode']=="adp") echo " selected=\"selected\""; ?>><?=gettext("Adaptive");?></option> + <option value="min"<?php if($pconfig['powerd_normal_mode']=="min") echo " selected=\"selected\""; ?>><?=gettext("Minimum");?></option> + <option value="max"<?php if($pconfig['powerd_normal_mode']=="max") echo " selected=\"selected\""; ?>><?=gettext("Maximum");?></option> + </select> + </td> + </tr> + </table> <br /> - <?=gettext("On Unknown Power Mode"); ?> : - <select name="powerd_normal_mode" id="powerd_normal_mode"> - <option value="hadp"<?php if($pconfig['powerd_normal_mode']=="hadp") echo " selected=\"selected\""; ?>><?=gettext("Hiadaptive");?></option> - <option value="adp"<?php if($pconfig['powerd_normal_mode']=="adp") echo " selected=\"selected\""; ?>><?=gettext("Adaptive");?></option> - <option value="min"<?php if($pconfig['powerd_normal_mode']=="min") echo " selected=\"selected\""; ?>><?=gettext("Minimum");?></option> - <option value="max"<?php if($pconfig['powerd_normal_mode']=="max") echo " selected=\"selected\""; ?>><?=gettext("Maximum");?></option> - </select> - <br /><br /> <?=gettext("The powerd utility monitors the system state and sets various power control " . "options accordingly. It offers four modes (maximum, minimum, adaptive " . "and hiadaptive) that can be individually selected while on AC power or batteries. " . |