minor corrections of form

This commit is contained in:
Uwe Steinmann 2018-01-30 07:20:23 +01:00
parent dc198e383b
commit 408c60bc15

View File

@ -125,7 +125,7 @@ $(document).ready(function() {
print "<td>".htmlspecialchars($revisionStatus["comment"])."</td>"; print "<td>".htmlspecialchars($revisionStatus["comment"])."</td>";
$indUser = $dms->getUser($revisionStatus["userID"]); $indUser = $dms->getUser($revisionStatus["userID"]);
print "<td>".$revisionStatus["date"]." - ". htmlspecialchars($indUser->getFullname()) ."</td>"; print "<td>".$revisionStatus["date"]." - ". htmlspecialchars($indUser->getFullname()) ."</td>";
print "</tr></tbody></table><br>"; print "</tr></tbody></table><br>\n";
} }
?> ?>
<form method="post" action="../op/op.ReviseDocument.php" id="form1" name="form1"> <form method="post" action="../op/op.ReviseDocument.php" id="form1" name="form1">
@ -136,7 +136,7 @@ $(document).ready(function() {
<td><textarea name="comment" cols="80" rows="4"></textarea></td> <td><textarea name="comment" cols="80" rows="4"></textarea></td>
</tr> </tr>
<tr> <tr>
<td><?php printMLText("revision_status")?></td> <td><?php printMLText("revision_status")?>:</td>
<td> <td>
<select name="revisionStatus"> <select name="revisionStatus">
<?php if($revisionStatus['status'] != 1) { ?> <?php if($revisionStatus['status'] != 1) { ?>
@ -161,9 +161,7 @@ $(document).ready(function() {
<input type='hidden' name='version' value='<?php echo $content->getVersion() ?>'/> <input type='hidden' name='version' value='<?php echo $content->getVersion() ?>'/>
</form> </form>
<?php <?php
} } elseif ($revisionStatus['type'] == 1) {
else if ($revisionStatus['type'] == 1) {
if($revisionStatus["status"]!=0) { if($revisionStatus["status"]!=0) {
print "<table class=\"folderView\"><thead><tr>"; print "<table class=\"folderView\"><thead><tr>";
@ -179,7 +177,6 @@ $(document).ready(function() {
print "<td>".$revisionStatus["date"]." - ". htmlspecialchars($indUser->getFullname()) ."</td>"; print "<td>".$revisionStatus["date"]." - ". htmlspecialchars($indUser->getFullname()) ."</td>";
print "</tr></tbody></table><br>\n"; print "</tr></tbody></table><br>\n";
} }
?> ?>
<form method="post" action="../op/op.ReviseDocument.php" id="form2" name="form2"> <form method="post" action="../op/op.ReviseDocument.php" id="form2" name="form2">
<?php echo createHiddenFieldWithKey('revisedocument'); ?> <?php echo createHiddenFieldWithKey('revisedocument'); ?>
@ -191,7 +188,7 @@ $(document).ready(function() {
<tr> <tr>
<td><?php printMLText("revision_status")?>:</td> <td><?php printMLText("revision_status")?>:</td>
<td> <td>
<select name="revisionStatus" size="3"> <select name="revisionStatus">
<?php if($revisionStatus['status'] != 1) { ?> <?php if($revisionStatus['status'] != 1) { ?>
<option value='1'><?php printMLText("status_revised")?></option> <option value='1'><?php printMLText("status_revised")?></option>
<?php } ?> <?php } ?>