approval control
This commit is contained in:
@@ -40,7 +40,7 @@ global $arrDefect;
|
||||
<!-- Mängelkategorie -------------------------------- -->
|
||||
|
||||
<label for="defect"><strong>Art des Hindernisses:</strong></label>
|
||||
<select name="defect" id="defect">
|
||||
<select name="defect" id="defect" required="required">
|
||||
HEREDOC;
|
||||
foreach ($arrDefect as $defectKey => $defectVal) {
|
||||
echo " <option value='$defectKey'>$defectVal</option>";
|
||||
|
||||
@@ -20,8 +20,8 @@ function generate_tooltip_description($row) {
|
||||
global $arrDefect;
|
||||
global $db;
|
||||
|
||||
|
||||
$description = ($boolApprove && $row['approval']) ? $row['description'] : "Freigabe in Kürze";
|
||||
$boolShow=((!$boolApprove) || ($boolApprove && $row['approval']));
|
||||
$description = ($boolShow) ? $row['description'] : "Freigabe in Kürze";
|
||||
$numUps = $row['thumb_ups'];
|
||||
$numDowns = $row['thumb_downs'];
|
||||
$id = $row['id'];
|
||||
@@ -31,14 +31,14 @@ function generate_tooltip_description($row) {
|
||||
|
||||
|
||||
$strDescription = "<strong>Anmerkung zu ".$arrTopic[$topic]."</strong><br>";
|
||||
if ($boolUpload && isset($row['filename']) && ($boolApprove && $row['approval'])) {
|
||||
if ($boolUpload && isset($row['filename']) && $boolShow) {
|
||||
$strDescription .= "<a href=\'images/".$row['filename']."\' data-lightbox=\'radweg".$id."\'>";
|
||||
$strDescription .= "<img src=\'images/".$row['filename']."\' style=\'width:200px;\' /></a><br>";
|
||||
}
|
||||
$strDescription .= nl2br2($description);
|
||||
$strDescription .= "<br> - ".$row['username']." (".$datum.")";
|
||||
$strDescription .= ($boolShow) ? "<br> - ".$row['username']." (".$datum.")":"<br>".$datum;
|
||||
if ($boolDefect) {
|
||||
if ($row['defect']>0) {
|
||||
if ($row['defect']>=0) { //Hindernis kann nicht leer sein
|
||||
$strDescription .= "<br><em>" . $arrDefect[$row['defect']] ."</em>";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user