getField('phplist_list::id'); } switch (strtolower($findUser_row->getField('Title code'))) { case tre: $genList = 3; break; case su: $genList = 2; break; case bdm: $genList = 6; break; default: $genList = 5; break; } $emailLists = array($genList, 4, 21, 22, 23, 24, 31, 28); function listEmails($listid) { switch ($listid) { case 2: case 3: case 5: case 6: $o .= '- General eAlerts
'; break; case 4: $o .= '- Facts in a Flash eNewsletter
'; break; case 14: $o .= '- NSPRA Ohio Annoucements
'; break; case 21: $o .= '- Success eNewsletter
'; break; case 22: $o .= '- Bi-weekly News Update eNewsletter
'; break; case 23: $o .= '- Federal Regulations and Resources eNewsletter
'; break; case 24: $o .= '- ODE EdConnection eNewsletter
'; break; case 31: $o .= '- KidsPAC Annoucements
'; break; case 28: $o .= '- HealthLink eNewsletter
'; break; } return $o; } function listSubs() { global $findUser_row; $s = ''; if ($findUser_row->getField('Briefcase') == 1) { if ($findUser_row->getField('BriefcasePreference') == 'E-mail') { $s .= 'Briefcase (E-Mail)'; } else { $s .= 'Briefcase (Mail)'; } $s .= '
'; } if ($findUser_row->getField('SMN_subscription') == 1) { if ($findUser_row->getField('SMNPreference') == 'E-mail') { $s .= 'School Management News (E-Mail)'; } else { $s .= 'School Management News (Mail)'; } $s .= '
'; } return $s; } function addList($listId, $phplistId) { $sqlAdd = "INSERT INTO `phplist`.`phplist_listuser` (`userid`, `listid`) VALUES ('$phplistId', '$listId')"; $result = mysql_query($sqlAdd); } function removeList($listid, $phplistid) { $sqlDel = "DELETE FROM `phplist`.`phplist_listuser` WHERE userid=$phplistid AND listid=$listid"; $resultDel = mysql_query($sqlDel); } function addAccess($mid, $type, $data) { global $OSBA; if ($type == 'Home' || $type == 'Work' || $type == 'Cell' || $type == 'Fax') $data = cleanPhone($data); $contactAdd = $OSBA->newAddCommand('Access'); $contactAdd->setField('Membership_number', $mid); $contactAdd->setField('phoneType', $type); $contactAdd->setField('phoneNumEmail', $data); $contactAdd->setField('phoneMain', '1'); $contactAdd->setField('Source', 'Web'); $contact_result = $contactAdd->execute(); print_r($contact_result); echo 'Done'; } function editAccess($recid, $data) { global $OSBA; $contactEdit = $OSBA->newEditCommand('Access', $recid); $contactEdit->setField('phoneNumEmail', $data); $contactEdit->setField('Source', 'Web'); $contactEdit_result = $contactEdit->execute(); } function cleanPhone($number) { $takeout = array("(",")","/","\\",":"," "," ","-","--",); $return = str_replace($takeout,"",$number); return $return; } function delAccess($recid) { global $OSBA; $contactDelete = $OSBA->newDeleteCommand('Access', $recid); $contact_result = $contactDelete->execute(); } if (isset($_REQUEST['P'])) { include 'userHome/'.$_REQUEST['P'].'.php'; die(); } //}//end if isset($fmMemId) $tdPadding = "3px 10px 3px 10px"; $o = '
Change password
My Profile My District My Subscriptions
'; $o .= '(manage)
'.$findUser_row->getField('Full name').''; $POBox = $findUser_row->getField('Mailing PO box'); if (!empty($POBox)) $o .= '
P.O. Box '.$findUser_row->getField('Mailing PO box'); $o .= '
'.$findUser_row->getField('Mailing street address'); $o .= '
'.$findUser_row->getField('Mailing city').', '.$findUser_row->getField('Mailing state').' '.$findUser_row->getField('Five digit zip').' - '.$findUser_row->getField('Four digit zip'); $o .= '

'; foreach($findUserAccess as $row) { $o .= ''.$row->getField('Access::phoneType').': '.$row->getField('Access::cntdPhoneNumberDisplayCalc').'
'; } $o .= '
'; if (strtolower($findUser_row->getField('Title code')) == 'tre') foreach($findUserLists as $lists) { $o .= listEmails($lists->getField('phplist_list::id')); } $o .= ''; $o .= 'Electronic: (manage)
'; $o .= '
Fee Based Publications: (manage)
'; //$o .= listSubs(); if ($findUser_row->getField('Briefcase') == 1) { if ($findUser_row->getField('BriefcasePreference') == 'E-mail') { $o .= '- Briefcase (E-Mail)'; } else { $o .= '- Briefcase (Mail)'; } $o .= '
'; if ($findUser_row->getField('SMN_subscription') == 1) { if ($findUser_row->getField('SMNPreference') == 'E-mail') { $o .= '- School Management News (E-Mail)'; } else { $o .= '- School Management News (Mail)'; } $o .= '
'; } $o .= '
'; } $o .= '
   
My Committees/Roles for '.date('Y').'My Upcoming Trainings
'; //Committees and reports space $count = 0; if (!empty($findUserCommittees)) { foreach($findUserCommittees as $comm) { if ($comm->getField('Comm::Committee_year') == date('Y')) { $o .= '- '.$comm->getField('Comm::Committee').'
'; $count++; } } } if ($count == 0) { $o .= 'You are not on any committees for '.date('Y').'.'; } $o .= '
'; //current trainings $count = 0; $WsHistory = ''; $historyRange = date('Y') - 1; foreach($findUserWorkshops as $workshops) { $WsTs = strtotime($workshops->getField('Workshops::WS date')); if ($WsTs > time()) { $o .= '- '.$workshops->getField('Workshops::WS date').': '.$workshops->getField('In_service::Title').'
'; $count++; }//If $WsTs is greater than current date elseif ($WsTs > strtotime('1/1/'.$historyRange)) $WsHistory .= '- '.$workshops->getField('Workshops::WS date').': '.$workshops->getField('In_service::Title').'
'; }//end foreach if (empty($WsHistory)) $WsHistory = 'You have not attended any trainings in the past year.'; if ($count == 0) $o .= 'You currently are not registered for any trainings.'; $o .= '

View OSBA training opportunities
'; //Training HIstory space $o .= '
'; //Award listing space $o .= '
   
Workshops I have attended ('.$historyRange.' - Present)My Awards
Print full history report
'; $o .= $WsHistory; $o .= '
'; if (!empty($findUserAwards)) { foreach($findUserAwards as $awards) { $o .= '- '.$awards->getField('Awards::Award_type').' ('.$awards->getField('Awards::Award_year').')
'; } } else { $o .= 'You currently have no awards'; } $o .= '
'; echo $o; exit(); ?>