added missing help entries

This commit is contained in:
Roland Gruber 2005-09-12 15:37:23 +00:00
parent 2f9d5d935c
commit 6a3e7ef33f
3 changed files with 28 additions and 19 deletions

View File

@ -137,9 +137,16 @@ $helpArray = array (
"Text" => _("Name under which the profile will be saved. If a profile with the same name exists, it will be overwritten.")), "Text" => _("Name under which the profile will be saved. If a profile with the same name exists, it will be overwritten.")),
"361" => array ("ext" => "FALSE", "Headline" => _("DN suffix"), "361" => array ("ext" => "FALSE", "Headline" => _("DN suffix"),
"Text" => _("The new account will be saved under this LDAP suffix.")), "Text" => _("The new account will be saved under this LDAP suffix.")),
// 400 - 599 // 400 - 499
// unused // account pages
"401" => array ("ext" => "FALSE", "Headline" => _("Load profile"),
"Text" => _("Here you can load an account profile to set default settings for your account. The default profile is automatically loaded for new accounts.")),
"402" => array ("ext" => "FALSE", "Headline" => _("Save account"),
"Text" => _("This saves your account to the LDAP database.")),
"403" => array ("ext" => "FALSE", "Headline" => _("Create PDF file"),
"Text" => _("Here you can select a PDF structure and export the account to a PDF file.")),
// 500 - 599
// unused
// 600 - 699 // 600 - 699
// Roland Gruber // Roland Gruber
// OU-editor, domain page // OU-editor, domain page

View File

