Project

General

Profile

« Previous | Next » 

Revision 35dccd59

Added by Colin Fleming about 12 years ago

Tidy up "interfaces_pps_edit.php" XHTML

Close INPUT and BR tags

View differences:

usr/local/www/interfaces_ppps_edit.php
473 473
		<tr>
474 474
			<td width="22%" valign="top" class="vncell"><?= gettext("Description"); ?></td>
475 475
			<td width="78%" class="vtable">
476
				<input name="descr" type="text" class="formfld unknown" id="descr" size="40" value="<?=htmlspecialchars($pconfig['descr']);?>">
476
				<input name="descr" type="text" class="formfld unknown" id="descr" size="40" value="<?=htmlspecialchars($pconfig['descr']);?>" />
477 477
				<br/> <span class="vexpl"><?= gettext("You may enter a description here for your reference. Description will appear in the \"Interfaces Assign\" select lists."); ?></span>
478 478
			</td>
479 479
		</tr>	
......
516 516
		<tr>
517 517
			<td width="22%" valign="top" class="vncell"><?= gettext("Username"); ?></td>
518 518
			<td width="78%" class="vtable">
519
			<input name="username" type="text" class="formfld user" id="username" size="20" value="<?=htmlspecialchars($pconfig['username']);?>">
519
			<input name="username" type="text" class="formfld user" id="username" size="20" value="<?=htmlspecialchars($pconfig['username']);?>" />
520 520
			</td>
521 521
		</tr>
522 522
		<tr>
523 523
			<td width="22%" valign="top" class="vncell"><?= gettext("Password"); ?></td>
524 524
			<td width="78%" class="vtable">
525
			<input name="password" type="password" class="formfld pwd" id="password" size="20" value="<?=htmlspecialchars($pconfig['password']);?>">
525
			<input name="password" type="password" class="formfld pwd" id="password" size="20" value="<?=htmlspecialchars($pconfig['password']);?>" />
526 526
			</td>
527 527
		</tr>
528 528

  
529 529
		<tr style="display:none" name="phone_num" id="phone_num">
530 530
			<td width="22%" valign="top" class="vncell"><?= gettext("Phone Number"); ?></td>
531 531
			<td width="78%" class="vtable">
532
				<input name="phone" type="text" class="formfld unknown" id="phone" size="40" value="<?=htmlspecialchars($pconfig['phone']);?>">
532
				<input name="phone" type="text" class="formfld unknown" id="phone" size="40" value="<?=htmlspecialchars($pconfig['phone']);?>" />
533 533
				<br/><span class="vexpl"><?= gettext("Note: Typically *99# for GSM networks and #777 for CDMA networks"); ?></span>
534 534
			</td>
535 535
		</tr>
536 536
		<tr style="display:none" name="apn_" id="apn_">
537 537
			<td width="22%" valign="top" class="vncell"><?= gettext("Access Point Name (APN)"); ?></td>
538 538
			<td width="78%" class="vtable">
539
				<input name="apn" type="text" class="formfld unknown" id="apn" size="40" value="<?=htmlspecialchars($pconfig['apn']);?>">
539
				<input name="apn" type="text" class="formfld unknown" id="apn" size="40" value="<?=htmlspecialchars($pconfig['apn']);?>" />
540 540
			</td>
541 541
		</tr>
542 542
		
......
546 546
					<tr style="display:none" id="advanced_<?=$k;?>" name="advanced_<?=$k;$k++;?>">
547 547
						<td width="22%" valign="top" class="vncell"><?= gettext("APN number (optional)"); ?></td>
548 548
						<td width="78%" class="vtable">
549
							<input name="apnum" type="text" class="formfld unknown" id="apnum" size="2" value="<?=htmlspecialchars($pconfig['apnum']);?>">
549
							<input name="apnum" type="text" class="formfld unknown" id="apnum" size="2" value="<?=htmlspecialchars($pconfig['apnum']);?>" />
550 550
							<br/><span class="vexpl"><?= gettext("Note: Defaults to 1 if you set APN above. Ignored if you set no APN above."); ?></span>
