| @@ 293-302 (lines=10) @@ | ||
| 290 | $tableCategory = $table->getVar('table_category'); |
|
| 291 | $language = $this->getLanguage($moduleDirname, 'MB'); |
|
| 292 | $fields = $this->getTableFields($table->getVar('table_mid'), $table->getVar('table_id')); |
|
| 293 | foreach (array_keys($fields) as $f) { |
|
| 294 | $fieldName = $fields[$f]->getVar('field_name'); |
|
| 295 | $fieldParent = $fields[$f]->getVar('field_parent'); |
|
| 296 | if (0 == $f) { |
|
| 297 | $fieldId = $fieldName; |
|
| 298 | } |
|
| 299 | if (1 == $fields[$f]->getVar('field_main')) { |
|
| 300 | $fieldMain = $fieldName; |
|
| 301 | } |
|
| 302 | } |
|
| 303 | $content = $this->getHeaderFilesComments($module, $filename); |
|
| 304 | $content .= $this->getBlocksShow($moduleDirname, $tableName, $tableFieldname, $fields, $fieldId, $fieldParent); |
|
| 305 | $content .= $this->getBlocksEdit($moduleDirname, $tableName, $fieldId, $fieldMain, $language); |
|
| @@ 353-362 (lines=10) @@ | ||
| 350 | $tableName = $table->getVar('table_name'); |
|
| 351 | $language = $this->getLanguage($moduleDirname, 'AM'); |
|
| 352 | $fields = $this->tdmcfile->getTableFields($table->getVar('table_mid'), $table->getVar('table_id')); |
|
| 353 | foreach (array_keys($fields) as $f) { |
|
| 354 | $fieldName = $fields[$f]->getVar('field_name'); |
|
| 355 | $fieldInForm = $fields[$f]->getVar('field_inform'); |
|
| 356 | if (0 == $f) { |
|
| 357 | $fieldId = $fieldName; |
|
| 358 | } |
|
| 359 | if (1 == $fields[$f]->getVar('field_main')) { |
|
| 360 | $fieldMain = $fieldName; |
|
| 361 | } |
|
| 362 | } |
|
| 363 | $content = $this->getHeaderFilesComments($module, $filename); |
|
| 364 | $content .= $this->getAdminPagesHeader($moduleDirname, $tableName, $fieldId); |
|
| 365 | $list = $this->getAdminPagesList($moduleDirname, $table, $language, $fields, $fieldId, $fieldInForm, $fieldMain); |
|
| @@ 705-714 (lines=10) @@ | ||
| 702 | $fields = $this->getTableFields($tableMid, $tableId); |
|
| 703 | $fieldId = null; |
|
| 704 | $fieldParent = null; |
|
| 705 | foreach (array_keys($fields) as $f) { |
|
| 706 | $fieldName = $fields[$f]->getVar('field_name'); |
|
| 707 | $fieldElement = $fields[$f]->getVar('field_element'); |
|
| 708 | if (0 == $f) { |
|
| 709 | $fieldId = $fieldName; |
|
| 710 | } |
|
| 711 | if ($fieldElement > 15) { |
|
| 712 | $fieldParent = $fieldName; |
|
| 713 | } |
|
| 714 | } |
|
| 715 | ||
| 716 | $num = 1; |
|
| 717 | $ret .= $this->getXoopsVersionNotificationGlobal($language, 'category', 'global', 'global', $notifyFiles, $num); |
|