replaced uppercase html tags with lowercase

js files saved as UTF-8 / LF
language="JavaScript" deprecated, replaced with type="text/javascript"
This commit is contained in:
ayvis 2014-03-19 23:38:56 +01:00
parent ec879e3db4
commit 91f026b02c
85 changed files with 199 additions and 199 deletions

View File

@ -477,7 +477,7 @@ class Net_IPv6
} else if (0 == strncmp('0000010', $binip, 7)) {
return NET_IPV6_RESERVED_IPX;;
return NET_IPV6_RESERVED_IPX;
} else if (0 == strncmp('0000011', $binip, 7) ||
0 == strncmp('111110', $binip, 6) ||

View File

@ -276,36 +276,36 @@ function captiveportal_configure_zone($cpcfg) {
else {
/* example page */
$logouttext = <<<EOD
<HTML>
<HEAD><TITLE>Redirecting...</TITLE></HEAD>
<BODY>
<SPAN STYLE="font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif; font-size: 11px;">
<B>Redirecting to <A HREF="<?=\$my_redirurl;?>"><?=\$my_redirurl;?></A>...</B>
</SPAN>
<SCRIPT LANGUAGE="JavaScript">
<html>
<head><title>Redirecting...</title></head>
<body>
<span style="font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif; font-size: 11px;">
<b>Redirecting to <a href="<?=\$my_redirurl;?>"><?=\$my_redirurl;?></a>...</b>
</span>
<script type="text/javascript">
<!--
LogoutWin = window.open('', 'Logout', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=256,height=64');
if (LogoutWin) {
LogoutWin.document.write('<HTML>');
LogoutWin.document.write('<HEAD><TITLE>Logout</TITLE></HEAD>') ;
LogoutWin.document.write('<BODY BGCOLOR="#435370">');
LogoutWin.document.write('<DIV ALIGN="center" STYLE="color: #ffffff; font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif; font-size: 11px;">') ;
LogoutWin.document.write('<B>Click the button below to disconnect</B><P>');
LogoutWin.document.write('<FORM METHOD="POST" ACTION="<?=\$logouturl;?>">');
LogoutWin.document.write('<INPUT NAME="logout_id" TYPE="hidden" VALUE="<?=\$sessionid;?>">');
LogoutWin.document.write('<INPUT NAME="zone" TYPE="hidden" VALUE="<?=\$cpzone;?>">');
LogoutWin.document.write('<INPUT NAME="logout" TYPE="submit" VALUE="Logout">');
LogoutWin.document.write('</FORM>');
LogoutWin.document.write('</DIV></BODY>');
LogoutWin.document.write('</HTML>');
LogoutWin.document.write('<html>');
LogoutWin.document.write('<head><title>Logout</title></head>') ;
LogoutWin.document.write('<body bgcolor="#435370">');
LogoutWin.document.write('<div align="center" style="color: #ffffff; font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif; font-size: 11px;">') ;
LogoutWin.document.write('<b>Click the button below to disconnect</b><p />');
LogoutWin.document.write('<form method="POST" action="<?=\$logouturl;?>">');
LogoutWin.document.write('<input name="logout_id" type="hidden" value="<?=\$sessionid;?>" />');
LogoutWin.document.write('<input name="zone" type="hidden" value="<?=\$cpzone;?>" />');
LogoutWin.document.write('<input name="logout" type="submit" value="Logout" />');
LogoutWin.document.write('</form>');
LogoutWin.document.write('</div></body>');
LogoutWin.document.write('</html>');
LogoutWin.document.close();
}
document.location.href="<?=\$my_redirurl;?>";
-->
</SCRIPT>
</BODY>
</HTML>
</script>
</body>
</html>
EOD;
}

View File

@ -3250,7 +3250,7 @@ function interface_track6_6rd_configure($interface = "lan", $lancfg) {
// echo "64 - (prefixlen {$rd6prefixlen} + v4len (32 - {$wancfg['prefix-6rd-v4plen']})) = {$restbits} \n";
$rd6lanbin .= substr(sprintf("%032b", str_pad($lancfg['track6-prefix-id'], 32, "0", STR_PAD_LEFT)), (32 - $restbits), 32);
/* fill the rest out with zeros */
$rd6lanbin = str_pad($rd6lanbin, 128, "0", STR_PAD_RIGHT);;
$rd6lanbin = str_pad($rd6lanbin, 128, "0", STR_PAD_RIGHT);
/* convert the 128 bits for the lan address back into a valid IPv6 address */
$rd6lan = convert_128bit_to_ipv6($rd6lanbin) ."1";
@ -3307,7 +3307,7 @@ function interface_track6_6to4_configure($interface = "lan", $lancfg) {
/* add the custom prefix id */
$sixto4lanbin .= sprintf("%016b", $lancfg['track6-prefix-id']);
/* fill the rest out with zeros */
$sixto4lanbin = str_pad($sixto4lanbin, 128, "0", STR_PAD_RIGHT);;
$sixto4lanbin = str_pad($sixto4lanbin, 128, "0", STR_PAD_RIGHT);
/* convert the 128 bits for the lan address back into a valid IPv6 address */
$sixto4lan = convert_128bit_to_ipv6($sixto4lanbin) ."1";
@ -3357,7 +3357,7 @@ function interface_6rd_configure($interface = "wan", $wancfg) {
/* if the prefix length is not 32 bits we need to shave bits off from the left of the v4 address. */
$rd6prefixbin .= substr(sprintf("%032b", hexdec($hexwanv4)), $wancfg['prefix-6rd-v4plen'], 32);
/* fill out the rest with 0's */
$rd6prefixbin = str_pad($rd6prefixbin, 128, "0", STR_PAD_RIGHT);;
$rd6prefixbin = str_pad($rd6prefixbin, 128, "0", STR_PAD_RIGHT);
/* convert the 128 bits for the broker address back into a valid IPv6 address */
$rd6prefix = convert_128bit_to_ipv6($rd6prefixbin);
@ -3439,11 +3439,11 @@ function interface_6to4_configure($interface = "wan", $wancfg){
/* if the prefix length is not 32 bits we need to shave bits off from the left of the v4 address. */
$stfbrokerbin = substr(sprintf("%032b", hexdec($hexbrv4)), $v4prefixlen, 32);
$stfbrokerbin = str_pad($stfprefixstartbin . $stfbrokerbin, 128, "0", STR_PAD_RIGHT);;
$stfbrokerbin = str_pad($stfprefixstartbin . $stfbrokerbin, 128, "0", STR_PAD_RIGHT);
/* for the local subnet too. */
$stflanbin = substr(sprintf("%032b", hexdec($hexwanv4)), $v4prefixlen, 32);
$stflanbin = str_pad($stfprefixstartbin . $stflanbin, 128, "0", STR_PAD_RIGHT);;
$stflanbin = str_pad($stfprefixstartbin . $stflanbin, 128, "0", STR_PAD_RIGHT);
/* convert the 128 bits for the broker address back into a valid IPv6 address */
$stfbrarr = array();

View File

@ -700,8 +700,8 @@ function install_package_xml($pkg) {
$static_output .= sprintf(gettext("The %s package is not installed.%sInstallation aborted."), $pkg, "\n\n");
update_output_window($static_output);
if($pkg_interface <> "console") {
echo "\n<script language=\"JavaScript\">document.progressbar.style.visibility='hidden';</script>";
echo "\n<script language=\"JavaScript\">document.progholder.style.visibility='hidden';</script>";
echo "\n<script type=\"text/javascript\">document.progressbar.style.visibility='hidden';</script>";
echo "\n<script type=\"text/javascript\">document.progholder.style.visibility='hidden';</script>";
}
sleep(1);
return false;
@ -727,8 +727,8 @@ function install_package_xml($pkg) {
update_output_window($static_output);
pkg_debug(gettext("Package WAS NOT installed properly.") . "\n");
if($pkg_interface <> "console") {
echo "\n<script language=\"JavaScript\">document.progressbar.style.visibility='hidden';</script>";
echo "\n<script language=\"JavaScript\">document.progholder.style.visibility='hidden';</script>";
echo "\n<script type=\"text/javascript\">document.progressbar.style.visibility='hidden';</script>";
echo "\n<script type=\"text/javascript\">document.progholder.style.visibility='hidden';</script>";
}
sleep(1);
return false;
@ -924,8 +924,8 @@ function install_package_xml($pkg) {
update_output_window($static_output);
pkg_debug(gettext("Unable to load package configuration. Installation aborted.") ."\n");
if($pkg_interface <> "console") {
echo "\n<script language=\"JavaScript\">document.progressbar.style.visibility='hidden';</script>";
echo "\n<script language=\"JavaScript\">document.progholder.style.visibility='hidden';</script>";
echo "\n<script type=\"text/javascript\">document.progressbar.style.visibility='hidden';</script>";
echo "\n<script type=\"text/javascript\">document.progholder.style.visibility='hidden';</script>";
}
sleep(1);
return false;
@ -990,8 +990,8 @@ function delete_package_xml($pkg) {
$static_output .= sprintf(gettext("The %s package is not installed.%sDeletion aborted."), $pkg, "\n\n");
update_output_window($static_output);
if($pkg_interface <> "console") {
echo "\n<script language=\"JavaScript\">document.progressbar.style.visibility='hidden';</script>";
echo "\n<script language=\"JavaScript\">document.progholder.style.visibility='hidden';</script>";
echo "\n<script type=\"text/javascript\">document.progressbar.style.visibility='hidden';</script>";
echo "\n<script type=\"text/javascript\">document.progholder.style.visibility='hidden';</script>";
}
ob_flush();
sleep(1);

View File

@ -1040,7 +1040,7 @@ function services_dhcpdv6_configure($blacklist = array()) {
$dhcpdv6cfg[$ifname]['range'] = array();
$dhcpdv6cfg[$ifname]['range']['from'] = Net_IPv6::compress(implode(":", $ifcfgipv6arr));
$ifcfgipv6arr[7] = "2000";
$dhcpdv6cfg[$ifname]['range']['to'] = Net_IPv6::compress(implode(":", $ifcfgipv6arr));;
$dhcpdv6cfg[$ifname]['range']['to'] = Net_IPv6::compress(implode(":", $ifcfgipv6arr));
/* prefix length > 0? We can add dhcp6 prefix delegation server */
if($pdlen > 2) {
$pdlenmax = $pdlen;

View File

@ -4242,7 +4242,7 @@ function altq_check_default_queues() {
$count++;
}
}
else $count++;;
else $count++;
return 0;
}

View File

@ -127,7 +127,7 @@ if ($_POST['logout_id']) {
<span style="color: #ffffff; font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif; font-size: 11px;">
<b>You have been disconnected.</b>
</span>
<script language="JavaScript">
<script type="text/javascript">
<!--
setTimeout('window.close();',5000) ;
-->

View File

@ -19,8 +19,8 @@
**
* Usage example:
*
* <script src="shCore.js" language="javascript"></script>
* <script src="shBrushXml.js" language="javascript"></script>
* <script src="shCore.js" type="text/javascript"></script>
* <script src="shBrushXml.js" type="text/javascript"></script>
*
* <textarea name="code" language="html">
* <img src="myimage.gif" border="0">
@ -98,7 +98,7 @@ dp.sh.Utils.PrintSource = function(sender)
{
var td = sender.parentNode;
var code = td.processedCode;
var iframe = document.createElement('IFRAME');
var iframe = document.createElement('iframe');
var doc = null;
var wnd =
@ -430,8 +430,8 @@ dp.sh.Highlighter.prototype.Highlight = function(code)
this.originalCode = code;
this.code = Trim(code);
this.div = document.createElement('DIV');
this.table = document.createElement('TABLE');
this.div = document.createElement('div');
this.table = document.createElement('table');
this.matches = new Array();
if(this.CssClass != null)
@ -579,7 +579,7 @@ dp.sh.HighlightAll = function(name, showGutter /* optional */, showControls /* o
highlighter.Highlight(element[propertyName]);
// place the result table inside a div
var div = document.createElement('DIV');
var div = document.createElement('div');
div.className = 'dp-highlighter';
div.appendChild(highlighter.table);

View File

@ -121,7 +121,7 @@ dp.sh.Toolbar.Commands = {
// creates a <div /> with all toolbar links
dp.sh.Toolbar.Create = function(highlighter)
{
var div = document.createElement('DIV');
var div = document.createElement('div');
div.className = 'tools';
@ -214,7 +214,7 @@ dp.sh.Highlighter.SortCallback = function(m1, m2)
return 0;
}
dp.sh.Highlighter.prototype.CreateElement = function(name)
dp.sh.Highlighter.prototype.createElement = function(name)
{
var result = document.createElement(name);
result.highlighter = this;
@ -236,7 +236,7 @@ dp.sh.Highlighter.prototype.AddBit = function(str, css)
if(str == null || str.length == 0)
return;
var span = this.CreateElement('span');
var span = this.createElement('span');
str = str.replace(/&/g, '&amp;');
str = str.replace(/ /g, '&nbsp;');
@ -257,7 +257,7 @@ dp.sh.Highlighter.prototype.AddBit = function(str, css)
for(var i = 0; i < lines.length; i++)
{
span = this.CreateElement('span');
span = this.createElement('span');
span.className = css;
span.innerHTML = lines[i];
@ -265,7 +265,7 @@ dp.sh.Highlighter.prototype.AddBit = function(str, css)
// don't add a <br /> for the last line
if(i + 1 < lines.length)
this.div.appendChild(this.CreateElement('br'));
this.div.appendChild(this.createElement('br'));
}
}
else
@ -369,8 +369,8 @@ dp.sh.Highlighter.prototype.SwitchToList = function()
// add columns ruler
if(this.showColumns)
{
var div = this.CreateElement('div');
var columns = this.CreateElement('div');
var div = this.createElement('div');
var columns = this.createElement('div');
var showEvery = 10;
var i = 1;
@ -395,8 +395,8 @@ dp.sh.Highlighter.prototype.SwitchToList = function()
for(var i = 0, lineIndex = this.firstLine; i < lines.length - 1; i++, lineIndex++)
{
var li = this.CreateElement('LI');
var span = this.CreateElement('SPAN');
var li = this.createElement('li');
var span = this.createElement('span');
// uses .line1 and .line2 css styles for alternating lines
li.className = (i % 2 == 0) ? 'alt' : '';
@ -458,9 +458,9 @@ dp.sh.Highlighter.prototype.Highlight = function(code)
this.originalCode = code;
this.code = Chop(Unindent(code));
this.div = this.CreateElement('DIV');
this.bar = this.CreateElement('DIV');
this.ol = this.CreateElement('OL');
this.div = this.createElement('div');
this.bar = this.createElement('div');
this.ol = this.createElement('ol');
this.matches = new Array();
this.div.className = 'dp-highlighter';

View File

@ -586,7 +586,7 @@ include("head.inc");
<body link="#0000CC" vlink="#0000CC" alink="#0000CC">
<?php include("fbegin.inc"); ?>
<script language="JavaScript">
<script type="text/javascript">
<!--
function encrypt_change() {
@ -772,7 +772,7 @@ function backuparea_change(obj) {
</table>
</form>
<script language="JavaScript">
<script type="text/javascript">
<!--
encrypt_change();
decrypt_change();

View File

@ -184,7 +184,7 @@ $status = ipsec_smp_dump_status();
<tr>
<td class="listrborder" colspan="7">
<div id="btnchildsa-<?=$ikeid;?>">
<input type="button" onClick="show_childsa('childsa-<?=$ikeid;?>','btnchildsa-<?=$ikeid;?>');" value="+"></input> - Show child SA entries</a>
<input type="button" onClick="show_childsa('childsa-<?=$ikeid;?>','btnchildsa-<?=$ikeid;?>');" value="+" /> - Show child SA entries</a>
</div>
<table class="tabcont" width="100%" height="100%" border="0" cellspacing="0" cellpadding="0" id="childsa-<?=$ikeid;?>" style="display:none">
<thead>

View File

@ -102,7 +102,7 @@ function pie_block($summary, $stat, $num) {
$k = array_keys($summary[$stat]);
$total = 0;
$numentries = 0;
print "\n<script language=\"javascript\" type=\"text/javascript\">\n";
print "\n<script type=\"text/javascript\">\n";
print "//<![CDATA[\n";
for ($i=0; $i < $num; $i++) {
if ($k[$i]) {
@ -166,13 +166,13 @@ foreach ($filterlog as $fe) {
include("head.inc"); ?>
<body link="#000000" vlink="#000000" alink="#000000">
<script src="/javascript/filter_log.js" type="text/javascript"></script>
<script language="javascript" type="text/javascript" src="/protochart/prototype.js"></script>
<script language="javascript" type="text/javascript" src="/protochart/ProtoChart.js"></script>
<script type="text/javascript" type="text/javascript" src="/protochart/prototype.js"></script>
<script type="text/javascript" type="text/javascript" src="/protochart/ProtoChart.js"></script>
<!--[if IE]>
<script language="javascript" type="text/javascript" src="/protochart/excanvas.js">
<script type="text/javascript" type="text/javascript" src="/protochart/excanvas.js">
</script>
<![endif]-->
<script language="javascript" type="text/javascript">
<script type="text/javascript" type="text/javascript">
//<![CDATA[
function lblfmt(lbl) {
return '<font size=\"-2\">' + lbl + '<\/font>'

View File

@ -167,7 +167,7 @@ include('head.inc');
<tr>
<td class="vncellreq" width="22%"><?=gettext("Name resolution");?></td>
<td class="vtable" width="78%">
<input type="checkbox" class="formfld" id="resolve" name="resolve" value="yes" <?php if ($_POST['resolve'] == 'yes') echo 'checked'; ?>><?=gettext("Enable");?></input>
<input type="checkbox" class="formfld" id="resolve" name="resolve" value="yes" <?php if ($_POST['resolve'] == 'yes') echo 'checked'; ?>><?=gettext("Enable");? />
<br />
<span class="expl"><?=gettext("Enable this to attempt to resolve names when displaying the tables.");?></span>
</td>

View File

@ -198,7 +198,7 @@ if($_REQUEST['sorttype'] && in_array($_REQUEST['sorttype'], $sorttypes)
</div>
</form>
<?php include("fend.inc"); ?>
<script language="JavaScript">
<script type="text/javascript">
jQuery("#viewtype").change(function() {
var selected = jQuery("#viewtype option:selected");
switch(selected.val()) {

View File

@ -98,7 +98,7 @@ include("fbegin.inc");
<?php if ($savemsg) print_info_box($savemsg); ?>
<form method='post'>
<script language="javascript">
<script type="text/javascript">
function method_change(entrytype) {
window.location='diag_tables.php?type=' + entrytype;
}

2
usr/local/www/exec.php Executable file → Normal file
View File

@ -94,7 +94,7 @@ $pgtitle = array(gettext("Diagnostics"),gettext("Execute command"));
include("head.inc");
?>
<script language="javascript">
<script type="text/javascript">
<!--
// Create recall buffer array (of encoded strings).

View File

@ -166,10 +166,10 @@ $closehead = false;
$pgtitle = array(gettext("Firewall"),gettext("NAT"),gettext("Port Forward"));
include("head.inc");
echo "<script type=\"text/javascript\" language=\"javascript\" src=\"/javascript/domTT/domLib.js\"></script>";
echo "<script type=\"text/javascript\" language=\"javascript\" src=\"/javascript/domTT/domTT.js\"></script>";
echo "<script type=\"text/javascript\" language=\"javascript\" src=\"/javascript/domTT/behaviour.js\"></script>";
echo "<script type=\"text/javascript\" language=\"javascript\" src=\"/javascript/domTT/fadomatic.js\"></script>";
echo "<script type=\"text/javascript\" src=\"/javascript/domTT/domLib.js\"></script>";
echo "<script type=\"text/javascript\" src=\"/javascript/domTT/domTT.js\"></script>";
echo "<script type=\"text/javascript\" src=\"/javascript/domTT/behaviour.js\"></script>";
echo "<script type=\"text/javascript\" src=\"/javascript/domTT/fadomatic.js\"></script>";
?>
</head>
@ -177,7 +177,7 @@ echo "<script type=\"text/javascript\" language=\"javascript\" src=\"/javascript
<body link="#000000" vlink="#000000" alink="#000000">
<?php include("fbegin.inc"); ?>
<form action="firewall_nat.php" method="post" name="iform">
<script type="text/javascript" language="javascript" src="/javascript/row_toggle.js"></script>
<script type="text/javascript" type="text/javascript" src="/javascript/row_toggle.js"></script>
<?php if ($savemsg) print_info_box($savemsg); ?>
<?php if (is_subsystem_dirty('natconf')): ?>
<?php print_info_box_np(gettext("The NAT configuration has been changed") . ".<br />" . gettext("You must apply the changes in order for them to take effect."));?><br />

View File

@ -150,7 +150,7 @@ include("head.inc");
<body link="#0000CC" vlink="#0000CC" alink="#0000CC">
<?php include("fbegin.inc"); ?>
<form action="firewall_nat_1to1.php" method="post">
<script type="text/javascript" language="javascript" src="/javascript/row_toggle.js"></script>
<script type="text/javascript" type="text/javascript" src="/javascript/row_toggle.js"></script>
<?php
if ($savemsg)
print_info_box($savemsg);

View File

@ -213,7 +213,7 @@ include("head.inc");
<body link="#0000CC" vlink="#0000CC" alink="#0000CC">
<?php include("fbegin.inc"); ?>
<form action="firewall_nat_out.php" method="post" name="iform">
<script type="text/javascript" language="javascript" src="/javascript/row_toggle.js"></script>
<script type="text/javascript" type="text/javascript" src="/javascript/row_toggle.js"></script>
<?php
if ($savemsg)
print_info_box($savemsg);

View File

@ -301,7 +301,7 @@ include("head.inc");
<?php include("fbegin.inc"); ?>
<form action="firewall_rules.php" method="post">
<script type="text/javascript" language="javascript" src="/javascript/row_toggle.js"></script>
<script type="text/javascript" type="text/javascript" src="/javascript/row_toggle.js"></script>
<?php if ($savemsg) print_info_box($savemsg); ?>
<?php if (is_subsystem_dirty('filter')): ?><p>
<?php

View File

@ -667,7 +667,7 @@ pfSense_handle_custom_code("/usr/local/pkg/dashboard/pre_dashboard");
<?php
}
else { ?>
<script language="javascript" type="text/javascript">
<script type="text/javascript" type="text/javascript">
var colpos = "<?=$colpos[$widgetcounter]?>";
createColumn(colpos);
</script>

View File

@ -118,7 +118,7 @@ document.getElementsBySelector = function(selector) {
var tokens = selector.split(' ');
var currentContext = new Array(document);
for (var i = 0; i < tokens.length; i++) {
token = tokens[i].replace(/^\s+/,'').replace(/\s+$/,'');;
token = tokens[i].replace(/^\s+/,'').replace(/\s+$/,'');
if (token.indexOf('#') > -1) {
// Token is an ID selector
var bits = token.split('#');

View File

@ -38,7 +38,7 @@ var firebug = {
el.button.inspect = new pi.element("A").attribute.addClass("Button").event.addListener("click",d.inspector.toggle).update("Inspect").insert(el.button.container);
el.button.maximize = new pi.element("A").attribute.addClass("Button Maximize").event.addListener("click",win.maximize).insert(el.button.container);
el.button.minimize = new pi.element("A").attribute.addClass("Button Minimize").event.addListener("click",win.minimize).insert(el.button.container);
el.button.close = new pi.element("A").attribute.addClass("Button Close").event.addListener("click",win.close).insert(el.button.container);;
el.button.close = new pi.element("A").attribute.addClass("Button Close").event.addListener("click",win.close).insert(el.button.container);
if(pi.env.ie||pi.env.webkit){
el.button.container.environment.addStyle({ "paddingTop":"12px" });

View File

@ -120,7 +120,7 @@ function checkPoolControls() {
jQuery("#moveToEnabled").prop("disabled",false);
}
} else {
jQuery("#moveToEnabled").prop("disabled",false);;
jQuery("#moveToEnabled").prop("disabled",false);
}
}

View File

@ -331,7 +331,7 @@
);
},
"update":function(_value){
["TEXTAREA","INPUT"].indexOf(this.environment.getName())>-1?
["textarea","input"].indexOf(this.environment.getName())>-1?
(this.environment.getElement().value = _value):
(this.environment.getElement().innerHTML = _value);
return this;

16
usr/local/www/javascript/row_helper.js Executable file → Normal file
View File

@ -26,36 +26,36 @@ var addRowTo = (function() {
for (i = 0; i < field_counter_js; i++) {
td = d.createElement("td");
if(typeof(rowtype[i]) == 'function') {
td.innerHTML="<INPUT type='hidden' value='" + totalrows +"' name='" + rowname[i] + "_row-" + totalrows + "'></input>" + rowtype[i](rowname[i], rowsize[i], totalrows) + " ";
td.innerHTML="<input type='hidden' value='" + totalrows +"' name='" + rowname[i] + "_row-" + totalrows + "' />" + rowtype[i](rowname[i], rowsize[i], totalrows) + " ";
} else if(rowtype[i] == 'textbox') {
td.innerHTML="<INPUT type='hidden' value='" + totalrows +"' name='" + rowname[i] + "_row-" + totalrows + "'></input><input size='" + rowsize[i] + "' class='formfld unknown' name='" + rowname[i] + totalrows + "' id='" + rowname[i] + totalrows + "'></input> ";
td.innerHTML="<input type='hidden' value='" + totalrows +"' name='" + rowname[i] + "_row-" + totalrows + "' /><input size='" + rowsize[i] + "' class='formfld unknown' name='" + rowname[i] + totalrows + "' id='" + rowname[i] + totalrows + "' /> ";
} else if(rowtype[i] == 'textbox,ipv4v6') {
td.innerHTML="<INPUT type='hidden' value='" + totalrows +"' name='" + rowname[i] + "_row-" + totalrows + "'></input><input size='" + rowsize[i] + "' class='formfld unknown ipv4v6' name='" + rowname[i] + totalrows + "' id='" + rowname[i] + totalrows + "'></input> ";
td.innerHTML="<input type='hidden' value='" + totalrows +"' name='" + rowname[i] + "_row-" + totalrows + "' /><input size='" + rowsize[i] + "' class='formfld unknown ipv4v6' name='" + rowname[i] + totalrows + "' id='" + rowname[i] + totalrows + "' /> ";
} else if(rowtype[i] == 'password') {
td.innerHTML="<INPUT type='hidden' value='" + totalrows +"' name='" + rowname[i] + "_row-" + totalrows + "'></input><input type='password' size='" + rowsize[i] + "' class='formfld pwd' name='" + rowname[i] + totalrows + "' id='" + rowname[i] + totalrows + "'></input> ";
td.innerHTML="<input type='hidden' value='" + totalrows +"' name='" + rowname[i] + "_row-" + totalrows + "' /><input type='password' size='" + rowsize[i] + "' class='formfld pwd' name='" + rowname[i] + totalrows + "' id='" + rowname[i] + totalrows + "' /> ";
} else if(rowtype[i] == 'select') {
var cidr;
var str;
for (cidr = 128; cidr>= 1; cidr--) {
str=str + "<option value=\"" + cidr + "\" >" + cidr + "</option>";
}
td.innerHTML="<INPUT type='hidden' value='" + totalrows +"' name='" + rowname[i] + "_row-" + totalrows + "'></input><select size='1' name='" + rowname[i] + totalrows + "' id='" + rowname[i] + totalrows + "'>" + str + "</select> ";
td.innerHTML="<input type='hidden' value='" + totalrows +"' name='" + rowname[i] + "_row-" + totalrows + "' /><select size='1' name='" + rowname[i] + totalrows + "' id='" + rowname[i] + totalrows + "'>" + str + "</select> ";
} else if(rowtype[i] == 'select,ipv4v6') {
var cidr;
var str;
for (cidr = 128; cidr>= 1; cidr--) {
str=str + "<option value=\"" + cidr + "\" >" + cidr + "</option>";
}
td.innerHTML="<INPUT type='hidden' value='" + totalrows +"' name='" + rowname[i] + "_row-" + totalrows + "'></input><select class='ipv4v6' size='1' name='" + rowname[i] + totalrows + "' id='" + rowname[i] + totalrows + "'>" + str + "</select> ";
td.innerHTML="<input type='hidden' value='" + totalrows +"' name='" + rowname[i] + "_row-" + totalrows + "' /><select class='ipv4v6' size='1' name='" + rowname[i] + totalrows + "' id='" + rowname[i] + totalrows + "'>" + str + "</select> ";
} else if(rowtype[i] == 'select_source') {
var cidr;
var str;
for (cidr = 128; cidr>= 1; cidr--) {
str=str + "<option value=\"" + cidr + "\" >" + cidr + "</option>";
}
td.innerHTML="<INPUT type='hidden' value='" + totalrows +"' name='" + rowname[i] + "_row-" + totalrows + "'></input><select size='1' name='" + rowname[i] + totalrows + "' id='" + rowname[i] + totalrows + "'>" + str + "</select> ";
td.innerHTML="<input type='hidden' value='" + totalrows +"' name='" + rowname[i] + "_row-" + totalrows + "' /><select size='1' name='" + rowname[i] + totalrows + "' id='" + rowname[i] + totalrows + "'>" + str + "</select> ";
} else {
td.innerHTML="<INPUT type='hidden' value='" + totalrows +"' name='" + rowname[i] + "_row-" + totalrows + "'></input><input type='checkbox' name='" + rowname[i] + totalrows + "'></input> ";
td.innerHTML="<input type='hidden' value='" + totalrows +"' name='" + rowname[i] + "_row-" + totalrows + "' /><input type='checkbox' name='" + rowname[i] + totalrows + "' /> ";
}
tr.appendChild(td);
}

20
usr/local/www/javascript/row_helper_dynamic.js Executable file → Normal file
View File

@ -36,25 +36,25 @@ var addRowTo = (function() {
size = rowsize[i];
td = d.createElement("td");
if(typeof(rowtype[i]) == 'function') {
td.innerHTML="<INPUT type='hidden' value='" + totalrows +"' name='" + rowname[i] + "_row-" + totalrows + "'></input>" + rowtype[i](rowname[i], size, totalrows) + " ";
td.innerHTML="<input type='hidden' value='" + totalrows +"' name='" + rowname[i] + "_row-" + totalrows + "' />" + rowtype[i](rowname[i], size, totalrows) + " ";
} else if(rowtype[i] == 'textbox') {
td.innerHTML="<INPUT type='hidden' value='" + totalrows +"' name='" + rowname[i] + "_row-" + totalrows + "'></input><input " + rowhelper_onChange + " size='" + rowsize[i] + "' name='" + rowname[i] + totalrows + "' id='" + rowname[i] + totalrows + "'></input> ";
td.innerHTML="<input type='hidden' value='" + totalrows +"' name='" + rowname[i] + "_row-" + totalrows + "' /><input " + rowhelper_onChange + " size='" + rowsize[i] + "' name='" + rowname[i] + totalrows + "' id='" + rowname[i] + totalrows + "' /> ";
} else if(rowtype[i] == 'textbox,ipv4v6') {
td.innerHTML="<INPUT type='hidden' value='" + totalrows +"' name='" + rowname[i] + "_row-" + totalrows + "'></input><input " + rowhelper_onChange + " size='" + rowsize[i] + "' name='" + rowname[i] + totalrows + "' class='ipv4v6' id='" + rowname[i] + totalrows + "'></input> ";
td.innerHTML="<input type='hidden' value='" + totalrows +"' name='" + rowname[i] + "_row-" + totalrows + "' /><input " + rowhelper_onChange + " size='" + rowsize[i] + "' name='" + rowname[i] + totalrows + "' class='ipv4v6' id='" + rowname[i] + totalrows + "' /> ";
} else if(rowtype[i] == 'select') {
td.innerHTML="<INPUT type='hidden' value='" + totalrows +"' name='" + rowname[i] + "_row-" + totalrows + "'></input><select " + rowhelper_onChange + " name='" + rowname[i] + totalrows + "' id='" + rowname[i] + totalrows + "'>" + newrow[i] + "</select> ";
td.innerHTML="<input type='hidden' value='" + totalrows +"' name='" + rowname[i] + "_row-" + totalrows + "' /><select " + rowhelper_onChange + " name='" + rowname[i] + totalrows + "' id='" + rowname[i] + totalrows + "'>" + newrow[i] + "</select> ";
} else if(rowtype[i] == 'select,ipv4v6') {
td.innerHTML="<INPUT type='hidden' value='" + totalrows +"' name='" + rowname[i] + "_row-" + totalrows + "'></input><select " + rowhelper_onChange + " name='" + rowname[i] + totalrows + "' class='ipv4v6' id='" + rowname[i] + totalrows + "'>" + newrow[i] + "</select> ";
td.innerHTML="<input type='hidden' value='" + totalrows +"' name='" + rowname[i] + "_row-" + totalrows + "' /><select " + rowhelper_onChange + " name='" + rowname[i] + totalrows + "' class='ipv4v6' id='" + rowname[i] + totalrows + "'>" + newrow[i] + "</select> ";
} else if(rowtype[i] == 'interfaces_selection') {
td.innerHTML="<INPUT type='hidden' value='" + totalrows +"' name='" + rowname[i] + "_row-" + totalrows + "'></input><select " + rowhelper_onChange + " name='" + rowname[i] + totalrows + "' id='" + rowname[i] + totalrows + "'>" + newrow[i] + "</select> ";
td.innerHTML="<input type='hidden' value='" + totalrows +"' name='" + rowname[i] + "_row-" + totalrows + "' /><select " + rowhelper_onChange + " name='" + rowname[i] + totalrows + "' id='" + rowname[i] + totalrows + "'>" + newrow[i] + "</select> ";
} else if(rowtype[i] == 'select_source') {
td.innerHTML="<INPUT type='hidden' value='" + totalrows +"' name='" + rowname[i] + "_row-" + totalrows + "'></input><select " + rowhelper_onChange + " name='" + rowname[i] + totalrows + "' id='" + rowname[i] + totalrows + "'>" + newrow[i] + "</select> ";
td.innerHTML="<input type='hidden' value='" + totalrows +"' name='" + rowname[i] + "_row-" + totalrows + "' /><select " + rowhelper_onChange + " name='" + rowname[i] + totalrows + "' id='" + rowname[i] + totalrows + "'>" + newrow[i] + "</select> ";
} else if(rowtype[i] == 'checkbox') {
td.innerHTML="<INPUT type='hidden' value='" + totalrows +"' name='" + rowname[i] + "_row-" + totalrows + "'></input><input " + rowhelper_onChange + " type='checkbox'name='" + rowname[i] + totalrows + "' id='" + rowname[i] + totalrows + "'></input> ";
td.innerHTML="<input type='hidden' value='" + totalrows +"' name='" + rowname[i] + "_row-" + totalrows + "' /><input " + rowhelper_onChange + " type='checkbox'name='" + rowname[i] + totalrows + "' id='" + rowname[i] + totalrows + "' /> ";
} else if(rowtype[i] == 'input') {
td.innerHTML="<INPUT type='hidden' value='" + totalrows +"' name='" + rowname[i] + "_row-" + totalrows + "'></input><input " + rowhelper_onChange + " class='formfld unknown' size='" + size + "' name='" + rowname[i] + totalrows + "' id='" + rowname[i] + totalrows + "'></input> ";
td.innerHTML="<input type='hidden' value='" + totalrows +"' name='" + rowname[i] + "_row-" + totalrows + "' /><input " + rowhelper_onChange + " class='formfld unknown' size='" + size + "' name='" + rowname[i] + totalrows + "' id='" + rowname[i] + totalrows + "' /> ";
} else if(rowtype[i] == 'password') {
td.innerHTML="<INPUT type='hidden' value='" + totalrows +"' name='" + rowname[i] + "_row-" + totalrows + "'></input><input " + rowhelper_onChange + " class='formfld pwd' type='password' name='" + rowname[i] + totalrows + "' id='" + rowname[i] + totalrows + "'></input> ";
td.innerHTML="<input type='hidden' value='" + totalrows +"' name='" + rowname[i] + "_row-" + totalrows + "' /><input " + rowhelper_onChange + " class='formfld pwd' type='password' name='" + rowname[i] + totalrows + "' id='" + rowname[i] + totalrows + "' /> ";
}
tr.appendChild(td);
}

0
usr/local/www/javascript/row_toggle.js Executable file → Normal file
View File

View File

@ -305,15 +305,15 @@ var Draggable = Class.create({
// abort on form elements, fixes a Firefox issue
var src = Event.element(event);
if((tag_name = src.tagName.toUpperCase()) && (
tag_name=='INPUT' ||
tag_name=='SELECT' ||
tag_name=='OPTION' ||
tag_name=='BUTTON' ||
tag_name=='TEXTAREA')) return;
tag_name=='input' ||
tag_name=='select' ||
tag_name=='option' ||
tag_name=='button' ||
tag_name=='textarea')) return;
var pointer = [Event.pointerX(event), Event.pointerY(event)];
var pos = this.element.cumulativeOffset();
this.offset = [0,1].map( function(i) { return (pointer[i] - pos[i]) });
this.offset = [0,1].map( function(i) { return (pointer[i] - pos[i]); });
Draggables.activate(this);
Event.stop(event);

View File

@ -210,7 +210,7 @@ sorttable = {
if (text.match(/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(\:[0-9]{1,5})?\b/)) {
return sorttable.sort_ipaddr;
}
if (text.match(/^-?[£$¤]?[\d,.]+%?$/)) {
if (text.match(/^-?[£$¤]?[\d,.]+%?$/)) {
return sorttable.sort_numeric;
}
// check for a date: dd/mm/yyyy or dd/mm/yy

0
usr/local/www/javascript/ticker.js Executable file → Normal file
View File

View File

@ -200,7 +200,7 @@ $types = array("icmp" => gettext("ICMP"), "tcp" => gettext("TCP"), "http" => get
<body link="#0000CC" vlink="#0000CC" alink="#0000CC">
<script language="javascript">
<script type="text/javascript">
function updateType(t){
switch(t) {
<?php

View File

@ -172,7 +172,7 @@ include("head.inc");
?>
<body link="#0000CC" vlink="#0000CC" alink="#0000CC">
<script language="javascript">
<script type="text/javascript">
function clearcombo(){
for (var i=document.iform.serversSelect.options.length-1; i>=0; i--){
document.iform.serversSelect.options[i] = null;

View File

@ -186,7 +186,7 @@ include("head.inc");
<body link="#0000CC" vlink="#0000CC" alink="#0000CC">
<script language="javascript">
<script type="text/javascript">
function updateProtocol(m) {
// Default to HTTP

View File

@ -142,7 +142,7 @@ include("head.inc");
$types = array("http" => gettext("HTTP"), "tcp" => gettext("TCP"), "dns" => gettext("DNS"));
?>
<body link="#0000CC" vlink="#0000CC" alink="#0000CC">
<script language="javascript">
<script type="text/javascript">
function updateType(t){
switch(t) {
<?php

View File

@ -793,7 +793,7 @@ if ($pkg['tabs'] <> "") {
if(isset($pkga['placeonbottom']))
$pkg_buttons .= $input;
else
echo $input ."\n<br />" . fixup_string($pkga['description']) . "\n";;
echo $input ."\n<br />" . fixup_string($pkga['description']) . "\n";
break;
case "rowhelper":

View File

@ -109,7 +109,7 @@ include("head.inc");
<script type="text/javascript" src="javascript/domTT/domTT.js"></script>
<script type="text/javascript" src="javascript/domTT/behaviour.js"></script>
<script type="text/javascript" src="javascript/domTT/fadomatic.js"></script>
<script type="text/javascript" language="javascript" src="/javascript/row_helper_dynamic.js"></script>
<script type="text/javascript" type="text/javascript" src="/javascript/row_helper_dynamic.js"></script>
</head>
<body link="#0000CC" vlink="#0000CC" alink="#0000CC">

View File

@ -85,7 +85,7 @@ include("head.inc");
<script type="text/javascript" src="javascript/domTT/domTT.js"></script>
<script type="text/javascript" src="javascript/domTT/behaviour.js"></script>
<script type="text/javascript" src="javascript/domTT/fadomatic.js"></script>
<script type="text/javascript" language="javascript" src="/javascript/row_helper_dynamic.js"></script>
<script type="text/javascript" type="text/javascript" src="/javascript/row_helper_dynamic.js"></script>
</head>
<body link="#0000CC" vlink="#0000CC" alink="#0000CC">

View File

@ -414,7 +414,7 @@ if ($_POST) {
}
include("head.inc");
?>
<script language="JavaScript">
<script type="text/javascript">
<!--
function enable_change(enable_change) {
var endis, radius_endis;
@ -1076,7 +1076,7 @@ function enable_change(enable_change) {
</tr>
</table>
</form>
<script language="JavaScript">
<script type="text/javascript">
<!--
enable_change(false);
//-->

View File

@ -602,7 +602,7 @@ include("head.inc");
rowsize[2] = "40";
</script>
<script type="text/javascript" language="JavaScript">
<script type="text/javascript">
function enable_change(enable_over) {
var endis;
<?php if (is_numeric($pool) || ($act == "newpool")): ?>
@ -1007,7 +1007,7 @@ include("head.inc");
<td width="22%" valign="top" class="vncell"><?=gettext("Dynamic DNS");?></td>
<td width="78%" class="vtable">
<div id="showddnsbox">
<input type="button" onClick="show_ddns_config()" value="<?=gettext("Advanced");?>"></input> - <?=gettext("Show Dynamic DNS");?></a>
<input type="button" onClick="show_ddns_config()" value="<?=gettext("Advanced");?>" /> - <?=gettext("Show Dynamic DNS");?></a>
</div>
<div id="showddns" style="display:none">
<input valign="middle" type="checkbox" value="yes" name="ddnsupdate" id="ddnsupdate" <?php if($pconfig['ddnsupdate']) echo " checked"; ?>>&nbsp;
@ -1029,7 +1029,7 @@ include("head.inc");
<td width="22%" valign="top" class="vncell"><?=gettext("MAC Address Control");?></td>
<td width="78%" class="vtable">
<div id="showmaccontrolbox">
<input type="button" onClick="show_maccontrol_config()" value="<?=gettext("Advanced");?>"></input> - <?=gettext("Show MAC Address Control");?></a>
<input type="button" onClick="show_maccontrol_config()" value="<?=gettext("Advanced");?>" /> - <?=gettext("Show MAC Address Control");?></a>
</div>
<div id="showmaccontrol" style="display:none">
<input name="mac_allow" type="text" class="formfld unknown" id="mac_allow" size="20" value="<?=htmlspecialchars($pconfig['mac_allow']);?>"><br />
@ -1043,7 +1043,7 @@ include("head.inc");
<td width="22%" valign="top" class="vncell"><?=gettext("NTP servers");?></td>
<td width="78%" class="vtable">
<div id="showntpbox">
<input type="button" onClick="show_ntp_config()" value="<?=gettext("Advanced");?>"></input> - <?=gettext("Show NTP configuration");?></a>
<input type="button" onClick="show_ntp_config()" value="<?=gettext("Advanced");?>" /> - <?=gettext("Show NTP configuration");?></a>
</div>
<div id="showntp" style="display:none">
<input name="ntp1" type="text" class="formfld unknown" id="ntp1" size="20" value="<?=htmlspecialchars($pconfig['ntp1']);?>"><br />
@ -1055,7 +1055,7 @@ include("head.inc");
<td width="22%" valign="top" class="vncell"><?=gettext("TFTP server");?></td>
<td width="78%" class="vtable">
<div id="showtftpbox">
<input type="button" onClick="show_tftp_config()" value="<?=gettext("Advanced");?>"></input> - <?=gettext("Show TFTP configuration");?></a>
<input type="button" onClick="show_tftp_config()" value="<?=gettext("Advanced");?>" /> - <?=gettext("Show TFTP configuration");?></a>
</div>
<div id="showtftp" style="display:none">
<input name="tftp" type="text" class="formfld unknown" id="tftp" size="50" value="<?=htmlspecialchars($pconfig['tftp']);?>"><br />
@ -1067,7 +1067,7 @@ include("head.inc");
<td width="22%" valign="top" class="vncell"><?=gettext("LDAP URI");?></td>
<td width="78%" class="vtable">
<div id="showldapbox">
<input type="button" onClick="show_ldap_config()" value="<?=gettext("Advanced");?>"></input> - <?=gettext("Show LDAP configuration");?></a>
<input type="button" onClick="show_ldap_config()" value="<?=gettext("Advanced");?>" /> - <?=gettext("Show LDAP configuration");?></a>
</div>
<div id="showldap" style="display:none">
<input name="ldap" type="text" class="formfld unknown" id="ldap" size="80" value="<?=htmlspecialchars($pconfig['ldap']);?>"><br />
@ -1079,7 +1079,7 @@ include("head.inc");
<td width="22%" valign="top" class="vncell"><?=gettext("Enable network booting");?></td>
<td width="78%" class="vtable">
<div id="shownetbootbox">
<input type="button" onClick="show_netboot_config()" value="<?=gettext("Advanced");?>"></input> - <?=gettext("Show Network booting");?></a>
<input type="button" onClick="show_netboot_config()" value="<?=gettext("Advanced");?>" /> - <?=gettext("Show Network booting");?></a>
</div>
<div id="shownetboot" style="display:none">
<input valign="middle" type="checkbox" value="yes" name="netboot" id="netboot" <?php if($pconfig['netboot']) echo " checked"; ?>>&nbsp;
@ -1107,7 +1107,7 @@ include("head.inc");
<td width="22%" valign="top" class="vncell"><?=gettext("Additional BOOTP/DHCP Options");?></td>
<td width="78%" class="vtable">
<div id="shownumbervaluebox">
<input type="button" onClick="show_shownumbervalue()" value="<?=gettext("Advanced");?>"></input> - <?=gettext("Show Additional BOOTP/DHCP Options");?></a>
<input type="button" onClick="show_shownumbervalue()" value="<?=gettext("Advanced");?>" /> - <?=gettext("Show Additional BOOTP/DHCP Options");?></a>
</div>
<div id="shownumbervalue" style="display:none">
<table id="maintable">
@ -1275,7 +1275,7 @@ include("head.inc");
</tr>
</table>
</form>
<script language="JavaScript">
<script type="text/javascript">
<!--
enable_change(false);
//-->

View File

@ -327,7 +327,7 @@ include("head.inc");
?>
<script type="text/javascript" language="JavaScript">
<script type="text/javascript">
function show_ddns_config() {
document.getElementById("showddnsbox").innerHTML='';
aodiv = document.getElementById('showddns');
@ -478,7 +478,7 @@ include("head.inc");
<td width="22%" valign="top" class="vncell"><?=gettext("Dynamic DNS");?></td>
<td width="78%" class="vtable">
<div id="showddnsbox">
<input type="button" onClick="show_ddns_config()" value="<?=gettext("Advanced");?>"></input> - <?=gettext("Show Dynamic DNS");?></a>
<input type="button" onClick="show_ddns_config()" value="<?=gettext("Advanced");?>" /> - <?=gettext("Show Dynamic DNS");?></a>
</div>
<div id="showddns" style="display:none">
<input valign="middle" type="checkbox" value="yes" name="ddnsupdate" id="ddnsupdate" <?php if($pconfig['ddnsupdate']) echo " checked"; ?>>&nbsp;
@ -500,7 +500,7 @@ include("head.inc");
<td width="22%" valign="top" class="vncell"><?=gettext("NTP servers");?></td>
<td width="78%" class="vtable">
<div id="showntpbox">
<input type="button" onClick="show_ntp_config()" value="<?=gettext("Advanced");?>"></input> - <?=gettext("Show NTP configuration");?></a>
<input type="button" onClick="show_ntp_config()" value="<?=gettext("Advanced");?>" /> - <?=gettext("Show NTP configuration");?></a>
</div>
<div id="showntp" style="display:none">
<input name="ntp1" type="text" class="formfld unknown" id="ntp1" size="20" value="<?=htmlspecialchars($pconfig['ntp1']);?>"><br />
@ -512,7 +512,7 @@ include("head.inc");
<td width="22%" valign="top" class="vncell"><?=gettext("TFTP server");?></td>
<td width="78%" class="vtable">
<div id="showtftpbox">
<input type="button" onClick="show_tftp_config()" value="<?=gettext("Advanced");?>"></input> - <?=gettext("Show TFTP configuration");?></a>
<input type="button" onClick="show_tftp_config()" value="<?=gettext("Advanced");?>" /> - <?=gettext("Show TFTP configuration");?></a>
</div>
<div id="showtftp" style="display:none">
<input name="tftp" type="text" class="formfld unknown" id="tftp" size="50" value="<?=htmlspecialchars($pconfig['tftp']);?>"><br />

View File

@ -103,7 +103,7 @@ include("head.inc");
?>
<script language="JavaScript">
<script type="text/javascript">
<!--
function enable_change(enable_over) {
if (document.iform.enable.checked || enable_over) {
@ -196,7 +196,7 @@ function enable_change(enable_over) {
</tr>
</table>
</form>
<script language="JavaScript">
<script type="text/javascript">
<!--
enable_change(false);
//-->

View File

@ -385,7 +385,7 @@ include("head.inc");
rowsize[1] = "55";
</script>
<script type="text/javascript" language="JavaScript">
<script type="text/javascript">
function enable_change(enable_over) {
var endis;
endis = !(document.iform.enable.checked || enable_over);
@ -681,7 +681,7 @@ display_top_tabs($tab_array);
<td width="22%" valign="top" class="vncell"><?=gettext("Dynamic DNS");?></td>
<td width="78%" class="vtable">
<div id="showddnsbox">
<input type="button" onClick="show_ddns_config()" value="<?=gettext("Advanced");?>"></input> - <?=gettext("Show Dynamic DNS");?></a>
<input type="button" onClick="show_ddns_config()" value="<?=gettext("Advanced");?>" /> - <?=gettext("Show Dynamic DNS");?></a>
</div>
<div id="showddns" style="display:none">
<input valign="middle" type="checkbox" value="yes" name="ddnsupdate" id="ddnsupdate" <?php if($pconfig['ddnsupdate']) echo " checked"; ?>>&nbsp;
@ -703,7 +703,7 @@ display_top_tabs($tab_array);
<td width="22%" valign="top" class="vncell"><?=gettext("NTP servers");?></td>
<td width="78%" class="vtable">
<div id="showntpbox">
<input type="button" onClick="show_ntp_config()" value="<?=gettext("Advanced");?>"></input> - <?=gettext("Show NTP configuration");?></a>
<input type="button" onClick="show_ntp_config()" value="<?=gettext("Advanced");?>" /> - <?=gettext("Show NTP configuration");?></a>
</div>
<div id="showntp" style="display:none">
<input name="ntp1" type="text" class="formfld unknown" id="ntp1" size="28" value="<?=htmlspecialchars($pconfig['ntp1']);?>"><br />
@ -716,7 +716,7 @@ display_top_tabs($tab_array);
<td width="22%" valign="top" class="vncell"><?=gettext("TFTP server");?></td>
<td width="78%" class="vtable">
<div id="showtftpbox">
<input type="button" onClick="show_tftp_config()" value="<?=gettext("Advanced");?>"></input> - <?=gettext("Show TFTP configuration");?></a>
<input type="button" onClick="show_tftp_config()" value="<?=gettext("Advanced");?>" /> - <?=gettext("Show TFTP configuration");?></a>
</div>
<div id="showtftp" style="display:none">
<input name="tftp" type="text" class="formfld unknown" id="tftp" size="50" value="<?=htmlspecialchars($pconfig['tftp']);?>"><br />
@ -729,7 +729,7 @@ display_top_tabs($tab_array);
<td width="22%" valign="top" class="vncell"><?=gettext("LDAP URI");?></td>
<td width="78%" class="vtable">
<div id="showldapbox">
<input type="button" onClick="show_ldap_config()" value="<?=gettext("Advanced");?>"></input> - <?=gettext("Show LDAP configuration");?></a>
<input type="button" onClick="show_ldap_config()" value="<?=gettext("Advanced");?>" /> - <?=gettext("Show LDAP configuration");?></a>
</div>
<div id="showldap" style="display:none">
<input name="ldap" type="text" class="formfld unknown" id="ldap" size="80" value="<?=htmlspecialchars($pconfig['ldap']);?>"><br />
@ -741,7 +741,7 @@ display_top_tabs($tab_array);
<td width="22%" valign="top" class="vncell"><?=gettext("Enable network booting");?></td>
<td width="78%" class="vtable">
<div id="shownetbootbox">
<input type="button" onClick="show_netboot_config()" value="<?=gettext("Advanced");?>"></input> - <?=gettext("Show Network booting");?></a>
<input type="button" onClick="show_netboot_config()" value="<?=gettext("Advanced");?>" /> - <?=gettext("Show Network booting");?></a>
</div>
<div id="shownetboot" style="display:none">
<input valign="middle" type="checkbox" value="yes" name="netboot" id="netboot" <?php if($pconfig['netboot']) echo " checked"; ?>>&nbsp;
@ -756,7 +756,7 @@ display_top_tabs($tab_array);
<td width="22%" valign="top" class="vncell"><?=gettext("Additional BOOTP/DHCP Options");?></td>
<td width="78%" class="vtable">
<div id="shownumbervaluebox">
<input type="button" onClick="show_shownumbervalue()" value="<?=gettext("Advanced");?>"></input> - <?=gettext("Show Additional BOOTP/DHCP Options");?></a>
<input type="button" onClick="show_shownumbervalue()" value="<?=gettext("Advanced");?>" /> - <?=gettext("Show Additional BOOTP/DHCP Options");?></a>
</div>
<div id="shownumbervalue" style="display:none">
<table id="maintable">
@ -896,7 +896,7 @@ display_top_tabs($tab_array);
</tr>
</table>
</form>
<script language="JavaScript">
<script type="text/javascript">
<!--
enable_change(false);
//-->

View File

@ -104,7 +104,7 @@ include("head.inc");
?>
<script language="JavaScript">
<script type="text/javascript">
<!--
function enable_change(enable_over) {
if (document.iform.enable.checked || enable_over) {
@ -197,7 +197,7 @@ function enable_change(enable_over) {
</tr>
</table>
</form>
<script language="JavaScript">
<script type="text/javascript">
<!--
enable_change(false);
//-->

View File

@ -149,7 +149,7 @@ include("head.inc");
?>
<script language="JavaScript">
<script type="text/javascript">
<!--
function enable_change(enable_over) {
var endis;
@ -297,7 +297,7 @@ function show_advanced_dns() {
<td width="22%" valign="top" class="vncellreq"><?=gettext("Advanced");?></td>
<td width="78%" class="vtable"><p>
<div id="showadvbox" <?php if ($pconfig['custom_options']) echo "style='display:none'"; ?>>
<input type="button" onClick="show_advanced_dns()" value="<?=gettext("Advanced"); ?>"></input> - <?=gettext("Show advanced option");?></a>
<input type="button" onClick="show_advanced_dns()" value="<?=gettext("Advanced"); ?>" /> - <?=gettext("Show advanced option");?></a>
</div>
<div id="showadv" <?php if (empty($pconfig['custom_options'])) echo "style='display:none'"; ?>>
<strong><?=gettext("Advanced");?><br /></strong>
@ -477,7 +477,7 @@ function show_advanced_dns() {
</tfoot>
</table>
</form>
<script language="JavaScript">
<script type="text/javascript">
<!--
enable_change(false);
//-->

View File

@ -336,7 +336,7 @@ include("head.inc");
<td width="22%" valign="top" class="vncellreq">Statistics logging</td>
<td width="78%" class="vtable">
<div id="showstatisticsbox">
<input type="button" onClick="show_advanced('showstatisticsbox', 'showstatistics')" value="<?=gettext("Advanced");?>"></input> - <?=gettext("Show statistics logging options");?></a>
<input type="button" onClick="show_advanced('showstatisticsbox', 'showstatistics')" value="<?=gettext("Advanced");?>" /> - <?=gettext("Show statistics logging options");?></a>
</div>
<div id="showstatistics" style="display:none">
<strong><?php echo gettext("Warning: ")?></strong><?php echo gettext("these options will create persistant daily log files in /var/log/ntp."); ?>
@ -356,7 +356,7 @@ include("head.inc");
<td width="22%" valign="top" class="vncellreq">Access restrictions</td>
<td width="78%" class="vtable">
<div id="showrestrictbox">
<input type="button" onClick="show_advanced('showrestrictbox', 'showrestrict')" value="<?=gettext("Advanced");?>"></input> - <?=gettext("Show access restriction options");?></a>
<input type="button" onClick="show_advanced('showrestrictbox', 'showrestrict')" value="<?=gettext("Advanced");?>" /> - <?=gettext("Show access restriction options");?></a>
</div>
<div id="showrestrict" style="display:none">
<?php echo gettext("these options control access to NTP from the WAN."); ?>
@ -385,7 +385,7 @@ include("head.inc");
<td width="22%" valign="top" class="vncellreq">Leap seconds</td>
<td width="78%" class="vtable">
<div id="showleapsecbox">
<input type="button" onClick="show_advanced('showleapsecbox', 'showleapsec')" value="<?=gettext("Advanced");?>"></input> - <?=gettext("Show Leap second configuration");?></a>
<input type="button" onClick="show_advanced('showleapsecbox', 'showleapsec')" value="<?=gettext("Advanced");?>" /> - <?=gettext("Show Leap second configuration");?></a>
</div>
<div id="showleapsec" style="display:none">
<?php echo gettext("A leap second file allows NTP to advertize an upcoming leap second addition or subtraction.");?>

View File

@ -550,7 +550,7 @@ SureGPS = #Sure Electronics SKG16B
<td width="22%" valign="top" class="vncellreq">GPS Initialization</td>
<td width="78%" class="vtable">
<div id="showgpsinitbox">
<input type="button" onClick="show_advanced('showgpsinitbox', 'showgpsinit')" value="<?=gettext("Advanced");?>"></input> - <?=gettext("Show GPS Initialization commands");?></a>
<input type="button" onClick="show_advanced('showgpsinitbox', 'showgpsinit')" value="<?=gettext("Advanced");?>" /> - <?=gettext("Show GPS Initialization commands");?></a>
</div>
<div id="showgpsinit" style="display:none">
<p>
@ -559,7 +559,7 @@ SureGPS = #Sure Electronics SKG16B
<strong><?php echo gettext("NMEA checksum calculator");?>:</strong>
<br />
<?php echo gettext("Enter the text between &quot;$&quot; and &quot;*&quot; of a NMEA command string:");?><br /> $<input name="nmeastring" type="text" class="formfld unknown" id="nmeastring" size="30" value="">*<span id="nmeachecksum"><?php echo gettext("checksum");?></span>&nbsp&nbsp
<input type="button" onClick="NMEAChecksum(nmeastring.value)" value="<?=gettext("Calculate NMEA checksum");?>"></input><br />
<input type="button" onClick="NMEAChecksum(nmeastring.value)" value="<?=gettext("Calculate NMEA checksum");?>" /><br />
</div>
</td>
</tr>
@ -574,7 +574,7 @@ SureGPS = #Sure Electronics SKG16B
</td>
</tr>
</table>
<script language="JavaScript"><!-- set_gps_default(this.form); --></script>
<script type="text/javascript"><!-- set_gps_default(this.form); --></script>
</form>
<?php include("fend.inc"); ?>
</body>

View File

@ -402,7 +402,7 @@ display_top_tabs($tab_array);
</table>
</form>
<script language="JavaScript">
<script type="text/javascript">
//<![CDATA[
jQuery(function ($) {
var $rasamednsasdhcp6 = $("#rasamednsasdhcp6");

View File

@ -167,7 +167,7 @@ $shortcut_section = "snmp";
include("head.inc");
?>
<script language="JavaScript">
<script type="text/javascript">
<!--
function check_deps() {
if (jQuery('#hostres').prop('checked') == true) {
@ -432,7 +432,7 @@ function enable_change(whichone) {
</tr>
</table>
</form>
<script language="JavaScript">
<script type="text/javascript">
<!--
enable_change(this);
//-->

View File

@ -112,7 +112,7 @@ include_once("head.inc");
?>
<script language="JavaScript">
<script type="text/javascript">
<!--
function enable_change(enable_over) {
var endis;
@ -271,7 +271,7 @@ function show_advanced_dns() {
<td width="22%" valign="top" class="vncellreq"><?=gettext("Advanced");?></td>
<td width="78%" class="vtable"><p>
<div id="showadvbox" <?php if ($pconfig['custom_options']) echo "style='display:none'"; ?>>
<input type="button" onClick="show_advanced_dns()" value="<?=gettext("Advanced"); ?>"></input> - <?=gettext("Show advanced option");?></a>
<input type="button" onClick="show_advanced_dns()" value="<?=gettext("Advanced"); ?>" /> - <?=gettext("Show advanced option");?></a>
</div>
<div id="showadv" <?php if (empty($pconfig['custom_options'])) echo "style='display:none'"; ?>>
<strong><?=gettext("Advanced");?><br /></strong>
@ -434,7 +434,7 @@ function show_advanced_dns() {
</tfoot>
</table>
</form>
<script language="JavaScript">
<script type="text/javascript">
<!--
enable_change(false);
//-->

View File

@ -98,7 +98,7 @@ include_once("head.inc");
?>
<script language="JavaScript">
<script type="text/javascript">
<!--
function enable_change(enable_over) {
var endis;

View File

@ -90,7 +90,7 @@ include("head.inc");
<script language="javascript">
<script type="text/javascript">
/* init update "thread */
function update_status_thread() {
getURL('status_filter_reload.php?getstatus=true', update_data);
@ -119,7 +119,7 @@ function update_data(obj) {
}
</script>
<script language="javascript">
<script type="text/javascript">
/*
* getURL is a proprietary Adobe function, but it's simplicity has made it very
* popular. If getURL is undefined we spin our own by wrapping XMLHttpRequest.

2
usr/local/www/status_graph.php Executable file → Normal file
View File

@ -116,7 +116,7 @@ include("head.inc");
<body link="#0000CC" vlink="#0000CC" alink="#0000CC">
<script language="javascript" type="text/javascript">
<script type="text/javascript" type="text/javascript">
function updateBandwidth(){
var hostinterface = jQuery("#if").val();

View File

@ -209,7 +209,7 @@ include("head.inc"); ?>
</table>
<?php if (is_array($server['routes']) && count($server['routes'])): ?>
<div id="shroutebut-<?= $i ?>">
<input type="button" onClick="show_routes('tabroute-<?= $i ?>','shroutebut-<?= $i ?>')" value="<?php echo gettext("Show Routing Table"); ?>"></input> - <?= gettext("Display OpenVPN's internal routing table for this server.") ?></a>
<input type="button" onClick="show_routes('tabroute-<?= $i ?>','shroutebut-<?= $i ?>')" value="<?php echo gettext("Show Routing Table"); ?>" /> - <?= gettext("Display OpenVPN's internal routing table for this server.") ?></a>
<br /><br />
</div>
<table style="display: none; padding-top:0px; padding-bottom:0px; padding-left:0px; padding-right:0px" width="100%" border="0" cellpadding="0" cellspacing="0" id="tabroute-<?= $i ?>">

View File

@ -189,7 +189,7 @@ include("head.inc");
<?php include("fbegin.inc"); ?>
<?php if ($input_errors) print_input_errors($input_errors); ?>
<form action="system_gateways.php" method="post">
<script type="text/javascript" language="javascript" src="/javascript/row_toggle.js"></script>
<script type="text/javascript" type="text/javascript" src="/javascript/row_toggle.js"></script>
<?php if ($savemsg) print_info_box($savemsg); ?>
<?php if (is_subsystem_dirty('staticroutes')): ?><p>
<?php print_info_box_np(gettext("The gateway configuration has been changed.") . "<br />" . gettext("You must apply the changes in order for them to take effect."));?><br /></p>

View File

@ -204,7 +204,7 @@ include("head.inc");
<body link="#0000CC" vlink="#0000CC" alink="#0000CC">
<?php include("fbegin.inc"); ?>
<form action="system_routes.php" method="post">
<script type="text/javascript" language="javascript" src="/javascript/row_toggle.js"></script>
<script type="text/javascript" type="text/javascript" src="/javascript/row_toggle.js"></script>
<?php if ($savemsg) print_info_box($savemsg); ?>
<?php if (is_subsystem_dirty('staticroutes')): ?><p>
<?php print_info_box_np(sprintf(gettext("The static route configuration has been changed.%sYou must apply the changes in order for them to take effect."), "<br />"));?><br /></p>

View File

@ -73,7 +73,7 @@ if($_GET) {
}
</STYLE>
</head>
<script language="JavaScript">
<script type="text/javascript">
function post_choices() {
var ous = <?php echo count($ous); ?>;

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -286,7 +286,7 @@ include("head.inc");
$phase2count++;
}
?>
<input type="button" onClick="show_phase2('tdph2-<?=$i?>','shph2but-<?=$i?>')" value="+"></input> - <?php printf(gettext("Show %s Phase-2 entries"), $phase2count); ?></a>
<input type="button" onClick="show_phase2('tdph2-<?=$i?>','shph2but-<?=$i?>')" value="+" /> - <?php printf(gettext("Show %s Phase-2 entries"), $phase2count); ?></a>
</div>
<table class="tabcont" width="100%" height="100%" border="0" cellspacing="0" cellpadding="0" id="tdph2-<?=$i?>" style="display:none">
<tr>

View File

@ -246,7 +246,7 @@ include("head.inc");
<body link="#0000CC" vlink="#0000CC" alink="#0000CC">
<?php include("fbegin.inc"); ?>
<script language="JavaScript">
<script type="text/javascript">
<!--
function pool_change() {
@ -663,7 +663,7 @@ function login_banner_change() {
</tr>
</table>
</form>
<script language="JavaScript">
<script type="text/javascript">
pool_change();
dns_domain_change();
dns_split_change();

View File

@ -377,7 +377,7 @@ include("head.inc");
<body link="#0000CC" vlink="#0000CC" alink="#0000CC">
<?php include("fbegin.inc"); ?>
<script language="JavaScript">
<script type="text/javascript">
<!--
function myidsel_change() {

View File

@ -326,7 +326,7 @@ include("head.inc");
<body link="#0000CC" vlink="#0000CC" alink="#0000CC">
<script type="text/javascript" src="/javascript/jquery.ipv4v6ify.js"></script>
<?php include("fbegin.inc"); ?>
<script language="JavaScript">
<script type="text/javascript">
<!--
function change_mode() {

View File

@ -326,7 +326,7 @@ include("head.inc");
<body link="#000000" vlink="#000000" alink="#000000" onload="<?= $jsevents["body"]["onload"] ?>">
<?php include("fbegin.inc"); ?>
<script language="JavaScript">
<script type="text/javascript">
<!--
function mode_change() {
@ -1064,7 +1064,7 @@ if ($savemsg)
</td>
</tr>
</table>
<script language="JavaScript">
<script type="text/javascript">
<!--
mode_change();
autokey_change();

View File

@ -253,7 +253,7 @@ include("head.inc");
<body link="#000000" vlink="#000000" alink="#000000" onload="<?= $jsevents["body"]["onload"] ?>">
<?php include("fbegin.inc"); ?>
<script language="JavaScript">
<script type="text/javascript">
<!--
function dns_domain_change() {
@ -801,7 +801,7 @@ function netbios_change() {
</td>
</tr>
</table>
<script language="JavaScript">
<script type="text/javascript">
<!--
dns_domain_change();
dns_server_change();

View File

@ -469,7 +469,7 @@ include("head.inc");
<body link="#000000" vlink="#000000" alink="#000000" onload="<?= $jsevents["body"]["onload"] ?>">
<?php include("fbegin.inc"); ?>
<script language="JavaScript">
<script type="text/javascript">
<!--
function mode_change() {
@ -1810,7 +1810,7 @@ if ($savemsg)
</td>
</tr>
</table>
<script language="JavaScript">
<script type="text/javascript">
<!--
mode_change();
autokey_change();

View File

@ -201,7 +201,7 @@ include("head.inc");
<body link="#0000CC" vlink="#0000CC" alink="#0000CC">
<?php include("fbegin.inc"); ?>
<script language="JavaScript">
<script type="text/javascript">
<!--
function get_radio_value(obj)
{
@ -489,7 +489,7 @@ function enable_change(enable_over) {
</tr>
</table>
</form>
<script language="JavaScript">
<script type="text/javascript">
<!--
enable_change(false);
//-->

View File

@ -58,7 +58,7 @@ require_once("functions.inc");
last_val_span = new Array();
</script>
<div style='display: block; margin-left: auto; margin-right: auto' class="GraphLink" id="GraphOutput"></div>
<script language="javascript" type="text/javascript">
<script type="text/javascript" type="text/javascript">
// Graph 1
graph[0] = GraphInitialize('GraphOutput', 200, 50, 4);

View File

@ -207,7 +207,7 @@ function clockTimeString($inDate, $showSeconds) {
/*** Clock -- end of server-side support code ***/
?>
<script language="JavaScript" type="text/javascript">
<script type="text/javascript">
<!--
/* set up variables used to init clock in BODY's onLoad handler;
should be done as early as possible */
@ -222,7 +222,7 @@ function clockInit() {
</script>
<script language="JavaScript1.2" type="text/javascript">
<script type="text/javascript">
<!--
/*** simpleFindObj, by Andrew Shearer

View File

@ -271,7 +271,7 @@ function getBoolValueFromConfig(&$configArray, $valueKey, $defaultValue) {
</div>
<!-- needed to display the widget settings menu -->
<script language="javascript" type="text/javascript">
<script type="text/javascript" type="text/javascript">
textlink = jQuery("#thermal_sensors-configure");
textlink.css({display: "inline"});

View File

@ -135,7 +135,7 @@ if (isset($a_config["scale_type"])) {
</form>
</div>
<script language="javascript" type="text/javascript">
<script type="text/javascript" type="text/javascript">
d = document;
selectIntLink = "traffic_graphs-configure";
textlink = d.getElementById(selectIntLink);