mirror of
https://github.com/VTECRM/vtenext.git
synced 2026-02-26 16:18:47 +00:00
43 lines
1.8 KiB
PHP
43 lines
1.8 KiB
PHP
<?php
|
|
/*************************************
|
|
* SPDX-FileCopyrightText: 2009-2020 Vtenext S.r.l. <info@vtenext.com>
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
************************************/
|
|
/* crmv@193096 */
|
|
|
|
global $mod_strings, $app_strings, $theme;
|
|
$smarty = new VteSmarty();
|
|
|
|
$processmakerid = intval($_REQUEST['id']);
|
|
|
|
$PMUtils = ProcessMakerUtils::getInstance();
|
|
$data = $PMUtils->retrieve($processmakerid);
|
|
|
|
include_once('vtlib/Vtecrm/Link.php');
|
|
$COMMONHDRLINKS = Vtecrm_Link::getAllByType(Vtecrm_Link::IGNORE_MODULE, Array('HEADERSCRIPT'));
|
|
$smarty->assign('HEADERSCRIPTS', $COMMONHDRLINKS['HEADERSCRIPT']);
|
|
$smarty->assign('HEAD_INCLUDE',"icons,jquery,jquery_plugins,jquery_ui,fancybox,prototype,jscalendar,sdk_headers");
|
|
|
|
$buttons = '
|
|
<div class="morphsuitlink" style="float:left; height:34px; font-size:14px; padding-top:7px; padding-left:10px">
|
|
'.$data['name'].'
|
|
</div>
|
|
<div style="float:right; padding-right:5px">
|
|
<input type="button" onclick="window.close()" class="crmbutton small edit" value="'.$app_strings['LBL_CLOSE'].'" title="'.$app_strings['LBL_CLOSE'].'">
|
|
<img id="logo" src="'.get_logo('header').'" alt="{$APP.LBL_BROWSER_TITLE}" title="'.$app_strings['LBL_BROWSER_TITLE'].'" border=0 style="padding:1px 0px 3px 0px; max-height:34px">
|
|
</div>';
|
|
$smarty->assign("BUTTON_LIST", $buttons);
|
|
|
|
$focus = CRMEntity::getInstance('Processes');
|
|
$focus->column_fields['processmaker'] = $processmakerid;
|
|
$graphInfo = $focus->getProcessGraphInfo();
|
|
|
|
$smarty->assign('MOD',$mod_strings);
|
|
$smarty->assign('APP',$app_strings);
|
|
$smarty->assign('THEME',$theme);
|
|
$smarty->assign('MODE','graph');
|
|
$smarty->assign('ENABLE_ROLLBACK',false);
|
|
$smarty->assign('ID',$processmakerid);
|
|
$smarty->assign('GRAPHINFO',addslashes(Zend_Json::encode($graphInfo)));
|
|
|
|
$smarty->display('modules/Processes/ReportDetailProcess.tpl'); |