/********************************************************************************* * The content of this file is subject to the Calendar4You Free license. * ("License"); You may not use this file except in compliance with the License * The Initial Developer of the Original Code is IT-Solutions4You s.r.o. * Portions created by IT-Solutions4You s.r.o. are Copyright(C) IT-Solutions4You s.r.o. * All Rights Reserved. ********************************************************************************/ require_once 'Smarty_setup.php'; require_once "include/utils/utils.php"; require_once 'modules/Calendar4You/Calendar4You.php'; global $mod_strings, $app_strings, $theme, $currentModule, $adb; $smarty = new vtigerCRM_Smarty(); $smarty->assign("MOD", $mod_strings); $smarty->assign("APP", $app_strings); $smarty->assign("THEME", $theme); $Calendar4You = new Calendar4You(); $permissions = $Calendar4You->GetProfilesPermissions(); $profilesActions = $Calendar4You->GetProfilesActions(); $actionEDIT = getActionid($profilesActions["EDIT"]); $actionDETAIL = getActionid($profilesActions["DETAIL"]); $actionDELETE = getActionid($profilesActions["DELETE"]); if (isset($_REQUEST["mode"]) && $_REQUEST["mode"] == "save") { foreach ($permissions as $profileid => $subArr) { foreach ($subArr as $actionid => $perm) { $sql = "DELETE FROM its4you_calendar4you_profilespermissions WHERE profileid = ? AND operation = ?"; $adb->pquery($sql, array($profileid, $actionid)); if (isset($_REQUEST["priv_chk_" . $profileid . "_" . $actionid]) && $_REQUEST["priv_chk_" . $profileid . "_" . $actionid] == "on") { $params = array($profileid, $actionid, "0"); } else { $params = array($profileid, $actionid, "1"); }
* All Rights Reserved. ********************************************************************************/ require_once 'Smarty_setup.php'; require_once 'data/Tracker.php'; require_once 'include/CustomFieldUtil.php'; require_once 'include/utils/utils.php'; require_once 'modules/Calendar/calendarLayout.php'; //include_once 'modules/Calendar/header.php'; require_once 'modules/CustomView/CustomView.php'; require_once "modules/Calendar4You/Calendar4You.php"; require_once "modules/Calendar4You/CalendarUtils.php"; global $mod_strings, $app_strings, $theme, $currentModule, $adb, $current_user, $singlepane_view, $current_language; $_REQUEST = vtlib_purify($_REQUEST); // clean up ALL values $record = vtlib_purify($_REQUEST['record']); $Calendar4You = new Calendar4You(); $Calendar4You->GetDefPermission($current_user->id); $detail_permissions = $Calendar4You->CheckPermissions("DETAIL", $record); if (!$detail_permissions) { NOPermissionDiv(); } if ($_SESSION['mail_send_error'] != "") { echo '<b><font color=red>' . $mod_strings["LBL_NOTIFICATION_ERROR"] . '</font></b><br>'; } //MSL if (function_exists('session_unregister')) { session_unregister('mail_send_error'); } else { unset($_SESSION['mail_send_error']); } //----------
$Users_Ids = array($user_view_type); } else { $Users_Ids = array($current_user->id); } } $Load_Event_Status = array(); $event_status = $_REQUEST["event_status"]; if ($event_status != "") { $Load_Event_Status = explode(",", $event_status); } $Load_Task_Status = array(); $task_status = $_REQUEST["task_status"]; if ($task_status != "") { $Load_Task_Status = explode(",", $task_status); } $Calendar4You = new Calendar4You(); $Calendar4You->GetDefPermission($current_user->id); if ($record == "" && $save != "") { $Calendar4You->SaveView($Type_Ids, $Users_Ids, $all_users, $Load_Event_Status, $Load_Task_Status); } $detailview_permissions = $Calendar4You->CheckPermissions("DETAIL"); require 'user_privileges/user_privileges_' . $current_user->id . '.php'; require 'user_privileges/sharing_privileges_' . $current_user->id . '.php'; $ParentUsers = array(); $u_query = "select vtiger_user2role.userid as id from vtiger_user2role inner join vtiger_users on vtiger_users.id=vtiger_user2role.userid inner join vtiger_role on vtiger_role.roleid=vtiger_user2role.roleid where vtiger_role.parentrole like ?"; $u_params = array($current_user_parent_role_seq . "::%"); $u_result = $adb->pquery($u_query, $u_params); while ($u_row = $adb->fetchByAssoc($u_result)) { $ParentUsers[] = $u_row["id"]; } $view = convertFullCalendarView($full_calendar_view);
require_once 'Smarty_setup.php'; require_once "data/Tracker.php"; require_once 'modules/Calendar/Activity.php'; require_once 'include/logging.php'; require_once 'include/ListView/ListView.php'; require_once 'include/utils/utils.php'; require_once 'modules/CustomView/CustomView.php'; require_once 'modules/Calendar/CalendarCommon.php'; require_once "modules/Calendar4You/Calendar4You.php"; require_once "modules/Calendar4You/CalendarUtils.php"; global $app_strings, $list_max_entries_per_page, $currentModule, $image_path, $theme, $adb, $current_user; $log = LoggerManager::getLogger('task_list'); if (isset($_REQUEST['current_user_only'])) { $current_user_only = vtlib_purify($_REQUEST['current_user_only']); } $Calendar4You = new Calendar4You(); $Calendar4You->GetDefPermission($current_user->id); $focus = new Activity(); // Initialize sort by fields $focus->initSortbyField('Calendar'); // END $smarty = new vtigerCRM_Smarty(); $smarty->assign('ADD_ONMOUSEOVER', "onMouseOver=\"fnvshobj(this,'addButtonDropDown');\""); $abelist = ''; if ($current_user->column_fields['is_admin'] == 'on') { $Res = $adb->pquery("select * from vtiger_activitytype", array()); } else { $role_id = $current_user->roleid; $subrole = getRoleSubordinates($role_id); if (count($subrole) > 0) { $roleids = $subrole;
* ("License"); You may not use this file except in compliance with the License * The Initial Developer of the Original Code is IT-Solutions4You s.r.o. * Portions created by IT-Solutions4You s.r.o. are Copyright(C) IT-Solutions4You s.r.o. * All Rights Reserved. ********************************************************************************/ include_once "modules/Calendar4You/CalendarUtils.php"; include_once "modules/Calendar4You/Calendar4You.php"; require_once "modules/Calendar/Calendar.php"; global $app_strings, $mod_strings, $current_language, $currentModule, $theme, $current_user, $default_charset; require_once 'Smarty_setup.php'; $tasklabel = getAllModulesWithDateFields(); $category = getParentTab($currentModule); $smarty = new vtigerCRM_Smarty(); $smarty->assign('APP', $app_strings); $smarty->assign('MOD', $mod_strings); $Calendar4You = new Calendar4You(); $Calendar4You->GetDefPermission($current_user->id); $Calendar4You->setgoogleaccessparams($current_user->id); $Ch_Views = $Calendar4You->GetView(); if (count($Ch_Views) > 0) { $load_ch = true; } else { $load_ch = false; } $Calendar_Settings = $Calendar4You->getSettings(); $smarty->assign('CALENDAR_SETTINGS', $Calendar_Settings); $c_mod_strings = return_specified_module_language($current_language, "Calendar"); $smarty->assign('CMOD', $c_mod_strings); $smarty->assign('MODULE', $currentModule); // TODO: Update Single Module Instance name here. $smarty->assign('SINGLE_MOD', 'SINGLE_' . $currentModule);
* The Initial Developer of the Original Code is SugarCRM, Inc. * Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.; * All Rights Reserved. ********************************************************************************/ require_once 'Smarty_setup.php'; require_once 'data/Tracker.php'; require_once 'include/CustomFieldUtil.php'; require_once 'include/utils/utils.php'; require_once 'include/FormValidationUtil.php'; require_once "modules/Emails/mail.php"; require_once "modules/Calendar4You/Calendar4You.php"; require_once "modules/Calendar4You/CalendarUtils.php"; global $app_strings; global $mod_strings, $current_user, $current_language; // Unimplemented until jscalendar language files are fixed $Calendar4You = new Calendar4You(); $Calendar4You->GetDefPermission($current_user->id); $edit_permissions = $Calendar4You->CheckPermissions("EDIT", $_REQUEST['record']); if (!$edit_permissions) { NOPermissionDiv(); } $c_mod_strings = return_specified_module_language($current_language, "Calendar"); $focus = CRMEntity::getInstance("Calendar"); $smarty = new vtigerCRM_Smarty(); //added to fix the issue4600 $searchurl = getBasic_Advance_SearchURL(); $smarty->assign("SEARCH", $searchurl); //4600 ends $activity_mode = vtlib_purify($_REQUEST['activity_mode']); if ($activity_mode == 'Task') { $tab_type = 'Calendar';
require_once 'modules/Calendar4You/CalendarUtils.php'; $t = Date("Ymd"); $userDetails = getSharingUserName($current_user->id); $shareduser_ids = getSharedUserId($current_user->id); $c_mod_strings = return_module_language($current_language, 'Calendar'); $users_mod_strings = return_module_language($current_language, 'Users'); $save_google_sync = "0"; $id = $_REQUEST["id"]; if ($id != "task") { $google_sync_id = true; } else { $google_sync_id = false; } $mode = $_REQUEST["mode"]; $user_view_type = $_REQUEST['user_view_type']; $Calendar4You = new Calendar4You(); $Calendar_Settings = $Calendar4You->getSettings(); $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"];
* Portions created by vtiger are Copyright (C) vtiger. * All Rights Reserved. ********************************************************************************/ global $current_user, $mod_strings, $app_strings, $theme; $theme_path = "themes/" . $theme . "/"; $image_path = $theme_path . "images/"; require_once 'include/database/PearDatabase.php'; require_once 'modules/Calendar/CalendarCommon.php'; require_once 'modules/Calendar4You/Calendar4You.php'; require_once 'modules/Calendar4You/GoogleSync4You.php'; $t = Date('Ymd'); $userDetails = getSharingUserName($current_user->id); $shareduser_ids = getSharedUserId($current_user->id); $c_mod_strings = return_module_language($current_language, 'Calendar'); $users_mod_strings = return_module_language($current_language, 'Users'); $Calendar4You = new Calendar4You(); $Calendar_Settings = $Calendar4You->getSettings(); ?> <table border=0 cellspacing=0 cellpadding=5 width=100% class="layerHeadingULine"> <tr> <td class="layerPopupHeading" align="left"><?php echo $c_mod_strings['LBL_CALSETTINGS']; ?> </td> <td align=right> <a href="javascript:fninvsh('calSettings');"><img src="<?php echo vtiger_imageurl('close.gif', $theme); ?> " border="0" align="absmiddle" /></a> </td> </tr>
<?php /********************************************************************************* * The content of this file is subject to the Calendar4You Free license. * ("License"); You may not use this file except in compliance with the License * The Initial Developer of the Original Code is IT-Solutions4You s.r.o. * Portions created by IT-Solutions4You s.r.o. are Copyright(C) IT-Solutions4You s.r.o. * All Rights Reserved. ********************************************************************************/ require_once "modules/Calendar4You/Calendar4You.php"; require_once "modules/Calendar4You/CalendarUtils.php"; global $currentModule, $current_user; $Calendar4You = new Calendar4You(); $Calendar4You->GetDefPermission($current_user->id); $delete_permissions = $Calendar4You->CheckPermissions("DELETE", $_REQUEST['record']); if (!$delete_permissions) { NOPermissionDiv(); } $currentModule = 'Calendar'; $focus = CRMEntity::getInstance($currentModule); require_once 'include/logging.php'; $log = LoggerManager::getLogger('task_delete'); $url = getBasic_Advance_SearchURL(); if (!isset($_REQUEST['record'])) { die($mod_strings['ERR_DELETE_RECORD']); } DeleteEntity('Calendar', $_REQUEST['return_module'], $focus, $_REQUEST['record'], $_REQUEST['return_id']); $parenttab = getParentTab(); header("Location: index.php?module=" . vtlib_purify($_REQUEST['return_module']) . "&action=" . vtlib_purify($_REQUEST['return_action']) . "&record=" . vtlib_purify($_REQUEST['return_id']) . "&parenttab=" . $parenttab . "&relmodule=" . vtlib_purify($_REQUEST['module']) . $url);