fetch(PDO::FETCH_ASSOC); $stH = null; //compose email message $noteText = $what == 'add' ? $xx['evt_event_added'] : ($what == 'upd' ? $xx['evt_event_edited'] : $xx['evt_event_deleted']); $dateTime = makeFullDT(false,$sda,$eda,$sti,$eti).($r_t ? " ({$repTxt})" : ''); //add full date/time and repeat text (display values) $evD = DDtoID($sda); $status = ''; if (!$eda and !$r_t) { //no multi-day and not repeating if ($row['checkBx']) { $status .= $row['checkLb'].': '.(strpos($evt['chd'], $evD) ? $row['checkMk'] : '- -'); } } $subject = "{$noteText}: {$tit}"; $catColor = ($row['color'] ? "color:{$row['color']};" : "").($row['bgColor'] ? "background-color:{$row['bgColor']};" : ""); $eStyle = $catColor ? " style=\"{$catColor}\"" : ""; $eBoxStyle = ' style="padding-left:5px;'.(($row['approve'] and !$apd) ? ' border-left:2px solid #ff0000;' : '').'"'; $evtText = makeE($evt,$set['evtTemplGen'],'td','','1234578'); $msgBody = "
| {$xx['evt_title']}: | {$tit} |
| {$xx['evt_status']}: | {$status} |
| {$xx['evt_date_time']}: | {$dateTime} |
{$eMsg}
\n"; if ($wMsg) echo "{$wMsg}
\n"; if ($cMsg) echo "{$cMsg}
\n"; if (!$exec or $mayEdit) { if (($r_t or $eda) and $mayEdit and !($ediN or $refresh or $eMsg or $cMsg)) { require './pages/eventform0.php'; //ask series or occurence } elseif ($mayEdit and !($cat['app'] and $apd and $usr['privs'] < 4)) { require './pages/eventform1.php'; } else { exit('Session expired ('.substr(basename(__FILE__),0,-4).'). Please log in again.'); } } else { echo $xx['no_way']; } ?>