use type aliases

This commit is contained in:
Roland Gruber 2006-02-05 18:06:49 +00:00
parent d9e452eab1
commit 3255bdfc96
1 changed files with 7 additions and 8 deletions

View File

@ -89,10 +89,10 @@ $availableScopes = '';
foreach($scopes as $scope) { foreach($scopes as $scope) {
$pdfStructDefs = getPDFStructureDefinitions($scope); $pdfStructDefs = getPDFStructureDefinitions($scope);
$availableScopes .= '<option value="' . $scope . '">' . $scope . "</option>\n"; $availableScopes .= '<option value="' . $scope . '">' . getTypeAlias($scope) . "</option>\n";
foreach($pdfStructDefs as $pdfStructureDefinition) { foreach($pdfStructDefs as $pdfStructureDefinition) {
$availableStructureDefinitions .= '<option value="' . $scope . ':' . $pdfStructureDefinition . '">' . $scope . ' - ' . $pdfStructureDefinition . "</option>\n"; $availableStructureDefinitions .= '<option value="' . $scope . ':' . $pdfStructureDefinition . '">' . getTypeAlias($scope) . ' - ' . $pdfStructureDefinition . "</option>\n";
} }
} }
@ -100,12 +100,13 @@ echo $_SESSION['header'];
?> ?>
<title>LDAP Account Manager</title> <title>LDAP Account Manager</title>
<link rel="stylesheet" type="text/css" href="../../style/layout.css"> <link rel="stylesheet" type="text/css" href="../../style/layout.css">
<link rel="stylesheet" type="text/css" href="../../style/type_user.css">
</head> </head>
<body> <body>
<p></p> <p></p>
<form action="pdfmain.php" method="post"> <form action="pdfmain.php" method="post">
<!-- pdf structure options --> <!-- pdf structure options -->
<fieldset> <fieldset class="useredit">
<legend> <legend>
<b><?php echo _("PDF structures"); ?></b> <b><?php echo _("PDF structures"); ?></b>
</legend> </legend>
@ -115,7 +116,7 @@ echo $_SESSION['header'];
<td> <td>
<input type="radio" name="pdf" value="new" checked="checked"> <input type="radio" name="pdf" value="new" checked="checked">
</td> </td>
<td colspan=2><?php echo _("Create a new PDF structure for scope: "); ?><select name="scope" size="1"><?php echo $availableScopes; ?></select></td> <td><?php echo _("Create a new PDF structure for scope: "); ?><select name="scope" size="1"><?php echo $availableScopes; ?></select></td>
</tr> </tr>
<!-- edit pdf structure --> <!-- edit pdf structure -->
<tr> <tr>
@ -126,8 +127,7 @@ echo $_SESSION['header'];
<select name="edit" size=1> <select name="edit" size=1>
<?php echo $availableStructureDefinitions; ?> <?php echo $availableStructureDefinitions; ?>
</select> </select>
</td> <?php echo _("Edit PDF structure"); ?></td>
<td><?php echo _("Edit PDF structure"); ?></td>
</tr> </tr>
<!-- delete pdf structure --> <!-- delete pdf structure -->
<tr> <tr>
@ -138,8 +138,7 @@ echo $_SESSION['header'];
<select name="delete" size=1> <select name="delete" size=1>
<?php echo $availableStructureDefinitions; ?> <?php echo $availableStructureDefinitions; ?>
</select> </select>
</td> <?php echo _("Delete PDF structure"); ?></td>
<td><?php echo _("Delete PDF structure"); ?></td>
</tr> </tr>
</table> </table>
</fieldset> </fieldset>