diff --git a/gulliver/js/tinymce/jscripts/tiny_mce/plugins/pmVariablePicker/VariablePicker.html b/gulliver/js/tinymce/jscripts/tiny_mce/plugins/pmVariablePicker/VariablePicker.html new file mode 100644 index 000000000..1210d28e6 --- /dev/null +++ b/gulliver/js/tinymce/jscripts/tiny_mce/plugins/pmVariablePicker/VariablePicker.html @@ -0,0 +1,66 @@ + + +
+ + + + + + + + \ No newline at end of file diff --git a/gulliver/js/tinymce/jscripts/tiny_mce/plugins/pmVariablePicker/editor_plugin_src.js b/gulliver/js/tinymce/jscripts/tiny_mce/plugins/pmVariablePicker/editor_plugin_src.js index 2046710d2..27126648a 100644 --- a/gulliver/js/tinymce/jscripts/tiny_mce/plugins/pmVariablePicker/editor_plugin_src.js +++ b/gulliver/js/tinymce/jscripts/tiny_mce/plugins/pmVariablePicker/editor_plugin_src.js @@ -44,10 +44,11 @@ function pmVariablePicker(field_name, url, type, win) { strUploaderURL = strUploaderURL + "&type=" + type + "&d=" + strUploadPath + "&subs=" + strSubstitutePath; } tinyMCE.activeEditor.windowManager.open({ // open the plugin popup - file : strUploaderURL, - title : 'Upload Variable', - width : 500, - height : 100, + //file : strUploaderURL, + file : strPluginPath + '/VariablePicker.html', + title : 'Upload Variable', + width : '600px', + height : '150px', resizable : "yes", inline : 1, // This parameter only has an effect if you use the inlinepopups plugin! close_previous : "no" diff --git a/gulliver/js/tinymce/jscripts/tiny_mce/plugins/pmVariablePicker/uploader.php b/gulliver/js/tinymce/jscripts/tiny_mce/plugins/pmVariablePicker/uploader.php index 38fe7e3c8..857caf9a6 100644 --- a/gulliver/js/tinymce/jscripts/tiny_mce/plugins/pmVariablePicker/uploader.php +++ b/gulliver/js/tinymce/jscripts/tiny_mce/plugins/pmVariablePicker/uploader.php @@ -21,13 +21,78 @@ // displays the upload form function displayUploadForm() -{ +{/* echo ''; + */ } // uploads the file to the destination path, and returns a link with link path substituted for destination path function uploadVariablePicker() diff --git a/workflow/engine/classes/class.xmlfield_InputPM.php b/workflow/engine/classes/class.xmlfield_InputPM.php index fd9ac6851..c9109f607 100755 --- a/workflow/engine/classes/class.xmlfield_InputPM.php +++ b/workflow/engine/classes/class.xmlfield_InputPM.php @@ -207,7 +207,7 @@ class XmlForm_Field_TextareaPM extends XmlForm_Field * @param eter string owner * @return string */ - public function renderGrid ($values = null, $owner) + public function renderGrid ($owner, $values = null) { $result = array (); $r = 1; @@ -320,7 +320,7 @@ class XmlForm_Field_hours extends XmlForm_Field_SimpleText * @param eter string owner * @return string */ - public function renderGrid ($values = array(), $owner) + public function renderGrid ($values = array(),$owner) { $result = array (); $r = 1; @@ -380,17 +380,14 @@ function getDynaformsVars ($sProcessUID, $bSystemVars = true, $bIncMulSelFields if ($bSystemVars) { $aAux = G::getSystemConstants(); foreach ($aAux as $sName => $sValue) { - $aFields[] = array ('sName' => $sName,'sType' => 'system','sLabel' => 'System variable' - ); + $aFields[] = array ('sName' => $sName,'sType' => 'system','sLabel' => 'System variable'); } //we're adding the ping variable to the system list $aFields[] = array ('sName' => 'PIN','sType' => 'system','sLabel' => 'System variable' ); } - $aInvalidTypes = array ('title','subtitle','link','file','button','reset','submit','javascript' - ); - $aMultipleSelectionFields = array ('listbox','checkgroup','grid' - ); + $aInvalidTypes = array ('title','subtitle','link','file','button','reset','submit','javascript'); + $aMultipleSelectionFields = array ('listbox','checkgroup','grid'); if ($bIncMulSelFields != 0) { $aInvalidTypes = array_merge( $aInvalidTypes, $aMultipleSelectionFields ); } diff --git a/workflow/engine/methods/controls/varsAjax.php b/workflow/engine/methods/controls/varsAjax.php index 27004572c..c423dd3df 100755 --- a/workflow/engine/methods/controls/varsAjax.php +++ b/workflow/engine/methods/controls/varsAjax.php @@ -21,9 +21,134 @@ * For more information, contact Colosa Inc, 2566 Le Jeune Rd., * Coral Gables, FL, 33134, USA, or email info@colosa.com. */ -G::LoadClass( 'xmlfield_InputPM' ); -$aFields = getDynaformsVars( $_POST['sProcess'], true, isset( $_POST['bIncMulSelFields'] ) ? $_POST['bIncMulSelFields'] : 0 ); +$html = '