Ejemplo n.º 1
0
 }
 $TPL['recipients_display'] = implode($recipients_display, ", ");
 // date/time
 $_GET["reminderTime"] && $reminder->set_value("reminderTime", $_GET["reminderTime"]);
 $TPL["reminderTime"] = $reminder->get_value("reminderTime");
 $TPL["reminderHash"] = $reminder->get_value("reminderHash");
 $TPL["reminderAdvNoticeInterval"] = $reminder->get_value("reminderAdvNoticeInterval");
 $TPL["reminderRecuringInterval"] = $reminder->get_value("reminderRecuringInterval");
 $TPL["reminderID"] = $reminder->get_id();
 list($d, $t) = explode(" ", $reminder->get_value("reminderTime"));
 $TPL["reminder_date"] = $d or $TPL["reminder_date"] = date("Y-m-d");
 $TPL["reminder_hours"] = $reminder->get_hour_options();
 $TPL["reminder_minutes"] = $reminder->get_minute_options();
 $TPL["reminder_meridians"] = $reminder->get_meridian_options();
 $TPL["reminder_recuring_value"] = $reminder->get_value('reminderRecuringValue');
 $TPL["reminder_recuring_intervals"] = $reminder->get_recuring_interval_options();
 // advanced notice?
 $TPL["reminder_advnotice_value"] = $reminder->get_value('reminderAdvNoticeValue');
 $TPL["reminder_advnotice_intervals"] = $reminder->get_advnotice_interval_options();
 // subject
 if ($reminder->get_value('reminderSubject') != "") {
     $TPL["reminder_default_subject"] = $reminder->get_value('reminderSubject');
 } else {
     if ($parentType == "client") {
         $TPL["reminder_default_subject"] = commentTemplate::populate_string(config::get_config_item("emailSubject_reminderClient"), "client", $parentID);
         $TPL["reminder_default_content"] = config::get_config_item("allocURL") . "client/client.php?clientID=" . $parentID;
     } else {
         if ($parentType == "project") {
             $TPL["reminder_default_subject"] = commentTemplate::populate_string(config::get_config_item("emailSubject_reminderProject"), "project", $parentID);
             $TPL["reminder_default_content"] = config::get_config_item("allocURL") . "project/project.php?projectID=" . $parentID;
         } else {