551 551
						</td>
552 552
					</tr>
553 553
					<tr style="display:none" id="advanced_<?=$k;?>" name="advanced_<?=$k;$k++;?>">
554 554
						<td width="22%" valign="top" class="vncell"><?= gettext("SIM PIN"); ?></td>
555 555
						<td width="78%" class="vtable">
556
							<input name="simpin" type="text" class="formfld unknown" id="simpin" size="12" value="<?=htmlspecialchars($pconfig['simpin']);?>">
556
							<input name="simpin" type="text" class="formfld unknown" id="simpin" size="12" value="<?=htmlspecialchars($pconfig['simpin']);?>" />
557 557
						</td>
558 558
					</tr>
559 559
			
560 560
					<tr style="display:none" id="advanced_<?=$k;?>" name="advanced_<?=$k;$k++;?>">
561 561
						<td width="22%" valign="top" class="vncell"><?= gettext("SIM PIN wait"); ?></td>
562 562
						<td width="78%" class="vtable">
563
							<input name="pin-wait" type="text" class="formfld unknown" id="pin-wait" size="2" value="<?=htmlspecialchars($pconfig['pin-wait']);?>">
563
							<input name="pin-wait" type="text" class="formfld unknown" id="pin-wait" size="2" value="<?=htmlspecialchars($pconfig['pin-wait']);?>" />
564 564
							<br/><span class="vexpl"><?= gettext("Note: Time to wait for SIM to discover network after PIN is sent to SIM (seconds)."); ?></span>
565 565
						</td>
566 566
					</tr>
567 567
					<tr style="display:none" id="advanced_<?=$k;?>" name="advanced_<?=$k;$k++;?>">
568 568
						<td width="22%" valign="top" class="vncell"><?= gettext("Init String"); ?></td>
569 569
						<td width="78%" class="vtable">
570
							<input type="text" size="40" class="formfld unknown" id="initstr" name="initstr" value="<?=htmlspecialchars($pconfig['initstr']);?>">
570
							<input type="text" size="40" class="formfld unknown" id="initstr" name="initstr" value="<?=htmlspecialchars($pconfig['initstr']);?>" />
571 571
							<br/><span class="vexpl"><?= gettext("Note: Enter the modem initialization string here. Do NOT include the \"AT\"" . 
572 572
							" string at the beginning of the command. Many modern USB 3G modems don't need an initialization string."); ?></span>
573 573
						</td>
......
575 575
					<tr style="display:none" id="advanced_<?=$k;?>" name="advanced_<?=$k;$k++;?>">
576 576
						<td width="22%" valign="top" class="vncell"><?= gettext("Connection Timeout"); ?></td>
577 577
						<td width="78%" class="vtable">
578
							<input name="connect-timeout" type="text" class="formfld unknown" id="connect-timeout" size="2" value="<?=htmlspecialchars($pconfig['connect-timeout']);?>">
578
							<input name="connect-timeout" type="text" class="formfld unknown" id="connect-timeout" size="2" value="<?=htmlspecialchars($pconfig['connect-timeout']);?>" />
579 579
							<br/><span class="vexpl"><?= gettext("Note: Enter timeout in seconds for connection to be established (sec.) Default is 45 sec."); ?></span>
580 580
						</td>
581 581
					</tr>
582 582
					<tr style="display:none" id="advanced_<?=$k;?>" name="advanced_<?=$k;$k++;?>">
583 583
						<td valign="top" class="vncell"><?= gettext("Uptime Logging"); ?></td>
584 584
						<td class="vtable">
585
							<input type="checkbox" value="on" id="uptime" name="uptime" <?php if (isset($pconfig['uptime'])) echo "checked"; ?>> <?= gettext("Enable persistent logging of connection uptime."); ?> 
585
							<input type="checkbox" value="on" id="uptime" name="uptime" <?php if (isset($pconfig['uptime'])) echo "checked"; ?> /> <?= gettext("Enable persistent logging of connection uptime."); ?> 
586 586
							<br/> <span class="vexpl"><?= gettext("This option causes cumulative uptime to be recorded and displayed on the Status Interfaces page."); ?></span>
