From c296ef32d0d2c579c093d6c2f03555e4abfa8bf2 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sun, 23 Mar 2008 10:57:34 +0000 Subject: [PATCH] removed XHTML header --- lam/templates/login.php | 8 ++------ lam/templates/main.php | 1 - lam/templates/pdfedit/pdfpage.php | 24 ++++++++++++++++++++++-- lam/templates/tree/tree_view.php | 1 - 4 files changed, 24 insertions(+), 10 deletions(-) diff --git a/lam/templates/login.php b/lam/templates/login.php index 071621da..431ef70c 100644 --- a/lam/templates/login.php +++ b/lam/templates/login.php @@ -33,7 +33,6 @@ include_once("../lib/status.inc"); // check if PHP >= 5.1 if (version_compare(phpversion(), '5.1.0') < 0) { - echo "\n"; echo "\n\n"; echo "\n\n"; echo "\n"; @@ -93,7 +92,6 @@ if (isset($memLimit) && ($memLimit != '') && (substr(strtoupper($memLimit), strl } // stop login if critical errors occured if (sizeof($criticalErrors) > 0) { - echo "\n"; echo "\n\n"; echo "\n\n"; echo "\n"; @@ -145,8 +143,7 @@ function display_LoginPage($config_object) { $_SESSION['language'] = $config_object->get_defaultLanguage(); $current_language = explode(":",$_SESSION['language']); - $_SESSION['header'] = "\n"; - $_SESSION['header'] .= "\n\n"; + $_SESSION['header'] = "\n\n"; $_SESSION['header'] .= "\n\n"; $_SESSION['header'] .= "\n"; $_SESSION['header'] .= "\n "; @@ -413,8 +410,7 @@ if(!empty($_POST['checklogin'])) $_SESSION['loggedIn'] = true; $_SESSION['language'] = $_POST['language']; // Write selected language in session $current_language = explode(":",$_SESSION['language']); - $_SESSION['header'] = "\n"; - $_SESSION['header'] .= "\n\n"; + $_SESSION['header'] = "\n\n"; $_SESSION['header'] .= "\n\n"; $_SESSION['header'] .= "\n"; $_SESSION['header'] .= "\n "; diff --git a/lam/templates/main.php b/lam/templates/main.php index 3686fc51..e2d35e1a 100644 --- a/lam/templates/main.php +++ b/lam/templates/main.php @@ -58,7 +58,6 @@ for ($i = 0; $i < sizeof($types); $i++) { $lang = explode(":",$_SESSION['language']); $lang = $lang[1]; -echo "\n"; echo "\n"; echo "\n"; echo "\n"; diff --git a/lam/templates/pdfedit/pdfpage.php b/lam/templates/pdfedit/pdfpage.php index 6b5b88a9..a96a7cf6 100644 --- a/lam/templates/pdfedit/pdfpage.php +++ b/lam/templates/pdfedit/pdfpage.php @@ -417,6 +417,7 @@ echo $_SESSION['header']; ' . _('Beginning') . "\n"; +$nonTextSections = ''; // Print every entry in the current structure foreach($_SESSION['currentPDFStructure'] as $key => $entry) { // Create the up/down/remove links @@ -438,6 +439,13 @@ foreach($_SESSION['currentPDFStructure'] as $key => $entry) { // We have a new section to start if($entry['tag'] == "SECTION" && $entry['type'] == "open") { $name = $entry['attributes']['NAME']; + if(preg_match("/^_[a-zA-Z_]+/",$name)) { + $section_headline = substr($name,1); + } + else { + $section_headline = $name; + } + $nonTextSections .= '\n"; ?> + + +
@@ -449,7 +457,6 @@ foreach($_SESSION['currentPDFStructure'] as $key => $entry) { if(preg_match("/^_[a-zA-Z_]+/",$name)) { ?>    +    @@ -692,6 +699,19 @@ foreach($_SESSION['availablePDFFields'] as $module => $fields) {
+
+ + +
+ : + + +
diff --git a/lam/templates/tree/tree_view.php b/lam/templates/tree/tree_view.php index 66a96af6..d49bf5a8 100644 --- a/lam/templates/tree/tree_view.php +++ b/lam/templates/tree/tree_view.php @@ -64,7 +64,6 @@ if (! isset($_SESSION['tree'])) { $_SESSION['tree_icons'] = $tree_icons; } -echo ""; echo ""; echo ""; echo "";