demand.php 2.2 KB

1234567891011121314151617181920212223
  1. <?php
  2. if($config->edition == 'ipd' && $config->vision == 'or')
  3. {
  4. global $lang, $app;
  5. $app->loadLang('demand');
  6. $config->block->demand = new stdclass();
  7. $config->block->demand->dtable = new stdclass();
  8. $config->block->demand->dtable->fieldList = array();
  9. $config->block->demand->dtable->fieldList['id'] = array('name' => 'id', 'title' => $lang->idAB, 'type' => 'id' , 'sort' => 'number');
  10. $config->block->demand->dtable->fieldList['title'] = array('name' => 'title', 'title' => $lang->demand->demandTitle, 'type' => 'title', 'sort' => true, 'flex' => 1, 'link' => array('module' => 'demand', 'method' => 'view', 'params' => 'demandID={id}'));
  11. $config->block->demand->dtable->fieldList['pri'] = array('name' => 'pri', 'title' => $lang->demand->pri, 'type' => 'pri', 'sort' => true);
  12. $config->block->demand->dtable->fieldList['status'] = array('name' => 'status', 'title' => $lang->demand->status, 'type' => 'status', 'sort' => true, 'statusMap' => $lang->demand->statusList);
  13. $config->block->demand->dtable->fieldList['category'] = array('name' => 'category', 'title' => $lang->demand->category, 'type' => 'category', 'sort' => true, 'map' => $lang->demand->categoryList);
  14. $config->block->demand->dtable->fieldList['duration'] = array('name' => 'duration', 'title' => $lang->demand->duration, 'type' => 'duration', 'sort' => true, 'map' => $lang->demand->durationList);
  15. $config->block->demand->dtable->fieldList['BSA'] = array('name' => 'BSA', 'title' => $lang->demand->BSA, 'type' => 'BSA', 'sort' => true, 'map' => $lang->demand->bsaList);
  16. $config->block->demand->dtable->short = new stdclass();
  17. $config->block->demand->dtable->short->fieldList['id'] = $config->block->demand->dtable->fieldList['id'];
  18. $config->block->demand->dtable->short->fieldList['title'] = $config->block->demand->dtable->fieldList['title'];
  19. $config->block->demand->dtable->short->fieldList['pri'] = $config->block->demand->dtable->fieldList['pri'];
  20. $config->block->demand->dtable->short->fieldList['status'] = $config->block->demand->dtable->fieldList['status'];
  21. }