style updates

This commit is contained in:
Roland Gruber 2007-11-22 19:50:26 +00:00
parent 064b5692f4
commit 9e4a6eb5a6
2 changed files with 17 additions and 13 deletions

View File

@ -3,7 +3,8 @@
$Id$ $Id$
This code is part of LDAP Account Manager (http://www.sourceforge.net/projects/lam) This code is part of LDAP Account Manager (http://www.sourceforge.net/projects/lam)
Copyright (C) 2004 - 2006 Michael Dürgner Copyright (C) 2004 - 2006 Michael Duergner
Copyright (C) 2007 Roland Gruber
This program is free software; you can redistribute it and/or modify This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
@ -25,7 +26,7 @@ $Id$
* Manages deletion of pdf structures. * Manages deletion of pdf structures.
* *
* @package PDF * @package PDF
* @author Michael Dürgner * @author Michael Duergner
*/ */
/** security functions */ /** security functions */
@ -48,6 +49,7 @@ if (!$_SESSION['ldap'] || !$_SESSION['ldap']->server()) {
echo $_SESSION['header']; echo $_SESSION['header'];
echo ("<title>" . _("Delete PDF structure") . "</title>\n"); echo ("<title>" . _("Delete PDF structure") . "</title>\n");
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../../style/layout.css\">\n"; echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../../style/layout.css\">\n";
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../../style/type_" . $_POST['type'] . ".css\">\n";
echo ("</head>\n<body>\n<p><br></p>\n"); echo ("</head>\n<body>\n<p><br></p>\n");
// check if admin has submited delete operation // check if admin has submited delete operation

View File

@ -3,7 +3,8 @@
$Id$ $Id$
This code is part of LDAP Account Manager (http://www.sourceforge.net/projects/lam) This code is part of LDAP Account Manager (http://www.sourceforge.net/projects/lam)
Copyright (C) 2003 - 2006 Michael D<EFBFBD>rgner Copyright (C) 2003 - 2006 Michael Duergner
Copyright (C) 2007 Roland Gruber
This program is free software; you can redistribute it and/or modify This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
@ -97,7 +98,8 @@ if(isset($_POST['defaults'])) {
if(isset($_GET['submit'])) { if(isset($_GET['submit'])) {
echo $_SESSION['header']; echo $_SESSION['header'];
echo "<title>LDAP Account Manager</title>"; echo "<title>LDAP Account Manager</title>";
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../../style/layout.css\">"; echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../../style/layout.css\">\n";
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../../style/type_" . $_GET['type'] . ".css\">\n";
echo "</head>"; echo "</head>";
echo "<body>"; echo "<body>";
if(!isset($_GET['pdfname']) || !preg_match('/[a-zA-Z0-9\-\_]+/',$_GET['pdfname'])) { if(!isset($_GET['pdfname']) || !preg_match('/[a-zA-Z0-9\-\_]+/',$_GET['pdfname'])) {
@ -112,6 +114,7 @@ if(isset($_GET['submit'])) {
StatusMessage('ERROR', _("Could not save PDF profile, access denied."), $_GET['pdfname']); StatusMessage('ERROR', _("Could not save PDF profile, access denied."), $_GET['pdfname']);
} }
} }
echo ("<br><a href=\"pdfmain.php\">" . _("Back to PDF Editor") . "</a>");
echo "</body></html>"; echo "</body></html>";
exit; exit;
} }
@ -398,6 +401,7 @@ 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_<?php echo $_GET['type']; ?>.css">
</head> </head>
<body> <body>
<br> <br>
@ -405,7 +409,7 @@ echo $_SESSION['header'];
<table> <table>
<tr> <tr>
<td width="100%" colspan="3" align="left"> <td width="100%" colspan="3" align="left">
<fieldset> <fieldset class="<?php echo $_GET['type']; ?>edit">
<legend> <legend>
<b><?php echo _('Page settings'); ?></b> <b><?php echo _('Page settings'); ?></b>
</legend> </legend>
@ -446,7 +450,7 @@ echo $_SESSION['header'];
<tr> <tr>
<!-- print current structure --> <!-- print current structure -->
<td align="left" valign="top"> <td align="left" valign="top">
<fieldset> <fieldset class="<?php echo $_GET['type']; ?>edit">
<legend> <legend>
<b><?php echo _("PDF structure"); ?></b> <b><?php echo _("PDF structure"); ?></b>
</legend> </legend>
@ -461,13 +465,11 @@ foreach($_SESSION['currentPDFStructure'] as $key => $entry) {
(isset($_GET['headline']) ? '&amp;headline=' . $_GET['headline'] : '') . (isset($_GET['headline']) ? '&amp;headline=' . $_GET['headline'] : '') .
(isset($_GET['logoFile']) ? '&amp;logoFile=' . $_GET['logoFile'] : '') . "\">" . (isset($_GET['logoFile']) ? '&amp;logoFile=' . $_GET['logoFile'] : '') . "\">" .
"<img src=\"../../graphics/up.gif\" alt=\"" . _("Up") . "\" border=\"0\"></a>\n</td>\n" . "<img src=\"../../graphics/up.gif\" alt=\"" . _("Up") . "\" border=\"0\"></a>\n</td>\n" .
"<td width=\"10\">\n</td>\n" .
"<td>\n<a href=\"pdfpage.php?type=" . $_GET['type'] . "&amp;down=" . $key . "<td>\n<a href=\"pdfpage.php?type=" . $_GET['type'] . "&amp;down=" . $key .
(isset($_GET['pdfname']) ? '&amp;pdfname=' . $_GET['pdfname'] : '') . (isset($_GET['pdfname']) ? '&amp;pdfname=' . $_GET['pdfname'] : '') .
(isset($_GET['headline']) ? '&amp;headline=' . $_GET['headline'] : '') . (isset($_GET['headline']) ? '&amp;headline=' . $_GET['headline'] : '') .
(isset($_GET['logoFile']) ? '&amp;logoFile=' . $_GET['logoFile'] : '') . "\">" . (isset($_GET['logoFile']) ? '&amp;logoFile=' . $_GET['logoFile'] : '') . "\">" .
"<img src=\"../../graphics/down.gif\" alt=\"" . _("Down") . "\" border=\"0\"></a>\n</td>\n" . "<img src=\"../../graphics/down.gif\" alt=\"" . _("Down") . "\" border=\"0\"></a>\n</td>\n" .
"<td width=\"10\">\n</td>\n" .
"<td>\n<a href=\"pdfpage.php?type=" . $_GET['type'] . "&amp;remove=" . $key . "<td>\n<a href=\"pdfpage.php?type=" . $_GET['type'] . "&amp;remove=" . $key .
(isset($_GET['pdfname']) ? '&amp;pdfname=' . $_GET['pdfname'] : '') . (isset($_GET['pdfname']) ? '&amp;pdfname=' . $_GET['pdfname'] : '') .
(isset($_GET['headline']) ? '&amp;headline=' . $_GET['headline'] : '') . (isset($_GET['headline']) ? '&amp;headline=' . $_GET['headline'] : '') .
@ -598,7 +600,7 @@ foreach($_SESSION['currentPDFStructure'] as $key => $entry) {
<!-- print available fields sorted by modul --> <!-- print available fields sorted by modul -->
<td align="left" valign="top"> <td align="left" valign="top">
<fieldset> <fieldset class="<?php echo $_GET['type']; ?>edit">
<legend> <legend>
<b><?php echo _("Available PDF fields"); ?></b> <b><?php echo _("Available PDF fields"); ?></b>
</legend> </legend>
@ -649,14 +651,14 @@ foreach($_SESSION['availablePDFFields'] as $module => $fields) {
</tr> </tr>
<tr> <tr>
<td colspan="3"> <td colspan="3">
<fieldset> <fieldset class="<?php echo $_GET['type']; ?>edit">
<legend> <legend>
<b><?php echo _('Add section or static text');?></b> <b><?php echo _('Add section or static text');?></b>
</legend> </legend>
<table> <table>
<tr> <tr>
<td> <td>
<fieldset> <fieldset class="<?php echo $_GET['type']; ?>edit">
<legend> <legend>
<b><?php echo _("Section"); ?></b> <b><?php echo _("Section"); ?></b>
</legend> </legend>
@ -690,7 +692,7 @@ foreach($_SESSION['availablePDFFields'] as $module => $fields) {
</tr> </tr>
<tr> <tr>
<td> <td>
<fieldset> <fieldset class="<?php echo $_GET['type']; ?>edit">
<legend> <legend>
<b><?php echo _("Static text"); ?></b> <b><?php echo _("Static text"); ?></b>
</legend> </legend>
@ -731,7 +733,7 @@ foreach($_SESSION['availablePDFFields'] as $module => $fields) {
</tr> </tr>
<tr> <tr>
<td colspan="3"> <td colspan="3">
<fieldset> <fieldset class="<?php echo $_GET['type']; ?>edit">
<legend> <legend>
<b><?php echo _("Save"); ?></b> <b><?php echo _("Save"); ?></b>
</legend> </legend>