Update ExtJs functionality for Additional Tables
This commit is contained in:
@@ -35,8 +35,10 @@ $oAdditionalTables->createXmlList($_GET['sUID']);
|
||||
$arrTable = $oAdditionalTables->load($_GET['sUID'],true);
|
||||
$fields = $arrTable['FIELDS'];
|
||||
|
||||
//print_r($arrTable);
|
||||
//die;
|
||||
G::LoadClass('configuration');
|
||||
$c = new Configurations();
|
||||
$configPage = $c->getConfiguration('additionalTablesData', 'pageSize','',$_SESSION['USER_LOGGED']);
|
||||
$Config['pageSize'] = isset($configPage['pageSize']) ? $configPage['pageSize'] : 20;
|
||||
|
||||
$arrNames = Array();
|
||||
$arrDescrip = Array();
|
||||
@@ -56,10 +58,6 @@ foreach ($fields as $field){
|
||||
$oHeadPublisher->addExtJsScript('additionalTables/additionalTablesData', false); //adding a javascript file .js
|
||||
$oHeadPublisher->addContent('additionalTables/additionalTablesData'); //adding a html file .html.
|
||||
|
||||
$labels = G::getTranslations(Array('ID_EXPORT','ID_IMPORT','ID_EDIT','ID_DELETE', 'ID_DATA',
|
||||
'ID_NEW_ADD_TABLE','ID_DESCRIPTION','ID_NAME','ID_CONFIRM','ID_ADDITIONAL_TABLES','ID_SELECT_FIRST_PM_TABLE_ROW',
|
||||
'ID_CONFIRM_DELETE_PM_TABLE','ID_ADD_ROW','ID_BACK','ID_SELECT_FIRST_ROW','ID_MSG_CONFIRM_DELETE_ROW'));
|
||||
|
||||
$table_uid = Array();
|
||||
$table_uid['UID'] = $_GET['sUID'];
|
||||
$table_uid['COUNTER'] = $c;
|
||||
@@ -67,57 +65,9 @@ $table_uid['TABLE_NAME'] = $arrTable['ADD_TAB_NAME'];
|
||||
$table_uid['PKF'] = $xPKF;
|
||||
|
||||
|
||||
$oHeadPublisher->assign('TRANSLATIONS', $labels);
|
||||
$oHeadPublisher->assign('TABLES', $table_uid);
|
||||
$oHeadPublisher->assign('NAMES', $arrNames);
|
||||
$oHeadPublisher->assign('VALUES', $arrDescrip);
|
||||
$oHeadPublisher->assign('CONFIG', $Config);
|
||||
|
||||
G::RenderPage('publish', 'extJs');
|
||||
//global $RBAC;
|
||||
//if ($RBAC->userCanAccess('PM_SETUP') != 1) {
|
||||
// G::SendTemporalMessage('ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels');
|
||||
// G::header('location: ../login/login');
|
||||
// die;
|
||||
//}
|
||||
//
|
||||
//require_once 'classes/model/AdditionalTables.php';
|
||||
//$oAdditionalTables = new AdditionalTables();
|
||||
//$oAdditionalTables->createXmlList($_GET['sUID']);
|
||||
//
|
||||
//$G_MAIN_MENU = 'processmaker';
|
||||
////$G_SUB_MENU = 'setup';
|
||||
//$G_ID_MENU_SELECTED = 'SETUP';
|
||||
////$G_ID_SUB_MENU_SELECTED = 'ADDITIONAL_TABLES';
|
||||
//
|
||||
//$ocaux = $oAdditionalTables->getDataCriteria($_GET['sUID']);
|
||||
//
|
||||
////var_dump($ocaux);
|
||||
//
|
||||
//$rs = AdditionalTablesPeer::DoSelectRs ($ocaux);
|
||||
//$rs->setFetchmode (ResultSet::FETCHMODE_ASSOC);
|
||||
//
|
||||
//$fieldN = Array('DUMMY'=>'char');
|
||||
//
|
||||
//$rows = Array();
|
||||
//while($rs->next()){
|
||||
// $rows[] = $rs->getRow();
|
||||
//}
|
||||
//
|
||||
//$rows = array_merge(Array($fieldN), $rows);
|
||||
//
|
||||
//print_r($rows);
|
||||
////die();
|
||||
//
|
||||
//global $_DBArray;
|
||||
//$_DBArray['virtual_pmtable'] = $rows;
|
||||
//$_SESSION['_DBArray'] = $_DBArray;
|
||||
//G::LoadClass('ArrayPeer');
|
||||
//$oCriteria = new Criteria('dbarray');
|
||||
//$oCriteria->setDBArrayTable('virtual_pmtable');
|
||||
//
|
||||
//
|
||||
//$G_PUBLISH = new Publisher;
|
||||
////$G_PUBLISH->AddContent('xmlform', 'xmlform', 'additionalTables/additionalTablesTitle', '', $oAdditionalTables->load($_GET['sUID']));
|
||||
//
|
||||
//$G_PUBLISH->AddContent('propeltable', 'paged-table', 'xmlLists/' . $_GET['sUID'], $oCriteria, array('ADD_TAB_UID' => $_GET['sUID']), '', '', '', PATH_DYNAFORM);
|
||||
//G::RenderPage('publishBlank', 'blank');
|
||||
G::RenderPage('publish', 'extJs');
|
||||
Reference in New Issue
Block a user