diff --git a/workflow/engine/methods/cases/summary.php b/workflow/engine/methods/cases/summary.php index 8e7858379..8b1cd3e79 100755 --- a/workflow/engine/methods/cases/summary.php +++ b/workflow/engine/methods/cases/summary.php @@ -50,7 +50,11 @@ try { $respView = $case->getAllObjectsFrom( $applicationFields['PRO_UID'], $_REQUEST['APP_UID'], $applicationFields['TAS_UID'], $_SESSION['USER_LOGGED'], 'VIEW' ); if ($respView['SUMMARY_FORM'] == 0) { - throw new Exception( G::LoadTranslation( 'ID_SUMMARY_FORM_NO_PERMISSIONS' ) ); + global $G_PUBLISH; + $G_PUBLISH = new Publisher(); + $G_PUBLISH->AddContent( 'xmlform', 'xmlform', 'login/showMessage', '', array ('MESSAGE' => G::LoadTranslation( 'ID_SUMMARY_FORM_NO_PERMISSIONS' )) ); + G::RenderPage( 'publish', 'blank' ); + die(); } if (file_exists( PATH_DYNAFORM . $applicationFields['PRO_UID'] . PATH_SEP . $_REQUEST['DYN_UID'] . '.xml' )) { @@ -81,3 +85,13 @@ try { die(); } +?> + +' + } + ] + }); + var panel = new Ext.FormPanel({ + labelAlign:'center', + autoScroll: true, + fileUpload: true, + width:'100%', + height: '50px', + bodyStyle:'padding:10px', + waitMsgTarget : true, + frame: true, + defaults: { + anchor: '100%', + allowBlank: false, + resizable: true, + msgTarget: 'side', + align:'center' + }, + items:[ + fieldsAS + ] + }); + tabs.push({ + title: Ext.util.Format.capitalize(_('ID_MORE_INFORMATION')), + layout: 'fit', + items: [panel] + }); + } else { + tabs.push({title: Ext.util.Format.capitalize(_('ID_MORE_INFORMATION')), bodyCfg: { + tag: 'iframe', + id: 'summaryIFrame', + src: '../cases/summary?APP_UID=' + appUid + '&DEL_INDEX=' + delIndex + '&DYN_UID=' + response.dynUid, + style: {border: '0px none', height: '300px', overflow: 'auto'}, + onload: '' + }}); + } } tabs.push({title: Ext.util.Format.capitalize(_('ID_UPLOADED_DOCUMENTS')), bodyCfg: { tag: 'iframe',