* array(
* array(
* array("kind" => "text", "text" => "This is an example", "td" => array("colspan" => 3))
* ),
* array(
* array("kind" => "text", "text" => "Input:"),
* array("kind" => "input", "name" => "myinput", "type" => "text"),
* array("kind" => "help", "value" => "42")
* ),
* array(
* array("kind" => "input", "name" => 'form_subpage_myModule_attributes_back', "value" => _("Back"))
* )
*)
*
*
*
* @param string $module Name of account module
* @param array $input List of meta-HTML elements
* @param array $values List of values which override the defaults in $input (name => value)
* @param boolean $restricted If true then no buttons will be displayed
* @param integer $tabindex Start value of tabulator index for input fields
* @param string $scope Account type
* @return array List of input field names and their type (name => type)
*/
function parseHtml($module, $input, $values, $restricted, &$tabindex, $scope) {
if ($input instanceof htmlElement) {
return $input->generateHTML($module, $input, $values, $restricted, $tabindex, $scope);
}
$ret = array();
if (is_array($input) && (sizeof($input) > 0)) {
// check for array of metaHTML objects
if ($input[0] instanceof htmlElement) {
$return = array();
for ($i = 0; $i < sizeof($input); $i++) {
$return = array_merge($return, $input[$i]->generateHTML($module, $input, $values, $restricted, $tabindex, $scope));
}
return $return;
}
echo ""; // tab menu $this->printModuleTabs(); echo " | |
\n"; $this->printContentHeader(); echo " | \n"; echo "|
"; // display html-code from modules $return = call_user_func(array($this->module[$this->order[$this->current_page]], 'display_html_'.$this->subpage)); $y = 5000; parseHtml($this->order[$this->current_page], $return, array(), false, $y, $this->type); // Display rest of html-page echo " |
\n"; echo " | " . _("Set password") . " | "; echo "\n"; printHelpLink(getHelp(null, 404), 404); echo " | \n"; echo " | ||||||||||||
\n";
echo " \n"; echo " | |||||||||||||||
\n";
echo "
|
"; // save button echo " \n"; // reset button if ($this->dn_orig!='') { echo "\n"; } if ($this->showSetPasswordButton()) { echo " "; echo " \n"; } echo " | "; echo ""; // profile selection $profilelist = getAccountProfiles($this->type); if (sizeof($profilelist) > 0) { sort($profilelist); echo " \n"; echo " \n"; printHelpLink(getHelp('', '401'), '401'); } echo " | "; echo "
\n"; $type = new $this->type(); echo "LABEL_CREATE_ANOTHER_ACCOUNT . "\"> \n"; echo "LABEL_BACK_TO_ACCOUNT_LIST . "\"> \n"; echo " "; echo "\n"; echo " |
\n"; // display DN if (isset($this->dn_orig) && ($this->dn_orig != '')) { echo _("DN") . ": " . htmlspecialchars($this->dn_orig) . ""; } echo " | \n"; echo "\n"; echo _('Suffix') . ": "; echo "\n"; echo ' '; // RDN selection $rdnlist = getRDNAttributes($this->type); echo _('RDN identifier') . ": "; echo "\n"; printHelpLink(getHelp('', '301'), '301'); echo " | \n"; echo "