function display() { $this->populateTemplates(); $this->setDecodeHTML(); $this->displayPopupHtml(); global $mod_strings; global $app_strings; global $app_list_strings; global $gridline; $detailView = new DetailView(); $offset = 0; if (isset($_REQUEST['offset']) or isset($_REQUEST['record'])) { $result = $detailView->processSugarBean("CONTRACTLIQUIDATE", $this->bean, $offset); if ($result == null) { sugar_die($app_strings['ERROR_NO_RECORD']); } $this->bean = $result; } else { header("Location: index.php?module=ContractLiquidate&action=index"); } if (isset($_REQUEST['isDuplicate']) && $_REQUEST['isDuplicate'] == 'true') { $this->bean->id = ""; } global $theme; $theme_path = "themes/" . $theme . "/"; $image_path = $theme_path . "images/"; require_once $theme_path . 'layout_utils.php'; $GLOBALS['log']->info("ContractLiquidate detail view"); $this->dv->ss->assign("MOD", $mod_strings); $this->dv->ss->assign("APP", $app_strings); $this->dv->ss->assign("THEME", $theme); $this->dv->ss->assign("GRIDLINE", $gridline ? $gridline : 0); $this->dv->ss->assign("IMAGE_PATH", $image_path); $this->dv->ss->assign("PRINT_URL", "index.php?" . $GLOBALS['request_string']); $this->dv->ss->assign("ID", $this->bean->id); $this->dv->ss->assign("ASSIGNED_USER_NAME", $this->bean->assigned_user_name); $this->dv->ss->assign("NAME", $this->bean->name); $this->dv->ss->assign("NUMBER", $this->bean->number); $this->dv->ss->assign("DATE", $this->bean->date); $this->dv->ss->assign("CONTRACT", $this->bean->contract); $this->dv->ss->assign("CONTRACT_ID", $this->bean->contract_id); $this->dv->ss->assign("TONGCONG_CONTRACT_KEHOACH", number_format($this->bean->tongcong_contract_kehoach, '1', '.', '')); $this->dv->ss->assign("TONGCONG_CONTRACT_THUCTE", number_format($this->bean->tongcong_contract_thucte, '1', '.', '')); $this->dv->ss->assign("TONGCONG_TANG_KEHOACH", number_format($this->bean->tongcong_tang_kehoach, '1', '.', '')); $this->dv->ss->assign("TONGCONG_TANG_THUCTE", number_format($this->bean->tongcong_tang_thucte, '1', '.', '')); $this->dv->ss->assign("TONGCONG_GIAM_KEHOACH", number_format($this->bean->tongcong_giam_kehoach, '1', '.', '')); $this->dv->ss->assign("TONGCONG_GIAM_THUCTE", number_format($this->bean->tongcong_giam_thucte, '1', '.', '')); $this->dv->ss->assign("TONGTIEN_KEHOACH", number_format($this->bean->tongtien_kehoach, '1', '.', '')); $this->dv->ss->assign("TONGTIEN_THUCTE", number_format($this->bean->tongtien_thucte, '1', '.', '')); $this->dv->ss->assign("TIENTHANHTOAN", number_format($this->bean->tienthanhtoan, '1', '.', '')); $this->dv->ss->assign("TIENCONLAI", number_format($this->bean->tienconlai, '1', '.', '')); $this->dv->ss->assign("TIENTRALAI", number_format($this->bean->tientralai, '1', '.', '')); $this->dv->ss->assign("GIATRIHOPDONG", $this->bean->giatrihopdong_detail()); $this->dv->ss->assign("PHATSINHTANG", $this->bean->phatsinhtang_detail()); $this->dv->ss->assign("PHATSINHGIAM", $this->bean->phatsinhgiam_detail()); $this->dv->ss->assign("BANGCHU", $this->bean->bangchu); parent::display(); }
require_once 'modules/GroupPrograms/Forms.php'; require_once 'include/DetailView/DetailView.php'; global $mod_strings; global $app_strings; global $app_list_strings; global $gridline; global $db; $focus = new GroupProgram(); $detailView = new DetailView(); $offset = 0; $ss = new Sugar_Smarty(); $json = getJSONobj(); // ONLY LOAD A RECORD IF A RECORD ID IS GIVEN; // A RECORD ID IS NOT GIVEN WHEN VIEWING IN LAYOUT EDITOR if (isset($_REQUEST['offset']) or isset($_REQUEST['record'])) { $result = $detailView->processSugarBean("GROUPPROGRAMS", $focus, $offset); if ($result == null) { sugar_die($app_strings['ERROR_NO_RECORD']); } $focus = $result; } else { header("Location: index.php?module=GroupPrograms&action=index"); } if (isset($_REQUEST['isDuplicate']) && $_REQUEST['isDuplicate'] == 'true') { $focus->id = ""; } echo "\n<p>\n"; echo get_module_title($mod_strings['LBL_MODULE_ID'], $mod_strings['LBL_MODULE_NAME'] . ": " . $focus->name, true); echo "\n</p>\n"; global $theme; $theme_path = "themes/" . $theme . "/";
* Contributor(s): ______________________________________.. ********************************************************************************/ require_once 'include/upload_file.php'; require_once 'include/DetailView/DetailView.php'; //Old DetailView compares wrong session variable against new view.list. Need to sync so that //the pagination on the DetailView page will show. if (isset($_SESSION['EMAILTEMPLATE_FROM_LIST_VIEW'])) { $_SESSION['EMAIL_TEMPLATE_FROM_LIST_VIEW'] = $_SESSION['EMAILTEMPLATE_FROM_LIST_VIEW']; } global $app_strings; global $mod_strings; $focus = BeanFactory::getBean('EmailTemplates'); $detailView = new DetailView(); $offset = 0; if (isset($_REQUEST['offset']) or isset($_REQUEST['record'])) { $result = $detailView->processSugarBean("EMAIL_TEMPLATE", $focus, $offset); if ($result == null) { sugar_die($app_strings['ERROR_NO_RECORD']); } $focus = $result; } else { header("Location: index.php?module=Accounts&action=index"); } if (isset($_REQUEST['isDuplicate']) && $_REQUEST['isDuplicate'] == 'true') { $focus->id = ""; } //needed when creating a new note with default values passed in if (isset($_REQUEST['contact_name']) && is_null($focus->contact_name)) { $focus->contact_name = $_REQUEST['contact_name']; } if (isset($_REQUEST['contact_id']) && is_null($focus->contact_id)) {
require_once 'data/Tracker.php'; require_once 'modules/Documents/Document.php'; require_once 'modules/DocumentRevisions/DocumentRevision.php'; require_once 'include/upload_file.php'; require_once 'include/ListView/ListView.php'; require_once 'include/DetailView/DetailView.php'; global $app_strings; global $mod_strings; global $app_list_strings; global $gridline; $mod_strings = return_module_language($current_language, 'Documents'); $focus = new Document(); $detailView = new DetailView(); $offset = 0; if (isset($_REQUEST['offset']) or isset($_REQUEST['record'])) { $result = $detailView->processSugarBean("DOCUMENT", $focus, $offset); if ($result == null) { sugar_die($app_strings['ERROR_NO_RECORD']); } $focus = $result; } else { header("Location: index.php?module=Accounts&action=index"); } $old_id = ""; if (isset($_REQUEST['isDuplicate']) && $_REQUEST['isDuplicate'] == 'true') { $focus->id = ""; } echo "\n<p>\n"; echo get_module_title($mod_strings['LBL_MODULE_NAME'], $mod_strings['LBL_MODULE_NAME'] . ": " . $focus->document_name, true); echo "\n</p>\n"; global $theme;
require_once 'data/Tracker.php'; require_once 'include/time.php'; require_once 'modules/ClientOrders/ClientOrders.php'; require_once 'include/DetailView/DetailView.php'; global $app_strings; global $mod_strings; global $theme; global $current_user; $GLOBALS['log']->info('ClientOrders detail view'); $focus = new ClientOrders(); // only load a record if a record id is given; // a record id is not given when viewing in layout editor $detailView = new DetailView(); $offset = 0; if (isset($_REQUEST['offset']) or isset($_REQUEST['record'])) { $result = $detailView->processSugarBean("CLIENTORDERS", $focus, $offset); if ($result == null) { sugar_die($app_strings['ERROR_NO_RECORD']); } $focus = $result; } else { header("Location: index.php?module=Accounts&action=index"); } echo "\n<p>\n"; echo get_module_title($mod_strings['LBL_MODULE_NAME'], $mod_strings['LBL_MODULE_NAME'] . ': ' . $focus->name, true); echo "\n</p>\n"; $theme_path = 'themes/' . $theme . '/'; $image_path = $theme_path . 'images/'; require_once $theme_path . 'layout_utils.php'; $xtpl = new XTemplate('modules/ClientOrders/DetailView.html'); ////Auto Clientorder
require_once 'XTemplate/xtpl.php'; require_once 'data/Tracker.php'; require_once 'modules/ServiceBookings/ServiceBookings.php'; require_once 'modules/ServiceBookings/Forms.php'; require_once 'include/DetailView/DetailView.php'; global $mod_strings; global $app_strings; global $app_list_strings; global $gridline; $focus = new ServiceBookings(); $detailView = new DetailView(); $offset = 0; // ONLY LOAD A RECORD IF A RECORD ID IS GIVEN; // A RECORD ID IS NOT GIVEN WHEN VIEWING IN LAYOUT EDITOR if (isset($_REQUEST['offset']) or isset($_REQUEST['record'])) { $result = $detailView->processSugarBean("SERVICEBOOKINGS", $focus, $offset); if ($result == null) { sugar_die($app_strings['ERROR_NO_RECORD']); } $focus = $result; } else { header("Location: index.php?module=ServiceBookings&action=index"); } if (isset($_REQUEST['isDuplicate']) && $_REQUEST['isDuplicate'] == 'true') { $focus->id = ""; } echo "\n<p>\n"; echo get_module_title($mod_strings['LBL_MODULE_ID'], $mod_strings['LBL_MODULE_NAME'] . ": " . $focus->name, true); echo "\n</p>\n"; global $theme; $theme_path = "themes/" . $theme . "/";
require_once 'data/Tracker.php'; require_once 'include/time.php'; require_once 'modules/ProductEstimate/ProductEstimate.php'; require_once 'include/DetailView/DetailView.php'; global $app_strings; global $mod_strings; global $theme; global $current_user; $GLOBALS['log']->info('ProductEstimate detail view'); $focus = new ProductEstimate(); // only load a record if a record id is given; // a record id is not given when viewing in layout editor $detailView = new DetailView(); $offset = 0; if (isset($_REQUEST['offset']) or isset($_REQUEST['record'])) { $result = $detailView->processSugarBean("PRODUCTESTIMATE", $focus, $offset); if ($result == null) { sugar_die($app_strings['ERROR_NO_RECORD']); } $focus = $result; } else { header("Location: index.php?module=Accounts&action=index"); } echo "\n<p>\n"; echo get_module_title($mod_strings['LBL_MODULE_NAME'], $mod_strings['LBL_MODULE_NAME'] . ': ' . $focus->name, true); echo "\n</p>\n"; $theme_path = 'themes/' . $theme . '/'; $image_path = $theme_path . 'images/'; require_once $theme_path . 'layout_utils.php'; $xtpl = new XTemplate('modules/ProductEstimate/DetailView.html'); ///
require_once 'include/time.php'; require_once 'modules/ProductComponents/ProductComponents.php'; require_once 'include/DetailView/DetailView.php'; global $app_strings; global $app_list_strings; global $mod_strings; global $current_user; global $theme; $GLOBALS['log']->info("ProductComponents detail view"); $theme_path = "themes/{$theme}/"; $image_path = "{$theme_path}images/"; $focus = new ProductComponents(); $detailView = new DetailView(); $offset = 0; if (isset($_REQUEST['offset']) or isset($_REQUEST['record'])) { $result = $detailView->processSugarBean("PRODUCTCOMPONENTS", $focus, $offset); if ($result == null) { sugar_die($app_strings['ERROR_NO_RECORD']); } $focus = $result; } else { header("Location: index.php?module=Accounts&action=index"); } echo "\n<p>\n"; echo get_module_title($mod_strings['LBL_MODULE_NAME'], $mod_strings['LBL_MODULE_NAME'] . ": " . $focus->name, true); echo "\n</p>\n"; require_once "{$theme_path}layout_utils.php"; $xtpl = new XTemplate('modules/ProductComponents/DetailView.html'); if (isset($_REQUEST['return_module'])) { $xtpl->assign('return_module', $_REQUEST['return_module']); }
require_once 'modules/Products/Products.php'; require_once 'modules/ClientRequest/ClientRequest.php'; require_once 'include/DetailView/DetailView.php'; global $app_strings; global $app_list_strings; global $mod_strings; global $current_user; global $theme; $GLOBALS['log']->info("EstimateComponents detail view"); $theme_path = "themes/{$theme}/"; $image_path = "{$theme_path}images/"; $focus = new EstimateComponents(); $detailView = new DetailView(); $offset = 0; if (isset($_REQUEST['offset']) or isset($_REQUEST['record'])) { $result = $detailView->processSugarBean("ESTIMATECOMPONENTS", $focus, $offset); if ($result == null) { sugar_die($app_strings['ERROR_NO_RECORD']); } $focus = $result; } else { header("Location: index.php?module=Accounts&action=index"); } echo "\n<p>\n"; if ($focus->parent_bean == 'ClientRequest') { $mod_strings['LBL_MODULE_NAME'] = $mod_strings['LBL_CLIENTREQUEST_MODULE_NAME']; } if ($focus->parent_bean == 'Estimates') { $mod_strings['LBL_MODULE_NAME'] = $mod_strings['LBL_ESTIMATES_MODULE_NAME']; } echo get_module_title($mod_strings['LBL_MODULE_NAME'], $mod_strings['LBL_MODULE_NAME'] . ": " . $focus->name, true);
require_once 'data/Tracker.php'; require_once 'include/time.php'; require_once 'modules/Paperformat/Paperformat.php'; require_once 'include/DetailView/DetailView.php'; global $app_strings; global $mod_strings; global $theme; global $current_user; $GLOBALS['log']->info('Paperformat detail view'); $focus = new Paperformat(); // only load a record if a record id is given; // a record id is not given when viewing in layout editor $detailView = new DetailView(); $offset = 0; if (isset($_REQUEST['offset']) or isset($_REQUEST['record'])) { $result = $detailView->processSugarBean("PAPERFORMAT", $focus, $offset); if ($result == null) { sugar_die($app_strings['ERROR_NO_RECORD']); } $focus = $result; } else { header("Location: index.php?module=Accounts&action=index"); } echo "\n<p>\n"; echo get_module_title($mod_strings['LBL_MODULE_NAME'], $mod_strings['LBL_MODULE_NAME'] . ': ' . $focus->name, true); echo "\n</p>\n"; $theme_path = 'themes/' . $theme . '/'; $image_path = $theme_path . 'images/'; require_once $theme_path . 'layout_utils.php'; $xtpl = new XTemplate('modules/Paperformat/DetailView.html'); ///
require_once 'XTemplate/xtpl.php'; require_once 'data/Tracker.php'; require_once 'modules/GuideContracts/GuideContracts.php'; require_once 'modules/GuideContracts/Forms.php'; require_once 'include/DetailView/DetailView.php'; global $mod_strings; global $app_strings; global $app_list_strings; global $gridline; $focus = new GuideContracts(); $detailView = new DetailView(); $offset = 0; // ONLY LOAD A RECORD IF A RECORD ID IS GIVEN; // A RECORD ID IS NOT GIVEN WHEN VIEWING IN LAYOUT EDITOR if (isset($_REQUEST['offset']) or isset($_REQUEST['record'])) { $result = $detailView->processSugarBean("GuideContracts", $focus, $offset); if ($result == null) { sugar_die($app_strings['ERROR_NO_RECORD']); } $focus = $result; } else { header("Location: index.php?module=GuideContracts&action=index"); } if (isset($_REQUEST['isDuplicate']) && $_REQUEST['isDuplicate'] == 'true') { $focus->id = ""; } echo "\n<p>\n"; echo get_module_title($mod_strings['LBL_MODULE_ID'], $mod_strings['LBL_MODULE_NAME'] . ": " . $focus->name, true); echo "\n</p>\n"; global $theme; $theme_path = "themes/" . $theme . "/";
/********************************************************************************* * Description: TODO: To be written. * Portions created by SugarCRM are Copyright (C) SugarCRM, Inc. * All Rights Reserved. * Contributor(s): ______________________________________.. ********************************************************************************/ require_once 'XTemplate/xtpl.php'; require_once 'data/Tracker.php'; require_once 'modules/Meetings/Meeting.php'; require_once 'include/DetailView/DetailView.php'; global $app_strings; $focus = new Meeting(); $detailView = new DetailView(); $offset = 0; if (isset($_REQUEST['offset']) or isset($_REQUEST['record'])) { $result = $detailView->processSugarBean("MEETING", $focus, $offset); if ($result == null) { sugar_die($app_strings['ERROR_NO_RECORD']); } $focus = $result; } else { header("Location: index.php?module=Accounts&action=index"); } if (isset($_REQUEST['isDuplicate']) && $_REQUEST['isDuplicate'] == 'true') { $focus->id = ""; } //needed when creating a new meeting with default values passed in if (isset($_REQUEST['contact_name']) && is_null($focus->contact_name)) { $focus->contact_name = $_REQUEST['contact_name']; } if (isset($_REQUEST['contact_id']) && is_null($focus->contact_id)) {
* Portions created by SugarCRM are Copyright (C) SugarCRM, Inc. * All Rights Reserved. * Contributor(s): ______________________________________.. ********************************************************************************/ require_once 'XTemplate/xtpl.php'; require_once 'data/Tracker.php'; require_once 'modules/Machines/Machine.php'; require_once 'modules/Machines/Forms.php'; require_once 'include/DetailView/DetailView.php'; global $mod_strings; global $app_strings; $focus = new Machine(); $detailView = new DetailView(); $offset = 0; if (isset($_REQUEST['offset']) or isset($_REQUEST['record'])) { $result = $detailView->processSugarBean("MACHINE", $focus, $offset); if ($result == null) { sugar_die($app_strings['ERROR_NO_RECORD']); } $focus = $result; } if (isset($_REQUEST['isDuplicate']) && $_REQUEST['isDuplicate'] == 'true') { $focus->id = ""; } echo "\n<p>\n"; echo get_module_title($mod_strings['LBL_MODULE_NAME'], $mod_strings['LBL_MODULE_NAME'] . ": " . $focus->name, true); echo "\n</p>\n"; global $theme; $theme_path = "themes/" . $theme . "/"; $image_path = $theme_path . "images/"; require_once $theme_path . 'layout_utils.php';
require_once 'data/Tracker.php'; require_once 'include/time.php'; require_once 'modules/Paperwaste/Paperwaste.php'; require_once 'include/DetailView/DetailView.php'; global $app_strings; global $mod_strings; global $theme; global $current_user; $GLOBALS['log']->info('Paperwaste detail view'); $focus = new Paperwaste(); // only load a record if a record id is given; // a record id is not given when viewing in layout editor $detailView = new DetailView(); $offset = 0; if (isset($_REQUEST['offset']) or isset($_REQUEST['record'])) { $result = $detailView->processSugarBean("PAPERWASTE", $focus, $offset); if ($result == null) { sugar_die($app_strings['ERROR_NO_RECORD']); } $focus = $result; } else { header("Location: index.php?module=Accounts&action=index"); } echo "\n<p>\n"; echo get_module_title($mod_strings['LBL_MODULE_NAME'], $mod_strings['LBL_MODULE_NAME'] . ': ' . $focus->name, true); echo "\n</p>\n"; $theme_path = 'themes/' . $theme . '/'; $image_path = $theme_path . 'images/'; require_once $theme_path . 'layout_utils.php'; $xtpl = new XTemplate('modules/Paperwaste/DetailView.html'); ///
* All Rights Reserved. * Contributor(s): ______________________________________. */ require_once 'XTemplate/xtpl.php'; require_once 'data/Tracker.php'; require_once 'modules/Contacts/Contact.php'; require_once 'modules/Contacts/Forms.php'; require_once 'include/DetailView/DetailView.php'; global $mod_strings; global $app_strings; global $app_list_strings; $focus = new Contact(); $detailView = new DetailView(); $offset = 0; if (isset($_REQUEST['offset']) or isset($_REQUEST['record'])) { $result = $detailView->processSugarBean("CONTACT", $focus, $offset); if ($result == null) { sugar_die($app_strings['ERROR_NO_RECORD']); } $focus = $result; $focus->_create_proper_name_field(); } else { header("Location: index.php?module=Accounts&action=index"); } if (isset($_REQUEST['isDuplicate']) && $_REQUEST['isDuplicate'] == 'true') { $focus->id = ""; } //// END SETUP /////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////// //// OUTPUT
* Description: TODO: To be written. * Portions created by SugarCRM are Copyright (C) SugarCRM, Inc. * All Rights Reserved. * Contributor(s): ______________________________________.. ********************************************************************************/ require_once 'modules/Holidays/Forms.php'; require_once 'include/DetailView/DetailView.php'; global $mod_strings; global $app_strings; global $app_list_strings; global $current_user; $focus = BeanFactory::getBean('Holidays'); $detailView = new DetailView(); $offset = 0; if (isset($_REQUEST['offset']) or isset($_REQUEST['record'])) { $result = $detailView->processSugarBean("HOLIDAY", $focus, $offset); if ($result == null) { sugar_die($app_strings['ERROR_NO_RECORD']); } $focus = $result; } else { header("Location: index.php?module=Accounts&action=index"); } echo getClassicModuleTitle($mod_strings['LBL_MODULE_NAME'], array($mod_strings['LBL_MODULE_NAME']), true); $GLOBALS['log']->info("Holiday detail view"); $xtpl = new XTemplate('modules/Holidays/DetailView.html'); $xtpl->assign("MOD", $mod_strings); $xtpl->assign("APP", $app_strings); $xtpl->assign("GRIDLINE", $gridline); $xtpl->assign("PRINT_URL", "index.php?" . $GLOBALS['request_string']); $xtpl->assign("ID", $focus->id);
require_once 'data/Tracker.php'; require_once 'include/time.php'; require_once 'modules/Presspricelist/Presspricelist.php'; require_once 'include/DetailView/DetailView.php'; global $app_strings; global $mod_strings; global $theme; global $current_user; $GLOBALS['log']->info('Presspricelist detail view'); $focus = new Presspricelist(); // only load a record if a record id is given; // a record id is not given when viewing in layout editor $detailView = new DetailView(); $offset = 0; if (isset($_REQUEST['offset']) or isset($_REQUEST['record'])) { $result = $detailView->processSugarBean("PRESSPRICELIST", $focus, $offset); if ($result == null) { sugar_die($app_strings['ERROR_NO_RECORD']); } $focus = $result; } else { header("Location: index.php?module=Accounts&action=index"); } echo "\n<p>\n"; echo get_module_title($mod_strings['LBL_MODULE_NAME'], $mod_strings['LBL_MODULE_NAME'] . ': ' . $focus->name, true); echo "\n</p>\n"; $theme_path = 'themes/' . $theme . '/'; $image_path = $theme_path . 'images/'; require_once $theme_path . 'layout_utils.php'; $xtpl = new XTemplate('modules/Presspricelist/DetailView.html'); ///
* All Rights Reserved. * Contributor(s): ______________________________________.. ********************************************************************************/ require_once 'XTemplate/xtpl.php'; require_once 'data/Tracker.php'; require_once 'modules/Opportunities/Opportunity.php'; require_once 'modules/Opportunities/Forms.php'; require_once 'include/DetailView/DetailView.php'; global $mod_strings; global $app_strings; global $app_list_strings; $focus = new Opportunity(); $detailView = new DetailView(); $offset = 0; if (isset($_REQUEST['offset']) or isset($_REQUEST['record'])) { $result = $detailView->processSugarBean("OPPORTUNITY", $focus, $offset); if ($result == null) { sugar_die($app_strings['ERROR_NO_RECORD']); } $focus = $result; } else { header("Location: index.php?module=Accounts&action=index"); } if (isset($_REQUEST['isDuplicate']) && $_REQUEST['isDuplicate'] == 'true') { $focus->id = ""; } echo "\n<p>\n"; echo get_module_title($mod_strings['LBL_MODULE_NAME'], $mod_strings['LBL_MODULE_NAME'] . ": " . $focus->name, true); echo "\n</p>\n"; global $theme; $theme_path = "themes/" . $theme . "/";
require_once 'data/Tracker.php'; require_once 'include/time.php'; require_once 'modules/Printing/Printing.php'; require_once 'include/DetailView/DetailView.php'; global $app_strings; global $mod_strings; global $theme; global $current_user; $GLOBALS['log']->info('Printing detail view'); $focus = new Printing(); // only load a record if a record id is given; // a record id is not given when viewing in layout editor $detailView = new DetailView(); $offset = 0; if (isset($_REQUEST['offset']) or isset($_REQUEST['record'])) { $result = $detailView->processSugarBean("PROJECT", $focus, $offset); if ($result == null) { sugar_die($app_strings['ERROR_NO_RECORD']); } $focus = $result; } else { header("Location: index.php?module=Accounts&action=index"); } echo "\n<p>\n"; echo get_module_title($mod_strings['LBL_MODULE_NAME'], $mod_strings['LBL_MODULE_NAME'] . ': ' . $focus->name, true); echo "\n</p>\n"; $theme_path = 'themes/' . $theme . '/'; $image_path = $theme_path . 'images/'; require_once $theme_path . 'layout_utils.php'; $xtpl = new XTemplate('modules/Printing/DetailView.html'); ///
********************************************************************************/ require_once 'XTemplate/xtpl.php'; require_once 'data/Tracker.php'; require_once 'modules/Employees/Employee.php'; require_once 'include/utils.php'; require_once 'include/DetailView/DetailView.php'; global $current_user; global $theme; global $app_strings; global $mod_strings; global $app_list_strings; $focus = new Employee(); $detailView = new DetailView(); $offset = 0; if (isset($_REQUEST['offset']) or isset($_REQUEST['record'])) { $result = $detailView->processSugarBean("EMPLOYEE", $focus, $offset); if ($result == null) { sugar_die($app_strings['ERROR_NO_RECORD']); } $focus = $result; } else { header("Location: index.php?module=Accounts&action=index"); } if (isset($_REQUEST['isDuplicate']) && $_REQUEST['isDuplicate'] == 'true') { $focus->id = ""; } if (isset($_REQUEST['reset_preferences'])) { $current_user->resetPreferences($focus); } echo "\n<p>\n"; echo get_module_title($mod_strings['LBL_MODULE_NAME'], $mod_strings['LBL_MODULE_NAME'] . ": " . $focus->first_name . " " . $focus->last_name, true);
require_once 'data/Tracker.php'; require_once 'include/time.php'; require_once 'modules/Ratefilm/Ratefilm.php'; require_once 'include/DetailView/DetailView.php'; global $app_strings; global $mod_strings; global $theme; global $current_user; $GLOBALS['log']->info('Ratefilm detail view'); $focus = new Ratefilm(); // only load a record if a record id is given; // a record id is not given when viewing in layout editor $detailView = new DetailView(); $offset = 0; if (isset($_REQUEST['offset']) or isset($_REQUEST['record'])) { $result = $detailView->processSugarBean("RATEFILM", $focus, $offset); if ($result == null) { sugar_die($app_strings['ERROR_NO_RECORD']); } $focus = $result; } else { header("Location: index.php?module=Accounts&action=index"); } echo "\n<p>\n"; echo get_module_title($mod_strings['LBL_MODULE_NAME'], $mod_strings['LBL_MODULE_NAME'] . ': ' . $focus->name, true); echo "\n</p>\n"; $theme_path = 'themes/' . $theme . '/'; $image_path = $theme_path . 'images/'; require_once $theme_path . 'layout_utils.php'; $xtpl = new XTemplate('modules/Ratefilm/DetailView.html'); ///
* Contributor(s): ______________________________________.. ********************************************************************************/ require_once 'XTemplate/xtpl.php'; require_once 'data/Tracker.php'; require_once 'modules/Suppliers/Supplier.php'; require_once 'include/DetailView/DetailView.php'; global $timedate; global $mod_strings; global $app_strings; global $app_list_strings; global $gridline; $focus = new Supplier(); $detailView = new DetailView(); $offset = 0; if (isset($_REQUEST['offset']) or isset($_REQUEST['record'])) { $result = $detailView->processSugarBean("SUPPLIER", $focus, $offset); if ($result == null) { sugar_die($app_strings['ERROR_NO_RECORD']); } $focus = $result; } else { header("Location: index.php?module=Suppliers&action=index"); } if (isset($_REQUEST['isDuplicate']) && $_REQUEST['isDuplicate'] == 'true') { $focus->id = ""; } global $theme; $theme_path = "themes/" . $theme . "/"; $image_path = $theme_path . "images/"; require_once $theme_path . 'layout_utils.php'; echo "\n<p>\n";
* SugarCRM" logo. If the display of the logo is not reasonably feasible for * technical reasons, the Appropriate Legal Notices must display the words * "Powered by SugarCRM". ********************************************************************************/ require_once 'include/DetailView/DetailView.php'; global $mod_strings; global $app_strings; global $timedate; /* start standard DetailView layout process */ $GLOBALS['log']->info("Schedulers DetailView"); $focus = new Scheduler(); $focus->checkCurl(); $detailView = new DetailView(); $offset = 0; if (isset($_REQUEST['offset']) or isset($_REQUEST['record'])) { $result = $detailView->processSugarBean("SCHEDULER", $focus, $offset); if ($result == null) { sugar_die($app_strings['ERROR_NO_RECORD']); } $focus = $result; } else { header("Location: index.php?module=Schedulers&action=index"); } if (isset($_REQUEST['isDuplicate']) && $_REQUEST['isDuplicate'] == 'true') { $focus->id = ""; } echo get_module_title($mod_strings['LBL_MODULE_TITLE'], $mod_strings['LBL_MODULE_TITLE'] . ": " . $focus->name, true); /* end standard DetailView layout process */ $focus->parseInterval(); $focus->setIntervalHumanReadable(); $xtpl = new XTemplate('modules/Schedulers/DetailView.html');
require_once 'data/Tracker.php'; require_once 'include/time.php'; require_once 'modules/Operations/Operation.php'; require_once 'include/DetailView/DetailView.php'; global $app_strings; global $mod_strings; global $theme; global $current_user; $GLOBALS['log']->info('Operation detail view'); $focus = new Operation(); // only load a record if a record id is given; // a record id is not given when viewing in layout editor $detailView = new DetailView(); $offset = 0; if (isset($_REQUEST['offset']) or isset($_REQUEST['record'])) { $result = $detailView->processSugarBean("OPERATION", $focus, $offset); if ($result == null) { sugar_die($app_strings['ERROR_NO_RECORD']); } $focus = $result; } else { header("Location: index.php?module=Accounts&action=index"); } echo "\n<p>\n"; echo get_module_title($mod_strings['LBL_MODULE_NAME'], $mod_strings['LBL_MODULE_NAME'] . ': ' . $focus->name, true); echo "\n</p>\n"; $theme_path = 'themes/' . $theme . '/'; $image_path = $theme_path . 'images/'; require_once $theme_path . 'layout_utils.php'; $xtpl = new XTemplate('modules/Operations/DetailView.html'); ///
* Portions created by SugarCRM are Copyright (C) SugarCRM, Inc. * All Rights Reserved. * Contributor(s): ______________________________________.. ********************************************************************************/ require_once 'include/DetailView/DetailView.php'; require_once 'modules/Campaigns/Charts.php'; global $mod_strings; global $app_strings; global $app_list_strings; global $sugar_version, $sugar_config; $focus = new Campaign(); $detailView = new DetailView(); $offset = 0; $offset = 0; if (isset($_REQUEST['offset']) or isset($_REQUEST['record'])) { $result = $detailView->processSugarBean("CAMPAIGN", $focus, $offset); if ($result == null) { sugar_die($app_strings['ERROR_NO_RECORD']); } $focus = $result; } else { header("Location: index.php?module=Accounts&action=index"); } // if campaign type is set to newsletter, then include newsletter detail view.. // ..else default to legacy detail view // include ('modules/Campaigns/NewsLetterTrackDetailView.php'); if (isset($focus->campaign_type) && $focus->campaign_type == "NewsLetter") { echo getClassicModuleTitle($mod_strings['LBL_MODULE_NAME'], array($mod_strings['LBL_NEWSLETTER'], $focus->name), true); } else { echo getClassicModuleTitle($mod_strings['LBL_MODULE_NAME'], array($mod_strings['LBL_MODULE_NAME'], $focus->name), true); }
require_once 'data/Tracker.php'; require_once 'include/time.php'; require_once 'modules/Layout/Layout.php'; require_once 'include/DetailView/DetailView.php'; global $app_strings; global $mod_strings; global $theme; global $current_user; $GLOBALS['log']->info('Layout detail view'); $focus = new Layout(); // only load a record if a record id is given; // a record id is not given when viewing in layout editor $detailView = new DetailView(); $offset = 0; if (isset($_REQUEST['offset']) or isset($_REQUEST['record'])) { $result = $detailView->processSugarBean("LAYOUT", $focus, $offset); if ($result == null) { sugar_die($app_strings['ERROR_NO_RECORD']); } $focus = $result; } else { header("Location: index.php?module=Accounts&action=index"); } echo "\n<p>\n"; echo get_module_title($mod_strings['LBL_MODULE_NAME'], $mod_strings['LBL_MODULE_NAME'] . ': ' . $focus->name, true); echo "\n</p>\n"; $theme_path = 'themes/' . $theme . '/'; $image_path = $theme_path . 'images/'; require_once $theme_path . 'layout_utils.php'; $xtpl = new XTemplate('modules/Layout/DetailView.html'); ///
require_once 'modules/Worksheets/Worksheets.php'; require_once 'include/DetailView/DetailView.php'; global $mod_strings; global $app_strings; global $app_list_strings; global $gridline; $focus = new Worksheets(); $detailView = new DetailView(); $offset = 0; $ss = new Sugar_Smarty(); $json = getJSONobj(); // ONLY LOAD A RECORD IF A RECORD ID IS GIVEN; // A RECORD ID IS NOT GIVEN WHEN VIEWING IN LAYOUT EDITOR if (isset($_REQUEST['offset']) or isset($_REQUEST['record'])) { $result = $detailView->processSugarBean("WORKSHEETS", $focus, $offset); if ($result == null) { sugar_die($app_strings['ERROR_NO_RECORD']); } $focus = $result; } else { header("Location: index.php?module=Worksheets&action=index"); } if (isset($_REQUEST['isDuplicate']) && $_REQUEST['isDuplicate'] == 'true') { $focus->id = ""; } echo "\n<p>\n"; echo get_module_title($mod_strings['LBL_MODULE_ID'], $mod_strings['LBL_MODULE_NAME'] . ": " . $focus->name, true); echo "\n</p>\n"; global $theme; $theme_path = "themes/" . $theme . "/";
require_once 'modules/ClientRequest/ClientRequest.php'; require_once 'include/DetailView/DetailView.php'; require_once 'include/database/MysqlManager.php'; require_once 'modules/EstimateComponents/EstimateComponents.php'; global $mod_strings; global $app_strings; global $app_list_strings; global $current_language; //Initializing the main object - ClientRequest $focus = new ClientRequest(); // only load a record if a record id is given; // a record id is not given when viewing in layout editor $detailView = new DetailView(); $offset = 0; if (isset($_REQUEST['offset']) or isset($_REQUEST['record'])) { $result = $detailView->processSugarBean("CLIENTREQUEST", $focus, $offset); if ($result == null) { sugar_die($app_strings['ERROR_NO_RECORD']); } $focus = $result; } else { header("Location: index.php?module=Accounts&action=index"); } //Initializing the Products'object - used in the first two parts if (!is_null($focus->product_id) && !empty($focus->product_id)) { $product = new Products(); $product->retrieve($focus->product_id); } // this query is for Estimate's components list $fields = array('name', 'paper_type', 'paper', 'colors_a', 'colors_b'); $query = "SELECT name, paper_type, paper, colors_a, colors_b FROM `estimates_components` WHERE parent_id='" . $focus->id . "' AND deleted=0";
* Description: TODO: To be written. * Portions created by SugarCRM are Copyright (C) SugarCRM, Inc. * All Rights Reserved. * Contributor(s): ______________________________________.. ********************************************************************************/ require_once 'XTemplate/xtpl.php'; require_once 'data/Tracker.php'; require_once 'modules/Tasks/Task.php'; require_once 'include/time.php'; require_once 'include/DetailView/DetailView.php'; global $app_strings; $focus = new Task(); $detailView = new DetailView(); $offset = 0; if (isset($_REQUEST['offset']) or isset($_REQUEST['record'])) { $result = $detailView->processSugarBean("TASK", $focus, $offset); if ($result == null) { sugar_die($app_strings['ERROR_NO_RECORD']); } $focus = $result; } else { header("Location: index.php?module=Accounts&action=index"); } if (isset($_REQUEST['isDuplicate']) && $_REQUEST['isDuplicate'] == 'true') { $focus->id = ""; } //needed when creating a new task with default values passed in if (isset($_REQUEST['contact_name']) && is_null($focus->contact_name)) { $focus->contact_name = $_REQUEST['contact_name']; } if (isset($_REQUEST['contact_id']) && is_null($focus->contact_id)) {
require_once 'data/Tracker.php'; require_once 'modules/PurchaseOrders/PurchaseOrder.php'; require_once 'include/TimeDate.php'; require_once 'include/DetailView/DetailView.php'; $timedate = new TimeDate(); global $mod_strings; global $app_strings; global $app_list_strings; global $gridline; $focus = new PurchaseOrder(); // only load a record if a record id is given; // a record id is not given when viewing in layout editor $detailView = new DetailView(); $offset = 0; if (isset($_REQUEST['offset']) or isset($_REQUEST['record'])) { $result = $detailView->processSugarBean("PURCHASEORDER", $focus, $offset); if ($result == null) { sugar_die("Error retrieving record. You may not be authorized to view this record."); } $focus = $result; } else { header("Location: index.php?module=PurchaseOrders&action=index"); } if (isset($_REQUEST['isDuplicate']) && $_REQUEST['isDuplicate'] == 'true') { $focus->id = ""; } echo "\n<p>\n"; echo get_module_title($mod_strings['LBL_MODULE_NAME'], $mod_strings['LBL_MODULE_NAME'] . ": " . $focus->name, true); echo "\n</p>\n"; global $theme; $theme_path = "themes/" . $theme . "/";