//Added to handle approving or denying status-public by the admin in CustomView $statusdetails = $oCustomView->isPermittedChangeStatus($viewnamedesc['status']); $smarty->assign("CUSTOMVIEW_PERMISSION", $statusdetails); //To check if a user is able to edit/delete a customview $edit_permit = $oCustomView->isPermittedCustomView($viewid, 'EditView', $currentModule); $delete_permit = $oCustomView->isPermittedCustomView($viewid, 'Delete', $currentModule); $smarty->assign("CV_EDIT_PERMIT", $edit_permit); $smarty->assign("CV_DELETE_PERMIT", $delete_permit); //<<<<<customview>>>>> if ($viewid == 0) { echo "<table border='0' cellpadding='5' cellspacing='0' width='100%' height='450px'><tr><td align='center'>"; echo "<div style='border: 3px solid rgb(153, 153, 153); background-color: rgb(255, 255, 255); width: 55%; position: relative; z-index: 10000000;'>\n\n\t\t<table border='0' cellpadding='5' cellspacing='0' width='98%'>\n\t\t<tbody><tr>\n\t\t<td rowspan='2' width='11%'><img src='<?php echo vtiger_imageurl('close.gif', {$theme}) ?>'></td>\n\t\t<td style='border-bottom: 1px solid rgb(204, 204, 204);' nowrap='nowrap' width='70%'>\n\t\t\t<span class='genHeaderSmall'>{$app_strings['LBL_PERMISSION']}</span></td>\n\t\t</tr>\n\t\t<tr>\n\t\t<td class='small' align='right' nowrap='nowrap'>\n\t\t<a href='javascript:window.history.back();'>{$app_strings['LBL_GO_BACK']}</a><br>\n\t\t</td>\n\t\t</tr>\n\t\t</tbody></table>\n\t\t</div>"; echo "</td></tr></table>"; exit; } $changeOwner = getAssignedTo(16); $userList = $changeOwner[0]; $groupList = $changeOwner[1]; $smarty->assign("CHANGE_USER", $userList); $smarty->assign("CHANGE_GROUP", $groupList); $smarty->assign("CHANGE_OWNER", getUserslist()); $smarty->assign("CHANGE_GROUP_OWNER", getGroupslist()); $where = ""; $url_string = ''; // assigning http url string if (isset($_REQUEST['query']) && $_REQUEST['query'] == 'true') { list($where, $ustring) = split("#@@#", getWhereCondition($currentModule)); // we have a query $url_string .= "&query=true" . $ustring; $log->info("Here is the where clause for the list view: {$where}"); $smarty->assign("SEARCH_URL", $url_string);
********************************************************************************/ require_once 'include/utils/CommonUtils.php'; require_once 'include/CustomFieldUtil.php'; require_once 'modules/Calendar/Activity.php'; require_once 'modules/Calendar/Calendar.php'; require_once 'modules/Calendar/CalendarCommon.php'; require_once "modules/Emails/mail.php"; global $theme, $mod_strings, $app_strings, $current_user, $currentModule; $theme_path = "themes/" . $theme . "/"; $image_path = $theme_path . "images/"; $category = getParentTab(); $userDetails = getOtherUserName($current_user->id, true); $to_email = getUserEmailId('id', $current_user->id); $date_format = parse_calendardate($app_strings['NTC_DATE_FORMAT']); $taskassignedto = getAssignedTo(9); $eventassignedto = getAssignedTo(16); $mysel = vtlib_purify($_REQUEST['view']); $calendar_arr = array(); $calendar_arr['IMAGE_PATH'] = $image_path; if (empty($mysel)) { if ($current_user->activity_view == "This Year") { $mysel = 'year'; } else { if ($current_user->activity_view == "This Month") { $mysel = 'month'; } else { if ($current_user->activity_view == "This Week") { $mysel = 'week'; } else { $mysel = 'day'; }