/* $Id: index.php,v 1.60.2.15 2008/04/23 20:22:55 umcesrjones Exp $ * * This menu was created using some fantastic free tools out on the internet: * - Most icons by everaldo at http://en.crystalxp.net/ (with his permission ) * - Javascript & CSS by JSCookMenu at http://www.cs.ucla.edu/~heng/JSCookMenu/ */ defined ( '_ISVALID' ) or die ( 'You cannot access this file directly!' ); // Configure your menu using this file. include_once 'includes/menu/menu_config.php'; global $ALLOW_VIEW_OTHER, $BodyX, $CATEGORIES_ENABLED, $DISPLAY_TASKS, $DISPLAY_TASKS_IN_GRID, $fullname, $has_boss, $HOME_LINK, $is_admin, $is_assistant, $is_nonuser, $is_nonuser_admin, $login, $login_return_path, $MENU_DATE_TOP, $menuHtml, $menuScript, $NONUSER_ENABLED, $PUBLIC_ACCESS, $PUBLIC_ACCESS_ADD_NEEDS_APPROVAL, $PUBLIC_ACCESS_CAN_ADD, $PUBLIC_ACCESS_OTHERS, $readonly, $REMOTES_ENABLED, $REPORTS_ENABLED, $REQUIRE_APPROVALS, $show_printer, $single_user, $START_VIEW, $thisday, $thismonth, $thisyear, $use_http_auth, $user, $views, $OVERRIDE_PUBLIC; /* ----------------------------------------------------------------------------- First figure out what options are on and privileges we have ----------------------------------------------------------------------------- */ $can_add = ( ! empty ( $readonly ) && $readonly != 'Y' ); if ( access_is_enabled () ) $can_add = access_can_access_function ( ACCESS_EVENT_EDIT, $user ); if ( $login == '__public__' ) $can_add = ( access_is_enabled () ? $can_add : $PUBLIC_ACCESS_CAN_ADD == 'Y' ); if ( $is_nonuser ) $can_add = false; $export_url = $import_url = $new_entry_url = $new_task_url = ''; $search_url = $select_user_url = $unapproved_url = ''; $help_url = 'help_index.php'; $month_url = 'month.php'; $today_url = 'day.php'; $week_url = 'week.php'; $year_url = 'year.php'; $mycal = ( empty ( $STARTVIEW ) ? 'index.php' : $STARTVIEW ); $mycal .= ( ! strpos ( $mycal, '.php' ) ? '.php' : '' ); if ( $can_add ) { // Add new entry. $new_entry_url = 'edit_entry.php'; if ( ! empty ( $thisyear ) ) { $good_date = 'year=' . $thisyear . ( empty ( $thismonth ) ? '' : '&month=' . $thismonth ) . ( empty ( $thisday ) ? '' : '&day=' . $thisday ); $new_entry_url .= "?$good_date"; } // Add new task. if ( $DISPLAY_TASKS_IN_GRID == 'Y' || $DISPLAY_TASKS == 'Y' ) $new_task_url = 'edit_entry.php?eType=task' . ( empty ( $thisyear ) ? '' : "&$good_date" ); } if ( $single_user != 'Y' ) { // Today if ( ! empty ( $user ) && $user != $login ) { $month_url .= '?user=' . $user; $today_url .= '?user=' . $user; $week_url .= '?user=' . $user; $year_url .= '?user=' . $user; if ( ! empty ( $new_entry_url ) ) $new_entry_url .= '&user=' . $user; if ( ! empty ( $new_task_url ) ) $new_task_url .= '&user=' . $user; } // List Unapproved. if ( $login != '__public__' && ! $is_nonuser && $readonly == 'N' && ( $REQUIRE_APPROVALS == 'Y' || $PUBLIC_ACCESS == 'Y' ) ) $unapproved_url = 'list_unapproved.php' . ( $is_nonuser_admin ? '?user=' . getValue ( 'user' ) : '' ); // Another User's Calendar. if ( ( $login == '__public__' && $PUBLIC_ACCESS_OTHERS != 'Y' ) || ( $is_nonuser && ! access_is_enabled () ) ) { // Don't allow them to see other people's calendar. } else if ( $ALLOW_VIEW_OTHER == 'Y' || $is_admin ) { // Also, make sure they able to access either day/week/month/year view. // If not, the only way to view another user's calendar is a custom view. if ( ! access_is_enabled () || access_can_access_function ( ACCESS_ANOTHER_CALENDAR ) ) { // Get count of users this user can see. If > 1, then... $ulist = array_merge ( get_my_users ( $login, 'view' ), get_my_nonusers ( $login, true, 'view' ) ); //remove duplicates if any if ( function_exists ( 'array_intersect_key' ) ) $ulist = array_intersect_key($ulist, array_unique(array_map('serialize', $ulist))); if ( count ( $ulist ) > 1 ) $select_user_url = 'select_user.php'; } } } // Only display some links if we're viewing our own calendar. if ( ( empty ( $user ) || $user == $login ) || ( ! empty ( $user ) && access_is_enabled () && access_user_calendar ( 'view', $user) ) ) { // Search if ( access_can_access_function ( ACCESS_SEARCH, $user ) ) $search_url = 'search.php'; } if ( empty ( $user ) || $user == $login ) { // Import/Export if ( access_is_enabled () || ( $login != '__public__' && ! $is_nonuser ) ) { if ( $readonly != 'Y' && access_can_access_function ( ACCESS_IMPORT, $user ) ) $import_url = 'import.php'; if ( access_can_access_function ( ACCESS_EXPORT, $user ) ) $export_url = 'export.php'; } } // Help $showHelp = ( access_is_enabled () ? access_can_access_function ( ACCESS_HELP, $user ) : ( $login != '__public__' && ! $is_nonuser ) ); // Views $view_cnt = count ( $views ); if ( ( access_can_access_function ( ACCESS_VIEW, $user ) && $ALLOW_VIEW_OTHER != 'N' ) && $view_cnt > 0 ) { $views_link = array (); for ( $i = 0; $i < $view_cnt; $i++ ) { $tmp['name'] = htmlspecialchars ( $views[$i]['cal_name'], ENT_QUOTES ); $tmp['url'] = str_replace ( '&', '&', $views[$i]['url'] ) . ( empty ( $thisdate ) ? '' : '&date=' . $thisdate ); $views_link[$i] = $tmp; } $views_linkcnt = count ( $views_link ); $tmp = ''; } // Reports $reports_linkcnt = 0; if ( ! empty ( $REPORTS_ENABLED ) && $REPORTS_ENABLED == 'Y' && access_can_access_function ( ACCESS_REPORT, $user ) ) { $reports_link = array (); $u_url = ( ! empty ( $user ) && $user != $login ? '&user=' . $user : '' ); $rows = dbi_get_cached_rows ( 'SELECT cal_report_name, cal_report_id FROM webcal_report WHERE cal_login = ? OR ( cal_is_global = \'Y\' AND cal_show_in_trailer = \'Y\' ) ORDER BY cal_report_id', array ( $login ) ); if ( $rows ) { for ( $i = 0, $cnt = count ( $rows ); $i < $cnt; $i++ ) { $row = $rows[$i]; $tmp['name'] = htmlspecialchars ( $row[0], ENT_QUOTES ); $tmp['url'] = 'report.php?report_id=' . $row[1] . $u_url; $reports_link[] = $tmp; } } $reports_linkcnt = count ( $reports_link ); $tmp = ''; } // Logout/Login URL if ( ! $use_http_auth && $single_user != 'Y' ) { $login_url = 'login.php'; if ( empty ( $login_return_path ) ) $logout_url = $login_url . '?'; else { $login_url .= '?return_path=' . $login_return_path; $logout_url = $login_url . '&'; } $logout_url .= 'action=logout'; // Should we use another application's login/logout pages? if ( substr ( $GLOBALS['user_inc'], 0, 9 ) == 'user-app-' ) { global $app_login_page, $app_logout_page; $login_url = 'login-app.php' . ( $login_return_path != '' && $app_login_page['return'] != '' ? '?return_path=' . $login_return_path : '' ); $logout_url = $app_logout_page; } } // Manage Calendar links. if ( ! empty ( $NONUSER_ENABLED ) && $NONUSER_ENABLED == 'Y' ) $admincals = get_nonuser_cals ( $login ); // Make sure they have access to either month/week/day view. If they do not, // then we cannot create a URL that shows just the boss' events. So, we would // not include any of the "manage calendar of" links. $have_boss_url = true; if ( ! access_can_access_function ( ACCESS_MONTH, $user ) && ! access_can_access_function ( ACCESS_WEEK, $user ) && ! access_can_access_function ( ACCESS_DAY, $user ) ) $have_boss_url = false; if ( $have_boss_url && ( $has_boss || ! empty ( $admincals[0] ) || ( $is_admin && $PUBLIC_ACCESS ) ) ) { $grouplist = user_get_boss_list ( $login ); if ( ! empty ( $admincals[0] ) ) $grouplist = array_merge ( $admincals, $grouplist ); if ( $is_admin && $PUBLIC_ACCESS == 'Y' ) { $public = array ( 'cal_login' => '__public__', 'cal_fullname' => translate ( 'Public Access' ) ); array_unshift ( $grouplist, $public ); } $groups = ''; $grouplistcnt = count ( $grouplist ); for ( $i = 0; $i < $grouplistcnt; $i++ ) { $l = $grouplist[$i]['cal_login']; $f = $grouplist[$i]['cal_fullname']; // Don't display current $user in group list. if ( ! empty ( $user ) && $user == $l ) continue; /* Use the preferred view if it is day/month/week/year.php. Try not to use a user-created view because it might not display the proper user's events. (Fallback to month.php if this is true.) Of course, if this user cannot view any of the standard D/M/W/Y pages, that will force us to use the view. */ $xurl = get_preferred_view ( '', 'user=' . $l ); if ( strstr ( $xurl, 'view_' ) ) { if ( access_can_access_function ( ACCESS_MONTH, $user ) ) $xurl = 'month.php?user=' . $l; elseif ( access_can_access_function ( ACCESS_WEEK, $user ) ) $xurl = 'week.php?user=' . $l; elseif ( access_can_access_function ( ACCESS_DAY, $user ) ) $xurl = 'day.php?user=' . $l; // Year does not show events, so you cannot manage someone's cal. } $xurl = str_replace ( '&', '&', $xurl ); $tmp['name'] = $f; $tmp['url'] = $xurl; $groups[] = $tmp; } } // Help URL $help_url = ( access_can_access_function ( ACCESS_HELP, $user ) ); /* ----------------------------------------------------------------------------- Lets make a few functions for printing menu items. ----------------------------------------------------------------------------- */ /* JSCookMenu top menu item looks like: [null,'Title',null,null,null, Followed by items for that menu: ['','Title','link.php',null,''], Close a top level menu item: ], Custom actions inside a menu can be done with: [_cmNoAction, 'HTML code'] For full menu options see JSCookMenu documentation. */ $menuHtml = $menuScript = ''; /* A menu link. */ function jscMenu_menu ( $title='', $url = false, $translate=true ) { global $menuScript; $menuScript .= '[null,\'' . ( $translate ? translate ( $title ) : $title ) . "','$url'" . ',null,null' . ( $url ? ']' : '' ) . ','; } /* Dropdown menu item. */ function jscMenu_item ( $icon, $title='', $url, $translate=true, $target = '' ) { global $menuScript; // escape single quite to avoid javascript error $str = preg_replace ( "/'/", "\\'", $title ); $menuScript .= '[\''. $str .'\',\'' . ( $translate ? translate ( $str ) : $str ) . "','$url','$target',''],\n"; } /* Dropdown menu item that has a sub menu. */ function jscMenu_sub_menu ( $icon, $title='', $translate=true ) { global $menuScript; // escape single quite to avoid javascript error $str = preg_replace ( "/'/", "\\'", $title ); $menuScript .= '[\'\',\'' . ( $translate ? translate ( $str ) : $str ) . "','',null,'',\n"; } /* Dropdown menu item is custom HTML. */ function jscMenu_custom ( $html ) { global $menuScript; $menuScript .= '[_cmNoClick,' . "'$html']\n"; } /* Closing tag. */ function jscMenu_close () { global $menuScript; $menuScript .= '], '; } /* A divider line. */ function jscMenu_divider () { global $menuScript; $menuScript .= '_cmSplit, '; } /* ----------------------------------------------------------------------------- Now we need to print the menu ----------------------------------------------------------------------------- */ $menuScript .= ' ' . "\n"; $loginStr = translate ( 'Login' ); $logoutStr = translate ( 'Logout' ); $menuHtml .= ' ' . ( $MENU_DATE_TOP == 'Y' && $menuConfig['MENU_DATE_TOP'] ? ' ' : '' ) . '
' . print_menu_dates ( true ) . ' ' . ( ! empty ( $logout_url ) && $menuConfig['Login'] // Using http_auth. ? '' . $logoutStr . ': ' : // For public user. $loginStr . '" href="' . $login_url . '">' . $loginStr . '' ) : '   ' // TODO replace with something??? ) . ' 
'; // Add function to onload string as needed. $BodyX = ( empty ( $BodyX ) ? 'onload="' : substr ( $BodyX, 0, -1 ) ) . "cmDraw( 'myMenuID', myMenu, 'hbr', cmTheme, 'Theme' );\""; /* This function allows admins to add static content to their menu. */ function parse_menu_extras ( $menuA ) { $ret = ''; if ( $menuA[0] == 'menu' ) { $ret .= jscMenu_menu ( $menuA[1], $menuA[2], false ); if ( is_array ( $menuA[3] ) ) { foreach ( $menuA[3] as $menuB ) { if ( $menuB[0] == 'item' ) $ret .= jscMenu_item ( $menuB[1], $menuB[2], $menuB[3], false, $menuB[4] ); elseif ( $menuB[0] == 'submenu' ) { $ret .= jscMenu_sub_menu ( $menuB[1], $menuB[2], false ); foreach ( $menuB[3] as $menuC ) { $ret .= jscMenu_item ( $menuC[1], $menuC[2], $menuC[3], false, $menuC[4] ); } $ret .= jscMenu_close (); } elseif ( $menuB[0] == 'divider' ) $ret .= jscMenu_divider (); elseif ( $menuB[0] == 'spacer' ) $ret .= "[_cmNoAction, '  '],"; } } $ret .= jscMenu_close (); } elseif ( $menuA[0] == 'item' ) $ret .= jscMenu_item ( $menuA[1], $menuA[2], $menuA[3], false, $menuA[4] ); return $ret; } ?> WebCalendar
August 2013
  Sun Mon Tue Wed Thu Fri Sat
(31)         1 2 3
(32) 4 5 6 7 8 9 10
(33) 11 12 13 14 15 16 17
(34) 18 19 20 21 22 23 24
(35) 25 26 27 28 29 30 31
October 2013
  Sun Mon Tue Wed Thu Fri Sat
(40)     1 2 3 4 5
(41) 6 7 8 9 10 11 12
(42) 13 14 15 16 17 18 19
(43) 20 21 22 23 24 25 26
(44) 27 28 29 30 31    
September 2013
Public Access


Category:
Category: All

Sun Mon Tue Wed Thu Fri Sat
W
K
3
6
01
02
View this event7:15pm» Yoga/Pilates Infusion
03
04
05
06
07
View this event11:15am» Functional Fit Boot Camp
W
K
3
7
08
09
10
11
12
13
14
W
K
3
8
15
16
17
18
19
20
21
View this event11:15am» Functional Fit Boot Camp
W
K
3
9
22
23
View this event7:15pm» Yoga/Pilates Infusion
24
25
26
27
28
View this event11:15am» Functional Fit Boot Camp
W
K
4
0
29
30
View this event7:15pm» Yoga/Pilates Infusion