public function process() { $this->context->setDefault('action', 'ShowEventDetails'); parent::process(); $view = new DetailView(); $view->setMain($this->context->getContent()); }
public function detailAction() { $Category = new CategoryModel((int) $this->_request->value); $Category->load(); $View = new DetailView(); $View->setModel($Category); $View->display(); }
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 'XTemplate/xtpl.php'; require_once 'data/Tracker.php'; require_once 'include/time.php'; require_once 'modules/ProjectTask/ProjectTask.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("ProjectTask detail view"); $theme_path = "themes/{$theme}/"; $image_path = "{$theme_path}images/"; $focus = new ProjectTask(); $detailView = new DetailView(); $offset = 0; if (isset($_REQUEST['offset']) or isset($_REQUEST['record'])) { $result = $detailView->processSugarBean("PROJECT_TASK", $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/ProjectTask/DetailView.html');
<?php require_once 'include/html2fpdf/html2fpdf.php'; require_once 'XTemplate/xtpl.php'; require_once 'data/Tracker.php'; require_once 'modules/ClientOrders/ClientOrders.php'; require_once 'include/DetailView/DetailView.php'; require_once 'include/database/MysqlManager.php'; global $mod_strings; global $app_strings; global $app_list_strings; global $current_language; $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"); } // this query is for Clientorder's components list $fields = array('name', 'type', 'number', 'paper'); $query = "SELECT name, type, number, paper FROM `clientorders_components` WHERE parent_id='" . $focus->id . "' AND deleted=0"; $result = $focus->db->query($query, true, "Error filling layout fields: "); while (($row = $focus->db->fetchByAssoc($result)) != null) {
* Description: TODO: To be written. * Portions created by SugarCRM are Copyright (C) SugarCRM, Inc. * All Rights Reserved. * 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)) {
use kartik\grid\GridView; //use yii\grid\GridView; use yii\bootstrap\ActiveForm; use yii\widgets\Pjax; /* @var $this yii\web\View */ /* @var $searchModel frontend\models\AboutUsSearch */ /* @var $dataProvider yii\data\ActiveDataProvider */ $this->title = 'About Us'; $this->params['breadcrumbs'][] = $this->title; ?> <div class="about-us-index"> <h1><?php echo Html::encode($this->title); ?> </h1> <?php // echo $this->render('_search', ['model' => $searchModel]); ?> <?php echo DetailView::widget(['model' => $model, 'attributes' => ['subsection']]); ?> <?php Pjax::end(); ?> </div>
} //// CANCEL HANDLING /////////////////////////////////////////////////////////////////////////////// require_once 'XTemplate/xtpl.php'; require_once 'data/Tracker.php'; require_once 'modules/Emails/Email.php'; require_once 'modules/Emails/Forms.php'; require_once 'include/DetailView/DetailView.php'; global $theme; global $app_strings; $theme_path = "themes/" . $theme . "/"; $image_path = $theme_path . "images/"; require_once $theme_path . 'layout_utils.php'; // SETTING DEFAULTS $focus = new Email(); $detailView = new DetailView(); $offset = 0; $email_type = 'archived'; /////////////////////////////////////////////////////////////////////////////// //// TO HANDLE 'NEXT FREE' if (!empty($_REQUEST['next_free']) && $_REQUEST['next_free'] == true) { $_REQUEST['record'] = $focus->getNextFree(); } //// END 'NEXT FREE' /////////////////////////////////////////////////////////////////////////////// if (isset($_REQUEST['offset']) or isset($_REQUEST['record'])) { $result = $detailView->processSugarBean("EMAIL", $focus, $offset); if ($result == null) { sugar_die($app_strings['ERROR_NO_RECORD']); } $focus = $result;
* Section 5 of the GNU Affero General Public License version 3. * * In accordance with Section 7(b) of the GNU Affero General Public License version 3, * these Appropriate Legal Notices must retain the display of the "Powered by * SugarCRM" logo and "Supercharged by SuiteCRM" logo. If the display of the logos is not * reasonably feasible for technical reasons, the Appropriate Legal Notices must * display the words "Powered by SugarCRM" and "Supercharged by SuiteCRM". ********************************************************************************/ require_once 'include/DetailView/DetailView.php'; global $theme; global $mod_strings; /* start standard DetailView layout process */ $GLOBALS['log']->info("Groups DetailView"); $focus = new Group(); $focus->retrieve($_REQUEST['record']); $detailView = new DetailView(); $offset = 0; if (isset($_REQUEST['offset']) or isset($_REQUEST['record'])) { $result = $detailView->processSugarBean("Group", $focus, $offset); if ($result == null) { sugar_die($app_strings['ERROR_NO_RECORD']); } $focus = $result; } else { header("Location: index.php?module=Groups&action=index"); } echo getClassicModuleTitle($mod_strings['LBL_MODULE_NAME'], array($mod_strings['LBL_MODULE_NAME'], $focus->user_name), true); /* end standard DetailView layout process */ $xtpl = new XTemplate('modules/Groups/DetailView.html'); $xtpl->assign('MOD', $mod_strings); $xtpl->assign('APP', $app_strings);
* Portions created by SugarCRM are Copyright (C) SugarCRM, Inc. * All Rights Reserved. * Contributor(s): ______________________________________.. ********************************************************************************/ require_once 'include/DetailView/DetailView.php'; require_once 'include/export_utils.php'; global $current_user; global $theme; global $app_strings; global $mod_strings; if (!is_admin($current_user) && !$GLOBALS['current_user']->isAdminForModule('Users') && $_REQUEST['record'] != $current_user->id) { sugar_die("Unauthorized access to administration."); } $is_current_admin = is_admin($current_user) || $GLOBALS['current_user']->isAdminForModule('Users'); $focus = new User(); $detailView = new DetailView(); $offset = 0; if (isset($_REQUEST['offset']) || !empty($_REQUEST['record'])) { $result = $detailView->processSugarBean("USER", $focus, $offset); if ($result == null) { sugar_die($app_strings['ERROR_NO_RECORD']); } $focus = $result; } else { header("Location: index.php?module=Users&action=index"); } if (isset($_REQUEST['isDuplicate']) && $_REQUEST['isDuplicate'] == 'true') { $focus->id = ""; } if (isset($_REQUEST['reset_preferences'])) { $focus->resetPreferences();
require_once 'include/html2fpdf/html2fpdf.php'; require_once 'XTemplate/xtpl.php'; require_once 'data/Tracker.php'; require_once 'modules/Quotes/Quote.php'; require_once 'include/DetailView/DetailView.php'; require_once 'include/database/MysqlManager.php'; global $mod_strings; global $app_strings; global $app_list_strings; global $current_language; global $pdf_font_size; //Initializing the main object $focus = new Quote(); // 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("QUOTE", $focus, $offset); if ($result == null) { sugar_die($app_strings['ERROR_NO_RECORD']); } $focus = $result; } else { header("Location: index.php?module=Quotes&action=index"); } require_once 'modules/Currencies/Currency.php'; $currency = new Currency(); //HTML2FPDF contains the functions - headerPDF, footerPDF, createHeading, createTr $pdf = new HTML2FPDF(); //Shortcuts
* Contributor(s): ______________________________________. */ require_once 'XTemplate/xtpl.php'; 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/';
<?php require_once 'XTemplate\\xtpl.php'; require_once 'data/Tracker.php'; require_once 'modules/Tours/Tour.php'; require_once 'modules/Tours/Forms.php'; require_once 'include/DetailView/DetailView.php'; global $mod_strings; global $app_strings; global $app_list_strings; global $gridline; $focus = new Tour(); $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("TOURS", $focus, $offset); if ($result == null) { sugar_die($app_strings['ERROR_NO_RECORD']); } $focus = $result; } else { header("Location: index.php?module=Tours&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";
<?php 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";
require_once 'include/html2fpdf/html2fpdf.php'; require_once 'XTemplate/xtpl.php'; require_once 'data/Tracker.php'; require_once 'modules/EstimateCalc/EstimateCalc.php'; require_once 'include/DetailView/DetailView.php'; require_once 'include/database/MysqlManager.php'; require_once 'modules/ComponentEstimateCalc/ComponentEstimateCalc.php'; global $mod_strings; global $app_strings; global $app_list_strings; global $current_language; //Initializing the main object $focus = new ComponentEstimateCalc(); // 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("COMPONENTESTIMATECALC", $focus, $offset); if ($result == null) { sugar_die($app_strings['ERROR_NO_RECORD']); } $focus = $result; } else { header("Location: index.php?module=Accounts&action=index"); } //HTML2FPDF contains the functions - headerPDF, footerPDF, createHeading, createTr $pdf = new HTML2FPDF(); //Shortcuts $total = $focus->total_paper + $focus->total_prepress + $focus->total_press + $focus->total_operations . " " . $mod_strings["LBL_UNITS"]; $total_paper = $focus->total_paper . " " . $mod_strings["LBL_UNITS"];
* Contributor(s): ______________________________________. */ require_once 'XTemplate/xtpl.php'; require_once 'data/Tracker.php'; require_once 'include/time.php'; require_once 'modules/ComponentEstimateCalc/ComponentEstimateCalc.php'; require_once 'include/DetailView/DetailView.php'; global $app_strings; global $mod_strings; global $theme; global $current_user; $GLOBALS['log']->info('ComponentEstimateCalc detail view'); $focus = new ComponentEstimateCalc(); // 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("COMPONENTESTIMATECALC", $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/';
* Contributor(s): ______________________________________. */ require_once 'XTemplate/xtpl.php'; 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/';
* * In accordance with Section 7(b) of the GNU General Public License version 3, * these Appropriate Legal Notices must retain the display of the "Powered by * 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 */
* Contributor(s): ______________________________________. */ require_once 'XTemplate/xtpl.php'; 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/';
<?php require_once 'XTemplate/xtpl.php'; require_once 'data/Tracker.php'; require_once 'modules/GroupPrograms/GroupProgram.php'; 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 = ""; }
<?php 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";
<?php echo DetailView::widget(['model' => $model, 'attributes' => ['id', 'username']]); ?> <table class="table table-striped"> <tr> <th>Modules</th> <th>Controllers</th> <th>Actions</th> <th>Auth</th> </tr> <?php foreach ($routes as $row) { ?> <tr > <td><?php echo $row['module']; ?> </td > <td><?php echo $row['controller']; ?> </td > <td><?php echo $row['action']; ?> </td > <td><?php echo Html::checkbox('auth[]', $row['auth']); ?>
* Contributor(s): ______________________________________. */ require_once 'XTemplate/xtpl.php'; 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 'include/html2fpdf/html2fpdf.php'; require_once 'XTemplate/xtpl.php'; require_once 'data/Tracker.php'; 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); }
* "Powered by SugarCRM". ********************************************************************************/ /********************************************************************************* * Description: TODO: To be written. * 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") {
* Contributors: Goodwill Consulting http://www.goodwill.co.id ********************************************************************************/ require_once 'XTemplate/xtpl.php'; 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);
<?php 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;
* Contributor(s): ______________________________________. */ require_once 'XTemplate/xtpl.php'; 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/';
* Contributor(s): ______________________________________. ********************************************************************************/ /********************************************************************************* * 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)) {
*/ require_once 'XTemplate/xtpl.php'; require_once 'data/Tracker.php'; 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');