@ -934,10 +934,9 @@ class accountContainer {
} }
} }
// Create left module-menu // Create left module-menu
echo "<table border=0 width=\"100%\">\n<tr><td valign=\"top\" width=\"15%\" >"; echo "<table border=0 width=\"100%\">\n<tr valign=\"top\"><td width=\"15%\">";
echo "<table><tr>";
echo "<td><fieldset class=\"".$this->type."edit\"><legend><b>"; echo "<fieldset class=\"".$this->type."edit\"><legend><b>";
echo _('Please select page:'); echo _('Please select page:');
echo "</b></legend>\n"; echo "</b></legend>\n";
// calculate button width // calculate button width
@ -973,15 +972,15 @@ class accountContainer {
if ($this->subpage == 'finish') echo " disabled"; if ($this->subpage == 'finish') echo " disabled";
echo "><br>\n"; echo "><br>\n";
} }
echo "</fieldset></td></tr>\n"; echo "</fieldset>\n";
echo "</table></td>\n<td>"; echo "</td>\n<td>";
if ($this->current_page==0) { if ($this->current_page==0) {
echo "<td><fieldset class=\"".$this->type."edit\"><legend><b>"; echo "<fieldset class=\"".$this->type."edit\"><legend><b>";
echo _('Main'); echo _('Main');
echo "</b></legend>\n"; echo "</b></legend>\n";
} }
else { else {
echo "<td><fieldset class=\"".$this->type."edit\"><legend><b>"; echo "<fieldset class=\"".$this->type."edit\"><legend><b>";
echo $this->module[$this->order[$this->current_page]]->get_alias(); echo $this->module[$this->order[$this->current_page]]->get_alias();
echo "</b></legend>\n"; echo "</b></legend>\n";
} }
@ -1004,14 +1003,14 @@ class accountContainer {
$return[] = array( $return[] = array(
0 => array('kind' => 'input', 'type' => 'submit', 'name' => 'createagain', 'value' => _('Create another account')), 0 => array('kind' => 'input', 'type' => 'submit', 'name' => 'createagain', 'value' => _('Create another account')),
1 => array('kind' => 'input', 'type' => 'submit', 'name' => 'backmain', 'value' => _('Back to account list'))); 1 => array('kind' => 'input', 'type' => 'submit', 'name' => 'backmain', 'value' => _('Back to account list')));
$return[] = array( $return[] = array(0 => array('kind' => 'text', 'text' => '&nbsp;')); // empty line
0 => array('kind' => 'text', 'text' => '&nbsp;') $return[] = array(0 => array('kind' => 'text', 'text' => '&nbsp;')); // empty line
);
$pdfStructures = getPDFStructureDefinitions($this->type); $pdfStructures = getPDFStructureDefinitions($this->type);
$return[] = array( $return[] = array(
0 => array('kind' => 'fieldset', 'legend' => '<b>PDF</b>', 'td' => array('colspan' => 2), 'value' => array(array( 0 => array('kind' => 'fieldset', 'legend' => '<b>PDF</b>', 'td' => array('colspan' => 2), 'value' => array(array(
0 => array('kind' => 'select', 'name' => 'pdfStructure', 'options' => $pdfStructures), 0 => array('kind' => 'select', 'name' => 'pdfStructure', 'options' => $pdfStructures),
1 => array('kind' => 'input', 'type' => 'submit', 'name' => 'outputpdf', 'value' => _('Create PDF file'))) 1 => array('kind' => 'input', 'type' => 'submit', 'name' => 'outputpdf', 'value' => _('Create PDF file')),
2 => array('kind' => 'help', 'value' => '403'))
))); )));
} }
else { else {
@ -1024,7 +1023,7 @@ class accountContainer {
$return[] = array( $return[] = array(
0 => array('kind' => 'text', 'text' => _('Suffix')), 0 => array('kind' => 'text', 'text' => _('Suffix')),
1 => array('kind' => 'select', 'name' => 'suffix', 'options' => $suffixes, 'options_selected' => array($options_selected), 'noSorting' => true), 1 => array('kind' => 'select', 'name' => 'suffix', 'options' => $suffixes, 'options_selected' => array($options_selected), 'noSorting' => true),
2 => array ('kind' => 'help', 'value' => 'suffix')); 2 => array ('kind' => 'help', 'value' => '361'));
// RDN selection // RDN selection
$rdnlist = getRDNAttributes($this->type); $rdnlist = getRDNAttributes($this->type);
$rdnSelected = array(); $rdnSelected = array();
@ -1047,15 +1046,16 @@ class accountContainer {
1 => array('kind' => 'table', 'value' => array(0 => array( 1 => array('kind' => 'table', 'value' => array(0 => array(
0 => array('kind' => 'select', 'name' => 'selectLoadProfile', 'options' => $profilelist), 0 => array('kind' => 'select', 'name' => 'selectLoadProfile', 'options' => $profilelist),
1 => array('kind' => 'input', 'type' => 'submit', 'name' => 'loadProfile', 'value' => _('Load profile')) 1 => array('kind' => 'input', 'type' => 'submit', 'name' => 'loadProfile', 'value' => _('Load profile'))
)), ))),
2 => array('kind' => 'help', 'value' => 'selectLoadProfile')) 2 => array('kind' => 'help', 'value' => '401')
); );
} }
$return[] = array(0 => array('kind' => 'text', 'text' => '&nbsp;')); // empty line
if ($this->dn_orig!='') $text = _('Modify Account'); if ($this->dn_orig!='') $text = _('Modify Account');
else $text = _('Create Account'); else $text = _('Create Account');
$return[] = array ( 0 => array ( 'kind' => 'text', 'text' => $text ), $return[] = array ( 0 => array ( 'kind' => 'text', 'text' => $text ),
1 => array ( 'kind' => 'input', 'type' => 'submit', 'name' => 'create', 'value' => $text, 'disabled' => $disabled), 1 => array ( 'kind' => 'input', 'type' => 'submit', 'name' => 'create', 'value' => $text, 'disabled' => $disabled),
2 => array ('kind' => 'help', 'value' => 'create')); 2 => array ('kind' => 'help', 'value' => '402'));
} }
} }
else $return = call_user_func(array($this->module[$this->order[$this->current_page]], 'display_html_'.$this->subpage), $post); else $return = call_user_func(array($this->module[$this->order[$this->current_page]], 'display_html_'.$this->subpage), $post);

View File

@ -129,7 +129,8 @@ if(!isset($_GET['HelpNumber']))
$helpEntry = array(); $helpEntry = array();
if(isset($_GET['module'])) { // module help
if(isset($_GET['module']) && !($_GET['module'] == 'main')) {
include_once("../lib/modules.inc"); include_once("../lib/modules.inc");
if(isset($_GET['scope'])) { if(isset($_GET['scope'])) {
$helpEntry = getHelp($_GET['module'],$_GET['HelpNumber'],$_GET['scope']); $helpEntry = getHelp($_GET['module'],$_GET['HelpNumber'],$_GET['scope']);
@ -148,6 +149,7 @@ if(isset($_GET['module'])) {
exit; exit;
} }
} }
// help entry in help.inc
else { else {
/* If submitted help number is not in help/help.inc print error message */ /* If submitted help number is not in help/help.inc print error message */
if(!array_key_exists($_GET['HelpNumber'],$helpArray)) if(!array_key_exists($_GET['HelpNumber'],$helpArray))