Files
luos/workflow/engine/methods/dynaforms/dynaforms_ToolbarAjax.php
Ralph Asendeteufrer 17631d0082 CODE STYLE
files modified:
conditionalShowHide.php
conditionalShowHide_Ajax.php
datemask.php
dynaform_Fields.php
dynaforms_Ajax.php
dynaforms_AssignVariables.php
dynaforms_ChoseType.php
dynaforms_Delete.php
dynaforms_Edit.php
dynaforms_FlatEditor.php
dynaforms_List.php
dynaforms_NewPlugin.php
dynaforms_PagedTableAjax.php
dynaforms_Preview.php
dynaforms_Save.php
dynaforms_SaveProperties.php
dynaforms_Save_as.php
dynaforms_Saveas.php
dynaforms_ToolbarAjax.php
dynaforms_checkDependentFields.php
fieldsGetterAjax.php
fieldsHandler.php
fieldsHandlerAjax.php
fieldsHandlerViewer.php
fields_Ajax.php
fields_Delete.php
fields_Edit.php
fields_List.php
fields_Order.php
test.php
2012-10-18 11:53:05 -04:00

27 lines
839 B
PHP
Executable File

<?php
/**
* evaluates the dynaform type and other parameters in order to
* render the correct toolbar in each case
*
* @author gustavo cruz gustavo-at-colosa.com
* @param POST
*/
G::LoadClass( 'toolBar' );
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']);
//$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' );