init
This commit is contained in:
44
modules/EcmWorkCards/DetailView.php
Normal file
44
modules/EcmWorkCards/DetailView.php
Normal file
@@ -0,0 +1,44 @@
|
||||
<?php
|
||||
|
||||
if (!defined('sugarEntry') || !sugarEntry)
|
||||
die('Not A Valid Entry Point');
|
||||
|
||||
global $sugar_version, $sugar_config, $current_user, $app_strings, $mod_strings, $current_user, $app_list_strings;
|
||||
|
||||
require_once ('include/time.php');
|
||||
require_once('include/json_config.php');
|
||||
|
||||
$json_config = new json_config();
|
||||
$focus = new EcmWorkCard();
|
||||
|
||||
if (isset($_REQUEST['record']))
|
||||
$focus->retrieve($_REQUEST['record']);
|
||||
require_once('include/MVC/View/SugarView.php');
|
||||
|
||||
if (file_exists('modules/EcmWorkCards/view/DetailView/view.detail.my.php')) {
|
||||
require_once('modules/EcmWorkCards/view/DetailView/view.detail.my.php');
|
||||
$detail = new ViewDetailMy();
|
||||
$detail->ss = new Sugar_Smarty();
|
||||
$detail->module = 'EcmWorkCards';
|
||||
} else {
|
||||
require_once('include/MVC/View/views/view.detail.php');
|
||||
$detail = new ViewDetail();
|
||||
$detail->ss = new Sugar_Smarty();
|
||||
$detail->module = 'EcmWorkCards';
|
||||
}
|
||||
|
||||
|
||||
|
||||
global $app_list_strings;
|
||||
|
||||
$eal = $focus->getActionList();
|
||||
$detail->ss->assign('TABLEECMACTIONS_LIST', $eal);
|
||||
|
||||
$detail->bean = $focus;
|
||||
$detail->preDisplay();
|
||||
unset($detail->defs['templateMeta']['form']['buttons'][2]);
|
||||
echo $detail->display();
|
||||
require_once ('include/SubPanel/SubPanelTiles.php');
|
||||
$subpanel = new SubPanelTiles ( $focus, 'EcmWorkCards' );
|
||||
echo $subpanel->display ();
|
||||
?>
|
||||
Reference in New Issue
Block a user