<?php include_once "common/functions.php"; /*$x = sqlGetWeekSchedule(15,'2015-12-06'); print_r(json_encode($x));*/ if ($_GET) { $act = $_GET['action']; $data = $_GET['data']; $userid = $_GET['userid']; //echo json_encode($userid); } switch ($act) { case 'getschedule': echo json_encode(sqlGetWeekSchedule($userid, $data)); break; case 'getdayschedule': echo json_encode(getDayCal($userid, $data)); break; default: break; }
<?php include_once "header.php"; include_once "sidebar.php"; $userid = $_GET['uid']; $agenda = getUserAgenda($userid); $username = getUserName($userid); $weekTableData = sqlGetWeekSchedule($userid, date("Y-m-d")); ?> <style type="text/css"> table, th, td{ border: 1px solid #ccc!important; text-align: center; } th:first-child,td:first-child{ text-align: left!important; padding-left: 20px; } #frmUpdate { margin-bottom: 20px; } .checkbox{ margin: 0 30px; } #calBack:hover ,#calNext:hover{ color: blue; } #calendar td{ height: 37px; }
<?php include_once "common/functions.php"; $x = sqlGetWeekSchedule(15, date("Y-m-d")); echo date("Y-m-d"); print_r($x); //echo $week_end;