diff options
author | Colin Fleming <cj_fleming@sky.com> | 2013-04-08 20:02:05 +0100 |
---|---|---|
committer | Colin Fleming <cj_fleming@sky.com> | 2013-04-08 20:02:05 +0100 |
commit | 5259553e3dff22be09bc5ab9fce5252fb8a61d2e (patch) | |
tree | 7439d280d8116b47d65c915e39beb7d36ea56e98 /usr/local/www/pkg_mgr_settings.php | |
parent | 4fd2fed2ad6672c3be771146048bee61317f3197 (diff) | |
download | pfsense-5259553e3dff22be09bc5ab9fce5252fb8a61d2e.zip pfsense-5259553e3dff22be09bc5ab9fce5252fb8a61d2e.tar.gz |
Tidy up "pkg_mgr_settings.php" XHTML
Close INPUT tags
Add CDATA section to SCRIPT tags
Diffstat (limited to 'usr/local/www/pkg_mgr_settings.php')
-rw-r--r-- | usr/local/www/pkg_mgr_settings.php | 31 |
1 files changed, 17 insertions, 14 deletions
diff --git a/usr/local/www/pkg_mgr_settings.php b/usr/local/www/pkg_mgr_settings.php index 27c19da..1c0e22b 100644 --- a/usr/local/www/pkg_mgr_settings.php +++ b/usr/local/www/pkg_mgr_settings.php @@ -58,13 +58,12 @@ if ($_POST) { } $curcfg = $config['system']['altpkgrepo']; - +$closehead = false; $pgtitle = array(gettext("System"),gettext("Package Settings")); include("head.inc"); ?> -<script language="JavaScript"> -<!-- - +<script type="text/javascript"> +//<![CDATA[ function enable_altpkgrepourl(enable_over) { if (document.iform.alturlenable.checked || enable_over) { @@ -74,16 +73,16 @@ function enable_altpkgrepourl(enable_over) { } } -// --> +//]]> </script> - +</head> <body link="#0000CC" vlink="#0000CC" alink="#0000CC"> <?php include("fbegin.inc");?> <?php if ($input_errors) print_input_errors($input_errors); ?> <form action="pkg_mgr_settings.php" method="post" name="iform" id="iform"> <?php if ($savemsg) print_info_box($savemsg); ?> - <table width="100%" border="0" cellpadding="0" cellspacing="0"> + <table width="100%" border="0" cellpadding="0" cellspacing="0" summary="package manager settings"> <tr> <td> <?php @@ -96,28 +95,32 @@ function enable_altpkgrepourl(enable_over) { ?> </td> </tr> - <tr><td><div id=mainarea> - <table class="tabcont" width="100%" border="0" cellpadding="6" cellspacing="0"> + <tr><td><div id="mainarea"> + <table class="tabcont" width="100%" border="0" cellpadding="6" cellspacing="0" summary="main area"> <tr> <td colspan="2" valign="top" class="listtopic"><?=gettext("Package Repository URL");?></td> </tr> <tr> <td valign="top" class="vncell"><?=gettext("Package Repository URL");?></td> <td class="vtable"> - <input name="alturlenable" type="checkbox" id="alturlenable" value="yes" onClick="enable_altpkgrepourl()" <?php if(isset($curcfg['enable'])) echo "checked"; ?>> <?=gettext("Use a different URL server for packages other than");?> <?php echo $g['product_website']; ?><br> - <table> - <tr><td><?=gettext("Base URL:");?></td><td><input name="pkgrepourl" type="input" class="formfld url" id="pkgrepourl" size="64" value="<?php if($curcfg['xmlrpcbaseurl']) echo $curcfg['xmlrpcbaseurl']; else echo $g['']; ?>"></td></tr> + <input name="alturlenable" type="checkbox" id="alturlenable" value="yes" onclick="enable_altpkgrepourl()" <?php if(isset($curcfg['enable'])) echo "checked=\"checked\""; ?> /> <?=gettext("Use a different URL server for packages other than");?> <?php echo $g['product_website']; ?><br/> + <table summary="alternative URL"> + <tr><td><?=gettext("Base URL:");?></td><td><input name="pkgrepourl" type="text" class="formfld url" id="pkgrepourl" size="64" value="<?php if($curcfg['xmlrpcbaseurl']) echo $curcfg['xmlrpcbaseurl']; else echo $g['']; ?>" /></td></tr> </table> <span class="vexpl"> <?php printf(gettext("This is where %s will check for packages when the"),$g['product_name']);?>, <a href="pkg_mgr.php"><?=gettext("System: Packages");?></a> <?=gettext("page is viewed.");?> </span> </td> </tr> - <script>enable_altpkgrepourl();</script> + <script type="text/javascript"> + //<![CDATA[ + enable_altpkgrepourl(); + //]]> + </script> <tr> <td width="22%" valign="top"> </td> <td width="78%"> - <input name="Submit" type="submit" class="formbtn" value="<?=gettext("Save");?>"> + <input name="Submit" type="submit" class="formbtn" value="<?=gettext("Save");?>" /> </td> </tr> </table></div></td></tr></table> |