Files
luos/workflow/engine/methods/dynaforms/dynaforms_ToolbarAjax.php

27 lines
839 B
PHP
Raw Normal View History

2010-12-02 23:34:41 +00:00
<?php
/**
* evaluates the dynaform type and other parameters in order to
* render the correct toolbar in each case
*
2010-12-02 23:34:41 +00:00
* @author gustavo cruz gustavo-at-colosa.com
* @param POST
*/
G::LoadClass( 'toolBar' );
2010-12-02 23:34:41 +00:00
global $G_PUBLISH;
$script = '';
$G_PUBLISH = new Publisher();
$Parameters = array ('SYS_LANG' => SYS_LANG,'URL' => G::encrypt( $_POST['FILE'], URL_KEY ),'DYN_UID' => $_POST['DYN_UID'],'PRO_UID' => $_POST['PRO_UID'],'DYNAFORM_NAME' => $_POST['DYN_TITLE'],'FILE' => $_POST['FILE']);
2010-12-02 23:34:41 +00:00
//$Parameters = "";
if ($_POST['TOOLBAR'] == "grid") {
$G_PUBLISH->AddContent( 'xmlform', 'toolbar', 'dynaforms/fields_ToolbarGrid', 'display:none', $Parameters, '', '' );
} else {
$G_PUBLISH->AddContent( 'xmlform', 'toolbar', 'dynaforms/fields_Toolbar', 'display:none', $Parameters, '', '' );
}
G::RenderPage( 'publish', 'raw' );
2010-12-02 23:34:41 +00:00