Proyecto: Codeando.org Author: Paulo Andrade Email: source.compu@gmail.com Web: http://www.pauloandrade1.com ************************************************/ session_start(); set_time_limit(0); // Ajustamos la zona horaria date_default_timezone_set('America/Mexico_City'); require_once '../config.php'; require_once 'Db.php'; $db = new Db(); $type = empty($_POST['type']) ? '' : $_POST['type']; switch ($type) { case 'show_month': show_month($db); break; case 'show_year': show_year($db); break; case 'stats_resumen': stats_resumen($db); break; case 'stats_visitas': stats_visitas($db); break; case 'stats_historial': stats_historial($db); break; } // Cargamos las estadisticas para un mes en concreto
$month = _AUGUST; } elseif ($getdate[2] == "09") { $month = _SEPTEMBER; } elseif ($getdate[2] == "10") { $month = _OCTOBER; } elseif ($getdate[2] == "11") { $month = _NOVEMBER; } elseif ($getdate[2] == "12") { $month = _DECEMBER; } if ($month != $thismonth) { $year = $getdate[1]; echo "<li><a href=\"modules.php?name={$module_name}&sa=show_month&year={$year}&month={$getdate['2']}&month_l={$month}\">{$month}, {$year}</a>"; $thismonth = $month; } } echo "</ul><br><br><center>" . "<form action=\"modules.php?name=Search\" method=\"post\">" . "<input type=\"text\" name=\"query\" size=\"30\"> " . "<input type=\"submit\" value=\"" . _SEARCH . "\">" . "</form>" . "[ <a href=\"modules.php?name={$module_name}\">Stories Archive Index</a> ]</center>"; CloseTable(); include "footer.php"; } switch ($sa) { case "show_all": show_all($min); break; case "show_month": show_month($year, $month, $month_l); break; default: select_month(); break; }
if (array_key_exists('_submit_check_edit_notes', $_POST) && $_SESSION['access_level'] >= 2) { process_edit_notes($month, $group, $_POST, $year); $month = get_dbMonths($monthid); } // prevents archived months from being edited by anyone $today = mktime(); if ($month->get_status() == "archived") { $edit = false; } // shows the previous month / next month navigation $month_nav = do_month_nav($month, $edit, $group); echo $month_nav; ?> <button id="printcal" onclick="printpage()">Print Calendar</button><script>function printpage(){window.print();}</script> <?php echo '<form method="POST">'; show_month($days, $month, $edit, $year, $group); // if ($edit == true && !($days[6]->get_year() < $year || ($days[6]->get_year() == $year) ) && $_SESSION['access_level'] >= 2) // echo "<p align=\"center\"><input type=\"submit\" value=\"Save changes to all notes\" name=\"submit\">"; echo '</form>'; } echo " </div>"; include 'footer.inc'; ?> </div> </div> </body> </html>