Révision 56898132
Ajouté par Colin Fleming il y a presque 10 ans
usr/local/www/widgets/widgets/captive_portal_status.widget.php | ||
---|---|---|
88 | 88 |
usort($cpdb_all, "clientcmp"); |
89 | 89 |
} |
90 | 90 |
?> |
91 |
<table class="sortable" name="sortabletable" id="sortabletable" width="100%" border="0" cellpadding="0" cellspacing="0" summary="captive portal status">
|
|
91 |
<table class="sortable" id="sortabletable" width="100%" border="0" cellpadding="0" cellspacing="0" summary="captive portal status"> |
|
92 | 92 |
<tr> |
93 | 93 |
<td class="listhdrr"><a href="?order=ip&showact=<?=$_GET['showact'];?>">IP address</a></td> |
94 | 94 |
<td class="listhdrr"><a href="?order=mac&showact=<?=$_GET['showact'];?>">MAC address</a></td> |
usr/local/www/widgets/widgets/carp_status.widget.php | ||
---|---|---|
74 | 74 |
if ($ipaddress){ ?> |
75 | 75 |
<?=htmlspecialchars($status);?> |
76 | 76 |
<?=htmlspecialchars($ipaddress);}?> |
77 |
</tr><?php } |
|
77 |
</td></tr><?php }
|
|
78 | 78 |
} else { ?> |
79 | 79 |
<tr><td class="listr">No CARP Interfaces Defined. Click <a href="carp_status.php">here</a> to configure CARP.</td></tr> |
80 | 80 |
<?php } ?> |
usr/local/www/widgets/widgets/dyn_dns_status.widget.php | ||
---|---|---|
105 | 105 |
} |
106 | 106 |
?> |
107 | 107 |
</td> |
108 |
<td class="listlr">
|
|
108 |
<td class="listr"> |
|
109 | 109 |
<?php |
110 | 110 |
$types = explode(",", DYNDNS_PROVIDER_DESCRIPTIONS); |
111 | 111 |
$vals = explode(" ", DYNDNS_PROVIDER_VALUES); |
... | ... | |
127 | 127 |
echo htmlspecialchars($dyndns['host']); |
128 | 128 |
?> |
129 | 129 |
</td> |
130 |
<td class="listlr">
|
|
130 |
<td class="listr"> |
|
131 | 131 |
<div id='dyndnsstatus<?php echo $i; ?>'><?php echo gettext("Checking ..."); ?></div> |
132 | 132 |
</td> |
133 | 133 |
</tr> |
usr/local/www/widgets/widgets/installed_packages.widget.php | ||
---|---|---|
70 | 70 |
<td class="listlr"> |
71 | 71 |
<?= $pkg['name'] ?> |
72 | 72 |
</td> |
73 |
<td class="listlr">
|
|
73 |
<td class="listr"> |
|
74 | 74 |
<?= $pkg['category'] ?> |
75 | 75 |
</td> |
76 |
<td class="listlr">
|
|
76 |
<td class="listr"> |
|
77 | 77 |
<?php |
78 | 78 |
$latest_package = $currentvers[$pkg['name']]['version']; |
79 | 79 |
if($latest_package == false) { |
usr/local/www/widgets/widgets/load_balancer_status.widget.php | ||
---|---|---|
125 | 125 |
$checked = "checked"; |
126 | 126 |
} |
127 | 127 |
echo "<tr>"; |
128 |
echo "<td bgcolor={$bgcolor}> {$server['ip']['addr']}:{$pool['port']} </td><td bgcolor={$bgcolor}> ";
|
|
128 |
echo "<td bgcolor=\"{$bgcolor}\"> {$server['ip']['addr']}:{$pool['port']} </td><td bgcolor=\"{$bgcolor}\"> ";
|
|
129 | 129 |
if($server['ip']['avail']) |
130 | 130 |
echo " ({$server['ip']['avail']}) "; |
131 | 131 |
echo " </td></tr>"; |
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 |
|
usr/local/www/widgets/widgets/wake_on_lan.widget.php | ||
---|---|---|
39 | 39 |
<table width="100%" border="0" cellpadding="0" cellspacing="0" summary="wol status"> |
40 | 40 |
<tr> |
41 | 41 |
<?php |
42 |
echo '<td class="widgetsubheader" align="center"><b>' . gettext("Computer / Device") . '</b></td>';
|
|
43 |
echo '<td class="widgetsubheader" align="center"><b>' . gettext("Interface") . '</b></td>';
|
|
44 |
echo '<td class="widgetsubheader" align="center"><b>' . gettext("Status") . '</b></td>';
|
|
42 |
echo '<td class="widgetsubheader" align="center">' . gettext("Computer / Device") . '</td>';
|
|
43 |
echo '<td class="widgetsubheader" align="center">' . gettext("Interface") . '</td>';
|
|
44 |
echo '<td class="widgetsubheader" align="center">' . gettext("Status") . '</td>';
|
|
45 | 45 |
?> |
46 | 46 |
<td class="widgetsubheader"> </td> |
47 | 47 |
</tr> |
... | ... | |
70 | 70 |
echo "</td></tr>\n"; |
71 | 71 |
} |
72 | 72 |
} else { |
73 |
echo "<tr><td colspan=\"3\" align=\"center\">" . gettext("No saved WoL addresses") . ".</td></tr>\n";
|
|
73 |
echo "<tr><td colspan=\"4\" align=\"center\">" . gettext("No saved WoL addresses") . ".</td></tr>\n";
|
|
74 | 74 |
} |
75 | 75 |
?> |
76 | 76 |
</table> |
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