* ********************************************************************************/ require_once 'include/CRMSmarty.php'; require_once 'modules/Notes/Notes.php'; require_once 'include/utils/utils.php'; //Redirecting Header for single page layout require_once 'user_privileges/default_module_view.php'; global $singlepane_view; if ($singlepane_view == 'true' && $_REQUEST['action'] == 'CallRelatedList') { header("Location:index.php?action=DetailView&module=" . $_REQUEST['module'] . "&record=" . $_REQUEST['record'] . "&parenttab=" . $_REQUEST['parenttab']); } else { $focus = new Notes(); $currentmodule = $_REQUEST['module']; $RECORD = $_REQUEST['record']; if (isset($_REQUEST['record']) && $_REQUEST['record'] != '') { $focus->retrieve_entity_info($_REQUEST['record'], "Notes"); $focus->id = $_REQUEST['record']; $focus->notes_title = $focus->column_fields['notes_title']; } global $mod_strings; global $app_strings; global $theme; $theme_path = "themes/" . $theme . "/"; $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']);