Projet

Général

Profil

« Précédent | Suivant » 

Révision 0f4317d3

Ajouté par Colin Fleming il y a presque 10 ans

Tidy up "carp_status.php" XHTML

Add SUMMARY to TABLES
Close INPUT tags and IMG tags and ALT to IMG
Tidy up CENTER tags
Add missing closing FORM tag

Voir les différences:

usr/local/www/carp_status.php
106 106

  
107 107

  
108 108
<div id="mainlevel">
109
	<table width="100%" border="0" cellpadding="0" cellspacing="0">
109
	<table width="100%" border="0" cellpadding="0" cellspacing="0" summary="carp status">
110 110
		<tr>
111 111
			<td>
112 112
<?php
......
122 122
			if($carpcount > 0) {
123 123
				if($status == false) {
124 124
					$carp_enabled = false;
125
					echo "<input type=\"submit\" name=\"disablecarp\" id=\"disablecarp\" value=\"" . gettext("Enable CARP") . "\">";
125
					echo "<input type=\"submit\" name=\"disablecarp\" id=\"disablecarp\" value=\"" . gettext("Enable CARP") . "\" />";
126 126
				} else {
127 127
					$carp_enabled = true;
128
					echo "<input type=\"submit\" name=\"disablecarp\" id=\"disablecarp\" value=\"" . gettext("Temporarily Disable CARP") . "\">";
128
					echo "<input type=\"submit\" name=\"disablecarp\" id=\"disablecarp\" value=\"" . gettext("Temporarily Disable CARP") . "\" />";
129 129
				}
130 130
				if(isset($config["virtualip_carp_maintenancemode"])) {
131
					echo "<input type=\"submit\" name=\"carp_maintenancemode\" id=\"carp_maintenancemode\" value=\"" . gettext("Leave Persistent CARP Maintenance Mode") . "\">";
131
					echo "<input type=\"submit\" name=\"carp_maintenancemode\" id=\"carp_maintenancemode\" value=\"" . gettext("Leave Persistent CARP Maintenance Mode") . "\" />";
132 132
				} else {
133
					echo "<input type=\"submit\" name=\"carp_maintenancemode\" id=\"carp_maintenancemode\" value=\"" . gettext("Enter Persistent CARP Maintenance Mode") . "\">";
133
					echo "<input type=\"submit\" name=\"carp_maintenancemode\" id=\"carp_maintenancemode\" value=\"" . gettext("Enter Persistent CARP Maintenance Mode") . "\" />";
134 134
				}
135 135
			}
136 136
?>
137 137

  
138
			<p>
139
			<table class="tabcont sortable" width="100%" border="0" cellpadding="6" cellspacing="0">
138
			<br/><br/>
139
			<table class="tabcont sortable" width="100%" border="0" cellpadding="6" cellspacing="0" summary="results">
140 140
				<tr>
141
					<td class="listhdrr"><b><center><?=gettext("CARP Interface"); ?></center></b></td>
142
					<td class="listhdrr"><b><center><?=gettext("Virtual IP"); ?></center></b></td>
143
					<td class="listhdrr"><b><center><?=gettext("Status"); ?></center></b></td>
141
					<td class="listhdrr" align="center"><?=gettext("CARP Interface"); ?></td>
142
					<td class="listhdrr" align="center"><?=gettext("Virtual IP"); ?></td>
143
					<td class="listhdrr" align="center"><?=gettext("Status"); ?></td>
144 144
				</tr>
145 145
<?php
146 146
				if ($carpcount == 0) {
147
					echo "</td></tr></table></table></div><center><br />" . gettext("Could not locate any defined CARP interfaces.");
147
					echo "</table></td></tr></table></div></form><center><br />" . gettext("Could not locate any defined CARP interfaces.");
148 148
					echo "</center>";
149 149

  
150 150
					include("fend.inc");
......
163 163
						$advbase = $carp['advbase'];
164 164
						$status = get_carp_interface_status("{$carp['interface']}_vip{$carp['vhid']}");
165 165
						echo "<tr>";
166
						$align = "valign='middle'";
166
						$align = "style=\"vertical-align:middle\"";
167 167
						if($carp_enabled == false) {
168
							$icon = "<img {$align} src='/themes/".$g['theme']."/images/icons/icon_block.gif'>";
168
							$icon = "<img {$align} src=\"/themes/".$g['theme']."/images/icons/icon_block.gif\" alt=\"disbled\" />";
169 169
							$status = "DISABLED";
170 170
						} else {
171 171
							if($status == "MASTER") {
172
								$icon = "<img {$align} src='/themes/".$g['theme']."/images/icons/icon_pass.gif'>";
172
								$icon = "<img {$align} src=\"/themes/".$g['theme']."/images/icons/icon_pass.gif\" alt=\"master\" />";
173 173
							} else if($status == "BACKUP") {
174
								$icon = "<img {$align} src='/themes/".$g['theme']."/images/icons/icon_pass_d.gif'>";
174
								$icon = "<img {$align} src=\"/themes/".$g['theme']."/images/icons/icon_pass_d.gif\" alt=\"backup\" />";
175 175
							} else if($status == "INIT") {
176
								$icon = "<img {$align} src='/themes/".$g['theme']."/images/icons/icon_log.gif'>";
176
								$icon = "<img {$align} src=\"/themes/".$g['theme']."/images/icons/icon_log.gif\" alt=\"init\" />";
177 177
							}
178 178
						}
179
						echo "<td class=\"listlr\"><center>" . convert_friendly_interface_to_friendly_descr($carp['interface']) . "@{$vhid} &nbsp;</td>";
180
						echo "<td class=\"listlr\"><center>" . $ipaddress . "&nbsp;</td>";
181
						echo "<td class=\"listlr\"><center>{$icon}&nbsp;&nbsp;" . $status . "&nbsp;</td>";
179
						echo "<td class=\"listlr\" align=\"center\">" . convert_friendly_interface_to_friendly_descr($carp['interface']) . "@{$vhid} &nbsp;</td>";
180
						echo "<td class=\"listlr\" align=\"center\">" . $ipaddress . "&nbsp;</td>";
181
						echo "<td class=\"listlr\" align=\"center\">{$icon}&nbsp;&nbsp;" . $status . "&nbsp;</td>";
182 182
						echo "</tr>";
183 183
					}
184 184
				}
......
188 188
		</tr>
189 189
	</table>
190 190
</div>
191
</form>
191 192

  
192
<p/>
193

  
194
<span class="vexpl">
193
<p class="vexpl">
195 194
<span class="red"><strong><?=gettext("Note"); ?>:</strong></span>
196 195
<br />
197 196
<?=gettext("You can configure high availability sync settings"); ?> <a href="system_hasync.php"><?=gettext("here"); ?></a>.
198
</span>
199

  
200
<p/>
197
</p>
201 198

  
202 199
<?php
203 200
	echo "<br />" . gettext("pfSync nodes") . ":<br />";

Formats disponibles : Unified diff