$HTMLOUT .= begin_block("seat_info", $caption_t = "Seat Information", $per = 98, $tdcls = "colhead5", $img = "<img src='{$TK3GRE['pic_base_url']}status.png' style=' height:28px;' alt='' title='' />", $title = 'Seat Information'); //seat info data.. if (mysql_num_rows($seats) > 0) { //make table design $HTMLOUT .= "<table width='100%' cellspacing='0' cellpadding='5'><tr> \n <td class=\"colhead3\"style='text-align:center;'><b>Seat Number</b></td> \n\t\t<td class=\"colhead3\"style='text-align:center;'><b>Seat Tag</b></td>\n <td class=\"colhead3\"style='text-align:center;'><b>Current Status</b></td> \n <td class=\"colhead3\"style='text-align:center;'><b>History</b></td></tr>"; //populate table while ($seat = mysql_fetch_assoc($seats)) { $seatID = $seat["seat_id"]; $occupied = $seat["occupied"]; if ($occupied == 0) { $current_stat_text = "Empty/Free to sit"; } else { $current_stat_text = "Filled up"; } $seattag = $seat["tags"]; $seat_history = "<span class='btn'><a href='seat_history.php?room_id={$room_id}&seat_no={$seatID}'><font color=#FFFFFF>History for seat {$seatID}</font></a></span>"; //$seat_history = "<a href='seat_history.php?room_id=$room_id&seat_no=$seatID'>Details for seat $seatID</a>\n"; $HTMLOUT .= "<tr>\n\t\t\t\t\t\t<td style='text-align:center;'><b>{$seatID}</b></td>\n\t\t\t\t\t\t<td style='text-align:center;'><b>{$seattag}</b></td>\n\t\t\t\t\t\t<td style='text-align:center;'>{$current_stat_text}</td>\n\t\t\t\t\t\t<td style='text-align:center;'>{$seat_history}</td></tr>"; } $HTMLOUT .= "</table>"; } else { $HTMLOUT .= "No Seat info found"; } $HTMLOUT .= end_block(); $HTMLOUT .= "<br />"; } else { $HTMLOUT = ""; $HTMLOUT .= "<div class='notification error2 autoWidth' style='width: 957px;'><span></span>\n <div class='text'><p style='font-size: 12px;'><strong>Error!</strong>Invalid room ID. Please go back.</p>\n </div>\n </div>"; } //Now, make the page print stdhead("Room Details for " . $roomName) . $HTMLOUT . stdfoot();
<? extend('frix/admin/base') ?> <? block('contents') ?> <div id="message"> <p>Are you sure you want to delete <strong>"<?php echo $file_name; ?> "</strong>?</p> </div> <form action="./?<?php echo $_SERVER['QUERY_STRING']; ?> " method="post"> <p class="buttons"> <span class="button"><input type="submit" name="delete" value="Yes" /></span> <span class="button"><a href="./">No</a></span> </p> </form> <? end_block() ?>
<?php begin_block("Powered By"); ?> <p class="center-block"><img src="blocks/images/dev_page_badges.png" width="250px"></p> <?php end_block();
<h1><a href="<?php echo url($root); ?> "><?php echo Frix::config('PROJECT_TITLE'); ?> </a></h1> </div> <? if ($msg): ?> <div id="message"<? if ($msg_type): ?> class="<?php echo $msg_type; ?> "<? endif; ?>> <a href="./"><?php echo $msg; ?> </a> </div> <? endif; ?> <div id="main"> <div id="splash_box"> <? block('contents') ?><? end_block() ?> </div> </div> </div> </body> </html>