[2010-12-08 14:04:02] Rev:654 | 1 files Modified

hector: hardcoded labels adjustment
--------------------------------------------------------------------------------
1. M /trunk/workflow/engine/xmlform/additionalTables/additionalTablesOptions.xml
This commit is contained in:
Erik Amaru Ortiz
2010-12-09 14:12:17 +00:00
parent 6113398aba
commit cfee5e6ce9

View File

@@ -1,119 +1,116 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<dynaForm type="xmlmenu"> <dynaForm type="xmlmenu">
<MNU_ADD type="link" link="additionalTablesNew" colAlign="left" colWidth="50">
<MNU_ADD type="link" link="additionalTablesNew" colAlign="left" colWidth="50"> <en>New</en>
<en>New</en> </MNU_ADD>
</MNU_ADD> <MNU_IMPORT type="link" link="additionalTablesToImport" colAlign="left" colWidth="60">
<MNU_IMPORT type="link" link="additionalTablesToImport" colAlign="left" colWidth="60"> <en>Import</en>
<en>Import</en> </MNU_IMPORT>
</MNU_IMPORT> <MNU_EXPORT type="link" link="#" onclick="toExport()" colAlign="left" colWidth="100">
<MNU_EXPORT type="link" link="#" onclick="toExport()" colAlign="left" colWidth="100"> <en>Export</en>
<en>Export</en> </MNU_EXPORT>
</MNU_EXPORT> <PAGED_TABLE_ID type="private"/>
<JS type="javascript" replaceTags="1"><![CDATA[
<PAGED_TABLE_ID type="private"/>
var additionalTablesDelete = function(sUID) {
<JS type="javascript" replaceTags="1"><![CDATA[ new leimnud.module.app.confirm().make({
label: '@G::LoadTranslation(ID_DELETE_TABLE_COLLECTION)',
var additionalTablesDelete = function(sUID) { action:function() {
new leimnud.module.app.confirm().make({ ajax_function(@G::encryptlink('additionalTablesDelete'), '', 'sUID=' + sUID, 'POST');
label:'Dou you want to delete this collection?', @#PAGED_TABLE_ID.refresh();
action:function() { }.extend(this)
ajax_function(@G::encryptlink('additionalTablesDelete'), '', 'sUID=' + sUID, 'POST'); });
@#PAGED_TABLE_ID.refresh(); };
}.extend(this)
}); var exportPanel;
}; function toExport(){
oPanel = new leimnud.module.panel();
var exportPanel; oPanel.options = {
function toExport(){ size : {w:700,h:450},
oPanel = new leimnud.module.panel(); position: {x:0,y:0,center:true},
oPanel.options = { title : '',
size : {w:700,h:450}, theme : "processmaker",
position: {x:0,y:0,center:true}, statusBar:false,
title : '', control : {resize:false,roll:false,drag:true},
theme : "processmaker", fx : {modal:true,opacity:true,blinkToFront:false,fadeIn:false,drag:true}
statusBar:false, };
control : {resize:false,roll:false,drag:true}, oPanel.events = {
fx : {modal:true,opacity:true,blinkToFront:false,fadeIn:false,drag:true} remove: function() {
}; delete(oPanel);
oPanel.events = { resetChecks();
remove: function() { }.extend(this)
delete(oPanel); };
resetChecks(); oPanel.make();
}.extend(this) oPanel.loader.show();
}; var oRPC = new leimnud.module.rpc.xmlhttp({
oPanel.make(); url : 'additionalTablesAjax',
oPanel.loader.show(); args: 'action=exportexporView'
var oRPC = new leimnud.module.rpc.xmlhttp({ });
url : 'additionalTablesAjax', oRPC.callback = function(rpc) {
args: 'action=exportexporView' oPanel.loader.hide();
}); var scs=rpc.xmlhttp.responseText.extractScript();
oRPC.callback = function(rpc) { oPanel.addContent(rpc.xmlhttp.responseText);
oPanel.loader.hide(); scs.evalScript();
var scs=rpc.xmlhttp.responseText.extractScript(); }.extend(this);
oPanel.addContent(rpc.xmlhttp.responseText); oRPC.make();
scs.evalScript(); exportPanel = oPanel;
}.extend(this); }
oRPC.make();
exportPanel = oPanel; function resetChecks(){
} checks_selected_ids.length = 0;
checks_selected_schema.length = 0;
function resetChecks(){ checks_selected_data.length = 0;
checks_selected_ids.length = 0; }
checks_selected_schema.length = 0;
checks_selected_data.length = 0; function doExport(){
}
if( checks_selected_ids.length == 0 ){
function doExport(){ new leimnud.module.app.alert().make({label: '@G::LoadTranslation(ID_SELECT_TABLE)'});
return 0;
if( checks_selected_ids.length == 0 ){ }
new leimnud.module.app.alert().make({label: '@G::LoadTranslation(ID_SELECT_TABLE)'});
return 0; var i;
} for(i=0; i<checks_selected_ids.length; i++){
if( !in_arrayx(checks_selected_schema, checks_selected_ids[i])){
var i; if( !in_arrayx(checks_selected_data, checks_selected_ids[i])){
for(i=0; i<checks_selected_ids.length; i++){ new leimnud.module.app.alert().make({label: '@G::LoadTranslation(ID_SELECT_OPTION_TABLE)'});
if( !in_arrayx(checks_selected_schema, checks_selected_ids[i])){ return 0;
if( !in_arrayx(checks_selected_data, checks_selected_ids[i])){ }
new leimnud.module.app.alert().make({label: '@G::LoadTranslation(ID_SELECT_OPTION_TABLE)'}); }
return 0; }
}
} var answer;
} answer = ajax_function(@G::encryptlink('additionalTablesAjax'), 'existClass', 'tables='+checks_selected_ids+'&schema='+checks_selected_schema+"&data="+checks_selected_data, 'POST');
if(answer.length > 1){
var answer; alert(G_STRINGS.ID_CLASS_TABLE_DOESNT_EXIST);return false;
answer = ajax_function(@G::encryptlink('additionalTablesAjax'), 'existClass', 'tables='+checks_selected_ids+'&schema='+checks_selected_schema+"&data="+checks_selected_data, 'POST'); //new leimnud.module.app.alert().make({label: '@G::LoadTranslation(ID_CLASS_TABLE_DOESNT_EXIST)' + answer });
if(answer.length > 1){ //return 0;
alert(G_STRINGS.ID_CLASS_TABLE_DOESNT_EXIST);return false; }
//new leimnud.module.app.alert().make({label: '@G::LoadTranslation(ID_CLASS_TABLE_DOESNT_EXIST)' + answer });
//return 0;
} exportPanel.loader.show();
var oRPC = new leimnud.module.rpc.xmlhttp({
url : 'additionalTablesAjax',
exportPanel.loader.show(); args : 'action=doExport&tables='+checks_selected_ids+'&schema='+checks_selected_schema+"&data="+checks_selected_data
var oRPC = new leimnud.module.rpc.xmlhttp({ });
url : 'additionalTablesAjax', exportPanel.clearContent();
args : 'action=doExport&tables='+checks_selected_ids+'&schema='+checks_selected_schema+"&data="+checks_selected_data exportPanel.loader.show();
}); oRPC.callback = function(rpc) {
exportPanel.clearContent(); exportPanel.loader.hide();
exportPanel.loader.show(); var scs=rpc.xmlhttp.responseText.extractScript();
oRPC.callback = function(rpc) { exportPanel.addContent(rpc.xmlhttp.responseText);
exportPanel.loader.hide(); scs.evalScript();
var scs=rpc.xmlhttp.responseText.extractScript(); }.extend(this);
exportPanel.addContent(rpc.xmlhttp.responseText); resetChecks();
scs.evalScript(); oRPC.make();
}.extend(this); }
resetChecks();
oRPC.make(); function in_arrayx(a, e){
} for(j=0; j<a.length; j++){
if(a[j] == e) return true;
function in_arrayx(a, e){ }
for(j=0; j<a.length; j++){ return false;
if(a[j] == e) return true; }
}
return false; ]]></JS>
} </dynaForm>
]]></JS>
</dynaForm>