Projet

Général

Profil

« Précédent | Suivant » 

Révision 1edd5d22

Ajouté par Colin Fleming il y a presque 10 ans

Tidy up "services_dhcp.php" XHTML

Change ONLICK to lower case
Change P tags to BR tags
Move opening TR tag inside the PHP IF statement

Voir les différences:

usr/local/www/services_dhcp.php
1017 1017
			<td width="22%" valign="top" class="vncell"><?=gettext("Dynamic DNS");?></td>
1018 1018
			<td width="78%" class="vtable">
1019 1019
				<div id="showddnsbox">
1020
					<input type="button" onClick="show_ddns_config()" value="<?=gettext("Advanced");?>" /> - <?=gettext("Show Dynamic DNS");?>
1020
					<input type="button" onclick="show_ddns_config()" value="<?=gettext("Advanced");?>" /> - <?=gettext("Show Dynamic DNS");?>
1021 1021
				</div>
1022 1022
				<div id="showddns" style="display:none">
1023 1023
					<input style="vertical-align:middle" type="checkbox" value="yes" name="ddnsupdate" id="ddnsupdate" <?php if($pconfig['ddnsupdate']) echo " checked=\"checked\""; ?> />&nbsp;
1024 1024
					<b><?=gettext("Enable registration of DHCP client names in DNS.");?></b><br />
1025
					<p>
1025
					<br/>
1026 1026
					<input name="ddnsdomain" type="text" class="formfld unknown" id="ddnsdomain" size="20" value="<?=htmlspecialchars($pconfig['ddnsdomain']);?>" /><br />
1027 1027
					<?=gettext("Note: Leave blank to disable dynamic DNS registration.");?><br />
1028 1028
					<?=gettext("Enter the dynamic DNS domain which will be used to register client names in the DNS server.");?>
......
1039 1039
			<td width="22%" valign="top" class="vncell"><?=gettext("MAC Address Control");?></td>
1040 1040
			<td width="78%" class="vtable">
1041 1041
				<div id="showmaccontrolbox">
1042
					<input type="button" onClick="show_maccontrol_config()" value="<?=gettext("Advanced");?>" /> - <?=gettext("Show MAC Address Control");?>
1042
					<input type="button" onclick="show_maccontrol_config()" value="<?=gettext("Advanced");?>" /> - <?=gettext("Show MAC Address Control");?>
1043 1043
				</div>
1044 1044
				<div id="showmaccontrol" style="display:none">
1045 1045
					<input name="mac_allow" type="text" class="formfld unknown" id="mac_allow" size="20" value="<?=htmlspecialchars($pconfig['mac_allow']);?>" /><br />
......
1053 1053
			<td width="22%" valign="top" class="vncell"><?=gettext("NTP servers");?></td>
1054 1054
			<td width="78%" class="vtable">
1055 1055
				<div id="showntpbox">
1056
					<input type="button" onClick="show_ntp_config()" value="<?=gettext("Advanced");?>" /> - <?=gettext("Show NTP configuration");?>
1056
					<input type="button" onclick="show_ntp_config()" value="<?=gettext("Advanced");?>" /> - <?=gettext("Show NTP configuration");?>
1057 1057
				</div>
1058 1058
				<div id="showntp" style="display:none">
1059 1059
					<input name="ntp1" type="text" class="formfld unknown" id="ntp1" size="20" value="<?=htmlspecialchars($pconfig['ntp1']);?>" /><br />
......
1065 1065
			<td width="22%" valign="top" class="vncell"><?=gettext("TFTP server");?></td>
1066 1066
			<td width="78%" class="vtable">
1067 1067
			<div id="showtftpbox">
1068
				<input type="button" onClick="show_tftp_config()" value="<?=gettext("Advanced");?>" /> - <?=gettext("Show TFTP configuration");?>
1068
				<input type="button" onclick="show_tftp_config()" value="<?=gettext("Advanced");?>" /> - <?=gettext("Show TFTP configuration");?>
1069 1069
			</div>
1070 1070
			<div id="showtftp" style="display:none">
1071 1071
				<input name="tftp" type="text" class="formfld unknown" id="tftp" size="50" value="<?=htmlspecialchars($pconfig['tftp']);?>" /><br />
......
1077 1077
			<td width="22%" valign="top" class="vncell"><?=gettext("LDAP URI");?></td>
1078 1078
			<td width="78%" class="vtable">
1079 1079
				<div id="showldapbox">
1080
					<input type="button" onClick="show_ldap_config()" value="<?=gettext("Advanced");?>" /> - <?=gettext("Show LDAP configuration");?>
1080
					<input type="button" onclick="show_ldap_config()" value="<?=gettext("Advanced");?>" /> - <?=gettext("Show LDAP configuration");?>