587 587
						</td>
588 588
					</tr>
......
594 594
				<table width="100%" border="0" cellpadding="6" cellspacing="0">
595 595
					<tr>
596 596
						<td width="22%" valign="top" class="vncell"><?= gettext("Service name"); ?></td>
597
						<td width="78%" class="vtable"><input name="provider" type="text" class="formfld unknown" id="provider" size="20" value="<?=htmlspecialchars($pconfig['provider']);?>">&nbsp;&nbsp;
598
						<input type="checkbox" value="on" id="null_service" name="null_service" <?php if (isset($pconfig['null_service'])) echo "checked"; ?>> <?= gettext("Configure a NULL Service name"); ?> 
597
						<td width="78%" class="vtable"><input name="provider" type="text" class="formfld unknown" id="provider" size="20" value="<?=htmlspecialchars($pconfig['provider']);?>" />&nbsp;&nbsp;
598
						<input type="checkbox" value="on" id="null_service" name="null_service" <?php if (isset($pconfig['null_service'])) echo "checked"; ?> /> <?= gettext("Configure a NULL Service name"); ?> 
599 599
							<br/> <span class="vexpl"><?= gettext("Hint: this field can usually be left empty. Service name will not be configured if this field is empty. Check the \"Configure NULL\" box to configure a blank Service name."); ?></span>
600 600
						</td>
601 601
					</tr>
......
658 658
		<tr style="display:none" id="gw_fields<?=$j;?>">
659 659
			<td width="22%" id="localiplabel<?=$j;?>" valign="top" class="vncell"><?= gettext("Local IP"); ?></td>
660 660
			<td width="78%" class="vtable"> 
661
				<input name="localip[]" type="text" class="formfld unknown" id="localip<?=$j;?>" size="20"  value="<?=htmlspecialchars($pconfig['localip'][$j]);?>">
661
				<input name="localip[]" type="text" class="formfld unknown" id="localip<?=$j;?>" size="20"  value="<?=htmlspecialchars($pconfig['localip'][$j]);?>" />
662 662
				/
663 663
				<select name="subnet[]" class="formselect" id="subnet<?=$j;?>" disabled="true">
664 664
				<?php for ($i = 31; $i > 0; $i--): ?>
......
671 671
		<tr style="display:none" id="ip_fields<?=$j;?>">
672 672
			<td width="22%" id="gatewaylabel<?=$j;?>" valign="top" class="vncell"></td>
673 673
			<td width="78%" class="vtable">
674
				<input name="gateway[]" type="text" class="formfld unknown" id="gateway<?=$j;?>" size="20" value="<?=htmlspecialchars($pconfig['gateway'][$j]);?>"><?= gettext("IP Address OR Hostname"); ?>
674
				<input name="gateway[]" type="text" class="formfld unknown" id="gateway<?=$j;?>" size="20" value="<?=htmlspecialchars($pconfig['gateway'][$j]);?>" /><?= gettext("IP Address OR Hostname"); ?>
675 675
			</td>
676 676
		</tr><?php endfor; ?>
677 677

  
......
684 684
		<tr style="display:none" id="advanced_<?=$k;?>" name="advanced_<?=$k;$k++;?>">
685 685
		<td valign="top" class="vncell"><?= gettext("Dial On Demand"); ?></td>
686 686
			<td class="vtable">
687
				<input type="checkbox" value="on" id="ondemand" name="ondemand" <?php if (isset($pconfig['ondemand'])) echo "checked"; ?>> <?= gettext("Enable Dial-on-Demand mode"); ?> 
687
				<input type="checkbox" value="on" id="ondemand" name="ondemand" <?php if (isset($pconfig['ondemand'])) echo "checked"; ?> /> <?= gettext("Enable Dial-on-Demand mode"); ?> 
688 688
				<br/> <span class="vexpl"><?= gettext("This option causes the interface to operate in dial-on-demand mode. Do NOT enable if you want your link to be always up. " .  
689 689
				"The interface is configured, but the actual connection of the link is delayed until qualifying outgoing traffic is detected."); ?> </span>
