reformated header

This commit is contained in:
Roland Gruber 2008-03-16 11:02:16 +00:00
parent c17b4a13d8
commit ec12908925
1 changed files with 10 additions and 42 deletions

View File

@ -81,20 +81,6 @@ if ((isset($_GET['headline'])) && ($_GET['logoFile'] != $_SESSION['currentPageDe
if ((isset($_GET['headline'])) && ($_GET['headline'] != $_SESSION['currentPageDefinitions']['headline'])) {
$_SESSION['currentPageDefinitions']['headline'] = str_replace('<','',str_replace('>','',$_GET['headline']));
}
if(isset($_POST['defaults'])) {
foreach($_POST['defaults'] as $default) {
switch($default) {
case 'logoFile':
unset($_SESSION['currentPageDefinitions']['filename']);
break;
case 'headline':
unset($_SESSION['currentPageDefinitions']['headline']);
break;
default:
break;
}
}
}
// Check if pdfname is valid, then save current structure to file and go to
// main pdf structure page
@ -409,39 +395,21 @@ echo $_SESSION['header'];
<body>
<br>
<form action="pdfpage.php" method="post">
<table>
<table width="100%">
<tr>
<td width="100%" colspan="3" align="left">
<fieldset class="<?php echo $_GET['type']; ?>edit">
<legend>
<b><?php echo _('Page settings'); ?></b>
<b><?php echo _('Page settings'); if (isset($_GET['pdfname'])) echo " (" . $_GET['pdfname'] . ")"; ?></b>
</legend>
<table border="0">
<tr>
<td>
<BR>
<b><?php echo _('Headline'); ?>:</b>
</td>
<td>
<input type="text" name="headline" value="<?php echo ((isset($_SESSION['currentPageDefinitions']['headline'])) ? $_SESSION['currentPageDefinitions']['headline'] : 'LDAP Account Manager'); ?>">
</td>
<td>
<?php echo _('Use default') ?> <input type="checkbox" name="defaults[]" value="headline">
</td>
</tr>
<tr>
<td>
&nbsp;&nbsp;&nbsp;&nbsp;
<b><?php echo _('Logo'); ?>:</b>
</td>
<td>
<select name="logoFile" size="1">
<?php echo $logos; ?>
</select>
</td>
<td>
<?php echo _('Use default') ?> <input type="checkbox" name="defaults[]" value="logoFile">
</td>
</tr>
</table>
</fieldset>
</td>
</tr>