<!DOCTYPE html> <html lang="es"> <head> <meta charset="UTF-8"> <title>Timetable</title> <link rel="stylesheet" href="../../css/main.css"> <?php set_head(); ?> </head> <body> <?php $group = $_GET['group']; $con = mysqli_connect($dbserver, $dbuser, $dbpass, $database); echo "<table id='table'>"; $q = $con->query("select * from pl_config WHERE property='midweek'"); $r = mysqli_fetch_array($q); $midweek = $r['value']; if ($midweek = 'true') { echo "<tr><th></th><th>Monday</th><th>Tuesday</th><th>Wednesday</th><th>Thursday</th><th>Friday</th></tr>"; } $q2 = $con->query("select * from pl_hours"); $q3 = $con->query("select * from pl_groups"); $r3 = mysqli_fetch_array($q3); while ($r2 = mysqli_fetch_array($q2)) { echo "<tr><td>" . $r2['name'] . "</td></tr>"; } set_footer(); ?> </body> </html>
/** * print a letal error message and die * * This function is called whenever a letal error (one that prevents * further processing) is detected. The function will spit out an * error message, close the page and exit the program. * It should seldomly be used, since it may potentially disrupt the * page layout (e.g. amid a table) by not closing open tags of which * it is unaware. * Actually it is a wrapper for error + terminate. * * @param where location (physical or logical) where the error was * detected: a physical location (routine name/line number) may be * helpful for debugging, a logical location (during which part of * the processing it happened) will be more helful to the user. * * @param what a descrition of the abnormality detected. */ function letal($what, $where) { error($what, $where); set_footer(); exit; }
if ($total_folders > 1 && $total_files > 1) { $summary = sprintf(_('%1$s folders and %2$s files, %3$s %4$s in total'), $total_folders, $total_files, $total_size['num'], $total_size['str']); } } } } } } } } // Merge local settings with global settings if (isset($loptions)) { $options = array_merge($options, $loptions); } $header = set_header($bootstrap_cdn); $footer = set_footer(); // Set breadcrumbs $breadcrumbs = " <ol class=\"breadcrumb{$breadcrumb_style}\"" . $direction . ">" . PHP_EOL; $breadcrumbs .= " <li><a href=\"" . htmlentities($root_dir, ENT_QUOTES, 'utf-8') . "\">" . $icons['home'] . "</a></li>" . PHP_EOL; foreach ($dir_name as $dir => $name) { if ($name != ' ' && $name != '' && $name != '.' && $name != '/') { $parent = ''; for ($i = 0; $i <= $dir; $i++) { $parent .= rawurlencode($dir_name[$i]) . '/'; } $breadcrumbs .= " <li><a href=\"" . htmlentities($absolute_path . $parent, ENT_QUOTES, 'utf-8') . "\">" . $name . "</a></li>" . PHP_EOL; } } $breadcrumbs = $breadcrumbs . " </ol>" . PHP_EOL; // Show search if ($options['general']['enable_search'] == true) {