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