Merge code from github.com to bitbucket repo 2014-06-05

This commit is contained in:
Julio Cesar Laura
2014-06-05 16:30:19 -04:00
6 changed files with 115 additions and 70 deletions

View File

@@ -1354,12 +1354,13 @@ class XmlForm_Field_Suggest extends XmlForm_Field_SimpleText //by neyek
$value = $formVariableValue; $value = $formVariableValue;
} }
$name = "'" . $this->name . "'"; $name = "'" . $this->name . "'";
$str = '<input type="text" ' . $storeEntry . ' class="module_app_input___gray" size="' . $this->size . '" id="form[' . $this->name . '_label]" name="form[' . $this->name . '_label]" value="' . $this->htmlentities( $value, ENT_COMPAT, 'utf-8' ) . '" ' . $this->NSFieldType() . ' onblur="idSet(' . $name . ');" '; $str = '<input type="text" ' . $storeEntry . ' class="module_app_input___gray" size="' . $this->size . '" id="form[' . $this->name . '_label]" name="form[' . $this->name . '_label]" value="' . $this->htmlentities( $value, ENT_COMPAT, 'utf-8' ) . '" onblur="idSet(' . $name . ');" ';
$str .= $this->NSDependentFields( true ) . ' '; $str .= $this->NSDependentFields( true ) . ' ';
$str .= '/>'; $str .= '/>';
$str .= '<input '; $str .= '<input ';
$str .= 'id="form[' . $this->name . ']" '; $str .= 'id="form[' . $this->name . ']" ';
$str .= 'name="form[' . $this->name . ']" '; $str .= 'name="form[' . $this->name . ']" ';
$str .= $this->NSFieldType() . ' ';
$str .= 'value="' . $this->htmlentities( $formVariableKeyValue, ENT_COMPAT, 'utf-8' ) . '" '; $str .= 'value="' . $this->htmlentities( $formVariableKeyValue, ENT_COMPAT, 'utf-8' ) . '" ';
$str .= 'type="hidden" />'; $str .= 'type="hidden" />';
@@ -1493,7 +1494,7 @@ class XmlForm_Field_Suggest extends XmlForm_Field_SimpleText //by neyek
return $str; return $str;
} }
} else { } else {
$html = '<span id="form[' . $this->name . ']" '. $this->NSFieldType() .' >'; $html = '<span id="form[' . $this->name . ']" name="form[' . $this->name . ']" ' . $this->NSFieldType() . ' >';
$html .= $this->htmlentities($formVariableValue, ENT_COMPAT, 'utf-8'); $html .= $this->htmlentities($formVariableValue, ENT_COMPAT, 'utf-8');
$html .= '</span>'; $html .= '</span>';
return $html; return $html;
@@ -1557,7 +1558,7 @@ class XmlForm_Field_Suggest extends XmlForm_Field_SimpleText //by neyek
$value = $formVariableValue; $value = $formVariableValue;
} }
$name = "'" . $this->name . "'"; $name = "'" . $this->name . "'";
$str = '<input type="text" ' . $storeEntry . ' class="module_app_input___gray" size="' . $this->size . '" id="form' . $rowId . '[' . $this->name . '_label]" name="form' . $rowId . '[' . $this->name . '_label]" value="' . $this->htmlentities( $value, ENT_COMPAT, 'utf-8' ) . '" ' . $this->NSGridType() . ' onblur="idSet(' . $name . ');" '; $str = '<input type="text" ' . $storeEntry . ' class="module_app_input___gray" size="' . $this->size . '" id="form' . $rowId . '[' . $this->name . '_label]" name="form' . $rowId . '[' . $this->name . '_label]" value="' . $this->htmlentities( $value, ENT_COMPAT, 'utf-8' ) . '" onblur="idSet(' . $name . ');" ';
$str .= $this->NSDependentFields( true ) . ' '; $str .= $this->NSDependentFields( true ) . ' ';
$str .= $this->NSRequiredValue() . ' '; $str .= $this->NSRequiredValue() . ' ';
$str .= $this->NSGridLabel() . ' '; $str .= $this->NSGridLabel() . ' ';
@@ -1565,6 +1566,7 @@ class XmlForm_Field_Suggest extends XmlForm_Field_SimpleText //by neyek
$str .= '<input '; $str .= '<input ';
$str .= 'id="form' . $rowId . '[' . $this->name . ']" '; $str .= 'id="form' . $rowId . '[' . $this->name . ']" ';
$str .= 'name="form' . $rowId . '[' . $this->name . ']" '; $str .= 'name="form' . $rowId . '[' . $this->name . ']" ';
$str .= $this->NSGridType() . ' ';
$str .= 'value="' . $this->htmlentities( $formVariableKeyValue, ENT_COMPAT, 'utf-8' ) . '" '; $str .= 'value="' . $this->htmlentities( $formVariableKeyValue, ENT_COMPAT, 'utf-8' ) . '" ';
$str .= 'type="hidden" />'; $str .= 'type="hidden" />';
@@ -1681,7 +1683,7 @@ class XmlForm_Field_Suggest extends XmlForm_Field_SimpleText //by neyek
return $str; return $str;
} }
} else { } else {
$str = '<span "form' . $rowId . '[' . $this->name . ']" name="form' . $rowId . '[' . $this->name . ']" ' . $this->NSGridType() . ' >'; $str = '<span id="form' . $rowId . '[' . $this->name . ']" name="form' . $rowId . '[' . $this->name . ']" ' . $this->NSGridType() . ' >';
$str .= $this->htmlentities( $formVariableValue, ENT_COMPAT, 'utf-8' ); $str .= $this->htmlentities( $formVariableValue, ENT_COMPAT, 'utf-8' );
$str .= '</span>'; $str .= '</span>';
return $str; return $str;
@@ -2681,11 +2683,13 @@ class XmlForm_Field_YesNo extends XmlForm_Field
//EDIT MODE //EDIT MODE
$readOnlyText = ($this->readonly == 1 || $this->readonly == '1') ? 'disabled' : ''; $readOnlyText = ($this->readonly == 1 || $this->readonly == '1') ? 'disabled' : '';
$html .= '<select ' . $readOnlyText . ' class="module_app_input___gray" '; $html .= '<select ' . $readOnlyText . ' class="module_app_input___gray" ';
$html .= 'id="form[' . $this->name . ']" '; if ($readOnlyText == '') {
$html .= 'name="form[' . $this->name . ']" '; $html .= 'id="form[' . $this->name . ']" ';
$html .= 'name="form[' . $this->name . ']" ';
$html .= $this->NSFieldType() . ' ';
}
$html .= $this->NSDefaultValue() . ' '; $html .= $this->NSDefaultValue() . ' ';
$html .= $this->NSRequiredValue() . ' '; $html .= $this->NSRequiredValue() . ' ';
$html .= $this->NSFieldType() . ' ';
$html .= '>'; $html .= '>';
$html .= '<option value="0"' . (($value === '0') ? ' selected' : '') . '>' . G::LoadTranslation( 'ID_NO_VALUE' ) . '</option>'; $html .= '<option value="0"' . (($value === '0') ? ' selected' : '') . '>' . G::LoadTranslation( 'ID_NO_VALUE' ) . '</option>';
$html .= '<option value="1"' . (($value === '1') ? ' selected' : '') . '>' . G::LoadTranslation( 'ID_YES_VALUE' ) . '</option>'; $html .= '<option value="1"' . (($value === '1') ? ' selected' : '') . '>' . G::LoadTranslation( 'ID_YES_VALUE' ) . '</option>';
@@ -2694,6 +2698,7 @@ class XmlForm_Field_YesNo extends XmlForm_Field
$html .= '<input '; $html .= '<input ';
$html .= 'id="form[' . $this->name . ']" '; $html .= 'id="form[' . $this->name . ']" ';
$html .= 'name="form[' . $this->name . ']" '; $html .= 'name="form[' . $this->name . ']" ';
$html .= $this->NSFieldType() . ' ';
$html .= 'type="hidden" value="' . (($value === '0') ? '0' : '1') . '" />'; $html .= 'type="hidden" value="' . (($value === '0') ? '0' : '1') . '" />';
} }
} else { } else {
@@ -2735,12 +2740,14 @@ class XmlForm_Field_YesNo extends XmlForm_Field
//EDIT MODE //EDIT MODE
$readOnlyText = ($this->readonly == 1 || $this->readonly == '1') ? 'disabled' : ''; $readOnlyText = ($this->readonly == 1 || $this->readonly == '1') ? 'disabled' : '';
$html .= '<select ' . $readOnlyText . ' class="module_app_input___gray" '; $html .= '<select ' . $readOnlyText . ' class="module_app_input___gray" ';
$html .= 'id="form[' . $owner->name . '][' . $r . '][' . $this->name . ']" '; if ($readOnlyText == '') {
$html .= 'name="form[' . $owner->name . '][' . $r . '][' . $this->name . ']" '; $html .= 'id="form[' . $owner->name . '][' . $r . '][' . $this->name . ']" ';
$html .= 'name="form[' . $owner->name . '][' . $r . '][' . $this->name . ']" ';
$html .= $this->NSGridType() . ' ';
}
$html .= $this->NSDefaultValue() . ' '; $html .= $this->NSDefaultValue() . ' ';
$html .= $this->NSRequiredValue() . ' '; $html .= $this->NSRequiredValue() . ' ';
$html .= $this->NSGridLabel() . ' '; $html .= $this->NSGridLabel() . ' ';
$html .= $this->NSGridType() . ' ';
$html .= '>'; $html .= '>';
$html .= '<option value="0"' . (($v === '0') ? ' selected="selected"' : '') . '>' . G::LoadTranslation( 'ID_NO_VALUE' ) . '</option>'; $html .= '<option value="0"' . (($v === '0') ? ' selected="selected"' : '') . '>' . G::LoadTranslation( 'ID_NO_VALUE' ) . '</option>';
$html .= '<option value="1"' . (($v === '1') ? ' selected="selected"' : '') . '>' . G::LoadTranslation( 'ID_YES_VALUE' ) . '</option>'; $html .= '<option value="1"' . (($v === '1') ? ' selected="selected"' : '') . '>' . G::LoadTranslation( 'ID_YES_VALUE' ) . '</option>';
@@ -2749,6 +2756,7 @@ class XmlForm_Field_YesNo extends XmlForm_Field
$html .= '<input '; $html .= '<input ';
$html .= 'id="form[' . $owner->name . '][' . $r . '][' . $this->name . ']" '; $html .= 'id="form[' . $owner->name . '][' . $r . '][' . $this->name . ']" ';
$html .= 'name="form[' . $owner->name . '][' . $r . '][' . $this->name . ']" '; $html .= 'name="form[' . $owner->name . '][' . $r . '][' . $this->name . ']" ';
$html .= $this->NSGridType() . ' ';
$html .= 'type="hidden" value="' . (($v === '0') ? '0' : '1') . '" />'; $html .= 'type="hidden" value="' . (($v === '0') ? '0' : '1') . '" />';
} }
} else { } else {
@@ -3177,13 +3185,12 @@ class XmlForm_Field_Checkbox extends XmlForm_Field
} elseif ($this->mode === 'view') { } elseif ($this->mode === 'view') {
$checked = (isset( $value ) && ($value == $this->value)) ? 'checked' : ''; $checked = (isset( $value ) && ($value == $this->value)) ? 'checked' : '';
if ($this->labelOnRight) { if ($this->labelOnRight) {
$html = ''; $html = "<input value='{$this->value}' type='checkbox' $checked $readOnly disabled />
$html = "<input value='{$this->value}' " . $this->NSFieldType() . " type='checkbox' $checked $readOnly disabled />
<span class='FormCheck'>" . $this->label . '</span></input>'; <span class='FormCheck'>" . $this->label . '</span></input>';
} else { } else {
$html = "<input value='{$this->value}' " . $this->NSFieldType() . " type='checkbox' $checked $readOnly disabled />"; $html = "<input value='{$this->value}' type='checkbox' $checked $readOnly disabled />";
} }
$html .= "<input id='form[" . $this->name . "]' value='{$value}' name='form[" . $this->name . "]' type='hidden' />"; $html .= "<input id='form[" . $this->name . "]' name='form[" . $this->name . "]' type='hidden' " . $this->NSFieldType() . " value='{$value}' />";
return $html; return $html;
} }
} }
@@ -3734,7 +3741,7 @@ class XmlForm_Field_Listbox extends XmlForm_Field
return $html; return $html;
} elseif ($this->mode === 'view') { } elseif ($this->mode === 'view') {
$valuesFound = array('__NULL__'); $valuesFound = array('__NULL__');
$html = '<select multiple="multiple" id="form[' . $this->name . ']" ' . $this->NSFieldType() . ' name="form[' . $this->name . '][]" size="' . $this->size . '" ' . $this->NSFieldType() . ' style="background: none;" disabled="disabled">'; $html = '<select multiple="multiple" size="' . $this->size . '" style="background: none;" disabled="disabled">';
foreach ($this->option as $optionName => $option) { foreach ($this->option as $optionName => $option) {
if (in_array( $optionName . "", $value )) { if (in_array( $optionName . "", $value )) {
$valuesFound[] = $optionName . ""; $valuesFound[] = $optionName . "";
@@ -3755,15 +3762,15 @@ class XmlForm_Field_Listbox extends XmlForm_Field
} }
$html .= '</select>'; $html .= '</select>';
foreach ($this->option as $optionName => $option) { foreach ($this->option as $optionName => $option) {
$html .= "<input type=\"hidden\" id=\"form[" . $this->name . "]\" name=\"form[" . $this->name . "][]\" value=\"" . ((in_array( $optionName . "", $value )) ? $optionName : "__NULL__") . "\">"; $html .= "<input type=\"hidden\" id=\"form[" . $this->name . "][" . $optionName . "]\" name=\"form[" . $this->name . "][]\" " . $this->NSFieldType() . " value=\"" . ((in_array( $optionName . "", $value )) ? $optionName : "__NULL__") . "\">";
} }
foreach ($this->sqlOption as $optionName => $option) { foreach ($this->sqlOption as $optionName => $option) {
$html .= "<input type=\"hidden\" id=\"form[" . $this->name . "]\" name=\"form[" . $this->name . "][]\" value=\"" . ((in_array( $optionName . "", $value )) ? $optionName : "__NULL__") . "\">"; $html .= "<input type=\"hidden\" id=\"form[" . $this->name . "][" . $optionName . "]\" name=\"form[" . $this->name . "][]\" " . $this->NSFieldType() . " value=\"" . ((in_array( $optionName . "", $value )) ? $optionName : "__NULL__") . "\">";
} }
if (count($valuesFound) - 1 < count($value)) { if (count($valuesFound) - 1 < count($value)) {
$valuesNotFound = array_diff($value, $valuesFound); $valuesNotFound = array_diff($value, $valuesFound);
foreach ($valuesNotFound as $option) { foreach ($valuesNotFound as $option) {
$html .= "<input type=\"hidden\" id=\"form[" . $this->name . "]\" name=\"form[" . $this->name . "][]\" value=\"" . $option . "\">"; $html .= "<input type=\"hidden\" id=\"form[" . $this->name . "][" . $option . "]\" name=\"form[" . $this->name . "][]\" " . $this->NSFieldType() . " value=\"" . $option . "\">";
} }
} }
return $html; return $html;
@@ -4678,7 +4685,7 @@ class XmlForm_Field_Date extends XmlForm_Field_SimpleText
$html = '<input ' . $pmtype . ' pm:required="' . $isRequired . '" id="' . $pID . '" name="' . $pID . '" pm:mask="' . $mask . '" pm:start="' . $startDate . '" pm:end="' . $endDate . '" pm:time="' . $Time . '" ' . $onchange . ' class="module_app_input___gray" size="' . $sizeend . '" value="' . $value . '" pm:defaultvalue="' . $defaultValue . '" readonly="readonly" />' . '<a onclick="removeValue(\'' . $pID . '\'); return false;" style="position:relative;left:-17px;top:2px;" >' . ' <img src="/images/icons_silk/calendar_x_button.png" />' . '</a>' . '<a id="' . $pID . '[btn]" style="position: relative; top: 2px; left: -16px;" >' . ' <img src="/images/pmdateicon.png" border="0" width="12" height="14" />' . '</a>' . '<script>datePicker4("", \'' . $pID . '\', \'' . $mask . '\', \'' . $startDate . '\', \'' . $endDate . '\',' . $Time . ')</script>'; $html = '<input ' . $pmtype . ' pm:required="' . $isRequired . '" id="' . $pID . '" name="' . $pID . '" pm:mask="' . $mask . '" pm:start="' . $startDate . '" pm:end="' . $endDate . '" pm:time="' . $Time . '" ' . $onchange . ' class="module_app_input___gray" size="' . $sizeend . '" value="' . $value . '" pm:defaultvalue="' . $defaultValue . '" readonly="readonly" />' . '<a onclick="removeValue(\'' . $pID . '\'); return false;" style="position:relative;left:-17px;top:2px;" >' . ' <img src="/images/icons_silk/calendar_x_button.png" />' . '</a>' . '<a id="' . $pID . '[btn]" style="position: relative; top: 2px; left: -16px;" >' . ' <img src="/images/pmdateicon.png" border="0" width="12" height="14" />' . '</a>' . '<script>datePicker4("", \'' . $pID . '\', \'' . $mask . '\', \'' . $startDate . '\', \'' . $endDate . '\',' . $Time . ')</script>';
} }
} else { } else {
$html = "<span " . $pmtype . " style='border:1;border-color:#000;width:100px;' name='" . $pID . "'>$value</span>" . '<input type="hidden" id="' . $pID . '" name="' . $pID . '" pm:mask="' . $mask . '" pm:start="' . $startDate . '"' . 'pm:end="' . $endDate . '" ' . $onchange . ' class="module_app_input___gray" value="' . $value . '"/>'; $html = "<span style='border:1;border-color:#000;width:100px;'>$value</span>" . '<input type="hidden" id="' . $pID . '" name="' . $pID . '" ' . $pmtype . ' pm:mask="' . $mask . '" pm:start="' . $startDate . '"' . 'pm:end="' . $endDate . '" ' . $onchange . ' class="module_app_input___gray" value="' . $value . '"/>';
} }
/** /**
* * Commented because seems is not working well * * * Commented because seems is not working well *

View File

@@ -13,7 +13,7 @@ var lastTypeSelected = '';
var sessionPersits = function() { var sessionPersits = function() {
var rpc = new leimnud.module.rpc.xmlhttp({ var rpc = new leimnud.module.rpc.xmlhttp({
url: '../services/sessionPersists', url: '../services/sessionPersists',
args: 'dynaformEditorParams=' + dynaformEditorParams + (lastActionPerformed != '' ? '&DYN_UID=' + __DYN_UID__ : ''), args: "dynaformEditorParams=" + encodeURIComponent(dynaformEditorParams) + ((lastActionPerformed != "")? "&DYN_UID=" + __DYN_UID__ : ""),
async: false async: false
}); });
rpc.make(); rpc.make();

View File

@@ -2,7 +2,8 @@
$response = new stdclass(); $response = new stdclass();
$response->status = isset($_SESSION['USER_LOGGED']); $response->status = isset($_SESSION['USER_LOGGED']);
if (isset($_REQUEST['dynaformEditorParams'])) { 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 (isset($_REQUEST['DYN_UID'])) {
if (class_exists('Dynaform')) { if (class_exists('Dynaform')) {
require_once 'classes/model/Dynaform.php'; require_once 'classes/model/Dynaform.php';

View File

@@ -476,7 +476,7 @@ var openSummaryWindow = function(appUid, delIndex, action)
title: _('ID_SUMMARY'), title: _('ID_SUMMARY'),
layout: 'fit', layout: 'fit',
width: 750, width: 750,
height: 450, height: 500,
resizable: true, resizable: true,
closable: true, closable: true,
modal: true, modal: true,

View File

@@ -1383,6 +1383,12 @@ function handleRowClick(sm, rowIndex) {//alert(rowIndex);
tb.items.get('tb_download').hide(); tb.items.get('tb_download').hide();
//tb.items.get('tb_download').disable(); //tb.items.get('tb_download').disable();
} else if (selections.length == 1) { } 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')[selections[0].get('is_deletable') ? 'enable': 'disable']();
tb.items.get('tb_delete')[permitodelete==1 ? 'enable': 'disable'](); tb.items.get('tb_delete')[permitodelete==1 ? 'enable': 'disable']();
tb.items.get('tb_rename')[selections[0].get('is_deletable') ? 'disable': 'disable'](); tb.items.get('tb_rename')[selections[0].get('is_deletable') ? 'disable': 'disable']();

View File

@@ -1,50 +1,80 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<dynaForm name="dynaforms_Properties" type="xmlform" width="450" height="auto"> <dynaForm
<!--height="450"--> name="dynaforms_Properties"
<PME_PROPERTIES_TITLE type="title"> type="xmlform"
<en><![CDATA[Properties]]></en> width="450"
</PME_PROPERTIES_TITLE> height="auto"
<DYN_UID type="hidden" showInTable="0"/> >
<PRO_UID type="hidden" showInTable="0"/> <!--height="450"-->
<DYN_TYPE_PREVIOUS type="hidden" showInTable="0"/> <PME_PROPERTIES_TITLE type="title">
<A type="hidden" showInTable="0"/> <en>Properties</en>
<DYN_TITLE type="text" maxlength="32" size="32"> </PME_PROPERTIES_TITLE>
<en><![CDATA[Dynaform]]></en>
</DYN_TITLE> <DYN_UID type="hidden" showInTable="0"/>
<DYN_TYPE type="dropdown" colWidth="80" align="center"> <PRO_UID type="hidden" showInTable="0"/>
<en><![CDATA[Type]]><option name="xmlform"><![CDATA[Master Form]]></option><option name="grid"><![CDATA[Grid]]></option></en> <DYN_TYPE_PREVIOUS type="hidden" showInTable="0"/>
</DYN_TYPE> <A type="hidden" showInTable="0"/>
<DYN_DESCRIPTION type="textarea" cols="32" rows="12">
<en><![CDATA[Description]]></en> <DYN_TITLE type="text" maxlength="256" size ="32">
</DYN_DESCRIPTION> <en>Dynaform</en>
<SUBTITLE type="subtitle" enableHTML="1"> </DYN_TITLE>
<en><![CDATA[Others]]></en>
</SUBTITLE> <DYN_TYPE type="dropdown" colWidth="80" align="center">
<WIDTH type="text" maxlength="10" size="15"> <en>Type
<en><![CDATA[Width]]></en> <option name="xmlform">Master Form</option>
</WIDTH> <option name="grid">Grid</option>
<MODE type="dropdown" colWidth="80" align="center" defaultvalue="edit"> </en>
<en><![CDATA[Mode]]><option name=""><![CDATA[Determined by Fields]]></option><option name="edit"><![CDATA[All Edit]]></option><option name="view"><![CDATA[All View]]></option></en> </DYN_TYPE>
</MODE>
<NEXTSTEPSAVE type="dropdown" colWidth="80" align="center"> <DYN_DESCRIPTION type="textarea" cols="32" rows="12">
<en><![CDATA[Next Step Link]]><option name=""><![CDATA[No save & Continue]]></option><option name="save"><![CDATA[Save & Continue]]></option><option name="prompt"><![CDATA[Show prompt]]></option></en> <en>Description</en>
</NEXTSTEPSAVE> </DYN_DESCRIPTION>
<PRINTDYNAFORM type="checkbox" falseValue="0" value="1" defaultvalue="0" labelOnRight="0">
<en><![CDATA[Show print dynaform button]]></en> <SUBTITLE type="subtitle" enableHTML="1">
</PRINTDYNAFORM> <en>Others</en>
<ADJUSTGRIDSWIDTH type="checkbox" falseValue="0" value="1" defaultvalue="0" labelOnRight="0"> </SUBTITLE>
<en><![CDATA[Adjust the grid width to the width of the main form]]></en>
</ADJUSTGRIDSWIDTH> <WIDTH type="text" maxlength="10" size ="15">
<!--<ENABLETEMPLATE type="checkbox" value="1" defaultvalue="0" labelOnRight="0"> <en>Width</en>
</WIDTH>
<MODE type="dropdown" colWidth="80" align="center" defaultvalue="edit">
<en>Mode
<option name="">Determined by Fields</option>
<option name="edit">All Edit</option>
<option name="view">All View</option>
</en>
</MODE>
<NEXTSTEPSAVE type="dropdown" colWidth="80" align="center">
<en>Next Step Link
<option name=""><![CDATA[No save & Continue]]></option>
<option name="save"><![CDATA[Save & Continue]]></option>
<option name="prompt">Show prompt</option>
</en>
</NEXTSTEPSAVE>
<PRINTDYNAFORM type="checkbox" falseValue="0" value="1" defaultvalue="0" labelOnRight="0">
<en>Show print dynaform button</en>
</PRINTDYNAFORM>
<ADJUSTGRIDSWIDTH type="checkbox" falseValue="0" value="1" defaultvalue="0" labelOnRight="0">
<en>Adjust the grid width to the width of the main form</en>
</ADJUSTGRIDSWIDTH>
<!--<ENABLETEMPLATE type="checkbox" value="1" defaultvalue="0" labelOnRight="0">
<en>Enable Template</en> <en>Enable Template</en>
</ENABLETEMPLATE>--> </ENABLETEMPLATE>-->
<PME_PROP_APPLY type="button" onclick="dynaformEditor.saveProperties();">
<en><![CDATA[Apply]]></en> <PME_PROP_APPLY type="button" onclick="dynaformEditor.saveProperties();">
</PME_PROP_APPLY> <en>Apply</en>
<PME_PROP_REVERT type="button" onclick="dynaformEditor.refreshProperties();"> </PME_PROP_APPLY>
<en><![CDATA[Revert]]></en> <PME_PROP_REVERT type="button" onclick="dynaformEditor.refreshProperties();">
</PME_PROP_REVERT> <en>Revert</en>
<sdfsdf type="javascript"><![CDATA[ </PME_PROP_REVERT>
<sdfsdf type="javascript">
<![CDATA[
// added by gustavo cruz gustavo-at-colosa.com // added by gustavo cruz gustavo-at-colosa.com
// function getElementsByClassNameCrossBrowser // function getElementsByClassNameCrossBrowser
// CrossBrowser implemetation of the getElementsByClassName firefox function // CrossBrowser implemetation of the getElementsByClassName firefox function
@@ -135,7 +165,7 @@ function validateGridConversion(proUid,dynUid){
msgBox("Grid forms can not contain the following fields: <br>" + response,"alert"); msgBox("Grid forms can not contain the following fields: <br>" + response,"alert");
return false; return false;
} }
}.extend(this); }.extend(this);
isTrue = oRPC.make(); isTrue = oRPC.make();
@@ -163,7 +193,7 @@ function changeToolbar(type){
args : 'TOOLBAR=' + type + '&FILE=' + file + '&PRO_UID=' + proUid + '&DYN_UID=' + dynUid + '&DYN_TITLE=' + dynTitle args : 'TOOLBAR=' + type + '&FILE=' + file + '&PRO_UID=' + proUid + '&DYN_UID=' + dynUid + '&DYN_TITLE=' + dynTitle
}); });
oRPC.callback = function(oRPC) { oRPC.callback = function(oRPC) {
getElementsByClassNameCrossBrowser("panel_headerBar___processmaker",document,"div")[0].innerHTML = oRPC.xmlhttp.responseText; getElementsByClassNameCrossBrowser("panel_headerBar___processmaker",document,"div")[0].innerHTML = oRPC.xmlhttp.responseText;
document.getElementById("publisherContent[0]").style.display = "inline"; document.getElementById("publisherContent[0]").style.display = "inline";
document.getElementById("publisherContent[0]").style.position = "absolute"; document.getElementById("publisherContent[0]").style.position = "absolute";
@@ -191,5 +221,6 @@ orderButtons();
oAux.checked=this.checked; oAux.checked=this.checked;
} }
}*/ }*/
]]></sdfsdf> ]]>
</dynaForm> </sdfsdf>
</dynaForm>