Пример #1
0
             $invitees_ids[] = $adb->query_result($invitee_res, $j, "inviteeid");
         }
         $invitees_ids_string = implode(';', $invitees_ids);
         sendInvitation($invitees_ids_string, $activity_type, $mail_data['subject'], $mail_data);
     }
 }
 if ($type == 'activity_postpone') {
 }
 if ($_REQUEST['viewOption'] == 'hourview' && ($mysel == 'day' || $mysel == 'week' || $mysel == 'month' || $mysel == 'year')) {
     $calendar_arr['calendar']->add_Activities($current_user);
 }
 if (isset($_REQUEST['viewOption']) && $_REQUEST['viewOption'] != null && $subtab == 'event') {
     if ($_REQUEST['viewOption'] == 'hourview') {
         $cal_log->debug("going to get calendar Event HourView");
         if ($calendar_arr['view'] == 'day') {
             echo getDayViewLayout($calendar_arr) . "####" . getEventInfo($calendar_arr, 'listcnt');
         } elseif ($calendar_arr['view'] == 'week') {
             echo getWeekViewLayout($calendar_arr) . "####" . getEventInfo($calendar_arr, 'listcnt');
         } elseif ($calendar_arr['view'] == 'month') {
             echo getMonthViewLayout($calendar_arr) . "####" . getEventInfo($calendar_arr, 'listcnt');
         } elseif ($calendar_arr['view'] == 'year') {
             echo getYearViewLayout($calendar_arr) . "####" . getEventInfo($calendar_arr, 'listcnt');
         } else {
             die("view:" . $view['view'] . " is not defined");
         }
     } elseif ($_REQUEST['viewOption'] == 'listview') {
         $cal_log->debug("going to get calendar Event ListView");
         //To get Events List
         $activity_arr = getEventList($calendar_arr, $start_date, $end_date);
         $activity_list = $activity_arr[0];
         $navigation_arr = $activity_arr[1];
Пример #2
0
/**
 * Function to construct respective calendar layout depends on the calendar view
 * @param  array     $view      -  collection of objects and strings
 */
function getHourView(&$view)
{
    global $cal_log, $theme;
    $hourview_layout = '';
    $cal_log->debug("Entering getHourView() method...");
    $hourview_layout .= '<br /><!-- HOUR VIEW LAYER STARTS HERE -->
		<div id="hrView" align=center>';
    if ($view['view'] == 'day') {
        $hourview_layout .= getDayViewLayout($view);
    } elseif ($view['view'] == 'week') {
        $hourview_layout .= getWeekViewLayout($view);
    } elseif ($view['view'] == 'month') {
        $hourview_layout .= getMonthViewLayout($view);
    } elseif ($view['view'] == 'year') {
        $hourview_layout .= getYearViewLayout($view);
    } else {
        die("view:" . $view['view'] . " is not defined");
    }
    $hourview_layout .= '<br></div>
		</div>';
    $hourview_layout .= '<br></td></tr></table></td></tr></table>
		</td></tr></table>
		</td></tr></table>
		</td></tr></table>
		</div>
		</td>
	        <td valign=top><img src="' . vtiger_imageurl('showPanelTopRight.gif', $theme) . '"></td>
		</tr>
		   </table>
	<br>';
    echo $hourview_layout;
    $cal_log->debug("Exiting getHourView() method...");
}