dtable.php 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. global $lang;
  3. $config->budget->dtable = new stdclass();
  4. $config->budget->dtable->fieldList['id']['title'] = $lang->idAB;
  5. $config->budget->dtable->fieldList['id']['name'] = 'id';
  6. $config->budget->dtable->fieldList['id']['type'] = 'checkID';
  7. $config->budget->dtable->fieldList['id']['sortType'] = true;
  8. $config->budget->dtable->fieldList['id']['width'] = '80';
  9. $config->budget->dtable->fieldList['id']['required'] = true;
  10. $config->budget->dtable->fieldList['name']['title'] = $lang->budget->name;
  11. $config->budget->dtable->fieldList['name']['name'] = 'name';
  12. $config->budget->dtable->fieldList['name']['type'] = 'title';
  13. $config->budget->dtable->fieldList['name']['flex'] = 1;
  14. $config->budget->dtable->fieldList['name']['fixed'] = 'left';
  15. $config->budget->dtable->fieldList['name']['link'] = array('module' => 'budget', 'method' => 'view', 'params' => 'id={id}');
  16. $config->budget->dtable->fieldList['name']['sortType'] = true;
  17. $config->budget->dtable->fieldList['stage']['title'] = $lang->budget->stage;
  18. $config->budget->dtable->fieldList['stage']['name'] = 'stage';
  19. $config->budget->dtable->fieldList['stage']['type'] = 'text';
  20. $config->budget->dtable->fieldList['stage']['sortType'] = true;
  21. $config->budget->dtable->fieldList['subject']['title'] = $lang->budget->subject;
  22. $config->budget->dtable->fieldList['subject']['name'] = 'subject';
  23. $config->budget->dtable->fieldList['subject']['type'] = 'text';
  24. $config->budget->dtable->fieldList['subject']['sortType'] = true;
  25. $config->budget->dtable->fieldList['amount']['title'] = $lang->budget->amount;
  26. $config->budget->dtable->fieldList['amount']['name'] = 'amount';
  27. $config->budget->dtable->fieldList['amount']['type'] = 'text';
  28. $config->budget->dtable->fieldList['amount']['sortType'] = true;
  29. $config->budget->dtable->fieldList['actions']['title'] = $lang->actions;
  30. $config->budget->dtable->fieldList['actions']['name'] = 'actions';
  31. $config->budget->dtable->fieldList['actions']['type'] = 'actions';
  32. $config->budget->dtable->fieldList['actions']['fixed'] = 'right';
  33. $config->budget->dtable->fieldList['actions']['width'] = '120';
  34. $config->budget->dtable->fieldList['actions']['list'] = $config->budget->actionList;
  35. $config->budget->dtable->fieldList['actions']['menu'] = array('edit', 'delete');
  36. $config->budget->dtable->fieldList['actions']['sortType'] = false;