Kommentare
This commit is contained in:
parent
2113079311
commit
9d730633ad
6 changed files with 34 additions and 32 deletions
52
wahl.php
52
wahl.php
|
@ -15,7 +15,7 @@
|
|||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
|
||||
error_reporting(E_ALL); //Debuging
|
||||
require_once 'include/DBConnection.inc.php';
|
||||
function autoloader($classname)
|
||||
|
@ -133,50 +133,50 @@ if ($check) {
|
|||
</head>
|
||||
|
||||
<body>
|
||||
<?php if (isset($errorMessage) && $errorMessage != ""): ?>
|
||||
<!-- Ausgabe einer eventuellen Fehlermeldung -->
|
||||
<?php if (isset($errorMessage) && $errorMessage != ""): ?>
|
||||
<div class="modal">
|
||||
<div class="message error">
|
||||
<!-- Ausgabe einer eventuellen Fehlermeldung -->
|
||||
<p><?php echo $errorMessage; ?></p>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif;?>
|
||||
<!-- Ausgabe einer eventuellen Statusmeldung -->
|
||||
<?php if (isset($message) && $message != ""): ?>
|
||||
<div class="modal">
|
||||
<div class="message sucsses">
|
||||
<!-- Ausgabe einer eventuellen Statusmeldung -->
|
||||
<p><?php echo $message; ?></p>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif;?>
|
||||
<?php
|
||||
$kurse = $db->selectKurse();
|
||||
echo '<form action="wahl.php" method="post">';
|
||||
?>
|
||||
$kurse = $db->selectKurse();
|
||||
echo '<form action="wahl.php" method="post">';
|
||||
?>
|
||||
<p class="name"><?php echo 'Hallo, ' . convertName(convertUmlauteFrom($nutzername)) . ', bitte auswählen:'; ?></p>
|
||||
<?php
|
||||
echo '<table border="1"><tr><td></td>';
|
||||
for ($i = 0; $i < count($kurse); $i++) {
|
||||
echo "<td>" . convertUmlauteFrom($kurse[$i]["name"]) . "</td>";
|
||||
}
|
||||
echo '<table border="1"><tr><td></td>';
|
||||
for ($i = 0; $i < count($kurse); $i++) {
|
||||
echo "<td>" . convertUmlauteFrom($kurse[$i]["name"]) . "</td>";
|
||||
}
|
||||
|
||||
for ($j = 0; $j < 3; $j++) {
|
||||
echo "<tr>";
|
||||
echo "<td>Wahl " . ($j + 1) . "</td>";
|
||||
for ($k = 0; $k < count($kurse); $k++) {
|
||||
echo "<td>";
|
||||
echo '<input type="radio" id="' . $j . '/' . $k . '" name="wahl' . $j . '" value="' . convertUmlauteFrom($kurse[$k]["name"]) . ';' . $kurse[$k]["stunde"] . '">';
|
||||
echo '<label for="' . $j . '/' . $k . '">' . $kurse[$k]["stunde"] . '</label>';
|
||||
echo "</td>";
|
||||
}
|
||||
echo "</tr>";
|
||||
}
|
||||
echo '<tr><td colspan="' . (count($kurse) + 1) . '"><input type="submit" value="Wählen"></td></tr></table>';
|
||||
?>
|
||||
for ($j = 0; $j < 3; $j++) {
|
||||
echo "<tr>";
|
||||
echo "<td>Wahl " . ($j + 1) . "</td>";
|
||||
for ($k = 0; $k < count($kurse); $k++) {
|
||||
echo "<td>";
|
||||
echo '<input type="radio" id="' . $j . '/' . $k . '" name="wahl' . $j . '" value="' . convertUmlauteFrom($kurse[$k]["name"]) . ';' . $kurse[$k]["stunde"] . '">';
|
||||
echo '<label for="' . $j . '/' . $k . '">' . $kurse[$k]["stunde"] . '</label>';
|
||||
echo "</td>";
|
||||
}
|
||||
echo "</tr>";
|
||||
}
|
||||
echo '<tr><td colspan="' . (count($kurse) + 1) . '"><input type="submit" value="Wählen"></td></tr></table>';
|
||||
?>
|
||||
<input type="hidden" name="check" value="ja">
|
||||
<?php
|
||||
echo "</form>";
|
||||
?>
|
||||
echo "</form>";
|
||||
?>
|
||||
<noscript>
|
||||
<p>
|
||||
JavaScript wird für Annehmlichkeiten verwendet, um diese nutzen zu können, sollten Sie dies auch aktivieren.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue