fixed HTML errors

This commit is contained in:
Roland Gruber 2009-08-23 12:50:06 +00:00
parent f1e3cb7ad0
commit 99b13e9bd6
1 changed files with 17 additions and 20 deletions

View File

@ -384,7 +384,7 @@ echo $_SESSION['header'];
<body> <body>
<br> <br>
<form action="pdfpage.php" method="post"> <form action="pdfpage.php" method="post">
<table width="100%"> <table>
<tr> <tr>
<!-- print current structure --> <!-- print current structure -->
<td align="left" valign="top"> <td align="left" valign="top">
@ -423,7 +423,7 @@ 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/delete.gif\" alt=\"" . _("Remove") . "\" border=\"0\"></a>\n</td>\n" . "<img src=\"../../graphics/delete.gif\" alt=\"" . _("Remove") . "\" border=\"0\"></a>\n</td>\n" .
"<td></td>"; "<td width=\"100%\">&nbsp;</td>";
// We have a new section to start // We have a new section to start
if($entry['tag'] == "SECTION" && $entry['type'] == "open") { if($entry['tag'] == "SECTION" && $entry['type'] == "open") {
$name = $entry['attributes']['NAME']; $name = $entry['attributes']['NAME'];
@ -436,7 +436,7 @@ foreach($_SESSION['currentPDFStructure'] as $key => $entry) {
$nonTextSections .= '<option value="' . $key . '">' . $section_headline . "</option>\n"; $nonTextSections .= '<option value="' . $key . '">' . $section_headline . "</option>\n";
?> ?>
<tr> <tr>
<td nowrap colspan="2" width="400"> <td nowrap colspan="2">
<?php <?php
// Section headline is a value entry // Section headline is a value entry
if(preg_match("/^_[a-zA-Z_]+/",$name)) { if(preg_match("/^_[a-zA-Z_]+/",$name)) {
@ -461,8 +461,7 @@ foreach($_SESSION['currentPDFStructure'] as $key => $entry) {
} }
?> ?>
</td> </td>
<td width="20"> <td width="20">&nbsp;</td>
</td>
<?php echo $links;?> <?php echo $links;?>
</tr> </tr>
<?php <?php
@ -596,9 +595,7 @@ foreach($_SESSION['currentPDFStructure'] as $key => $entry) {
</td> </td>
</tr> </tr>
<tr> <tr>
<td colspan="2"> <td colspan="2">&nbsp;</td>
<br/>
</td>
</tr> </tr>
<tr> <tr>
<td> <td>
@ -638,20 +635,20 @@ foreach($_SESSION['currentPDFStructure'] as $key => $entry) {
<select name="new_field"> <select name="new_field">
<?php <?php
foreach($_SESSION['availablePDFFields'] as $module => $fields) { foreach($_SESSION['availablePDFFields'] as $module => $fields) {
if (isset($fields) && is_array($fields)) { if (isset($fields) && is_array($fields) && (sizeof($fields) > 0)) {
sort($fields); sort($fields);
} if ($module != 'main') {
if ($module != 'main') { $title = getModuleAlias($module, $_GET['type']);
$title = getModuleAlias($module, $_GET['type']);
}
else {
$title = _('Main');
}
echo "<optgroup label=\"$title\">\n";
foreach ($fields as $field) {
echo "<option value=\"" . $module . "_" . $field . "\" label=\"$field\">$field</option>\n";
} }
echo "</optgroup>\n"; else {
$title = _('Main');
}
echo "<optgroup label=\"$title\">\n";
foreach ($fields as $field) {
echo "<option value=\"" . $module . "_" . $field . "\" label=\"$field\">$field</option>\n";
}
echo "</optgroup>\n";
}
} }
?> ?>
</select> </select>