added onchange for select in meta HTML

This commit is contained in:
Roland Gruber 2008-01-19 13:06:03 +00:00
parent 5ab8124eab
commit 0b7476bb07
2 changed files with 8 additions and 4 deletions

View File

@ -1,5 +1,6 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head>
<meta content="text/html; charset=ISO-8859-15" http-equiv="content-type"><title>Module specification</title>
<style>
@ -18,9 +19,7 @@
}
-->
</style>
<link rel="shortcut icon" type="image/x-icon" href="images/favicon.ico">
</head>
<body>
<link rel="shortcut icon" type="image/x-icon" href="images/favicon.ico"></head><body>
<h1 style="text-align: center;">This document describes the module
interface for LDAP Account Manager</h1>
<br>
@ -1069,8 +1068,10 @@ false)<br>
<li><span style="font-weight: bold;">size:</span> The size of the
select field, if set to 1 a dropdown box will be displayed.</li>
<li><span style="font-weight: bold;">noSorting:</span> If set to
true then the entries will not be sorted. Default is false.<br>
true then the entries will not be sorted. Default is false.</li>
<li><span style="font-weight: bold;">onchange:</span> onchange event<br>
</li>
</ul>
<li><span style="font-weight: bold;">table:</span> Adds a table. Can
be used recursively.</li>

View File

@ -635,6 +635,9 @@ function parseHtml($module, $input, $values, $restricted, &$tabindex, &$tabindex
$ret[$input[$i][$j]['name']] = 'select'; // save type
}
echo ' size="' . $input[$i][$j]['size'] . '"';
if (!$restricted && isset($input[$i][$j]['onchange'])) {
echo ' onchange="' . htmlspecialchars($input[$i][$j]['onchange']) . '"';
}
// Show taborder
echo " tabindex=$tabindex";
$tabindex++;