Révision 56898132
Ajouté par Colin Fleming il y a presque 10 ans
usr/local/www/widgets/widgets/traffic_graphs.widget.php | ||
---|---|---|
111 | 111 |
<?php } ?> |
112 | 112 |
Default AutoScale: |
113 | 113 |
<?php |
114 |
$scale_type_up="checked"; |
|
114 |
$scale_type_up="checked=\"checked\"";
|
|
115 | 115 |
$scale_type_follow=""; |
116 | 116 |
if (isset($config["widgets"]["trafficgraphs"]["scale_type"])) { |
117 | 117 |
$selected_radio = $config["widgets"]["trafficgraphs"]["scale_type"]; |
... | ... | |
123 | 123 |
} |
124 | 124 |
} |
125 | 125 |
?> |
126 |
<input name="scale_type" class="radio" type="radio" id="scale_type" value="up" <?php echo $scale_type_up; ?> onchange="updateGraphDisplays();" /> <span>up</span>
|
|
127 |
<input name="scale_type" class="radio" type="radio" id="scale_type" value="follow" <?php echo $scale_type_follow; ?> onchange="updateGraphDisplays();" /> <span>follow</span><br /><br />
|
|
126 |
<input name="scale_type_up" class="radio" type="radio" id="scale_type_up" value="up" <?php echo $scale_type_up; ?> onchange="updateGraphDisplays();" /> <span>up</span>
|
|
127 |
<input name="scale_type_follow" class="radio" type="radio" id="scale_type_follow" value="follow" <?php echo $scale_type_follow; ?> onchange="updateGraphDisplays();" /> <span>follow</span><br /><br />
|
|
128 | 128 |
Refresh Interval: |
129 | 129 |
<select name="refreshinterval" class="formfld" id="refreshinterval" onchange="updateGraphDisplays();"> |
130 | 130 |
<?php for ($i = 1; $i <= 10; $i += 1) { ?> |
131 | 131 |
<option value="<?= $i ?>" <?php if ($refreshinterval == $i) echo "selected=\"selected\"";?>><?= $i ?></option> |
132 | 132 |
<?php } ?> |
133 | 133 |
</select> Seconds<br /> <b>Note:</b> changing this setting will increase CPU utilization<br /><br /> |
134 |
<input id="submit" name="submit" type="submit" onclick="return updatePref();" class="formbtn" value="Save Settings" />
|
|
134 |
<input id="submit_settings" name="submit_settings" type="submit" onclick="return updatePref();" class="formbtn" value="Save Settings" />
|
|
135 | 135 |
</form> |
136 | 136 |
</div> |
137 | 137 |
|
Formats disponibles : Unified diff
Tidy up misc. widgets XHTML
captive_portal_status.widget.php
Remove NAME from TABLE tag, not valid in XHTML
carp_status.widget.php
Add missing closing TD tag
dyn_dns_status.widget.php and
installed_packages.widgete.php
Update TD class to single line
load_balancer_status.widget.php
Add quotes to missing TD background colour
traffic_graphs.widget.php
Tidy up HTML Boolean operator
Make NAME and ID in INPUT tag unique
wake_on_lan.widget.php
Remove B tag from "widgetsubheader", alread in CSS
Center message across all columns within table