'; $gID = getUsersGroup($_COOKIE['threads_login']); $groupID = ""; $AdminUser = isAdminUser($_COOKIE['threads_login']); if( $_SERVER['QUERY_STRING'] ){ // something on the URL if adding a user to a task deal with it parse_str($_SERVER['QUERY_STRING'],$URL ); if( $URL['SI'] == 'a' ) // user signing up for a task $errMsg = AddParticipant( $URL['mID'], $_COOKIE['threads_login'] ); if ( $URL['dmID'] ){ // deleting the meeting being viewed $errMsg = DeleteMeetingDate($URL['dmID']); if( ! $errMsg )$Message = "The meeting has been deleted"; } if( $URL['gID'] ) // use group id if specified otherwise default to users group $groupID = $URL['gID']; } if( $gID!=$groupID && ! isSiteAdmin() ) // prevent user from looking at group other than their own, unless site admin $groupID = $gID; if( ! $groupID ){ // if no group id if( isSiteAdmin() ){ // site admin does not have to be associated with a group if( ! $URL['calID'] || ($groupID=getCalendarGroup($URL['calID'])) == -1 ) echo ""; } else // should never get here, but just in case echo ""; } if( $_POST['Renig'] ){ if( $_POST['delTask'] ){ $errMsg = renigTasks($_COOKIE['threads_login'], $_POST['delTask']); if( $errMsg )break; } else $Message = "You must select the check box next to your name to remove yourself from the task"; } $MeetingDates = getAllMeetingDates($groupID,0); // get all meeting dates $today = date( "Y-m-d" ); // the date for today $key = array(); // initialization if( $URL['calID'] ) // determine if calendar id on the command line $calID = $URL['calID']; // ID of calendar being viewed else $calID = $key['current']; if( ! $calID ){ // nothing on command line, get meetins, previous, closest to today, next $key = findClosestMeeting( $today, $MeetingDates ); } else{ // get specified meeting with previous and next from passed list contained in MeetingDates $key = findSurroundingMeetings( $calID, $MeetingDates ); } $cal = getMeeting($key['current']); // get meeting information for specified meeting ?> Threads of Tradition
 
\n"; if( $AdminUser ) echo " \n"; else if( $cal['MeetingDate'] > $today ) echo " \n"; echo "\n
Welcome " .$un . "":""); ?>

These are all the meetings that have been scheduled for this group. You can scroll through the meetings by selecting the 'Previous' and 'Next' buttons. To sign up for a task select the 'sign me up' link.

This page allows you to see who has signed up for tasks at the various meetings.

\n"; echo "\n"; ?>
Scheduled Meetings
There are no future meetings scheduled for this group at this time

\n"; if( $key['prev'] )echo ""; echo " \n"; if( $cal['MeetingDate'] )echo date("F j, Y", strtotime($cal['MeetingDate'])) . "
"; echo $cal['MeetingDesc'] . "
" . $cal['MeetingLocation']; echo "
\n"; if( $key['next'] )echo ""; echo "
\n"; // print calendar $rowID = 0; foreach( $cal['Tasks'] as $tasks ){ // for each task to be performed - alternate color of task row if( $rowID==1 ){ $rowID = 0; $class = "class='altRow1'"; } else{ $rowID = 1; $class = "class='altRow2'"; } $cnt=0; echo "\n"; foreach( $tasks['Participants'] as $participant ){ // for each person doing the task if( ($cnt % 5) == 0 && $cnt!=0)echo ""; // if cr/lf needed echo ""; $cnt++; } // for each person doing the task if( $cnt < 5 ) // blank out extra spaces $colspan = 5 - $cnt; else{ $cnt1 = $cnt; while( $cnt1 > 5 )$cnt1 -= 5; $colspan = 5 - $cnt1; } if( $colspan > 0 )while( $colspan-- > 0 )echo ""; echo "\n"; } // for each task occuring during the meeting echo "\n
information" . $tasks['Name'] . "
 "; if( $participant['UserID'] == 0 && $participant['FirstName']=='' ){ // if no one signed up for task and meeting in the future, allow sign up if( $AdminUser ) // admin users can modify past meetings echo "assign task"; else if( $cal['MeetingDate']>$today ) // if not admin user can only modify stuff in the future echo "sign me up"; } else if( $participant['UserID'] == $_COOKIE['threads_login'] ) // else if current user signed up for task, italicize name echo ""; else echo " "; // else print an empty square echo $participant['FirstName'] . " " . $participant['LastName']; // display name of user signed up for task (might or might not be italicized) if( $participant['UserID'] == $_COOKIE['threads_login'] ) echo ""; else echo " "; if( ($participant['UserID'] > 0) || ($participant['FirstName']!='' && $participant['UserID']==0) ){ // if current user looking at future calendar allow for task deletion if( $AdminUser || ($participant['UserID']==$_COOKIE['threads_login'] && $cal['MeetingDate']>$today) ) echo " "; else echo " "; } else echo " "; echo " 
\n"; echo "
\n"; } ?>
      Home  •  TachrichimPrivacy
Copyright ThreadsofTradition.org 2005-2006