echo404($_GET['subcat']); } } elseif (!empty($_GET['cat'])) { $category = $file_db->prepare("SELECT cl.id_cat, name, image, description,c.priority,c.template FROM category_lang cl JOIN category c ON c.id_cat = cl.id_cat WHERE cleanString LIKE :cat AND lang LIKE :lang"); $category->bindParam(":cat", $_GET['cat'], SQLITE3_TEXT); $category->bindParam(":lang", $lang, SQLITE3_TEXT); $category->execute() or die('unable to find category'); $cat = $category->fetch(); if (!empty($cat['name'])) { drawLead("cat cat" . $cat['id_cat'], $cat['name'], $cat['description'], 'cat', $cat['id_cat'], $translation, $lang, $cat['priority'], NULL, NULL); $current = drawCookieTrail($lang, $cat['name']); $template = $cat['template']; echo '<div class="flex-row-fluid wrapper ' . $template . '">'; drawListing($file_db, $translation, $current, $lang, 'cat', $cat['id_cat'], NULL); echo '</div>'; } else { $current = drawCookieTrail($lang, $cat['name']); echo404($_GET['cat']); } } else { drawLead('index', $header['name'], $header['description'], 'index', 0, $translation, $lang, NULL, NULL, NULL); $current = drawCookieTrail($lang); echo '<div class="flex-row-fluid flex-top wrapper">'; drawListing($file_db, $translation, $current, $lang, 'index', NULL, NULL); echo '<section id="sidebar">'; drawContact($file_db, $translation, $lang); drawCalendar($file_db, $translation, $lang); echo '</section></div>'; } include 'include/footer.php'; include 'include/close.php';
function loadBody() { require_once $GLOBALS['where_lms'] . '/modules/' . $this->module_name . '/' . $this->module_name . '.php'; drawCalendar(); }
<body> <div class="wrapper"> <table class="calendar"> <tr> <td colspan=""> <form action="" method="get"> <select name="year" id="year"> <?php generateInput($year); ?> </select> <input type="submit" value="refresh" class="ced"> <a href="/celebrations.php"> <input type="button" value="Managing page" name="Managing page" class="ced"> </a> </form> </td> </tr> <tr> <td> <?php drawCalendar($year, $months); ?> </td> </tr> </table> </div> </body> </html>
<meta charset="windows-1251"> <link rel="stylesheet" href="css/style.css"/> <script src="js/jquery-2.1.4.js"></script> <script src="js/calendar.js"></script> </head> <body> <p><span>Hello, <?php echo $_SESSION['email']; ?> </span> | <span><a href="logOut.php">Exit</a></span></p> <div class="calendar"> <?php require_once 'get_and_draw_date.php'; getCalendarDate($week, $month, $day, $year); drawCalendar($week, $day); ?> <form method="post"> <select style="width:50px; " name="day"> <?php for ($i = 1; $i <= date('t', strtotime("{$year}-{$month}-{$day}")); $i++) { if ($_POST['day'] == $i || $day == $i) { echo "<option id='select_day' selected>{$i}</option>"; continue; } echo "<option>{$i}</option>"; } ?> </select> <select style="width:95px; " name="month"> <?php