$user_time_start = "00:00"; } $enddatetime = new DateTime($When[0]->getEndTime()); $enddatetime->setTimeZone($c_time_zone); $user_date_end = DateTimeField::convertToUserFormat($enddatetime->format('Y-m-d')); if (!$is_full_day_event) { $user_time_end = $enddatetime->format('H:i'); } else { $user_time_end = "00:00"; } } $time_arr = getaddEventPopupTime($user_time_start, $user_time_end, $format); if ($typeid == 'task') { $typename = 'todo'; } else { $typename = getActTypeForCalendar($typeid, false); } if ($add_into_vtiger) { echo "<span style='font-size:12px'>" . $app_strings['LBL_ACTION'] . ": "; echo "<a href=\"javascript:insertIntoCRM('" . $userid . "','" . $eventid . "','" . $typename . "','" . $event->id->text . "','" . $user_date_start . "','" . $user_date_end . "','" . $time_arr['starthour'] . "','" . $time_arr['startmin'] . "','" . $time_arr['startfmt'] . "','" . $time_arr['endhour'] . "','" . $time_arr['endmin'] . "','" . $time_arr['endfmt'] . "')\">" . $mod_strings["LBL_INSERT_INTO_CRM"] . "</a>"; echo "</span>"; } echo "<div style='float:right'><img src='modules/Calendar4You/images/sync_icon_small2.png'></div>"; if ($add_into_vtiger) { echo "<hr>"; } echo "<div id='google_info_" . $eventid . "_title' style='font-size:12px'>" . $event->title->text . "</div>"; echo $app_strings["Description"] . ": <span id='google_info_" . $eventid . "_desc'>" . $event->content->text . "</span><br />"; echo $app_strings[$is_full_day_event ? "LBL_START_DATE" : "LBL_START_DATE_TIME"] . ": " . $user_date_start; if (!$is_full_day_event) { echo " " . $time_arr['starthour'] . ":" . $time_arr['startmin'] . $time_arr['startfmt'];
$Event_Colors = $Calendar4You->getEventColor($mode, $id); ?> <table border=0 cellspacing=0 cellpadding=5 width="600px" class="layerHeadingULine"> <tr> <td class="layerPopupHeading" align="left"> <?php echo """; if ($mode == "user") { $event_name = getITSUserFullName($id); } else { if ($id == "task") { $event_name = $c_mod_strings["LBL_TASK"]; } elseif ($id == "invite") { $event_name = $mod_strings["LBL_INVITE"]; } else { $event_name = getActTypeForCalendar($id); } } echo $event_name; echo "" "; echo $app_strings["LBL_SETTINGS"]; ?> </td> <td align=right> <a href="javascript:fninvsh('event_setting');"><img src="<?php echo vtiger_imageurl('close.gif', $theme); ?> " border="0" align="absmiddle" /></a> </td> </tr> </table>