// include the calendar objects include "object-dayentry.php"; include "object-dayschedule.php"; // create the $OUTPUT variable $OUTPUT = ""; // decide what to do if (isset($_GET["key"])) { switch ($_GET["key"]) { case 'month': $OUTPUT = showCalendar_month(); break; case 'year': //$OUTPUT.=showCalendar_year(); break; case "viewother": $OUTPUT = selectOther(); break; case 'day': default: $OUTPUT = showCalendar_day(); break; } } else { $OUTPUT = showCalendar_day(); } // $OUTPUT = " // <div class='sub_container'> // $OUTPUT // </div>"; function selectOther() {
// include the calendar objects include "object-dayentry.php"; include "object-dayschedule.php"; // create the $OUTPUT variable $OUTPUT = ""; // decide what to do if (isset($_GET["key"])) { switch ($_GET["key"]) { case 'month': $OUTPUT .= showCalendar_month(); break; case 'year': //$OUTPUT.=showCalendar_year(); break; case "viewother": $OUTPUT .= selectOther(); break; case 'day': default: $OUTPUT .= showCalendar_day(); break; } } else { $OUTPUT .= showCalendar_day(); } function selectOther() { db_conn("cubit"); $sql = "SELECT diary_owner FROM diary_privileges WHERE priv_owner='" . USER_NAME . "' AND privilege='R'"; $rslt = db_exec($sql) or errDie("Error reading privileges."); $users = array();