diff --git a/gulliver/system/class.xmlform.php b/gulliver/system/class.xmlform.php index b8dc6db09..a2238745b 100755 --- a/gulliver/system/class.xmlform.php +++ b/gulliver/system/class.xmlform.php @@ -1354,12 +1354,13 @@ class XmlForm_Field_Suggest extends XmlForm_Field_SimpleText //by neyek $value = $formVariableValue; } $name = "'" . $this->name . "'"; - $str = 'NSFieldType() . ' onblur="idSet(' . $name . ');" '; + $str = 'NSDependentFields( true ) . ' '; $str .= '/>'; $str .= 'name . ']" '; $str .= 'name="form[' . $this->name . ']" '; + $str .= $this->NSFieldType() . ' '; $str .= 'value="' . $this->htmlentities( $formVariableKeyValue, ENT_COMPAT, 'utf-8' ) . '" '; $str .= 'type="hidden" />'; @@ -1493,7 +1494,7 @@ class XmlForm_Field_Suggest extends XmlForm_Field_SimpleText //by neyek return $str; } } else { - $html = 'NSFieldType() .' >'; + $html = 'NSFieldType() . ' >'; $html .= $this->htmlentities($formVariableValue, ENT_COMPAT, 'utf-8'); $html .= ''; return $html; @@ -1557,7 +1558,7 @@ class XmlForm_Field_Suggest extends XmlForm_Field_SimpleText //by neyek $value = $formVariableValue; } $name = "'" . $this->name . "'"; - $str = 'NSGridType() . ' onblur="idSet(' . $name . ');" '; + $str = 'NSDependentFields( true ) . ' '; $str .= $this->NSRequiredValue() . ' '; $str .= $this->NSGridLabel() . ' '; @@ -1565,6 +1566,7 @@ class XmlForm_Field_Suggest extends XmlForm_Field_SimpleText //by neyek $str .= 'name . ']" '; $str .= 'name="form' . $rowId . '[' . $this->name . ']" '; + $str .= $this->NSGridType() . ' '; $str .= 'value="' . $this->htmlentities( $formVariableKeyValue, ENT_COMPAT, 'utf-8' ) . '" '; $str .= 'type="hidden" />'; @@ -1681,7 +1683,7 @@ class XmlForm_Field_Suggest extends XmlForm_Field_SimpleText //by neyek return $str; } } else { - $str = 'name . ']" name="form' . $rowId . '[' . $this->name . ']" ' . $this->NSGridType() . ' >'; + $str = 'NSGridType() . ' >'; $str .= $this->htmlentities( $formVariableValue, ENT_COMPAT, 'utf-8' ); $str .= ''; return $str; @@ -2681,11 +2683,13 @@ class XmlForm_Field_YesNo extends XmlForm_Field //EDIT MODE $readOnlyText = ($this->readonly == 1 || $this->readonly == '1') ? 'disabled' : ''; $html .= 'name . ']" '; $html .= 'name="form[' . $this->name . ']" '; + $html .= $this->NSFieldType() . ' '; $html .= 'type="hidden" value="' . (($value === '0') ? '0' : '1') . '" />'; } } else { @@ -2735,12 +2740,14 @@ class XmlForm_Field_YesNo extends XmlForm_Field //EDIT MODE $readOnlyText = ($this->readonly == 1 || $this->readonly == '1') ? 'disabled' : ''; $html .= 'name . '][' . $r . '][' . $this->name . ']" '; $html .= 'name="form[' . $owner->name . '][' . $r . '][' . $this->name . ']" '; + $html .= $this->NSGridType() . ' '; $html .= 'type="hidden" value="' . (($v === '0') ? '0' : '1') . '" />'; } } else { @@ -3177,13 +3185,12 @@ class XmlForm_Field_Checkbox extends XmlForm_Field } elseif ($this->mode === 'view') { $checked = (isset( $value ) && ($value == $this->value)) ? 'checked' : ''; if ($this->labelOnRight) { - $html = ''; - $html = "NSFieldType() . " type='checkbox' $checked $readOnly disabled /> + $html = " " . $this->label . ''; } else { - $html = "NSFieldType() . " type='checkbox' $checked $readOnly disabled />"; + $html = ""; } - $html .= ""; + $html .= "NSFieldType() . " value='{$value}' />"; return $html; } } @@ -3734,7 +3741,7 @@ class XmlForm_Field_Listbox extends XmlForm_Field return $html; } elseif ($this->mode === 'view') { $valuesFound = array('__NULL__'); - $html = ''; foreach ($this->option as $optionName => $option) { if (in_array( $optionName . "", $value )) { $valuesFound[] = $optionName . ""; @@ -3755,15 +3762,15 @@ class XmlForm_Field_Listbox extends XmlForm_Field } $html .= ''; foreach ($this->option as $optionName => $option) { - $html .= "name . "]\" name=\"form[" . $this->name . "][]\" value=\"" . ((in_array( $optionName . "", $value )) ? $optionName : "__NULL__") . "\">"; + $html .= "name . "][" . $optionName . "]\" name=\"form[" . $this->name . "][]\" " . $this->NSFieldType() . " value=\"" . ((in_array( $optionName . "", $value )) ? $optionName : "__NULL__") . "\">"; } foreach ($this->sqlOption as $optionName => $option) { - $html .= "name . "]\" name=\"form[" . $this->name . "][]\" value=\"" . ((in_array( $optionName . "", $value )) ? $optionName : "__NULL__") . "\">"; + $html .= "name . "][" . $optionName . "]\" name=\"form[" . $this->name . "][]\" " . $this->NSFieldType() . " value=\"" . ((in_array( $optionName . "", $value )) ? $optionName : "__NULL__") . "\">"; } if (count($valuesFound) - 1 < count($value)) { $valuesNotFound = array_diff($value, $valuesFound); foreach ($valuesNotFound as $option) { - $html .= "name . "]\" name=\"form[" . $this->name . "][]\" value=\"" . $option . "\">"; + $html .= "name . "][" . $option . "]\" name=\"form[" . $this->name . "][]\" " . $this->NSFieldType() . " value=\"" . $option . "\">"; } } return $html; @@ -4678,7 +4685,7 @@ class XmlForm_Field_Date extends XmlForm_Field_SimpleText $html = '' . '' . ' ' . '' . '' . ' ' . '' . ''; } } else { - $html = "$value" . ''; + $html = "$value" . ''; } /** * * Commented because seems is not working well * diff --git a/workflow/engine/js/dynaformEditor/core/dynaformEditor.js b/workflow/engine/js/dynaformEditor/core/dynaformEditor.js index e83e882cf..3323e41ed 100644 --- a/workflow/engine/js/dynaformEditor/core/dynaformEditor.js +++ b/workflow/engine/js/dynaformEditor/core/dynaformEditor.js @@ -13,7 +13,7 @@ var lastTypeSelected = ''; var sessionPersits = function() { var rpc = new leimnud.module.rpc.xmlhttp({ url: '../services/sessionPersists', - args: 'dynaformEditorParams=' + dynaformEditorParams + (lastActionPerformed != '' ? '&DYN_UID=' + __DYN_UID__ : ''), + args: "dynaformEditorParams=" + encodeURIComponent(dynaformEditorParams) + ((lastActionPerformed != "")? "&DYN_UID=" + __DYN_UID__ : ""), async: false }); rpc.make(); diff --git a/workflow/engine/methods/services/sessionPersists.php b/workflow/engine/methods/services/sessionPersists.php index bee675dd5..421e861c8 100755 --- a/workflow/engine/methods/services/sessionPersists.php +++ b/workflow/engine/methods/services/sessionPersists.php @@ -2,7 +2,8 @@ $response = new stdclass(); $response->status = isset($_SESSION['USER_LOGGED']); if (isset($_REQUEST['dynaformEditorParams'])) { - $_SESSION['Current_Dynafom']['Parameters'] = unserialize(stripslashes($_REQUEST['dynaformEditorParams'])); + $_SESSION['Current_Dynafom']['Parameters'] = unserialize(stripslashes(utf8_decode(rawurldecode($_REQUEST["dynaformEditorParams"])))); + if (isset($_REQUEST['DYN_UID'])) { if (class_exists('Dynaform')) { require_once 'classes/model/Dynaform.php'; diff --git a/workflow/engine/templates/app/main.js b/workflow/engine/templates/app/main.js index af560f7a9..b34534df9 100644 --- a/workflow/engine/templates/app/main.js +++ b/workflow/engine/templates/app/main.js @@ -476,7 +476,7 @@ var openSummaryWindow = function(appUid, delIndex, action) title: _('ID_SUMMARY'), layout: 'fit', width: 750, - height: 450, + height: 500, resizable: true, closable: true, modal: true, diff --git a/workflow/engine/templates/cases/casesDocuments.js b/workflow/engine/templates/cases/casesDocuments.js index 72ea9ff29..604dd32d8 100755 --- a/workflow/engine/templates/cases/casesDocuments.js +++ b/workflow/engine/templates/cases/casesDocuments.js @@ -1383,6 +1383,12 @@ function handleRowClick(sm, rowIndex) {//alert(rowIndex); tb.items.get('tb_download').hide(); //tb.items.get('tb_download').disable(); } else if (selections.length == 1) { + if (selections[0].get('type') == "Directory") { + itemSelected = selections[0].get('id'); + chDir( selections[0].get('id')); + itemSelected = ""; + return true; + } //tb.items.get('tb_delete')[selections[0].get('is_deletable') ? 'enable': 'disable'](); tb.items.get('tb_delete')[permitodelete==1 ? 'enable': 'disable'](); tb.items.get('tb_rename')[selections[0].get('is_deletable') ? 'disable': 'disable'](); diff --git a/workflow/engine/xmlform/dynaforms/dynaforms_Properties.xml b/workflow/engine/xmlform/dynaforms/dynaforms_Properties.xml index d36a612d9..503644db5 100755 --- a/workflow/engine/xmlform/dynaforms/dynaforms_Properties.xml +++ b/workflow/engine/xmlform/dynaforms/dynaforms_Properties.xml @@ -1,50 +1,80 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + Properties + + + + + + + + + Dynaform + + + + Type + + + + + + + Description + + + + Others + + + + Width + + + + Mode + + + + + + + + Next Step Link + + + + + + + +Show print dynaform button + + + + Adjust the grid width to the width of the main form + + - - - - - - - + Apply + + + Revert + + + + +" + response,"alert"); return false; } - + }.extend(this); isTrue = oRPC.make(); @@ -163,7 +193,7 @@ function changeToolbar(type){ args : 'TOOLBAR=' + type + '&FILE=' + file + '&PRO_UID=' + proUid + '&DYN_UID=' + dynUid + '&DYN_TITLE=' + dynTitle }); oRPC.callback = function(oRPC) { - + getElementsByClassNameCrossBrowser("panel_headerBar___processmaker",document,"div")[0].innerHTML = oRPC.xmlhttp.responseText; document.getElementById("publisherContent[0]").style.display = "inline"; document.getElementById("publisherContent[0]").style.position = "absolute"; @@ -191,5 +221,6 @@ orderButtons(); oAux.checked=this.checked; } }*/ -]]> - +]]> + + \ No newline at end of file