1081 1081
				</div>
1082 1082
				<div id="showldap" style="display:none">
1083 1083
					<input name="ldap" type="text" class="formfld unknown" id="ldap" size="80" value="<?=htmlspecialchars($pconfig['ldap']);?>" /><br />
......
1089 1089
			<td width="22%" valign="top" class="vncell"><?=gettext("Enable network booting");?></td>
1090 1090
			<td width="78%" class="vtable">
1091 1091
				<div id="shownetbootbox">
1092
					<input type="button" onClick="show_netboot_config()" value="<?=gettext("Advanced");?>" /> - <?=gettext("Show Network booting");?>
1092
					<input type="button" onclick="show_netboot_config()" value="<?=gettext("Advanced");?>" /> - <?=gettext("Show Network booting");?>
1093 1093
				</div>
1094 1094
				<div id="shownetboot" style="display:none">
1095 1095
					<input style="vertical-align:middle" type="checkbox" value="yes" name="netboot" id="netboot" <?php if($pconfig['netboot']) echo " checked=\"checked\""; ?> />&nbsp;
1096 1096
					<b><?=gettext("Enables network booting.");?></b>
1097
					<p>
1097
					<br/>
1098 1098
					<?=gettext("Enter the IP of the"); ?> <b><?=gettext("next-server"); ?></b>
1099 1099
					<input name="nextserver" type="text" class="formfld unknown" id="nextserver" size="20" value="<?=htmlspecialchars($pconfig['nextserver']);?>" /><br />
1100 1100
					<?=gettext("and the default bios filename");?>
......
1105 1105
						<input name="filename64" type="text" class="formfld unknown" id="filename64" size="20" value="<?=htmlspecialchars($pconfig['filename64']);?>" /><br />
1106 1106
					<?=gettext("Note: You need both a filename and a boot server configured for this to work!");?>
1107 1107
					<?=gettext("You will need all three filenames and a boot server configured for UEFI to work!");?>
1108
					<p>
1109 1108
					<?=gettext("Enter the"); ?> <b><?=gettext("root-path"); ?></b>-<?=gettext("string");?>
1110 1109
					<input name="rootpath" type="text" class="formfld unknown" id="rootpath" size="90" value="<?=htmlspecialchars($pconfig['rootpath']);?>" /><br />
1111 1110
					<?=gettext("Note: string-format: iscsi:(servername):(protocol):(port):(LUN):targetname");?>
1112
					</p>
1113 1111
				</div>
1114 1112
			</td>
1115 1113
			</tr>
......
1118 1116
			<td width="22%" valign="top" class="vncell"><?=gettext("Additional BOOTP/DHCP Options");?></td>
1119 1117
			<td width="78%" class="vtable">
1120 1118
				<div id="shownumbervaluebox">
1121
					<input type="button" onClick="show_shownumbervalue()" value="<?=gettext("Advanced");?>" /> - <?=gettext("Show Additional BOOTP/DHCP Options");?>
1119
					<input type="button" onclick="show_shownumbervalue()" value="<?=gettext("Advanced");?>" /> - <?=gettext("Show Additional BOOTP/DHCP Options");?>
1122 1120
				</div>
1123 1121
				<div id="shownumbervalue" style="display:none">
1124 1122
				<table id="maintable" summary="bootp-dhcp options">
usr/local/www/services_dhcpv6.php
543 543
			"%s " .
544 544
			"interface"),htmlspecialchars($iflist[$if]));?></strong></td>
545 545
			</tr>
546
			<tr>
547 546
			<?php
548 547
			/* the PPPoE Server could well have no IPv6 address and operate fine with just link-local, just hide these */
549 548
			if(is_ipaddrv6($ifcfgip)) {
550 549
			?>
550
			<tr>
551 551
			<td width="22%" valign="top" class="vncellreq"><?=gettext("Subnet");?></td>
552 552
			<td width="78%" class="vtable">
553 553
				<?=gen_subnetv6($ifcfgip, $ifcfgsn);?>
......
757 757
				<div id="shownetboot" style="display:none">
758 758
					<input style="vertical-align:middle" type="checkbox" value="yes" name="netboot" id="netboot" <?php if($pconfig['netboot']) echo " checked=\"checked\""; ?> />&nbsp;
759 759
					<b><?=gettext("Enables network booting.");?></b>
760
					<p>
760
					<br/>
761 761
					<?=gettext("Enter the Bootfile URL");?>
762 762
					<input name="bootfile_url" type="text" class="formfld unknown" id="bootfile_url" size="28" value="<?=htmlspecialchars($pconfig['bootfile_url']);?>" />
763 763
				</div>

Formats disponibles : Unified diff