Exemplo n.º 1
0
 $dViewControlsMap = array();
 $flyId = $ids + 1;
 for ($d = 0; $d < count($dpParams['ids']); $d++) {
     $options = array();
     //array of params for classes
     $options["mode"] = LIST_DETAILS;
     $options["pageType"] = PAGE_LIST;
     $options["masterPageType"] = PAGE_ADD;
     $options["mainMasterPageType"] = PAGE_ADD;
     $options['masterTable'] = "pad.pad_customer";
     $options['firstTime'] = 1;
     $strTableName = $dpParams['strTableNames'][$d];
     include_once "include/" . GetTableURL($strTableName) . "_settings.php";
     $layout = GetPageLayout(GoodFieldName($strTableName), PAGE_LIST);
     if ($layout) {
         $rtl = $xt->getReadingOrder() == 'RTL' ? 'RTL' : '';
         $xt->cssFiles[] = array("stylepath" => "styles/" . $layout->style . '/style' . $rtl . ".css", "pagestylepath" => "pagestyles/" . $layout->name . $rtl . ".css");
         $xt->IEcssFiles[] = array("stylepathIE" => "styles/" . $layout->style . '/styleIE' . ".css");
     }
     $options['xt'] = new Xtempl();
     $options['id'] = $dpParams['ids'][$d];
     $options['flyId'] = $flyId++;
     $mkr = 1;
     foreach ($mKeys[$strTableName] as $mk) {
         if ($defvalues[$mk]) {
             $options['masterKeysReq'][$mkr++] = $defvalues[$mk];
         } else {
             $options['masterKeysReq'][$mkr++] = '';
         }
     }
     $listPageObject = ListPage::createListPage($strTableName, $options);