Import XPDL Option Added

This commit is contained in:
girish
2010-12-08 10:18:53 +00:00
parent 3dd41e58ad
commit 5a710dbd46
5 changed files with 21 additions and 7 deletions

View File

@@ -36,9 +36,14 @@ try {
/* Includes */
G::LoadClass('processes');
G::LoadClass('xpdl');
$oProcess = new Processes();
$oXpdl = new Xpdl();
$proFields = $oProcess->serializeProcess( $sProUid );
$Fields = $oProcess->saveSerializedProcess ( $proFields );
$xpdlFields = $oXpdl->xmdlProcess($sProUid);
$Fields['FILENAMEXPDL'] = $xpdlFields['FILENAMEXPDL'];
$Fields['FILENAME_LINKXPDL'] = $xpdlFields['FILENAME_LINKXPDL'];
/* Render page */
$G_PUBLISH = new Publisher;

View File

@@ -81,7 +81,7 @@
$G_ID_MENU_SELECTED = 'PROCESSES';
$G_PUBLISH = new Publisher;
$G_PUBLISH->AddContent('xmlform', 'xmlform', 'processes/processes_ValidatingGroups', '', $Fields, 'processes_ImportExisting' );
G::RenderPage('publish');
G::RenderPage('publish', "blank");
die;
}
//end added code
@@ -127,5 +127,5 @@ catch ( Exception $e ){
$G_PUBLISH = new Publisher;
$aMessage['MESSAGE'] = $e->getMessage();
$G_PUBLISH->AddContent('xmlform', 'xmlform', 'login/showMessage', '', $aMessage );
G::RenderPage('publish');
G::RenderPage('publish', "blank");
}

View File

@@ -53,7 +53,7 @@
$G_ID_MENU_SELECTED = 'PROCESSES';
$G_PUBLISH = new Publisher;
$G_PUBLISH->AddContent('xmlform', 'xmlform', 'processes/processes_ImportExistingXpdl', '', $Fields, 'processes_ImportExistingXpdl' );
G::RenderPage('publish');
G::RenderPage('publish', "blank");
die;
}
// code added by gustavo cruz gustavo-at-colosa-dot-com
@@ -88,7 +88,7 @@
$G_ID_MENU_SELECTED = 'PROCESSES';
$G_PUBLISH = new Publisher;
$G_PUBLISH->AddContent('xmlform', 'xmlform', 'processes/processes_ValidatingGroups', '', $Fields, 'processes_ImportFile' );
G::RenderPage('publish');
G::RenderPage('publish', "blank");
die;
}
// end added code
@@ -101,5 +101,5 @@ catch ( Exception $e ){
$G_PUBLISH = new Publisher;
$aMessage['MESSAGE'] = $e->getMessage();
$G_PUBLISH->AddContent('xmlform', 'xmlform', 'login/showMessage', '', $aMessage );
G::RenderPage('publish');
G::RenderPage('publish', "blank");
}

View File

@@ -54,12 +54,12 @@ G::LoadClass('processes');
$G_ID_MENU_SELECTED = 'PROCESSES';
$G_PUBLISH = new Publisher;
$G_PUBLISH->AddContent('xmlform', 'xmlform', 'processes/processes_ImportXpdl', '', NULL, 'processes_ImportFileXpdl' );
G::RenderPage( "publish" );
G::RenderPage('publish', "blank");
}
catch ( Exception $e ){
$G_PUBLISH = new Publisher;
$aMessage['MESSAGE'] = $e->getMessage();
$G_PUBLISH->AddContent('xmlform', 'xmlform', 'login/showMessage', '', $aMessage );
G::RenderPage('publish');
G::RenderPage('publish', "blank");
}

View File

@@ -200,6 +200,11 @@ Ext.onReady(function(){
iconCls: 'silk-add',
icon: '/images/import.gif',
handler:importProcess
},{
text:'Import XPDL',
iconCls: 'silk-add',
icon: '/images/import.gif',
handler:importXPDLProcess
},/*{
text:'Export',
iconCls: 'silk-add',
@@ -446,6 +451,10 @@ importProcess = function(){
window.location = 'processes_Import';
}
importXPDLProcess = function(){
window.location = 'processes_ImportXpdl';
}
browseLibrary = function(){
window.location = 'processes_Library';
}