690 690
			</td>
......
692 692
		<tr style="display:none" id="advanced_<?=$k;?>" name="advanced_<?=$k;$k++;?>">
693 693
			<td valign="top" class="vncell"><?= gettext("Idle Timeout"); ?></td>
694 694
			<td class="vtable">
695
				<input name="idletimeout" type="text" class="formfld unknown" id="idletimeout" size="12" value="<?=htmlspecialchars($pconfig['idletimeout']);?>"> <?= gettext("(seconds) Default is 0, which disables the timeout feature."); ?>
695
				<input name="idletimeout" type="text" class="formfld unknown" id="idletimeout" size="12" value="<?=htmlspecialchars($pconfig['idletimeout']);?>" /> <?= gettext("(seconds) Default is 0, which disables the timeout feature."); ?>
696 696
				<br/> <span class="vexpl"><?= gettext("If no incoming or outgoing packets are transmitted for the entered number of seconds the connection is brought down.");?>
697 697
				<br/><?=gettext("When the idle timeout occurs, if the dial-on-demand option is enabled, mpd goes back into dial-on-demand mode. Otherwise, the interface is brought down and all associated routes removed."); ?></span>
698 698
			</td>
......
700 700
		<tr style="display:none" id="advanced_<?=$k;?>" name="advanced_<?=$k;$k++;?>">
701 701
			<td width="22%" valign="top" class="vncell"><?= gettext("Compression"); ?></td>
702 702
			<td width="78%" class="vtable">
703
				<input type="checkbox" value="on" id="vjcomp" name="vjcomp" <?php if (isset($pconfig['vjcomp'])) echo "checked"; ?>>&nbsp;<?= gettext("Disable vjcomp(compression) (auto-negotiated by default)."); ?>
703
				<input type="checkbox" value="on" id="vjcomp" name="vjcomp" <?php if (isset($pconfig['vjcomp'])) echo "checked"; ?> />&nbsp;<?= gettext("Disable vjcomp(compression) (auto-negotiated by default)."); ?>
704 704
				<br/> <span class="vexpl"><?=gettext("This option enables Van Jacobson TCP header compression, which saves several bytes per TCP data packet. " .
705 705
				"You almost always want this option. This compression ineffective for TCP connections with enabled modern extensions like time " .
706 706
				"stamping or SACK, which modify TCP options between sequential packets.");?></span>
......
709 709
		<tr style="display:none" id="advanced_<?=$k;?>" name="advanced_<?=$k;$k++;?>">
710 710
			<td width="22%" valign="top" class="vncell"><?= gettext("TCPmssFix"); ?></td>
711 711
			<td width="78%" class="vtable">
712
				<input type="checkbox" value="on" id="tcpmssfix" name="tcpmssfix" <?php if (isset($pconfig['tcpmssfix'])) echo "checked"; ?>>&nbsp;<?= gettext("Disable tcpmssfix (enabled by default)."); ?>
712
				<input type="checkbox" value="on" id="tcpmssfix" name="tcpmssfix" <?php if (isset($pconfig['tcpmssfix'])) echo "checked"; ?> />&nbsp;<?= gettext("Disable tcpmssfix (enabled by default)."); ?>
