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 .= " <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";
$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
$head .= $this->getExtJsLibraries();

View File

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

View File

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

View File

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

View File

@@ -723,15 +723,15 @@ Ext.onReady(function(){
comboDbConnections.getStore().reload({params:{PRO_UID : PRO_UID}});
if (Ext.getCmp('REP_TAB_TYPE').getValue() == 'GRID') {
gridsListStore.reload({params:{PRO_UID : PRO_UID}});
}
}
if (TABLE === false) {
loadFieldNormal();
} //else if(typeof avFieldsList != 'undefined')
//loadAvFieldsFromArray(avFieldsList);
} else {
}
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="boxTop"><div class="a"></div><div class="b"></div><div class="c"></div></div>
@@ -27,7 +27,7 @@
<tr>
<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_fieldContentWidth}">{$form.PME_XMLNODE_NAME}</td>
<td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.PME_XMLNODE_NAME}</td>
</tr>
<tr style="display: none;">
<td colspan="2">{$form.PME_XMLNODE_NAME_OLD}</td>
@@ -38,7 +38,7 @@
<tr>
<td class="FormLabel" width="{$form_labelWidth}">{$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>
<td class="FormTitle" colspan="2" align="">{$form.PME_SUBTITLE3}</td>
@@ -46,12 +46,12 @@
<tr>
<td class="FormLabel" width="{$form_labelWidth}">{$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>
<td class="FormLabel" width="{$form_labelWidth}">{$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>
<td class="FormTitle" colspan="2" align="">{$form.PME_SUBTITLE}</td>
@@ -59,7 +59,7 @@
<tr>
<td class="FormLabel" width="{$form_labelWidth}">{$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>
<td class="FormTitle" colspan="2" align="">{$form.PME_SUBTITLE2}</td>
@@ -67,12 +67,15 @@
<tr>
<td class="FormLabel" width="{$form_labelWidth}">{$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>
<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_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>
<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>
</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>
</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();">
<en>Cancel</en>
@@ -79,4 +80,4 @@ function cancel(){
currentPopupWindow.remove();
}
]]></PME_JS>
</dynaForm>
</dynaForm>

View File

@@ -120,19 +120,19 @@ function masks(e){
oPanel.options = {
size : {w:400, h:370},
position : {x:e.clientX, y:e.clientY-300, center:false},
title : 'Masks List',
title : _('ID_MASKS_LIST'),
statusBar : false,
control : {resize:false,roll:false,drag:true},
fx : {modal:true,opacity:true,blinkToFront:false,fadeIn:false,drag:true}
};
oPanel.make();
var oRPC = new leimnud.module.rpc.xmlhttp({url : '../dynaforms/datemask'});
oRPC.callback = function(rpc) {
oPanel.addContent(rpc.xmlhttp.responseText);
}.extend(this);
oRPC.make();
return false;
}
@@ -223,7 +223,7 @@ function validDate() {
if(getField('PME_BEFOREDATE').value == ''){
msgBox('@G::LoadTranslation(ID_SEL_BEFORE_DATE)', "alert");
return false;
}
}
if(getField('PME_AFTERDATE').value == ''){
msgBox('@G::LoadTranslation(ID_SEL_AFTER_DATE)', "alert");
@@ -234,7 +234,7 @@ function validDate() {
if(getField('PME_STARTDATE').value == ''){
msgBox('@G::LoadTranslation(ID_SEL_START_DATE)', "alert");
return false;
}
}
if(getField('PME_ENDDATE').value == ''){
msgBox('@G::LoadTranslation(ID_SEL_END_DATE)', "alert");
@@ -246,4 +246,4 @@ function validDate() {
}
]]></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="boxTop"><div class="a"></div><div class="b"></div><div class="c"></div></div>
@@ -24,7 +24,7 @@
<tr>
<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_fieldContentWidth}">{$form.PME_XMLNODE_NAME}</td>
<td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.PME_XMLNODE_NAME}</td>
</tr>
<tr style="display: none;">
<td colspan="2">{$form.PME_XMLNODE_NAME_OLD}</td>
@@ -35,7 +35,7 @@
<tr>
<td class="FormLabel" width="{$form_labelWidth}">{$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>
<td class="FormTitle" colspan="2" align="">{$form.PME_SUBTITLE3}</td>
@@ -43,31 +43,31 @@
<tr>
<td class="FormLabel" width="{$form_labelWidth}">{$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>
<td class="FormLabel" width="{$form_labelWidth}">{$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>
<td class="FormLabel" width="{$form_labelWidth}">{$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>
<td class="FormLabel" width="{$form_labelWidth}">{$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>
<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>
<td class="FormLabel" width="{$form_labelWidth}">{$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>
<td class="FormTitle" colspan="2" align="">{$form.PME_SUBTITLE}</td>
@@ -75,7 +75,7 @@
<tr>
<td class="FormLabel" width="{$form_labelWidth}">{$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>
<td class="FormTitle" colspan="2" align="">{$form.PME_SUBTITLE2}</td>
@@ -83,12 +83,15 @@
<tr>
<td class="FormLabel" width="{$form_labelWidth}">{$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>
<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_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>
<td colspan="2">{$form.PME_OPTIONS}</td>
@@ -106,5 +109,5 @@
<script type="text/javascript">
{$form.PME_JS}
</script>
</form>

View File

@@ -66,9 +66,11 @@ select XMLNODE_NAME, XMLNODE_NAME AS NAME FROM dynaForm WHERE XMLNODE_NAME <> @@
<en>Sql</en>
</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>
</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();">
<en>Cancel</en>
@@ -120,4 +122,4 @@ function cancel(){
}
]]></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="boxTop"><div class="a"></div><div class="b"></div><div class="c"></div></div>
@@ -24,7 +24,7 @@
<tr>
<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_fieldContentWidth}">{$form.PME_XMLNODE_NAME}</td>
<td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.PME_XMLNODE_NAME}</td>
</tr>
<tr style="display: none;">
<td colspan="2">{$form.PME_XMLNODE_NAME_OLD}</td>
@@ -35,7 +35,7 @@
<tr>
<td class="FormLabel" width="{$form_labelWidth}">{$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>
<td class="FormTitle" colspan="2" align="">{$form.PME_SUBTITLE3}</td>
@@ -43,17 +43,17 @@
<tr>
<td class="FormLabel" width="{$form_labelWidth}">{$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>
<td class="FormLabel" width="{$form_labelWidth}">{$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>
<td class="FormLabel" width="{$form_labelWidth}">{$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>
<td class="FormTitle" colspan="2" align="">{$form.PME_SUBTITLE}</td>
@@ -61,12 +61,12 @@
<tr>
<td class="FormLabel" width="{$form_labelWidth}">{$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>
<td class="FormLabel" width="{$form_labelWidth}">{$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>
<td class="FormTitle" colspan="2" align="">{$form.PME_SUBTITLE2}</td>
@@ -74,12 +74,15 @@
<tr>
<td class="FormLabel" width="{$form_labelWidth}">{$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>
<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_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>
<td colspan="2">{$form.PME_OPTIONS}</td>
@@ -97,4 +100,4 @@
<script type="text/javascript">
{$form.PME_JS}
</script>
</form>
</form>

View File

@@ -61,9 +61,11 @@ SELECT XMLNODE_NAME, TYPE FROM dynaForm WHERE XMLNODE_NAME = @@PME_XMLNODE_NAME
<en>Sql</en>
</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>
</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();">
<en>Cancel</en>
@@ -87,4 +89,4 @@ function cancel(){
currentPopupWindow.remove();
}
]]></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="boxTop"><div class="a"></div><div class="b"></div><div class="c"></div></div>
<div class="content" style="">
@@ -23,7 +23,7 @@
<tr>
<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_fieldContentWidth}">{$form.PME_XMLNODE_NAME}</td>
<td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.PME_XMLNODE_NAME}</td>
</tr>
<tr style="display: none;">
<td colspan="2">{$form.PME_XMLNODE_NAME_OLD}</td>
@@ -34,7 +34,7 @@
<tr>
<td class="FormLabel" width="{$form_labelWidth}">{$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>
<td class="FormTitle" colspan="2" align="">{$form.PME_SUBTITLE3}</td>
@@ -42,17 +42,17 @@
<tr>
<td class="FormLabel" width="{$form_labelWidth}">{$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>
<td class="FormLabel" width="{$form_labelWidth}">{$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>
<td class="FormLabel" width="{$form_labelWidth}">{$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>
<td class="FormTitle" colspan="2" align="">{$form.PME_SUBTITLE}</td>
@@ -60,7 +60,7 @@
<tr>
<td class="FormLabel" width="{$form_labelWidth}">{$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>
<td class="FormTitle" colspan="2" align="">{$form.PME_SUBTITLE2}</td>
@@ -68,12 +68,15 @@
<tr>
<td class="FormLabel" width="{$form_labelWidth}">{$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>
<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_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>
<td colspan="2">{$form.PME_OPTIONS}</td>
@@ -91,5 +94,5 @@
<script type="text/javascript">
{$form.PME_JS}
</script>
</form>
</form>

View File

@@ -56,9 +56,11 @@ SELECT XMLNODE_NAME, TYPE FROM dynaForm WHERE XMLNODE_NAME = @@PME_XMLNODE_NAME
<en>Sql</en>
</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>
</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();">
<en>Cancel</en>
@@ -82,4 +84,4 @@ function cancel(){
}
]]></PME_JS>
</dynaForm>
</dynaForm>