Updating oauth local auth.

This commit is contained in:
Erik Amaru Ortiz
2014-04-21 10:21:01 -04:00
parent 7ea60619fd
commit 109a909628
471 changed files with 13649 additions and 17767 deletions

View File

@@ -1,46 +1,35 @@
<?xml version="1.0" encoding="UTF-8"?>
<dynaForm name="reportTables/reportTables_Edit" type="xmlform" width="100%" enableTemplate="1">
<LANG type="private"/>
<PRO_UID type="hidden"/>
<REP_TAB_UID type="hidden"/>
<TITLE type="title" group="1">
<en>Report Table Information</en>
</TITLE>
<REP_TAB_TITLE type="text" size="50" maxlength="150" required="1">
<en>Title</en>
</REP_TAB_TITLE>
<REP_TAB_NAME type="text" size="50" maxlength="100" validate="Field" required="1">
<en>Table Name</en>
</REP_TAB_NAME>
<REP_TAB_TYPE type="dropdown" required="1">
<en>Type<option name="NORMAL">Global</option><option name="GRID">Grid</option></en>
</REP_TAB_TYPE>
<REP_TAB_GRID type="dropdown" sqlConnection="dbarray" required="1">
<LANG type="private"/>
<PRO_UID type="hidden"/>
<REP_TAB_UID type="hidden"/>
<TITLE type="title" group="1">
<en><![CDATA[Report Table Information]]></en>
</TITLE>
<REP_TAB_TITLE type="text" size="50" maxlength="150" required="1">
<en><![CDATA[Title]]></en>
</REP_TAB_TITLE>
<REP_TAB_NAME type="text" size="50" maxlength="100" validate="Field" required="1">
<en><![CDATA[Table Name]]></en>
</REP_TAB_NAME>
<REP_TAB_TYPE type="dropdown" required="1">
<en><![CDATA[Type]]><option name="NORMAL"><![CDATA[Global]]></option><option name="GRID"><![CDATA[Grid]]></option></en>
</REP_TAB_TYPE>
<REP_TAB_GRID type="dropdown" sqlConnection="dbarray" required="1">
SELECT * FROM processGridFields
<en>Grid Fields</en>
<en><![CDATA[Grid Fields]]></en>
</REP_TAB_GRID>
<FIELDS type="listbox" sqlConnection="dbarray" defaultValue="" required="1" size="20" width="350" >
<FIELDS type="listbox" sqlConnection="dbarray" defaultValue="" required="1" size="20" width="350">
SELECT * FROM processFields
<en>Fields</en>
<en><![CDATA[Fields]]></en>
</FIELDS>
<BTN_CANCEL type="button" onclick="history.back();">
<en>Cancel</en>
</BTN_CANCEL>
<SAVE type="button" onclick="reportTablesSave(this.form);">
<en>Save</en>
</SAVE>
<JS type="JavaScript"><![CDATA[
<BTN_CANCEL type="button" onclick="history.back();">
<en><![CDATA[Cancel]]></en>
</BTN_CANCEL>
<SAVE type="button" onclick="reportTablesSave(this.form);">
<en><![CDATA[Save]]></en>
</SAVE>
<JS type="JavaScript"><![CDATA[
var sOldTableName = getField('REP_TAB_NAME').value;
leimnud.event.add(getField('REP_TAB_TYPE'), 'change', function() {
if (getField('REP_TAB_TYPE').value == 'NORMAL') {
@@ -158,4 +147,4 @@ function reportTablesDelete(sUID)
});
}
]]></JS>
</dynaForm>
</dynaForm>

View File

@@ -1,101 +1,90 @@
<?xml version="1.0" encoding="UTF-8"?>
<dynaForm type="xmlmenu">
<MNU_ADD type="link" value="" link="#" onclick="reportTablesNew(); return false;" colAlign="left" colWidth="35">
<en><![CDATA[New]]></en>
</MNU_ADD>
<PRO_UID type="private"/>
<reportTablesEdit type="private" defaultValue="../reportTables/reportTables_Edit"/>
<reportTablesDelete type="private" defaultValue="../reportTables/reportTables_Delete"/>
<PAGED_TABLE_ID type="private"/>
<JS type="javascript" replaceTags="1"><![CDATA[
<MNU_ADD type="link" value="" link="#" onclick="reportTablesNew(); return false;" colAlign="left" colWidth="35">
<en>New</en>
</MNU_ADD>
function reportTablesNew()
{
popupWindow('@G::LoadTranslation(ID_NEW_REPORT_TABLE)', '@G::encryptlink(@#reportTablesEdit)?PRO_UID=@%PRO_UID' , 500, 550);
}
function reportTablesEdit(sUID)
{
popupWindow('@G::LoadTranslation(ID_EDIT_REPORT_TABLE)', '@G::encryptlink(@#reportTablesEdit)?REP_TAB_UID=' + sUID , 500, 550);
}
function reportTablesSave(form)
{
var bContinue = true;
if (getField('REP_TAB_TITLE').value == '') {
bContinue = false;
}
if (getField('REP_TAB_NAME').value == '') {
bContinue = false;
}
var j = 0;
if (getField('REP_TAB_TYPE').value == 'NORMAL') {
var i;
var oAux = getField('FIELDS');
var iMax = oAux.length;
for (i = 0; i < oAux.length; i++) {
if (oAux.options[i].selected) {
j++;
}
}
if ((j < 1) || (j > 80)) {
bContinue = false;
}
}
else {
if (getField('REP_TAB_GRID').value == '') {
bContinue = false;
}
}
if (bContinue) {
ajax_post(form.action, form, 'POST');
currentPopupWindow.remove();
@#PAGED_TABLE_ID.refresh();
}
else {
if (getField('REP_TAB_TYPE').value == 'NORMAL') {
if (j == 0) {
new leimnud.module.app.alert().make({
label:'@G::LoadTranslation(ID_PLEASE_ENTER_REQUIRED_FIELDS)'
});
}
else {
new leimnud.module.app.alert().make({
label:'@G::LoadTranslation(ID_PLEASE_SELECT_MAX_X_FIELDS)'
});
}
}
else {
new leimnud.module.app.alert().make({
label:'@G::LoadTranslation(ID_PLEASE_ENTER_REQUIRED_FIELDS)'
});
}
}
}
<PRO_UID type="private"/>
<reportTablesEdit type="private" defaultValue="../reportTables/reportTables_Edit"/>
<reportTablesDelete type="private" defaultValue="../reportTables/reportTables_Delete"/>
<PAGED_TABLE_ID type="private"/>
<JS type="javascript" replaceTags="1"><![CDATA[
function reportTablesNew()
{
popupWindow('@G::LoadTranslation(ID_NEW_REPORT_TABLE)', '@G::encryptlink(@#reportTablesEdit)?PRO_UID=@%PRO_UID' , 500, 550);
}
function reportTablesEdit(sUID)
{
popupWindow('@G::LoadTranslation(ID_EDIT_REPORT_TABLE)', '@G::encryptlink(@#reportTablesEdit)?REP_TAB_UID=' + sUID , 500, 550);
}
function reportTablesSave(form)
{
var bContinue = true;
if (getField('REP_TAB_TITLE').value == '') {
bContinue = false;
}
if (getField('REP_TAB_NAME').value == '') {
bContinue = false;
}
var j = 0;
if (getField('REP_TAB_TYPE').value == 'NORMAL') {
var i;
var oAux = getField('FIELDS');
var iMax = oAux.length;
for (i = 0; i < oAux.length; i++) {
if (oAux.options[i].selected) {
j++;
}
}
if ((j < 1) || (j > 80)) {
bContinue = false;
}
}
else {
if (getField('REP_TAB_GRID').value == '') {
bContinue = false;
}
}
if (bContinue) {
ajax_post(form.action, form, 'POST');
currentPopupWindow.remove();
@#PAGED_TABLE_ID.refresh();
}
else {
if (getField('REP_TAB_TYPE').value == 'NORMAL') {
if (j == 0) {
new leimnud.module.app.alert().make({
label:'@G::LoadTranslation(ID_PLEASE_ENTER_REQUIRED_FIELDS)'
});
}
else {
new leimnud.module.app.alert().make({
label:'@G::LoadTranslation(ID_PLEASE_SELECT_MAX_X_FIELDS)'
});
}
}
else {
new leimnud.module.app.alert().make({
label:'@G::LoadTranslation(ID_PLEASE_ENTER_REQUIRED_FIELDS)'
});
}
}
}
function reportTablesDelete(sUID)
{
new leimnud.module.app.confirm().make({
label:'@G::LoadTranslation(ID_MSG_CONFIRM_DELETE_REPORT_TABLE)',
action:function()
{
ajax_function('@G::encryptlink(@#reportTablesDelete)', '', 'REP_TAB_UID=' + sUID, 'POST');
@#PAGED_TABLE_ID.refresh();
}.extend(this)
});
}
function reportTablesDelete(sUID)
{
new leimnud.module.app.confirm().make({
label:'@G::LoadTranslation(ID_MSG_CONFIRM_DELETE_REPORT_TABLE)',
action:function()
{
ajax_function('@G::encryptlink(@#reportTablesDelete)', '', 'REP_TAB_UID=' + sUID, 'POST');
@#PAGED_TABLE_ID.refresh();
}.extend(this)
});
}
]]></JS>
<SEARCH_FILTER_FORM type="private"/>
</dynaForm>
<SEARCH_FILTER_FORM type="private"/>
</dynaForm>

View File

@@ -1,27 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<dynaForm sqlConnection="" menu="reportTables/reportTables_Options" width="100%" rowsPerPage="10">
<!--<dynaForm sqlConnection="" width="100%" rowsPerPage="10">-->
<REP_TAB_UID type="hidden" showInTable="0"/>
<REP_TAB_TITLE type="text" colWidth="350" titleAlign="left" align="left">
<en>Title</en>
</REP_TAB_TITLE>
<EDIT type="link" colWidth="40" value="@G::LoadTranslation(ID_EDIT)" link="#" onclick="reportTablesEdit(@QREP_TAB_UID);return false;"><en></en></EDIT>
<DELETE type="link" colWidth="40" value="@G::LoadTranslation(ID_DELETE)" link="#" onclick="reportTablesDelete(@QREP_TAB_UID);return false;"><en></en></DELETE>
<SEARCH type="button" onclick="pagedTableFilter(this.form);" showInTable="0">
<en>Apply Filter</en>
</SEARCH>
<PAGED_TABLE_ID type="private" showInTable="0"/>
<JSFILTER type="javascript" replaceTags="1" showInTable="0">
<!--<dynaForm sqlConnection="" width="100%" rowsPerPage="10">-->
<REP_TAB_UID type="hidden" showInTable="0"/>
<REP_TAB_TITLE type="text" colWidth="350" titleAlign="left" align="left">
<en><![CDATA[Title]]></en>
</REP_TAB_TITLE>
<EDIT type="link" colWidth="40" value="@G::LoadTranslation(ID_EDIT)" link="#" onclick="reportTablesEdit(@QREP_TAB_UID);return false;">
<en><![CDATA[]]></en>
</EDIT>
<DELETE type="link" colWidth="40" value="@G::LoadTranslation(ID_DELETE)" link="#" onclick="reportTablesDelete(@QREP_TAB_UID);return false;">
<en><![CDATA[]]></en>
</DELETE>
<SEARCH type="button" onclick="pagedTableFilter(this.form);" showInTable="0">
<en><![CDATA[Apply Filter]]></en>
</SEARCH>
<PAGED_TABLE_ID type="private" showInTable="0"/>
<JSFILTER type="javascript" replaceTags="1" showInTable="0">
function pagedTableFilter(form) {
@#PAGED_TABLE_ID.doFilter(form);
}
</JSFILTER>
</dynaForm>
</dynaForm>