im profile bei zeilen ohne Angebote den Button verstecken.

This commit is contained in:
Ivan Hörler 2017-03-02 08:14:31 +01:00
parent 7a5f667d0e
commit d8239f4122
1 changed files with 9 additions and 4 deletions

View File

@ -48,18 +48,23 @@
{echo {echo
"Fr. " . htmlentities($row['angebot_preis']) . "&nbsp;" . "</td>"; "Fr. " . htmlentities($row['angebot_preis']) . "&nbsp;" . "</td>";
}else{echo }else{echo
"k. Angeb. bisher" . "&nbsp;" . "</td>"; "k.A." . "&nbsp;" . "</td>";
} }
echo if (!empty(htmlentities($row['angebot_preis']))) {
echo
"<td>" . "<form method='post' action='".$_SERVER['PHP_SELF']."'>" . "<td>" . "<form method='post' action='".$_SERVER['PHP_SELF']."'>" .
"<input class='sbtn' type='button' name='annehmen' value='Angebot annehmen' />" . "<input class='sbtn' type='button' name='annehmen' value='Angebot annehmen' />" .
"</form>" . "</form>" .
"</td>" . "</td>" .
"</tr>"; "</tr>";
} } else {
"<td>" . "" .
"</td>" .
"</tr>";
}
}
?> ?>
</table> </table>
</div> </div>
</body> </body>
</html> </html>