713 713
				<br/> <span class="vexpl"><?=gettext("This option causes mpd to adjust incoming and outgoing TCP SYN segments so that the requested maximum segment size is not greater than the amount ". 
714 714
				"allowed by the interface MTU. This is necessary in many setups to avoid problems caused by routers that drop ICMP Datagram Too Big messages. Without these messages, ".
715 715
				"the originating machine sends data, it passes the rogue router then hits a machine that has an MTU that is not big enough for the data. Because the IP Don't Fragment option is set, ".
......
720 720
		<tr style="display:none" id="advanced_<?=$k;?>" name="advanced_<?=$k;$k++;?>">
721 721
			<td width="22%" valign="top" class="vncell"><?=gettext("ShortSeq");?></td>
722 722
			<td width="78%" class="vtable">
723
				<input type="checkbox" value="on" id="shortseq" name="shortseq" <?php if (isset($pconfig['shortseq'])) echo "checked"; ?>>&nbsp;<?= gettext("Disable shortseq (auto-negotiated by default)."); ?>
723
				<input type="checkbox" value="on" id="shortseq" name="shortseq" <?php if (isset($pconfig['shortseq'])) echo "checked"; ?> />&nbsp;<?= gettext("Disable shortseq (auto-negotiated by default)."); ?>
724 724
				<br/> <span class="vexpl"><?= gettext("This option is only meaningful if multi-link PPP is negotiated. It proscribes shorter multi-link fragment headers, saving two bytes on every frame. " .
725 725
				"It is not necessary to disable this for connections that are not multi-link."); ?></span>
726 726
			</td>
......
728 728
		<tr style="display:none" id="advanced_<?=$k;?>" name="advanced_<?=$k;$k++;?>">
729 729
			<td width="22%" valign="top" class="vncell"><?=gettext("ACFComp"); ?></td>
730 730
			<td width="78%" class="vtable">
731
				<input type="checkbox" value="on" id="acfcomp" name="acfcomp" <?php if (isset($pconfig['acfcomp'])) echo "checked"; ?>>&nbsp;<?= gettext("Disable acfcomp (compression) (auto-negotiated by default)."); ?>
731
				<input type="checkbox" value="on" id="acfcomp" name="acfcomp" <?php if (isset($pconfig['acfcomp'])) echo "checked"; ?> />&nbsp;<?= gettext("Disable acfcomp (compression) (auto-negotiated by default)."); ?>
732 732
				<br/> <span class="vexpl"><?= gettext("Address and control field compression. This option only applies to asynchronous link types. It saves two bytes per frame."); ?></span>
733 733
			</td>
734 734
		</tr>
735 735
		<tr style="display:none" id="advanced_<?=$k;?>" name="advanced_<?=$k;$k++;?>">
736 736
			<td width="22%" valign="top" class="vncell"><?=gettext("ProtoComp"); ?></td>
737 737
			<td width="78%" class="vtable">
738
				<input type="checkbox" value="on" id="protocomp" name="protocomp" <?php if (isset($pconfig['protocomp'])) echo "checked"; ?>>&nbsp;<?= gettext("Disable protocomp (compression) (auto-negotiated by default)."); ?>
738
				<input type="checkbox" value="on" id="protocomp" name="protocomp" <?php if (isset($pconfig['protocomp'])) echo "checked"; ?> />&nbsp;<?= gettext("Disable protocomp (compression) (auto-negotiated by default)."); ?>
739 739
				<br/> <span class="vexpl"><?= gettext("Protocol field compression. This option saves one byte per frame for most frames."); ?></span>
740 740
			</td>
741 741
		</tr>
742 742
		<tr id="advanced_" name="advanced_">
743 743
			<td>&nbsp;</td>
744 744
			<td>
745
			<p><input type="button" onClick="show_advanced(1)" value="<?=gettext("Show advanced options"); ?>"></p>
745
			<p><input type="button" onClick="show_advanced(1)" value="<?=gettext("Show advanced options"); ?>" /></p>
746 746
			</td>
747 747
			<td style="display:none" id="adv_rows" name="adv_rows"><?=$k;?></td>
748 748
			<td style="display:none" id="adv_show" name="adv_show">0</td>
......
756 756
					<tr>
757 757
						<td width="22%" id="bwlabel<?=$i;?>" valign="top"class="vncell"> <?=gettext("Bandwidth");?></td>
758 758
						<td width="78%" class="vtable">
759
						<br/><input name="bandwidth[]" id="bandwidth<?=$i;?>" type="text" class="formfld unknown" size="40" value="<?=htmlspecialchars($pconfig['bandwidth'][$i]);?>">
759
						<br/><input name="bandwidth[]" id="bandwidth<?=$i;?>" type="text" class="formfld unknown" size="40" value="<?=htmlspecialchars($pconfig['bandwidth'][$i]);?>" />
760 760
						<br/> <span class="vexpl"><?=gettext("Set ONLY for MLPPP connections and ONLY when links have different bandwidths.");?></span>
761 761
					  </td>
762 762
					</tr>
763 763
					<tr>
764 764
					  <td width="22%" id="mtulabel<?=$i;?>" valign="top" class="vncell"> <?=gettext("MTU"); ?></td>
765 765
					  <td width="78%" class="vtable">
766
						<input name="mtu[]" id="mtu<?=$i;?>" type="text" class="formfld unknown" size="6" value="<?=htmlspecialchars($pconfig['mtu'][$i]);?>">
767
						<br> <span class="vexpl"><?=gettext("MTU will default to 1492.");?></span>
766
						<input name="mtu[]" id="mtu<?=$i;?>" type="text" class="formfld unknown" size="6" value="<?=htmlspecialchars($pconfig['mtu'][$i]);?>" />
767
						<br/> <span class="vexpl"><?=gettext("MTU will default to 1492.");?></span>
768 768
					  </td>
769 769
					</tr>
770 770
					<tr>
771 771
					  <td width="22%" id="mrulabel<?=$i;?>" valign="top" class="vncell"> <?=gettext("MRU"); ?></td>
772 772
					  <td width="78%" class="vtable">
773
						<input name="mru[]" id="mru<?=$i;?>" type="text" class="formfld unknown" size="6" value="<?=htmlspecialchars($pconfig['mru'][$i]);?>">
774
						<br> <span class="vexpl">MRU <?=gettext("will be auto-negotiated by default.");?></span>
773
						<input name="mru[]" id="mru<?=$i;?>" type="text" class="formfld unknown" size="6" value="<?=htmlspecialchars($pconfig['mru'][$i]);?>" />
774
						<br/> <span class="vexpl">MRU <?=gettext("will be auto-negotiated by default.");?></span>
775 775
					  </td>
776 776
					</tr>
777 777
					<tr>
778 778
					  <td width="22%" id="mrrulabel<?=$i;?>" valign="top" class="vncell"> <?=gettext("MRRU"); ?></td>
779 779
					  <td width="78%" class="vtable">
780
						<input name="mrru[]" id="mrru<?=$i;?>" type="text" class="formfld unknown" size="6" value="<?=htmlspecialchars($pconfig['mrru'][$i]);?>">
781
						<br> <span class="vexpl"><?=gettext("Set ONLY for MLPPP connections.");?> MRRU <?=gettext("will be auto-negotiated by default.");?></span>
780
						<input name="mrru[]" id="mrru<?=$i;?>" type="text" class="formfld unknown" size="6" value="<?=htmlspecialchars($pconfig['mrru'][$i]);?>" />
781
						<br/> <span class="vexpl"><?=gettext("Set ONLY for MLPPP connections.");?> MRRU <?=gettext("will be auto-negotiated by default.");?></span>
782 782
					  </td>
783 783
					</tr>
784 784
				</table>
......
787 787
		<tr>
788 788
			<td width="22%" valign="top">&nbsp;</td>
789 789
			<td width="78%">
790
				<input name="Submit" type="submit" class="formbtn" value="<?=gettext("Save"); ?>">
791
				<input type="button" value="<?=gettext("Cancel"); ?>" onclick="history.back()">
792
				<input name="ptpid" type="hidden" value="<?=htmlspecialchars($pconfig['ptpid']);?>">
790
				<input name="Submit" type="submit" class="formbtn" value="<?=gettext("Save"); ?>" />
791
				<input type="button" value="<?=gettext("Cancel"); ?>" onclick="history.back()" />
792
				<input name="ptpid" type="hidden" value="<?=htmlspecialchars($pconfig['ptpid']);?>" />
793 793
				<?php if (isset($id) && $a_ppps[$id]): ?>
794
					<input name="id" type="hidden" value="<?=htmlspecialchars($id);?>">
794
					<input name="id" type="hidden" value="<?=htmlspecialchars($id);?>" />
795 795
				<?php endif; ?>
796 796
			</td>
797 797
		</tr>

Also available in: Unified diff