コード例 #1
0
 static function getIds($db, $email)
 {
     require_once '/../db/db.class.php';
     $erg = array(Stundenplan::countStundenplaene($db, $email));
     $i = 0;
     $result = $db->get('stundenplan_id', 'stundenplan', "email='" . $email . "'");
     while ($row = mysql_fetch_assoc($result)) {
         $erg[$i] = $row['stundenplan_id'];
         $i++;
     }
     return $erg;
 }
コード例 #2
0
.timetablecell {
	text-align:center;
	font-weight:bold;
}
</style>


<?php 
require_once '../../db/db.class.php';
require_once '../../class/Stundenplan.class.php';
require_once '../../class/Fach.class.php';
require_once '../../global/colors.php';
$db = new db();
isset($_POST['email']) ? $email = $_POST['email'] : ($email = '');
$ids = Stundenplan::getIds($db, $email);
$anzahl = Stundenplan::countStundenplaene($db, $email);
for ($i = 0; $i < $anzahl; $i++) {
    echo '
	<input type="hidden" id="maincolor" value="' . $MAINCOLOR2 . '" />
	<table border="1" cellspacing="0" style="width:99%">
		<tr>
			<th></th>
			<th>Montag</th>
			<th>Dienstag</th>
			<th>Mittwoch</th>
			<th>Donnerstag</th>
			<th>Freitag</th>
		</tr>
		<tr>
			<td class="timetablerim">8:00</td>
			<td class="timetablecell" id="' . $ids[$i] . '-montag-0"></td>