BUG 9405 Correccion idioma espanol

- Habian aun algunas etiquetas hardcoded
- Se cambio a labels todos los lugares con textos hardcoded
This commit is contained in:
Julio Cesar Laura
2012-07-12 00:46:29 -04:00
parent f0ec5161f0
commit f8c57f9055
14 changed files with 161 additions and 138 deletions

View File

@@ -283,6 +283,10 @@ class headPublisher {
$head = ''; $head = '';
$head .= " <script type='text/javascript' src='/js/ext/ext-base.js'></script>\n"; $head .= " <script type='text/javascript' src='/js/ext/ext-base.js'></script>\n";
$head .= " <script type='text/javascript' src='/js/ext/ext-all.js'></script>\n"; $head .= " <script type='text/javascript' src='/js/ext/ext-all.js'></script>\n";
$aux = explode('-', strtolower(SYS_LANG));
if (($aux[0] != 'en') && file_exists(PATH_GULLIVER_HOME . 'js' . PATH_SEP . 'ext' . PATH_SEP . 'locale' . PATH_SEP . 'ext-lang-' . $aux[0] . '.js')) {
$head .= " <script type='text/javascript' src='/js/ext/locale/ext-lang-" . $aux[0] . ".js'></script>\n";
}
// enabled for particular use // enabled for particular use
$head .= $this->getExtJsLibraries(); $head .= $this->getExtJsLibraries();

View File

@@ -100,7 +100,7 @@ Ext.onReady(function(){
listeners:{ listeners:{
selectionchange: function(sm){ selectionchange: function(sm){
switch(sm.getCount()){ switch(sm.getCount()){
case 0: case 0:
//Ext.getCmp('removeButton').disable(); //Ext.getCmp('removeButton').disable();
Ext.getCmp('editColumn').disable(); Ext.getCmp('editColumn').disable();
Ext.getCmp('removeColumn').disable(); Ext.getCmp('removeColumn').disable();
@@ -110,7 +110,7 @@ Ext.onReady(function(){
Ext.getCmp('removeColumn').enable(); Ext.getCmp('removeColumn').enable();
break; break;
default: default:
//Ext.getCmp('removeButton').enable(); //Ext.getCmp('removeButton').enable();
Ext.getCmp('editColumn').disable(); Ext.getCmp('editColumn').disable();
Ext.getCmp('removeColumn').enable(); Ext.getCmp('removeColumn').enable();
break; break;
@@ -303,7 +303,7 @@ Ext.onReady(function(){
//if a column was set as PK so can't be null //if a column was set as PK so can't be null
if (row.get('field_key') == true) { if (row.get('field_key') == true) {
row.data.field_null = false; row.data.field_null = false;
} }
row.commit(); row.commit();
} }
@@ -359,7 +359,7 @@ Ext.onReady(function(){
if (typeof(cindex) != "undefined") { if (typeof(cindex) != "undefined") {
for(var i = 0; i < rows.length; i++) { for(var i = 0; i < rows.length; i++) {
//skipping primary keys, we can't reorder //skipping primary keys, we can't reorder
if (rows[i].data.field_key ) if (rows[i].data.field_key )
continue; continue;
var srcIndex = ds.indexOfId(rows[i].id); var srcIndex = ds.indexOfId(rows[i].id);
@@ -587,13 +587,13 @@ Ext.onReady(function(){
southPanel = new Ext.FormPanel({ southPanel = new Ext.FormPanel({
region: 'south', region: 'south',
buttons:[ buttons:[
{ {
text: TABLE === false ? _("ID_CREATE") : _("ID_UPDATE"), text: TABLE === false ? _("ID_CREATE") : _("ID_UPDATE"),
handler: function() { handler: function() {
if (TABLE === false || dataNumRows == 0) { if (TABLE === false || dataNumRows == 0) {
createReportTable(); createReportTable();
} }
else { else {
PMExt.confirm(_('ID_CONFIRM'), _('ID_PMTABLE_SAVE_AND_DATA_LOST'), createReportTable); PMExt.confirm(_('ID_CONFIRM'), _('ID_PMTABLE_SAVE_AND_DATA_LOST'), createReportTable);
} }
@@ -622,7 +622,7 @@ Ext.onReady(function(){
loadTableRowsFromArray(TABLE.FIELDS); loadTableRowsFromArray(TABLE.FIELDS);
} }
if (dataNumRows > 0) { if (dataNumRows > 0) {
var tpl = new Ext.Template( var tpl = new Ext.Template(
'<div id="fb" style="border: 1px solid #FF0000; background-color:#FFAAAA; display:none; padding:15px; color:#000000; font-size:12px;">'+ '<div id="fb" style="border: 1px solid #FF0000; background-color:#FFAAAA; display:none; padding:15px; color:#000000; font-size:12px;">'+
@@ -638,13 +638,13 @@ Ext.onReady(function(){
}); });
// actions // actions
function createReportTable() function createReportTable()
{ {
var tableName = Ext.getCmp('REP_TAB_NAME').getValue().trim(); var tableName = Ext.getCmp('REP_TAB_NAME').getValue().trim();
var tableDescription = Ext.getCmp('REP_TAB_DSC').getValue().trim(); var tableDescription = Ext.getCmp('REP_TAB_DSC').getValue().trim();
//validate table name //validate table name
if (tableName == '') { if (tableName == '') {
Ext.getCmp('REP_TAB_NAME').focus(); Ext.getCmp('REP_TAB_NAME').focus();
@@ -792,7 +792,7 @@ function _showDebugWin(content)
y: 0, y: 0,
html: '<pre>' + content + '</pre>' html: '<pre>' + content + '</pre>'
}); });
dbgWin.show(); dbgWin.show();
} }
@@ -811,7 +811,7 @@ function addColumn() {
field_null : 1 field_null : 1
}); });
var len = assignedGrid.getStore().data.length; var len = assignedGrid.getStore().data.length;
editor.stopEditing(); editor.stopEditing();
store.insert(len, row); store.insert(len, row);
assignedGrid.getView().refresh(); assignedGrid.getView().refresh();

View File

@@ -7,7 +7,7 @@
var availableGrid; var availableGrid;
var assignedGrid; var assignedGrid;
var editor; // row editor for assignedGrid var editor; // row editor for assignedGrid
var store; // store for assignedGrid var store; // store for assignedGrid
//buttons define //buttons define
@@ -34,7 +34,7 @@ Ext.onReady(function(){
root: 'rows', root: 'rows',
totalProperty: 'count', totalProperty: 'count',
fields : [ fields : [
{name : 'FIELD_UID'}, {name : 'FIELD_UID'},
{name : 'FIELD_NAME'}, {name : 'FIELD_NAME'},
{name : '_index'}, {name : '_index'},
{name : '_isset'} {name : '_isset'}
@@ -172,7 +172,7 @@ Ext.onReady(function(){
} }
} }
} }
}, },
{ {
text: 'X', text: 'X',
ctCls:'pm_search_x_button', ctCls:'pm_search_x_button',
@@ -181,7 +181,7 @@ Ext.onReady(function(){
filterAvFields(); filterAvFields();
} }
}, { }, {
text: 'Filter', text: _('ID_FILTER'),
handler: function(){ handler: function(){
filterAvFields(); filterAvFields();
} }
@@ -203,7 +203,7 @@ Ext.onReady(function(){
selectionchange: function(sm){ selectionchange: function(sm){
switch(sm.getCount()){ switch(sm.getCount()){
case 0: case 0:
Ext.getCmp('removeButton').disable(); Ext.getCmp('removeButton').disable();
Ext.getCmp('removeColumn').disable(); Ext.getCmp('removeColumn').disable();
break; break;
case 1: case 1:
@@ -235,15 +235,15 @@ Ext.onReady(function(){
id: 'uid', id: 'uid',
dataIndex: 'uid', dataIndex: 'uid',
hidden: true hidden: true
}, },
{ {
dataIndex: '_index', dataIndex: '_index',
hidden: true hidden: true
}, },
{ {
dataIndex: '_isset', dataIndex: '_isset',
hidden: true hidden: true
}, },
{ {
id: 'field_uid', id: 'field_uid',
dataIndex: 'field_uid', dataIndex: 'field_uid',
@@ -450,7 +450,7 @@ Ext.onReady(function(){
if (typeof(cindex) != "undefined") { if (typeof(cindex) != "undefined") {
for(var i = 0; i < rows.length; i++) { for(var i = 0; i < rows.length; i++) {
//skipping primary keys, we can't reorder //skipping primary keys, we can't reorder
if (rows[i].data.field_key ) if (rows[i].data.field_key )
continue; continue;
var srcIndex = ds.indexOfId(rows[i].id); var srcIndex = ds.indexOfId(rows[i].id);
@@ -598,7 +598,7 @@ Ext.onReady(function(){
if (TABLE !== false) { // is editing if (TABLE !== false) { // is editing
defaultValue = TABLE.DBS_UID; defaultValue = TABLE.DBS_UID;
comboDbConnections.setDisabled(true); comboDbConnections.setDisabled(true);
} }
else { else {
defaultValue = 'workflow'; defaultValue = 'workflow';
} }
@@ -608,7 +608,7 @@ Ext.onReady(function(){
if (i > -1){ if (i > -1){
comboDbConnections.setValue(this.getAt(i).data.DBS_UID); comboDbConnections.setValue(this.getAt(i).data.DBS_UID);
comboDbConnections.setRawValue(this.getAt(i).data.DBS_NAME); comboDbConnections.setRawValue(this.getAt(i).data.DBS_NAME);
} }
else { else {
// DB COnnection deleted // DB COnnection deleted
Ext.Msg.alert( _('ID_ERROR'), _('ID_DB_CONNECTION_NOT_EXIST') ); Ext.Msg.alert( _('ID_ERROR'), _('ID_DB_CONNECTION_NOT_EXIST') );
@@ -744,9 +744,9 @@ Ext.onReady(function(){
// loading available fields // loading available fields
//loadAvFieldsFromArray(avFieldsList); //loadAvFieldsFromArray(avFieldsList);
//if (TABLE.ADD_TAB_TYPE == 'GRID') //if (TABLE.ADD_TAB_TYPE == 'GRID')
//loadFieldsGrids(); //loadFieldsGrids();
//else //else
if (TABLE.ADD_TAB_TYPE == 'NORMAL') if (TABLE.ADD_TAB_TYPE == 'NORMAL')
loadFieldNormal(); loadFieldNormal();
@@ -847,7 +847,7 @@ Ext.onReady(function(){
}, },
items: items items: items
} }
var frmDetails = new Ext.FormPanel(frmDetailsConfig); var frmDetails = new Ext.FormPanel(frmDetailsConfig);
southPanel = new Ext.FormPanel({ southPanel = new Ext.FormPanel({
@@ -882,13 +882,13 @@ Ext.onReady(function(){
comboDbConnections.getStore().reload({params:{PRO_UID : PRO_UID}}); comboDbConnections.getStore().reload({params:{PRO_UID : PRO_UID}});
if (Ext.getCmp('REP_TAB_TYPE').getValue() == 'GRID') { if (Ext.getCmp('REP_TAB_TYPE').getValue() == 'GRID') {
gridsListStore.reload({params:{PRO_UID : PRO_UID}}); gridsListStore.reload({params:{PRO_UID : PRO_UID}});
} }
if (TABLE === false) { if (TABLE === false) {
if(TABLE.ADD_TAB_TYPE != 'GRID') if(TABLE.ADD_TAB_TYPE != 'GRID')
loadFieldNormal(); loadFieldNormal();
} }
} }
DDLoadFields(); DDLoadFields();
@@ -1037,7 +1037,7 @@ function addColumn()
field_null : 1 field_null : 1
}); });
var len = assignedGrid.getStore().data.length; var len = assignedGrid.getStore().data.length;
editor.stopEditing(); editor.stopEditing();
store.insert(len, row); store.insert(len, row);
assignedGrid.getView().refresh(); assignedGrid.getView().refresh();
@@ -1081,12 +1081,12 @@ AssignAllFieldsAction = function(){
//RevomeALLButton Functionality //RevomeALLButton Functionality
RemoveAllFieldsAction = function(){ RemoveAllFieldsAction = function(){
if (store.getCount() > 100) { if (store.getCount() > 100) {
PMExt.info(_('ID_NOTICE'), _('ID_ACTION_DISABLED_TO_LOW_PERFORMANCE_1') + _('ID_ACTION_DISABLED_TO_LOW_PERFORMANCE_2') ); PMExt.info(_('ID_NOTICE'), _('ID_ACTION_DISABLED_TO_LOW_PERFORMANCE_1') + _('ID_ACTION_DISABLED_TO_LOW_PERFORMANCE_2') );
return ; return ;
} }
var allRows = Ext.getCmp('assignedGrid').getStore(); var allRows = Ext.getCmp('assignedGrid').getStore();
var records = new Array(); var records = new Array();
if (allRows.getCount() > 0) { if (allRows.getCount() > 0) {
@@ -1115,7 +1115,7 @@ loadFieldNormal = function(){
loadFieldsGrids = function(){ loadFieldsGrids = function(){
var available = Ext.getCmp('availableGrid'); var available = Ext.getCmp('availableGrid');
available.store.removeAll(); available.store.removeAll();
available.store.load({ available.store.load({
params: { params: {
action: "getDynafields", action: "getDynafields",
@@ -1242,9 +1242,9 @@ function unsetReportFields(records) {
ix = records[i].data['_index'] != '' ? records[i].data['_index'] : records[i].data['field_dyn'] ix = records[i].data['_index'] != '' ? records[i].data['_index'] : records[i].data['field_dyn']
indexes.push(ix); indexes.push(ix);
} else { } else {
if ( records[i].data['field_name'] == 'APP_UID' if ( records[i].data['field_name'] == 'APP_UID'
|| records[i].data['field_name'] == 'APP_NUMBER' || records[i].data['field_name'] == 'APP_NUMBER'
|| records[i].data['field_name'] == 'ROW') || records[i].data['field_name'] == 'ROW')
{ {
records[i] = null; records[i] = null;
} }

View File

@@ -1,6 +1,6 @@
/* /*
* @author: Erik A. Ortiz * @author: Erik A. Ortiz
* Aug 20th, 2010 * Aug 20th, 2010
*/ */
var processesGrid; var processesGrid;
var store; var store;
@@ -62,17 +62,17 @@ Ext.onReady(function(){
{name : 'CASES_COUNT_CANCELLED', type:'float'} {name : 'CASES_COUNT_CANCELLED', type:'float'}
] ]
}), }),
//sortInfo:{field: 'PRO_TITLE', direction: "ASC"} //sortInfo:{field: 'PRO_TITLE', direction: "ASC"}
//groupField:'PRO_CATEGORY_LABEL' //groupField:'PRO_CATEGORY_LABEL'
listeners: { listeners: {
load: function (store) { load: function (store) {
Ext.ComponentMgr.get("export").setDisabled(true); Ext.ComponentMgr.get("export").setDisabled(true);
} }
} }
}); });
var expander = new Ext.ux.grid.RowExpander({ var expander = new Ext.ux.grid.RowExpander({
tpl : new Ext.Template( tpl : new Ext.Template(
'<p><b>' + _('ID_PRO_DESCRIPTION') + ':</b> {PRO_DESCRIPTION}</p><br>' '<p><b>' + _('ID_PRO_DESCRIPTION') + ':</b> {PRO_DESCRIPTION}</p><br>'
@@ -112,11 +112,11 @@ Ext.onReady(function(){
filter = comboCategory.value; filter = comboCategory.value;
store.setBaseParam( 'category', filter); store.setBaseParam( 'category', filter);
var searchTxt = Ext.util.Format.trim(Ext.getCmp('searchTxt').getValue()); var searchTxt = Ext.util.Format.trim(Ext.getCmp('searchTxt').getValue());
if( searchTxt == '' ){ if( searchTxt == '' ){
store.setBaseParam( 'processName', ''); store.setBaseParam( 'processName', '');
} }
store.load({params: {category: filter, start: 0, limit: 25}}); store.load({params: {category: filter, start: 0, limit: 25}});
}} }}
}) })
@@ -125,7 +125,7 @@ Ext.onReady(function(){
data: [['20'],['30'],['40'],['50'],['100']], data: [['20'],['30'],['40'],['50'],['100']],
autoLoad: true autoLoad: true
}); });
var comboPageSize = new Ext.form.ComboBox({ var comboPageSize = new Ext.form.ComboBox({
typeAhead : false, typeAhead : false,
mode : 'local', mode : 'local',
@@ -140,7 +140,7 @@ Ext.onReady(function(){
//UpdatePageConfig(d.data['size']); //UpdatePageConfig(d.data['size']);
bbar.pageSize = parseInt(d.data['size']); bbar.pageSize = parseInt(d.data['size']);
bbar.moveFirst(); bbar.moveFirst();
//Ext.getCmp('bbar').setPageSize(comboPageSize.getValue()); //Ext.getCmp('bbar').setPageSize(comboPageSize.getValue());
} }
} }
@@ -157,7 +157,7 @@ Ext.onReady(function(){
displayMsg: 'Displaying Processes {0} - {1} of {2}', displayMsg: 'Displaying Processes {0} - {1} of {2}',
emptyMsg: "", emptyMsg: "",
items:[_('ID_PAGE_SIZE')+':',comboPageSize] items:[_('ID_PAGE_SIZE')+':',comboPageSize]
}) */ }) */
processesGrid = new Ext.grid.GridPanel( { processesGrid = new Ext.grid.GridPanel( {
region: 'center', region: 'center',
layout: 'fit', layout: 'fit',
@@ -175,7 +175,7 @@ Ext.onReady(function(){
cls : 'grid_with_checkbox', cls : 'grid_with_checkbox',
columnLines: true, columnLines: true,
/*view: new Ext.grid.GroupingView({ /*view: new Ext.grid.GroupingView({
//forceFit:true, //forceFit:true,
//groupTextTpl: '{text} ({[values.rs.length]} {[values.rs.length > 1 ? "Items" : "Item"]})' //groupTextTpl: '{text} ({[values.rs.length]} {[values.rs.length > 1 ? "Items" : "Item"]})'
@@ -190,7 +190,7 @@ Ext.onReady(function(){
defaults: { defaults: {
width: 200, width: 200,
sortable: true sortable: true
}, },
columns: [ columns: [
expander, expander,
{id:'PRO_UID', dataIndex: 'PRO_UID', hidden:true, hideable:false}, {id:'PRO_UID', dataIndex: 'PRO_UID', hidden:true, hideable:false},
@@ -203,7 +203,7 @@ Ext.onReady(function(){
return String.format("<font color='{0}'>{1}</font>", color, v); return String.format("<font color='{0}'>{1}</font>", color, v);
}}, }},
{header: _('ID_PRO_USER'), dataIndex: 'PRO_CREATE_USER_LABEL', width: 150}, {header: _('ID_PRO_USER'), dataIndex: 'PRO_CREATE_USER_LABEL', width: 150},
{header: _('ID_PRO_CREATE_DATE'), dataIndex: 'PRO_CREATE_DATE', width: 90}, {header: _('ID_PRO_CREATE_DATE'), dataIndex: 'PRO_CREATE_DATE', width: 90},
{header: _('ID_INBOX'), dataIndex: 'CASES_COUNT_TO_DO', width: 50, align:'right'}, {header: _('ID_INBOX'), dataIndex: 'CASES_COUNT_TO_DO', width: 50, align:'right'},
{header: _('ID_DRAFT'), dataIndex: 'CASES_COUNT_DRAFT', width: 50, align:'right'}, {header: _('ID_DRAFT'), dataIndex: 'CASES_COUNT_DRAFT', width: 50, align:'right'},
{header: _('ID_COMPLETED'), dataIndex: 'CASES_COUNT_COMPLETED', width: 70, align:'right'}, {header: _('ID_COMPLETED'), dataIndex: 'CASES_COUNT_COMPLETED', width: 70, align:'right'},
@@ -211,7 +211,7 @@ Ext.onReady(function(){
{header: _('ID_TOTAL_CASES'), dataIndex: 'CASES_COUNT', width: 80,renderer:function(v){return "<b>"+v+"</b>";}, align:'right'}, {header: _('ID_TOTAL_CASES'), dataIndex: 'CASES_COUNT', width: 80,renderer:function(v){return "<b>"+v+"</b>";}, align:'right'},
{header: _('ID_PRO_DEBUG'), dataIndex: 'PRO_DEBUG_LABEL', width: 50, align:'center'} {header: _('ID_PRO_DEBUG'), dataIndex: 'PRO_DEBUG_LABEL', width: 50, align:'center'}
] ]
}), }),
store: store, store: store,
tbar:[ tbar:[
{ {
@@ -220,7 +220,7 @@ Ext.onReady(function(){
//icon: '/images/addc.png', //icon: '/images/addc.png',
handler: newProcess handler: newProcess
}, },
'-' '-'
,{ ,{
text: _('ID_EDIT'), text: _('ID_EDIT'),
iconCls: 'button_menu_ext ss_sprite ss_pencil', iconCls: 'button_menu_ext ss_sprite ss_pencil',
@@ -322,10 +322,10 @@ Ext.onReady(function(){
processesGrid.getSelectionModel().on('rowselect', function(){ processesGrid.getSelectionModel().on('rowselect', function(){
var rowSelected = processesGrid.getSelectionModel().getSelected(); var rowSelected = processesGrid.getSelectionModel().getSelected();
var activator = Ext.getCmp('activator'); var activator = Ext.getCmp('activator');
activator.setDisabled(false); activator.setDisabled(false);
Ext.ComponentMgr.get("export").setDisabled(false); Ext.ComponentMgr.get("export").setDisabled(false);
if( rowSelected.data.PRO_STATUS == 'ACTIVE' ){ if( rowSelected.data.PRO_STATUS == 'ACTIVE' ){
activator.setIcon('/images/deactivate.png'); activator.setIcon('/images/deactivate.png');
activator.setText( _('ID_DEACTIVATE') ); activator.setText( _('ID_DEACTIVATE') );
@@ -343,11 +343,11 @@ Ext.onReady(function(){
processesGrid.on('rowcontextmenu', function (grid, rowIndex, evt) { processesGrid.on('rowcontextmenu', function (grid, rowIndex, evt) {
var sm = grid.getSelectionModel(); var sm = grid.getSelectionModel();
sm.selectRow(rowIndex, sm.isSelected(rowIndex)); sm.selectRow(rowIndex, sm.isSelected(rowIndex));
var rowSelected = Ext.getCmp('processesGrid').getSelectionModel().getSelected(); var rowSelected = Ext.getCmp('processesGrid').getSelectionModel().getSelected();
var activator = Ext.getCmp('activator2'); var activator = Ext.getCmp('activator2');
var debug = Ext.getCmp('debug'); var debug = Ext.getCmp('debug');
if( rowSelected.data.PRO_STATUS == 'ACTIVE' ){ if( rowSelected.data.PRO_STATUS == 'ACTIVE' ){
activator.setIconClass('icon-deactivate'); activator.setIconClass('icon-deactivate');
activator.setText( _('ID_DEACTIVATE') ); activator.setText( _('ID_DEACTIVATE') );
@@ -373,7 +373,7 @@ Ext.onReady(function(){
var coords = e.getXY(); var coords = e.getXY();
messageContextMenu.showAt([coords[0], coords[1]]); messageContextMenu.showAt([coords[0], coords[1]]);
} }
var messageContextMenu = new Ext.menu.Menu({ var messageContextMenu = new Ext.menu.Menu({
id: 'messageContextMenu', id: 'messageContextMenu',
items: [{ items: [{
@@ -420,7 +420,7 @@ Ext.onReady(function(){
function newProcess(){ function newProcess(){
// window.location = 'processes_New'; // window.location = 'processes_New';
var ProcessCategories = new Ext.form.ComboBox({ var ProcessCategories = new Ext.form.ComboBox({
fieldLabel : 'Category', fieldLabel : _('ID_CATEGORY'),
hiddenName : 'PRO_CATEGORY', hiddenName : 'PRO_CATEGORY',
valueField : 'CATEGORY_UID', valueField : 'CATEGORY_UID',
displayField : 'CATEGORY_NAME', displayField : 'CATEGORY_NAME',
@@ -436,7 +436,7 @@ function newProcess(){
url : '../processProxy/getCategoriesList', url : '../processProxy/getCategoriesList',
method : 'POST' method : 'POST'
}), }),
reader : new Ext.data.JsonReader( { reader : new Ext.data.JsonReader( {
fields : [ { fields : [ {
name : 'CATEGORY_UID' name : 'CATEGORY_UID'
@@ -458,7 +458,7 @@ function newProcess(){
width : 400, width : 400,
items : [ { items : [ {
id: 'PRO_TITLE', id: 'PRO_TITLE',
fieldLabel: _('ID_TITLE'), fieldLabel: _('ID_TITLE'),
xtype:'textfield', xtype:'textfield',
width: 260, width: 260,
maskRe: /^(?!^(PRN|AUX|CLOCK\$|NUL|CON|COM\d|LPT\d|\..*)(\..+)?$)[^\x00-\x1f\\?*:\";|/]+$/i, maskRe: /^(?!^(PRN|AUX|CLOCK\$|NUL|CON|COM\d|LPT\d|\..*)(\..+)?$)[^\x00-\x1f\\?*:\";|/]+$/i,
@@ -467,14 +467,14 @@ function newProcess(){
id: 'PRO_DESCRIPTION', id: 'PRO_DESCRIPTION',
fieldLabel: _('ID_DESCRIPTION'), fieldLabel: _('ID_DESCRIPTION'),
xtype:'textarea', xtype:'textarea',
width: 260 width: 260
}, },
ProcessCategories/*, ProcessCategories/*,
{ {
id: 'editor', id: 'editor',
xtype: 'radiogroup', xtype: 'radiogroup',
fieldLabel: _('ID_OPEN_WITH'), fieldLabel: _('ID_OPEN_WITH'),
items: [ items: [
{boxLabel: _('ID_CLASSIC_EDITOR'), name: 'editor', inputValue: 'classic', checked: true}, {boxLabel: _('ID_CLASSIC_EDITOR'), name: 'editor', inputValue: 'classic', checked: true},
{boxLabel: _('ID_BPMN_EDITOR'), name: 'editor', inputValue: 'bpmn'} {boxLabel: _('ID_BPMN_EDITOR'), name: 'editor', inputValue: 'bpmn'}
] ]
@@ -488,7 +488,7 @@ function newProcess(){
handler : function() { handler : function() {
win.close(); win.close();
} }
}] }]
}); });
var win = new Ext.Window({ var win = new Ext.Window({
@@ -524,7 +524,7 @@ function doSearch(){
store.setBaseParam( 'category', '<reset>'); store.setBaseParam( 'category', '<reset>');
filter = Ext.getCmp('searchTxt').getValue(); filter = Ext.getCmp('searchTxt').getValue();
store.setBaseParam('processName', filter); store.setBaseParam('processName', filter);
store.load({params:{processName: filter, start: 0 , limit: 25}}); store.load({params:{processName: filter, start: 0 , limit: 25}});
} }
@@ -567,7 +567,7 @@ deleteProcess = function(){
if( rows.length > 0 ) { if( rows.length > 0 ) {
isValid = true; isValid = true;
errLog = Array(); errLog = Array();
//verify if the selected rows have not any started or delegated cases //verify if the selected rows have not any started or delegated cases
for(i=0; i<rows.length; i++){ for(i=0; i<rows.length; i++){
if( rows[i].get('CASES_COUNT') != 0 ){ if( rows[i].get('CASES_COUNT') != 0 ){
@@ -575,7 +575,7 @@ deleteProcess = function(){
isValid = false; isValid = false;
} }
} }
if( isValid ){ if( isValid ){
ids = Array(); ids = Array();
for(i=0; i<rows.length; i++) for(i=0; i<rows.length; i++)
@@ -595,7 +595,7 @@ deleteProcess = function(){
Ext.MessageBox.hide(); Ext.MessageBox.hide();
processesGrid.store.reload(); processesGrid.store.reload();
result = Ext.util.JSON.decode(response.responseText); result = Ext.util.JSON.decode(response.responseText);
if(result){ if(result){
if(result.status != 0){ if(result.status != 0){
Ext.MessageBox.show({ Ext.MessageBox.show({
@@ -648,18 +648,18 @@ deleteProcess = function(){
function exportProcess() { function exportProcess() {
var record = processesGrid.getSelectionModel().getSelections(); var record = processesGrid.getSelectionModel().getSelections();
if(record.length == 1) { if(record.length == 1) {
var myMask = new Ext.LoadMask(Ext.getBody(), {msg: _("ID_LOADING")}); var myMask = new Ext.LoadMask(Ext.getBody(), {msg: _("ID_LOADING")});
myMask.show(); myMask.show();
/////// ///////
var proUid = record[0].get("PRO_UID"); var proUid = record[0].get("PRO_UID");
var proTitle = record[0].get("PRO_TITLE"); var proTitle = record[0].get("PRO_TITLE");
var titleLength = 60; var titleLength = 60;
title = (titleLength - proTitle.length >= 0)? proTitle : proTitle.substring(0, (titleLength - 1) + 1) + "..."; title = (titleLength - proTitle.length >= 0)? proTitle : proTitle.substring(0, (titleLength - 1) + 1) + "...";
/////// ///////
Ext.Ajax.request({ Ext.Ajax.request({
url: "../processes/processes_Ajax", url: "../processes/processes_Ajax",
@@ -672,11 +672,11 @@ function exportProcess() {
success: function (response, opts) { success: function (response, opts) {
myMask.hide(); myMask.hide();
/////// ///////
var dataResponse = eval("(" + response.responseText + ")"); //json var dataResponse = eval("(" + response.responseText + ")"); //json
var url = window.location.href; var url = window.location.href;
window.open(url.substring(0, url.lastIndexOf("/") + 1) + dataResponse.FILENAME_LINK, "_blank"); window.open(url.substring(0, url.lastIndexOf("/") + 1) + dataResponse.FILENAME_LINK, "_blank");
}, },
@@ -1098,7 +1098,7 @@ browseLibrary = function(){
function activeDeactive(){ function activeDeactive(){
var rows = processesGrid.getSelectionModel().getSelections(); var rows = processesGrid.getSelectionModel().getSelections();
if( rows.length > 0 ) { if( rows.length > 0 ) {
var ids = ''; var ids = '';
for(i=0; i<rows.length; i++) { for(i=0; i<rows.length; i++) {
@@ -1136,7 +1136,7 @@ function activeDeactive(){
function enableDisableDebug() function enableDisableDebug()
{ {
var rows = processesGrid.getSelectionModel().getSelections(); var rows = processesGrid.getSelectionModel().getSelections();
if( rows.length > 0 ) { if( rows.length > 0 ) {
var ids = ''; var ids = '';
for(i=0; i<rows.length; i++) for(i=0; i<rows.length; i++)

View File

@@ -723,15 +723,15 @@ Ext.onReady(function(){
comboDbConnections.getStore().reload({params:{PRO_UID : PRO_UID}}); comboDbConnections.getStore().reload({params:{PRO_UID : PRO_UID}});
if (Ext.getCmp('REP_TAB_TYPE').getValue() == 'GRID') { if (Ext.getCmp('REP_TAB_TYPE').getValue() == 'GRID') {
gridsListStore.reload({params:{PRO_UID : PRO_UID}}); gridsListStore.reload({params:{PRO_UID : PRO_UID}});
} }
if (TABLE === false) { if (TABLE === false) {
loadFieldNormal(); loadFieldNormal();
} //else if(typeof avFieldsList != 'undefined') } //else if(typeof avFieldsList != 'undefined')
//loadAvFieldsFromArray(avFieldsList); //loadAvFieldsFromArray(avFieldsList);
} else { } else {
} }
DDLoadFields(); DDLoadFields();

View File

@@ -1,4 +1,4 @@
<form id="{$form_id}" name="{$form_name}" action="{$form_action}" class="{$form_className}" method="post" encType="multipart/form-data" style="margin:0px;" onsubmit='return validateForm("{$form_objectRequiredFields}".parseJSON());'> <form id="{$form_id}" name="{$form_name}" action="{$form_action}" class="{$form_className}" method="post" encType="multipart/form-data" style="margin:0px;" onsubmit='return validateForm("{$form_objectRequiredFields}".parseJSON());'>
<div class="borderForm" style="padding-left: 0pt; padding-right: 0pt;"> <div class="borderForm" style="padding-left: 0pt; padding-right: 0pt;">
<div class="boxTop"><div class="a"></div><div class="b"></div><div class="c"></div></div> <div class="boxTop"><div class="a"></div><div class="b"></div><div class="c"></div></div>
@@ -27,7 +27,7 @@
<tr> <tr>
<td class="FormLabel" width="{$form_labelWidth}"><font color="red">* </font>{$PME_XMLNODE_NAME}</td> <td class="FormLabel" width="{$form_labelWidth}"><font color="red">* </font>{$PME_XMLNODE_NAME}</td>
<!-- <td class='FormFieldContent' width="{$form_width}" >{$form.PME_XMLNODE_NAME} </td> //--> <!-- <td class='FormFieldContent' width="{$form_width}" >{$form.PME_XMLNODE_NAME} </td> //-->
<td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.PME_XMLNODE_NAME}</td> <td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.PME_XMLNODE_NAME}</td>
</tr> </tr>
<tr style="display: none;"> <tr style="display: none;">
<td colspan="2">{$form.PME_XMLNODE_NAME_OLD}</td> <td colspan="2">{$form.PME_XMLNODE_NAME_OLD}</td>
@@ -38,7 +38,7 @@
<tr> <tr>
<td class="FormLabel" width="{$form_labelWidth}">{$PME_LABEL}</td> <td class="FormLabel" width="{$form_labelWidth}">{$PME_LABEL}</td>
<!-- <td class='FormFieldContent' width="{$form_width}" >{$form.PME_LABEL} </td> //--> <!-- <td class='FormFieldContent' width="{$form_width}" >{$form.PME_LABEL} </td> //-->
<td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.PME_LABEL}</td> <td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.PME_LABEL}</td>
</tr> </tr>
<tr> <tr>
<td class="FormTitle" colspan="2" align="">{$form.PME_SUBTITLE3}</td> <td class="FormTitle" colspan="2" align="">{$form.PME_SUBTITLE3}</td>
@@ -46,12 +46,12 @@
<tr> <tr>
<td class="FormLabel" width="{$form_labelWidth}">{$PME_DEFAULTVALUE}</td> <td class="FormLabel" width="{$form_labelWidth}">{$PME_DEFAULTVALUE}</td>
<!-- <td class='FormFieldContent' width="{$form_width}" >{$form.PME_DEFAULTVALUE} </td> //--> <!-- <td class='FormFieldContent' width="{$form_width}" >{$form.PME_DEFAULTVALUE} </td> //-->
<td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.PME_DEFAULTVALUE}</td> <td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.PME_DEFAULTVALUE}</td>
</tr> </tr>
<tr> <tr>
<td class="FormLabel" width="{$form_labelWidth}">{$PME_HINT}</td> <td class="FormLabel" width="{$form_labelWidth}">{$PME_HINT}</td>
<!-- <td class='FormFieldContent' width="{$form_width}" >{$form.PME_HINT} </td> //--> <!-- <td class='FormFieldContent' width="{$form_width}" >{$form.PME_HINT} </td> //-->
<td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.PME_HINT}</td> <td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.PME_HINT}</td>
</tr> </tr>
<tr> <tr>
<td class="FormTitle" colspan="2" align="">{$form.PME_SUBTITLE}</td> <td class="FormTitle" colspan="2" align="">{$form.PME_SUBTITLE}</td>
@@ -59,7 +59,7 @@
<tr> <tr>
<td class="FormLabel" width="{$form_labelWidth}">{$PME_MODE}</td> <td class="FormLabel" width="{$form_labelWidth}">{$PME_MODE}</td>
<!-- <td class='FormFieldContent' width="{$form_width}" >{$form.PME_MODE} </td> //--> <!-- <td class='FormFieldContent' width="{$form_width}" >{$form.PME_MODE} </td> //-->
<td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.PME_MODE}</td> <td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.PME_MODE}</td>
</tr> </tr>
<tr> <tr>
<td class="FormTitle" colspan="2" align="">{$form.PME_SUBTITLE2}</td> <td class="FormTitle" colspan="2" align="">{$form.PME_SUBTITLE2}</td>
@@ -67,12 +67,15 @@
<tr> <tr>
<td class="FormLabel" width="{$form_labelWidth}">{$PME_SQLCONNECTION}</td> <td class="FormLabel" width="{$form_labelWidth}">{$PME_SQLCONNECTION}</td>
<!-- <td class='FormFieldContent' width="{$form_width}" >{$form.PME_SQLCONNECTION} </td> //--> <!-- <td class='FormFieldContent' width="{$form_width}" >{$form.PME_SQLCONNECTION} </td> //-->
<td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.PME_SQLCONNECTION}</td> <td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.PME_SQLCONNECTION}</td>
</tr> </tr>
<tr> <tr>
<td class="FormLabel" width="{$form_labelWidth}">{$PME_XMLNODE_VALUE}</td> <td class="FormLabel" width="{$form_labelWidth}">{$PME_XMLNODE_VALUE}</td>
<!-- <td class='FormFieldContent' width="{$form_width}" >{$form.PME_XMLNODE_VALUE} </td> //--> <!-- <td class='FormFieldContent' width="{$form_width}" >{$form.PME_XMLNODE_VALUE} </td> //-->
<td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.PME_XMLNODE_VALUE}</td> <td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.PME_XMLNODE_VALUE}</td>
</tr>
<tr>
<td class="FormTitle" colspan="2" align="">{$form.PME_SUBTITLE4}</td>
</tr> </tr>
<tr> <tr>
<td colspan="2">{$form.PME_OPTIONS}</td> <td colspan="2">{$form.PME_OPTIONS}</td>

View File

@@ -53,10 +53,11 @@ SELECT XMLNODE_NAME, TYPE FROM dynaForm WHERE XMLNODE_NAME = @@PME_XMLNODE_NAME
<en>Sql</en> <en>Sql</en>
</PME_XMLNODE_VALUE> </PME_XMLNODE_VALUE>
<PME_OPTIONS type="grid" xmlgrid="dynaforms/fields/_options" editRow="" deleteRow="1" insertRow="1" sqlconnection="XMLDB"> <PME_SUBTITLE4 type="subtitle">
<en>Options</en> <en>Options</en>
</PME_OPTIONS> </PME_SUBTITLE4>
<PME_OPTIONS type="grid" xmlgrid="dynaforms/fields/_options" editRow="" deleteRow="1" insertRow="1" sqlconnection="XMLDB" />
<BTN_CANCEL type="button" onclick="cancel();"> <BTN_CANCEL type="button" onclick="cancel();">
<en>Cancel</en> <en>Cancel</en>
@@ -79,4 +80,4 @@ function cancel(){
currentPopupWindow.remove(); currentPopupWindow.remove();
} }
]]></PME_JS> ]]></PME_JS>
</dynaForm> </dynaForm>

View File

@@ -120,19 +120,19 @@ function masks(e){
oPanel.options = { oPanel.options = {
size : {w:400, h:370}, size : {w:400, h:370},
position : {x:e.clientX, y:e.clientY-300, center:false}, position : {x:e.clientX, y:e.clientY-300, center:false},
title : 'Masks List', title : _('ID_MASKS_LIST'),
statusBar : false, statusBar : false,
control : {resize:false,roll:false,drag:true}, control : {resize:false,roll:false,drag:true},
fx : {modal:true,opacity:true,blinkToFront:false,fadeIn:false,drag:true} fx : {modal:true,opacity:true,blinkToFront:false,fadeIn:false,drag:true}
}; };
oPanel.make(); oPanel.make();
var oRPC = new leimnud.module.rpc.xmlhttp({url : '../dynaforms/datemask'}); var oRPC = new leimnud.module.rpc.xmlhttp({url : '../dynaforms/datemask'});
oRPC.callback = function(rpc) { oRPC.callback = function(rpc) {
oPanel.addContent(rpc.xmlhttp.responseText); oPanel.addContent(rpc.xmlhttp.responseText);
}.extend(this); }.extend(this);
oRPC.make(); oRPC.make();
return false; return false;
} }
@@ -223,7 +223,7 @@ function validDate() {
if(getField('PME_BEFOREDATE').value == ''){ if(getField('PME_BEFOREDATE').value == ''){
msgBox('@G::LoadTranslation(ID_SEL_BEFORE_DATE)', "alert"); msgBox('@G::LoadTranslation(ID_SEL_BEFORE_DATE)', "alert");
return false; return false;
} }
if(getField('PME_AFTERDATE').value == ''){ if(getField('PME_AFTERDATE').value == ''){
msgBox('@G::LoadTranslation(ID_SEL_AFTER_DATE)', "alert"); msgBox('@G::LoadTranslation(ID_SEL_AFTER_DATE)', "alert");
@@ -234,7 +234,7 @@ function validDate() {
if(getField('PME_STARTDATE').value == ''){ if(getField('PME_STARTDATE').value == ''){
msgBox('@G::LoadTranslation(ID_SEL_START_DATE)', "alert"); msgBox('@G::LoadTranslation(ID_SEL_START_DATE)', "alert");
return false; return false;
} }
if(getField('PME_ENDDATE').value == ''){ if(getField('PME_ENDDATE').value == ''){
msgBox('@G::LoadTranslation(ID_SEL_END_DATE)', "alert"); msgBox('@G::LoadTranslation(ID_SEL_END_DATE)', "alert");
@@ -246,4 +246,4 @@ function validDate() {
} }
]]></PME_JS> ]]></PME_JS>
</dynaForm> </dynaForm>

View File

@@ -1,4 +1,4 @@
<form id="{$form_id}" name="{$form_name}" action="{$form_action}" class="{$form_className}" method="post" encType="multipart/form-data" style="margin:0px;" onsubmit='return validateForm("{$form_objectRequiredFields}".parseJSON());'> <form id="{$form_id}" name="{$form_name}" action="{$form_action}" class="{$form_className}" method="post" encType="multipart/form-data" style="margin:0px;" onsubmit='return validateForm("{$form_objectRequiredFields}".parseJSON());'>
<div class="borderForm" style="padding-left: 0pt; padding-right: 0pt;"> <div class="borderForm" style="padding-left: 0pt; padding-right: 0pt;">
<div class="boxTop"><div class="a"></div><div class="b"></div><div class="c"></div></div> <div class="boxTop"><div class="a"></div><div class="b"></div><div class="c"></div></div>
@@ -24,7 +24,7 @@
<tr> <tr>
<td class="FormLabel" width="{$form_labelWidth}"><font color="red">* </font>{$PME_XMLNODE_NAME}</td> <td class="FormLabel" width="{$form_labelWidth}"><font color="red">* </font>{$PME_XMLNODE_NAME}</td>
<!-- <td class='FormFieldContent' width="{$form_width}" >{$form.PME_XMLNODE_NAME} </td> //--> <!-- <td class='FormFieldContent' width="{$form_width}" >{$form.PME_XMLNODE_NAME} </td> //-->
<td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.PME_XMLNODE_NAME}</td> <td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.PME_XMLNODE_NAME}</td>
</tr> </tr>
<tr style="display: none;"> <tr style="display: none;">
<td colspan="2">{$form.PME_XMLNODE_NAME_OLD}</td> <td colspan="2">{$form.PME_XMLNODE_NAME_OLD}</td>
@@ -35,7 +35,7 @@
<tr> <tr>
<td class="FormLabel" width="{$form_labelWidth}">{$PME_LABEL}</td> <td class="FormLabel" width="{$form_labelWidth}">{$PME_LABEL}</td>
<!-- <td class='FormFieldContent' width="{$form_width}" >{$form.PME_LABEL} </td> //--> <!-- <td class='FormFieldContent' width="{$form_width}" >{$form.PME_LABEL} </td> //-->
<td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.PME_LABEL}</td> <td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.PME_LABEL}</td>
</tr> </tr>
<tr> <tr>
<td class="FormTitle" colspan="2" align="">{$form.PME_SUBTITLE3}</td> <td class="FormTitle" colspan="2" align="">{$form.PME_SUBTITLE3}</td>
@@ -43,31 +43,31 @@
<tr> <tr>
<td class="FormLabel" width="{$form_labelWidth}">{$PME_REQUIRED}</td> <td class="FormLabel" width="{$form_labelWidth}">{$PME_REQUIRED}</td>
<!-- <td class='FormFieldContent' width="{$form_width}" >{$form.PME_REQUIRED} </td> //--> <!-- <td class='FormFieldContent' width="{$form_width}" >{$form.PME_REQUIRED} </td> //-->
<td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.PME_REQUIRED}</td> <td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.PME_REQUIRED}</td>
</tr> </tr>
<tr> <tr>
<td class="FormLabel" width="{$form_labelWidth}">{$PME_READONLY}</td> <td class="FormLabel" width="{$form_labelWidth}">{$PME_READONLY}</td>
<!-- <td class='FormFieldContent' width="{$form_width}" >{$form.PME_READONLY} </td> //--> <!-- <td class='FormFieldContent' width="{$form_width}" >{$form.PME_READONLY} </td> //-->
<td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.PME_READONLY}</td> <td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.PME_READONLY}</td>
</tr> </tr>
<tr> <tr>
<td class="FormLabel" width="{$form_labelWidth}">{$PME_DEPENDENTFIELDS}</td> <td class="FormLabel" width="{$form_labelWidth}">{$PME_DEPENDENTFIELDS}</td>
<!-- <td class='FormFieldContent' width="{$form_width}" >{$form.PME_DEPENDENTFIELDS} </td> //--> <!-- <td class='FormFieldContent' width="{$form_width}" >{$form.PME_DEPENDENTFIELDS} </td> //-->
<td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.PME_DEPENDENTFIELDS}</td> <td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.PME_DEPENDENTFIELDS}</td>
</tr> </tr>
<tr> <tr>
<td class="FormLabel" width="{$form_labelWidth}">{$PME_DEFAULTVALUE}</td> <td class="FormLabel" width="{$form_labelWidth}">{$PME_DEFAULTVALUE}</td>
<!-- <td class='FormFieldContent' width="{$form_width}" >{$form.PME_DEFAULTVALUE} </td> //--> <!-- <td class='FormFieldContent' width="{$form_width}" >{$form.PME_DEFAULTVALUE} </td> //-->
<td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.PME_DEFAULTVALUE}</td> <td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.PME_DEFAULTVALUE}</td>
</tr> </tr>
<!-- <tr> <!-- <tr>
<td class="FormLabel" width="{$form_labelWidth}">{$PME_SAVELABEL}</td> <td class="FormLabel" width="{$form_labelWidth}">{$PME_SAVELABEL}</td>
<td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.PME_SAVELABEL}</td> <td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.PME_SAVELABEL}</td>
</tr>--> </tr>-->
<tr> <tr>
<td class="FormLabel" width="{$form_labelWidth}">{$PME_HINT}</td> <td class="FormLabel" width="{$form_labelWidth}">{$PME_HINT}</td>
<!-- <td class='FormFieldContent' width="{$form_width}" >{$form.PME_HINT} </td> //--> <!-- <td class='FormFieldContent' width="{$form_width}" >{$form.PME_HINT} </td> //-->
<td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.PME_HINT}</td> <td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.PME_HINT}</td>
</tr> </tr>
<tr> <tr>
<td class="FormTitle" colspan="2" align="">{$form.PME_SUBTITLE}</td> <td class="FormTitle" colspan="2" align="">{$form.PME_SUBTITLE}</td>
@@ -75,7 +75,7 @@
<tr> <tr>
<td class="FormLabel" width="{$form_labelWidth}">{$PME_MODE}</td> <td class="FormLabel" width="{$form_labelWidth}">{$PME_MODE}</td>
<!-- <td class='FormFieldContent' width="{$form_width}" >{$form.PME_MODE} </td> //--> <!-- <td class='FormFieldContent' width="{$form_width}" >{$form.PME_MODE} </td> //-->
<td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.PME_MODE}</td> <td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.PME_MODE}</td>
</tr> </tr>
<tr> <tr>
<td class="FormTitle" colspan="2" align="">{$form.PME_SUBTITLE2}</td> <td class="FormTitle" colspan="2" align="">{$form.PME_SUBTITLE2}</td>
@@ -83,12 +83,15 @@
<tr> <tr>
<td class="FormLabel" width="{$form_labelWidth}">{$PME_SQLCONNECTION}</td> <td class="FormLabel" width="{$form_labelWidth}">{$PME_SQLCONNECTION}</td>
<!-- <td class='FormFieldContent' width="{$form_width}" >{$form.PME_SQLCONNECTION} </td> //--> <!-- <td class='FormFieldContent' width="{$form_width}" >{$form.PME_SQLCONNECTION} </td> //-->
<td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.PME_SQLCONNECTION}</td> <td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.PME_SQLCONNECTION}</td>
</tr> </tr>
<tr> <tr>
<td class="FormLabel" width="{$form_labelWidth}">{$PME_XMLNODE_VALUE}</td> <td class="FormLabel" width="{$form_labelWidth}">{$PME_XMLNODE_VALUE}</td>
<!-- <td class='FormFieldContent' width="{$form_width}" >{$form.PME_XMLNODE_VALUE} </td> //--> <!-- <td class='FormFieldContent' width="{$form_width}" >{$form.PME_XMLNODE_VALUE} </td> //-->
<td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.PME_XMLNODE_VALUE}</td> <td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.PME_XMLNODE_VALUE}</td>
</tr>
<tr>
<td class="FormTitle" colspan="2" align="">{$form.PME_SUBTITLE4}</td>
</tr> </tr>
<tr> <tr>
<td colspan="2">{$form.PME_OPTIONS}</td> <td colspan="2">{$form.PME_OPTIONS}</td>
@@ -106,5 +109,5 @@
<script type="text/javascript"> <script type="text/javascript">
{$form.PME_JS} {$form.PME_JS}
</script> </script>
</form> </form>

View File

@@ -66,9 +66,11 @@ select XMLNODE_NAME, XMLNODE_NAME AS NAME FROM dynaForm WHERE XMLNODE_NAME <> @@
<en>Sql</en> <en>Sql</en>
</PME_XMLNODE_VALUE> </PME_XMLNODE_VALUE>
<PME_OPTIONS type="grid" xmlgrid="dynaforms/fields/_options" editRow="" deleteRow="1" insertRow="1" sqlconnection="XMLDB"> <PME_SUBTITLE4 type="subtitle">
<en>Options</en> <en>Options</en>
</PME_OPTIONS> </PME_SUBTITLE4>
<PME_OPTIONS type="grid" xmlgrid="dynaforms/fields/_options" editRow="" deleteRow="1" insertRow="1" sqlconnection="XMLDB" />
<BTN_CANCEL type="button" onclick="cancel();"> <BTN_CANCEL type="button" onclick="cancel();">
<en>Cancel</en> <en>Cancel</en>
@@ -120,4 +122,4 @@ function cancel(){
} }
]]></PME_JS> ]]></PME_JS>
</dynaForm> </dynaForm>

View File

@@ -1,4 +1,4 @@
<form id="{$form_id}" name="{$form_name}" action="{$form_action}" class="{$form_className}" method="post" encType="multipart/form-data" style="margin:0px;" onsubmit='return validateForm("{$form_objectRequiredFields}".parseJSON());'> <form id="{$form_id}" name="{$form_name}" action="{$form_action}" class="{$form_className}" method="post" encType="multipart/form-data" style="margin:0px;" onsubmit='return validateForm("{$form_objectRequiredFields}".parseJSON());'>
<div class="borderForm" style="padding-left: 0pt; padding-right: 0pt;"> <div class="borderForm" style="padding-left: 0pt; padding-right: 0pt;">
<div class="boxTop"><div class="a"></div><div class="b"></div><div class="c"></div></div> <div class="boxTop"><div class="a"></div><div class="b"></div><div class="c"></div></div>
@@ -24,7 +24,7 @@
<tr> <tr>
<td class="FormLabel" width="{$form_labelWidth}"><font color="red">* </font>{$PME_XMLNODE_NAME}</td> <td class="FormLabel" width="{$form_labelWidth}"><font color="red">* </font>{$PME_XMLNODE_NAME}</td>
<!-- <td class='FormFieldContent' width="{$form_width}" >{$form.PME_XMLNODE_NAME} </td> //--> <!-- <td class='FormFieldContent' width="{$form_width}" >{$form.PME_XMLNODE_NAME} </td> //-->
<td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.PME_XMLNODE_NAME}</td> <td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.PME_XMLNODE_NAME}</td>
</tr> </tr>
<tr style="display: none;"> <tr style="display: none;">
<td colspan="2">{$form.PME_XMLNODE_NAME_OLD}</td> <td colspan="2">{$form.PME_XMLNODE_NAME_OLD}</td>
@@ -35,7 +35,7 @@
<tr> <tr>
<td class="FormLabel" width="{$form_labelWidth}">{$PME_LABEL}</td> <td class="FormLabel" width="{$form_labelWidth}">{$PME_LABEL}</td>
<!-- <td class='FormFieldContent' width="{$form_width}" >{$form.PME_LABEL} </td> //--> <!-- <td class='FormFieldContent' width="{$form_width}" >{$form.PME_LABEL} </td> //-->
<td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.PME_LABEL}</td> <td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.PME_LABEL}</td>
</tr> </tr>
<tr> <tr>
<td class="FormTitle" colspan="2" align="">{$form.PME_SUBTITLE3}</td> <td class="FormTitle" colspan="2" align="">{$form.PME_SUBTITLE3}</td>
@@ -43,17 +43,17 @@
<tr> <tr>
<td class="FormLabel" width="{$form_labelWidth}">{$PME_REQUIRED}</td> <td class="FormLabel" width="{$form_labelWidth}">{$PME_REQUIRED}</td>
<!-- <td class='FormFieldContent' width="{$form_width}" >{$form.PME_REQUIRED} </td> //--> <!-- <td class='FormFieldContent' width="{$form_width}" >{$form.PME_REQUIRED} </td> //-->
<td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.PME_REQUIRED}</td> <td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.PME_REQUIRED}</td>
</tr> </tr>
<tr> <tr>
<td class="FormLabel" width="{$form_labelWidth}">{$PME_DEFAULTVALUE}</td> <td class="FormLabel" width="{$form_labelWidth}">{$PME_DEFAULTVALUE}</td>
<!-- <td class='FormFieldContent' width="{$form_width}" >{$form.PME_DEFAULTVALUE} </td> //--> <!-- <td class='FormFieldContent' width="{$form_width}" >{$form.PME_DEFAULTVALUE} </td> //-->
<td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.PME_DEFAULTVALUE}</td> <td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.PME_DEFAULTVALUE}</td>
</tr> </tr>
<tr> <tr>
<td class="FormLabel" width="{$form_labelWidth}">{$PME_HINT}</td> <td class="FormLabel" width="{$form_labelWidth}">{$PME_HINT}</td>
<!-- <td class='FormFieldContent' width="{$form_width}" >{$form.PME_HINT} </td> //--> <!-- <td class='FormFieldContent' width="{$form_width}" >{$form.PME_HINT} </td> //-->
<td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.PME_HINT}</td> <td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.PME_HINT}</td>
</tr> </tr>
<tr> <tr>
<td class="FormTitle" colspan="2" align="">{$form.PME_SUBTITLE}</td> <td class="FormTitle" colspan="2" align="">{$form.PME_SUBTITLE}</td>
@@ -61,12 +61,12 @@
<tr> <tr>
<td class="FormLabel" width="{$form_labelWidth}">{$PME_SIZE}</td> <td class="FormLabel" width="{$form_labelWidth}">{$PME_SIZE}</td>
<!-- <td class='FormFieldContent' width="{$form_width}" >{$form.PME_SIZE} </td> //--> <!-- <td class='FormFieldContent' width="{$form_width}" >{$form.PME_SIZE} </td> //-->
<td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.PME_SIZE}</td> <td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.PME_SIZE}</td>
</tr> </tr>
<tr> <tr>
<td class="FormLabel" width="{$form_labelWidth}">{$PME_MODE}</td> <td class="FormLabel" width="{$form_labelWidth}">{$PME_MODE}</td>
<!-- <td class='FormFieldContent' width="{$form_width}" >{$form.PME_MODE} </td> //--> <!-- <td class='FormFieldContent' width="{$form_width}" >{$form.PME_MODE} </td> //-->
<td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.PME_MODE}</td> <td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.PME_MODE}</td>
</tr> </tr>
<tr> <tr>
<td class="FormTitle" colspan="2" align="">{$form.PME_SUBTITLE2}</td> <td class="FormTitle" colspan="2" align="">{$form.PME_SUBTITLE2}</td>
@@ -74,12 +74,15 @@
<tr> <tr>
<td class="FormLabel" width="{$form_labelWidth}">{$PME_SQLCONNECTION}</td> <td class="FormLabel" width="{$form_labelWidth}">{$PME_SQLCONNECTION}</td>
<!-- <td class='FormFieldContent' width="{$form_width}" >{$form.PME_SQLCONNECTION} </td> //--> <!-- <td class='FormFieldContent' width="{$form_width}" >{$form.PME_SQLCONNECTION} </td> //-->
<td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.PME_SQLCONNECTION}</td> <td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.PME_SQLCONNECTION}</td>
</tr> </tr>
<tr> <tr>
<td class="FormLabel" width="{$form_labelWidth}">{$PME_XMLNODE_VALUE}</td> <td class="FormLabel" width="{$form_labelWidth}">{$PME_XMLNODE_VALUE}</td>
<!-- <td class='FormFieldContent' width="{$form_width}" >{$form.PME_XMLNODE_VALUE} </td> //--> <!-- <td class='FormFieldContent' width="{$form_width}" >{$form.PME_XMLNODE_VALUE} </td> //-->
<td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.PME_XMLNODE_VALUE}</td> <td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.PME_XMLNODE_VALUE}</td>
</tr>
<tr>
<td class="FormTitle" colspan="2" align="">{$form.PME_SUBTITLE4}</td>
</tr> </tr>
<tr> <tr>
<td colspan="2">{$form.PME_OPTIONS}</td> <td colspan="2">{$form.PME_OPTIONS}</td>
@@ -97,4 +100,4 @@
<script type="text/javascript"> <script type="text/javascript">
{$form.PME_JS} {$form.PME_JS}
</script> </script>
</form> </form>

View File

@@ -61,9 +61,11 @@ SELECT XMLNODE_NAME, TYPE FROM dynaForm WHERE XMLNODE_NAME = @@PME_XMLNODE_NAME
<en>Sql</en> <en>Sql</en>
</PME_XMLNODE_VALUE> </PME_XMLNODE_VALUE>
<PME_OPTIONS type="grid" xmlgrid="dynaforms/fields/_options" editRow="" deleteRow="1" insertRow="1" sqlconnection="XMLDB"> <PME_SUBTITLE4 type="subtitle">
<en>Options</en> <en>Options</en>
</PME_OPTIONS> </PME_SUBTITLE4>
<PME_OPTIONS type="grid" xmlgrid="dynaforms/fields/_options" editRow="" deleteRow="1" insertRow="1" sqlconnection="XMLDB" />
<BTN_CANCEL type="button" onclick="cancel();"> <BTN_CANCEL type="button" onclick="cancel();">
<en>Cancel</en> <en>Cancel</en>
@@ -87,4 +89,4 @@ function cancel(){
currentPopupWindow.remove(); currentPopupWindow.remove();
} }
]]></PME_JS> ]]></PME_JS>
</dynaForm> </dynaForm>

View File

@@ -1,4 +1,4 @@
<form id="{$form_id}" name="{$form_name}" action="{$form_action}" class="{$form_className}" method="post" encType="multipart/form-data" style="margin:0px;" onsubmit='return validateForm("{$form_objectRequiredFields}".parseJSON());'> <form id="{$form_id}" name="{$form_name}" action="{$form_action}" class="{$form_className}" method="post" encType="multipart/form-data" style="margin:0px;" onsubmit='return validateForm("{$form_objectRequiredFields}".parseJSON());'>
<div class="borderForm" style="padding-left: 0pt; padding-right: 0pt;"> <div class="borderForm" style="padding-left: 0pt; padding-right: 0pt;">
<div class="boxTop"><div class="a"></div><div class="b"></div><div class="c"></div></div> <div class="boxTop"><div class="a"></div><div class="b"></div><div class="c"></div></div>
<div class="content" style=""> <div class="content" style="">
@@ -23,7 +23,7 @@
<tr> <tr>
<td class="FormLabel" width="{$form_labelWidth}"><font color="red">* </font>{$PME_XMLNODE_NAME}</td> <td class="FormLabel" width="{$form_labelWidth}"><font color="red">* </font>{$PME_XMLNODE_NAME}</td>
<!-- <td class='FormFieldContent' width="{$form_width}" >{$form.PME_XMLNODE_NAME} </td> //--> <!-- <td class='FormFieldContent' width="{$form_width}" >{$form.PME_XMLNODE_NAME} </td> //-->
<td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.PME_XMLNODE_NAME}</td> <td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.PME_XMLNODE_NAME}</td>
</tr> </tr>
<tr style="display: none;"> <tr style="display: none;">
<td colspan="2">{$form.PME_XMLNODE_NAME_OLD}</td> <td colspan="2">{$form.PME_XMLNODE_NAME_OLD}</td>
@@ -34,7 +34,7 @@
<tr> <tr>
<td class="FormLabel" width="{$form_labelWidth}">{$PME_LABEL}</td> <td class="FormLabel" width="{$form_labelWidth}">{$PME_LABEL}</td>
<!-- <td class='FormFieldContent' width="{$form_width}" >{$form.PME_LABEL} </td> //--> <!-- <td class='FormFieldContent' width="{$form_width}" >{$form.PME_LABEL} </td> //-->
<td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.PME_LABEL}</td> <td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.PME_LABEL}</td>
</tr> </tr>
<tr> <tr>
<td class="FormTitle" colspan="2" align="">{$form.PME_SUBTITLE3}</td> <td class="FormTitle" colspan="2" align="">{$form.PME_SUBTITLE3}</td>
@@ -42,17 +42,17 @@
<tr> <tr>
<td class="FormLabel" width="{$form_labelWidth}">{$PME_REQUIRED}</td> <td class="FormLabel" width="{$form_labelWidth}">{$PME_REQUIRED}</td>
<!-- <td class='FormFieldContent' width="{$form_width}" >{$form.PME_REQUIRED} </td> //--> <!-- <td class='FormFieldContent' width="{$form_width}" >{$form.PME_REQUIRED} </td> //-->
<td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.PME_REQUIRED}</td> <td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.PME_REQUIRED}</td>
</tr> </tr>
<tr> <tr>
<td class="FormLabel" width="{$form_labelWidth}">{$PME_DEFAULTVALUE}</td> <td class="FormLabel" width="{$form_labelWidth}">{$PME_DEFAULTVALUE}</td>
<!-- <td class='FormFieldContent' width="{$form_width}" >{$form.PME_DEFAULTVALUE} </td> //--> <!-- <td class='FormFieldContent' width="{$form_width}" >{$form.PME_DEFAULTVALUE} </td> //-->
<td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.PME_DEFAULTVALUE}</td> <td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.PME_DEFAULTVALUE}</td>
</tr> </tr>
<tr> <tr>
<td class="FormLabel" width="{$form_labelWidth}">{$PME_HINT}</td> <td class="FormLabel" width="{$form_labelWidth}">{$PME_HINT}</td>
<!-- <td class='FormFieldContent' width="{$form_width}" >{$form.PME_HINT} </td> //--> <!-- <td class='FormFieldContent' width="{$form_width}" >{$form.PME_HINT} </td> //-->
<td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.PME_HINT}</td> <td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.PME_HINT}</td>
</tr> </tr>
<tr> <tr>
<td class="FormTitle" colspan="2" align="">{$form.PME_SUBTITLE}</td> <td class="FormTitle" colspan="2" align="">{$form.PME_SUBTITLE}</td>
@@ -60,7 +60,7 @@
<tr> <tr>
<td class="FormLabel" width="{$form_labelWidth}">{$PME_MODE}</td> <td class="FormLabel" width="{$form_labelWidth}">{$PME_MODE}</td>
<!-- <td class='FormFieldContent' width="{$form_width}" >{$form.PME_MODE} </td> //--> <!-- <td class='FormFieldContent' width="{$form_width}" >{$form.PME_MODE} </td> //-->
<td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.PME_MODE}</td> <td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.PME_MODE}</td>
</tr> </tr>
<tr> <tr>
<td class="FormTitle" colspan="2" align="">{$form.PME_SUBTITLE2}</td> <td class="FormTitle" colspan="2" align="">{$form.PME_SUBTITLE2}</td>
@@ -68,12 +68,15 @@
<tr> <tr>
<td class="FormLabel" width="{$form_labelWidth}">{$PME_SQLCONNECTION}</td> <td class="FormLabel" width="{$form_labelWidth}">{$PME_SQLCONNECTION}</td>
<!-- <td class='FormFieldContent' width="{$form_width}" >{$form.PME_SQLCONNECTION} </td> //--> <!-- <td class='FormFieldContent' width="{$form_width}" >{$form.PME_SQLCONNECTION} </td> //-->
<td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.PME_SQLCONNECTION}</td> <td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.PME_SQLCONNECTION}</td>
</tr> </tr>
<tr> <tr>
<td class="FormLabel" width="{$form_labelWidth}">{$PME_XMLNODE_VALUE}</td> <td class="FormLabel" width="{$form_labelWidth}">{$PME_XMLNODE_VALUE}</td>
<!-- <td class='FormFieldContent' width="{$form_width}" >{$form.PME_XMLNODE_VALUE} </td> //--> <!-- <td class='FormFieldContent' width="{$form_width}" >{$form.PME_XMLNODE_VALUE} </td> //-->
<td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.PME_XMLNODE_VALUE}</td> <td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.PME_XMLNODE_VALUE}</td>
</tr>
<tr>
<td class="FormTitle" colspan="2" align="">{$form.PME_SUBTITLE4}</td>
</tr> </tr>
<tr> <tr>
<td colspan="2">{$form.PME_OPTIONS}</td> <td colspan="2">{$form.PME_OPTIONS}</td>
@@ -91,5 +94,5 @@
<script type="text/javascript"> <script type="text/javascript">
{$form.PME_JS} {$form.PME_JS}
</script> </script>
</form> </form>

View File

@@ -56,9 +56,11 @@ SELECT XMLNODE_NAME, TYPE FROM dynaForm WHERE XMLNODE_NAME = @@PME_XMLNODE_NAME
<en>Sql</en> <en>Sql</en>
</PME_XMLNODE_VALUE> </PME_XMLNODE_VALUE>
<PME_OPTIONS type="grid" xmlgrid="dynaforms/fields/_options" editRow="" deleteRow="1" insertRow="1" sqlconnection="XMLDB"> <PME_SUBTITLE4 type="subtitle">
<en>Options</en> <en>Options</en>
</PME_OPTIONS> </PME_SUBTITLE4>
<PME_OPTIONS type="grid" xmlgrid="dynaforms/fields/_options" editRow="" deleteRow="1" insertRow="1" sqlconnection="XMLDB" />
<BTN_CANCEL type="button" onclick="cancel();"> <BTN_CANCEL type="button" onclick="cancel();">
<en>Cancel</en> <en>Cancel</en>
@@ -82,4 +84,4 @@ function cancel(){
} }
]]></PME_JS> ]]></PME_JS>
</dynaForm> </dynaForm>