$mod_seq_field = getModuleSequenceField($currentModule); if ($mod_seq_field != null) { $mod_seq_id = $focus->column_fields[$mod_seq_field['name']]; } else { $mod_seq_id = $focus->id; } $smarty->assign('MOD_SEQ_ID', $mod_seq_id); // END $smarty->assign("TODO_PERMISSION", CheckFieldPermission('parent_id', 'Calendar')); $smarty->assign("EVENT_PERMISSION", CheckFieldPermission('parent_id', 'Events')); $smarty->assign("CATEGORY", $category); $smarty->assign("UPDATEINFO", updateInfo($focus->id)); if (isset($focus->name)) { $smarty->assign("NAME", $focus->name); } $related_array = getRelatedLists("Accounts", $focus); require_once 'include/ListView/RelatedListViewSession.php'; if (!empty($_REQUEST['selected_header']) && !empty($_REQUEST['relation_id'])) { $relationId = vtlib_purify($_REQUEST['relation_id']); RelatedListViewSession::addRelatedModuleToSession($relationId, vtlib_purify($_REQUEST['selected_header'])); } $open_related_modules = RelatedListViewSession::getRelatedModulesFromSession(); $smarty->assign("SELECTEDHEADERS", $open_related_modules); $smarty->assign("RELATEDLISTS", $related_array); $smarty->assign("ID", $focus->id); $smarty->assign("MODULE", $currentmodule); $smarty->assign("SINGLE_MOD", $app_strings['Account']); $smarty->assign("MOD", $mod_strings); $smarty->assign("APP", $app_strings); $smarty->assign("THEME", $theme); $smarty->assign("IMAGE_PATH", $image_path);
$parent_email = getEmailParentsList('Leads', $focus->id, $focus); $smarty->assign("HIDDEN_PARENTS_LIST", $parent_email); // Module Sequence Numbering $mod_seq_field = getModuleSequenceField($currentModule); if ($mod_seq_field != null) { $mod_seq_id = $focus->column_fields[$mod_seq_field['name']]; } else { $mod_seq_id = $focus->id; } $smarty->assign('MOD_SEQ_ID', $mod_seq_id); // END $smarty->assign("ID", $focus->id); $smarty->assign("NAME", $focus->lastname . ' ' . $focus->firstname); $smarty->assign("EMAIL", $focus->column_fields['email']); $smarty->assign("SECONDARY_EMAIL", $focus->column_fields['secondaryemail']); $related_array = getRelatedLists($currentModule, $focus); $smarty->assign("RELATEDLISTS", $related_array); require_once 'include/ListView/RelatedListViewSession.php'; if (!empty($_REQUEST['selected_header']) && !empty($_REQUEST['relation_id'])) { $relationId = vtlib_purify($_REQUEST['relation_id']); RelatedListViewSession::addRelatedModuleToSession($relationId, vtlib_purify($_REQUEST['selected_header'])); } $open_related_modules = RelatedListViewSession::getRelatedModulesFromSession(); $smarty->assign("SELECTEDHEADERS", $open_related_modules); $smarty->assign("SINGLE_MOD", $app_strings['Lead']); $smarty->assign("MODULE", $currentmodule); $smarty->assign("UPDATEINFO", updateInfo($focus->id)); $smarty->assign("MOD", $mod_strings); $smarty->assign("APP", $app_strings); $smarty->assign("THEME", $theme); $smarty->assign("IMAGE_PATH", $image_path);
$image_path = $theme_path . "images/"; require_once $theme_path . 'layout_utils.php'; $smarty = new CRMSmarty(); if (isset($_REQUEST['isDuplicate']) && $_REQUEST['isDuplicate'] == 'true') { $focus->id = ""; } if (isset($_REQUEST['mode']) && $_REQUEST['mode'] != ' ') { $smarty->assign("OP_MODE", $_REQUEST['mode']); } if (!$_SESSION['rlvs'][$module]) { unset($_SESSION['rlvs']); } $category = getParentTab(); $smarty->assign("CATEGORY", $category); $smarty->assign("UPDATEINFO", updateInfo($focus->id)); if (isset($focus->name)) { $smarty->assign("NAME", $focus->name); } $related_array = getRelatedLists("Qunfatmps", $focus); $smarty->assign("RELATEDLISTS", $related_array); $smarty->assign("ID", $focus->id); $smarty->assign("MODULE", $currentmodule); $smarty->assign("SINGLE_MOD", 'Qunfatmp'); $smarty->assign("MOD", $mod_strings); $smarty->assign("APP", $app_strings); $smarty->assign("THEME", $theme); $smarty->assign("IMAGE_PATH", $image_path); $check_button = Button_Check($module); $smarty->assign("CHECK", $check_button); $smarty->display("Qunfatmps/RelatedLists.tpl"); }
$validationData = getDBValidationData($focus->tab_name, $tabid); $data2 = split_validationdataArray($validationData); $smarty->assign("VALIDATION_DATA_FIELDNAME", $data2['fieldname']); $smarty->assign("VALIDATION_DATA_FIELDDATATYPE", $data2['datatype']); $smarty->assign("VALIDATION_DATA_FIELDLABEL", $data2['fieldlabel']); $smarty->assign("MODULE", $currentModule); if (PerformancePrefs::getBoolean('DETAILVIEW_RECORD_NAVIGATION', true) && isset($_SESSION[$currentModule . '_listquery'])) { $recordNavigationInfo = ListViewSession::getListViewNavigation($focus->id); VT_detailViewNavigation($smarty, $recordNavigationInfo, $focus->id); } // Gather the custom link information to display include_once 'vtlib/Vtiger/Link.php'; $customlink_params = array('MODULE' => 'Calendar', 'RECORD' => $focus->id, 'ACTION' => vtlib_purify($_REQUEST['action'])); $smarty->assign('CUSTOM_LINKS', Vtiger_Link::getAllByType(getTabid("Calendar"), array('DETAILVIEWBASIC', 'DETAILVIEW', 'DETAILVIEWWIDGET'), $customlink_params)); // END $custom_fields_data = getCalendarCustomFields($tabid, 'detail_view', $focus->column_fields); $smarty->assign("CUSTOM_FIELDS_DATA", $custom_fields_data); $smarty->assign("IS_REL_LIST", isPresentRelatedLists($rel_tab_type)); if ($singlepane_view == 'true') { $related_array = getRelatedLists($tab_type, $focus); $smarty->assign("RELATEDLISTS", $related_array); require_once 'include/ListView/RelatedListViewSession.php'; if (!empty($_REQUEST['selected_header']) && !empty($_REQUEST['relation_id'])) { RelatedListViewSession::addRelatedModuleToSession(vtlib_purify($_REQUEST['relation_id']), vtlib_purify($_REQUEST['selected_header'])); } $open_related_modules = RelatedListViewSession::getRelatedModulesFromSession(); $smarty->assign("SELECTEDHEADERS", $open_related_modules); } $smarty->assign("SinglePane_View", $singlepane_view); $smarty->assign("MODE", "DetailView"); $smarty->display("modules/Calendar4You/EventDetailView.tpl");
$image_path = $theme_path . "images/"; require_once $theme_path . 'layout_utils.php'; $smarty = new CRMSmarty(); if (isset($_REQUEST['isDuplicate']) && $_REQUEST['isDuplicate'] == 'true') { $focus->id = ""; } if (isset($_REQUEST['mode']) && $_REQUEST['mode'] != ' ') { $smarty->assign("OP_MODE", $_REQUEST['mode']); } if (isset($_SESSION['rlvs']) && !$_SESSION['rlvs'][$module]) { unset($_SESSION['rlvs']); } $category = getParentTab(); $smarty->assign("CATEGORY", $category); $smarty->assign("UPDATEINFO", updateInfo($focus->id)); if (isset($focus->name)) { $smarty->assign("NAME", $focus->name); } $related_array = getRelatedLists("Notes", $focus); $smarty->assign("RELATEDLISTS", $related_array); $smarty->assign("ID", $focus->id); $smarty->assign("MODULE", $currentmodule); $smarty->assign("SINGLE_MOD", 'Note'); $smarty->assign("MOD", $mod_strings); $smarty->assign("APP", $app_strings); $smarty->assign("THEME", $theme); $smarty->assign("IMAGE_PATH", $image_path); $check_button = Button_Check($module); $smarty->assign("CHECK", $check_button); $smarty->display("RelatedLists.tpl"); }
$image_path = $theme_path . "images/"; require_once $theme_path . 'layout_utils.php'; $smarty = new CRMSmarty(); if (isset($_REQUEST['isDuplicate']) && $_REQUEST['isDuplicate'] == 'true') { $focus->id = ""; } if (isset($_REQUEST['mode']) && $_REQUEST['mode'] != ' ') { $smarty->assign("OP_MODE", $_REQUEST['mode']); } if (!$_SESSION['rlvs'][$module]) { unset($_SESSION['rlvs']); } $category = getParentTab(); $smarty->assign("CATEGORY", $category); $smarty->assign("UPDATEINFO", updateInfo($focus->id)); if (isset($focus->name)) { $smarty->assign("NAME", $focus->name); } $related_array = getRelatedLists("Maillists", $focus); $smarty->assign("RELATEDLISTS", $related_array); $smarty->assign("ID", $focus->id); $smarty->assign("MODULE", $currentmodule); $smarty->assign("SINGLE_MOD", 'Maillist'); $smarty->assign("MOD", $mod_strings); $smarty->assign("APP", $app_strings); $smarty->assign("THEME", $theme); $smarty->assign("IMAGE_PATH", $image_path); $check_button = Button_Check($module); $smarty->assign("CHECK", $check_button); $smarty->display("Maillists/RelatedLists.tpl"); }
$focus->id = $_REQUEST['record']; $focus->mode = 'edit'; $focus->retrieve_entity_info($_REQUEST['record'], $tab_type); $focus->name = $focus->column_fields['subject']; $sql = 'select vtiger_users.user_name,vtiger_invitees.* from vtiger_invitees left join vtiger_users on vtiger_invitees.inviteeid=vtiger_users.id where activityid=?'; $result = $adb->pquery($sql, array($focus->id)); $num_rows = $adb->num_rows($result); $invited_users = array(); for ($i = 0; $i < $num_rows; $i++) { $userid = $adb->query_result($result, $i, 'inviteeid'); $username = $adb->query_result($result, $i, 'user_name'); $invited_users[$userid] = $username; } $smarty->assign("INVITEDUSERS", $invited_users); $smarty->assign("UPDATEINFO", updateInfo($focus->id)); $related_array = getRelatedLists("Calendar", $focus); $cntlist = $related_array['Contacts']['entries']; $is_fname_permitted = getFieldVisibilityPermission("Contacts", $current_user->id, 'firstname'); $cnt_idlist = ''; $cnt_namelist = ''; if ($cntlist != '') { $i = 0; foreach ($cntlist as $key => $cntvalue) { if ($i != 0) { $cnt_idlist .= ';'; $cnt_namelist .= "\n"; } $cnt_idlist .= $key; $contName = eregi_replace("(<a[^>]*>)(.*)(</a>)", "\\2", $cntvalue[0]); if ($is_fname_permitted == '0') { $contName .= ' ' . eregi_replace("(<a[^>]*>)(.*)(</a>)", "\\2", $cntvalue[1]);
$image_path = $theme_path . "images/"; require_once $theme_path . 'layout_utils.php'; $smarty = new CRMSmarty(); if (isset($_REQUEST['isDuplicate']) && $_REQUEST['isDuplicate'] == 'true') { $focus->id = ""; } if (isset($_REQUEST['mode']) && $_REQUEST['mode'] != ' ') { $smarty->assign("OP_MODE", $_REQUEST['mode']); } if (!$_SESSION['rlvs'][$module]) { unset($_SESSION['rlvs']); } $category = getParentTab(); $smarty->assign("CATEGORY", $category); $smarty->assign("UPDATEINFO", updateInfo($focus->id)); if (isset($focus->name)) { $smarty->assign("NAME", $focus->name); } $related_array = getRelatedLists("Memdays", $focus); $smarty->assign("RELATEDLISTS", $related_array); $smarty->assign("ID", $focus->id); $smarty->assign("MODULE", $currentmodule); $smarty->assign("SINGLE_MOD", 'Memday'); $smarty->assign("MOD", $mod_strings); $smarty->assign("APP", $app_strings); $smarty->assign("THEME", $theme); $smarty->assign("IMAGE_PATH", $image_path); $check_button = Button_Check($module); $smarty->assign("CHECK", $check_button); $smarty->display("Memdays/RelatedLists.tpl"); }
$theme_path = "themes/" . $theme . "/"; $image_path = $theme_path . "images/"; $smarty = new CRMSmarty(); if (isset($_REQUEST['isDuplicate']) && $_REQUEST['isDuplicate'] == 'true') { $focus->id = ""; } if (isset($_REQUEST['mode']) && $_REQUEST['mode'] != ' ') { $smarty->assign("OP_MODE", $_REQUEST['mode']); } if (!$_SESSION['rlvs'][$module]) { unset($_SESSION['rlvs']); } $category = getParentTab(); $smarty->assign("CATEGORY", $category); $smarty->assign("UPDATEINFO", updateInfo($focus->id)); if (isset($focus->name)) { $smarty->assign("NAME", $focus->name); } $related_array = getRelatedLists("Contacts", $focus); $smarty->assign("RELATEDLISTS", $related_array); $smarty->assign("ID", $focus->id); $smarty->assign("MODULE", $currentmodule); $smarty->assign("SINGLE_MOD", 'Contact'); $smarty->assign("MOD", $mod_strings); $smarty->assign("APP", $app_strings); $smarty->assign("THEME", $theme); $smarty->assign("IMAGE_PATH", $image_path); $check_button = Button_Check($module); $smarty->assign("CHECK", $check_button); $smarty->display("Contacts/RelatedLists.tpl"); }