dtable.php 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <?php
  2. global $lang;
  3. $config->researchplan->actionList['edit']['icon'] = 'edit';
  4. $config->researchplan->actionList['edit']['hint'] = $lang->researchplan->edit;
  5. $config->researchplan->actionList['edit']['text'] = $lang->researchplan->edit;
  6. $config->researchplan->actionList['edit']['url'] = array('module' => 'researchplan', 'method' => 'edit', 'params' => 'id={id}');
  7. $config->researchplan->actionList['edit']['order'] = 5;
  8. $config->researchplan->actionList['createReport']['icon'] = 'summary';
  9. $config->researchplan->actionList['createReport']['hint'] = $lang->researchplan->createReport;
  10. $config->researchplan->actionList['createReport']['text'] = $lang->researchplan->createReport;
  11. $config->researchplan->actionList['createReport']['url'] = array('module' => 'researchreport', 'method' => 'create', 'params' => 'projectID={project}&id={id}');
  12. $config->researchplan->actionList['createReport']['order'] = 5;
  13. $config->researchplan->actionList['delete']['icon'] = 'trash';
  14. $config->researchplan->actionList['delete']['hint'] = $lang->researchplan->delete;
  15. $config->researchplan->actionList['delete']['text'] = $lang->researchplan->delete;
  16. $config->researchplan->actionList['delete']['url'] = array('module' => 'researchplan', 'method' => 'delete', 'params' => 'id={id}&confirm=yes');
  17. $config->researchplan->actionList['delete']['order'] = 10;
  18. $config->researchplan->actionList['delete']['className'] = 'ajax-submit';
  19. $config->researchplan->actionList['delete']['data-confirm'] = array('message' => $lang->researchplan->confirmDelete, 'icon' => 'icon-exclamation-sign', 'iconClass' => 'warning-pale rounded-full icon-2x');
  20. $config->researchplan->dtable = new stdclass();
  21. $config->researchplan->dtable->fieldList['id']['title'] = $lang->idAB;
  22. $config->researchplan->dtable->fieldList['id']['type'] = 'checkID';
  23. $config->researchplan->dtable->fieldList['id']['sortType'] = true;
  24. $config->researchplan->dtable->fieldList['id']['checkbox'] = false;
  25. $config->researchplan->dtable->fieldList['id']['required'] = true;
  26. $config->researchplan->dtable->fieldList['name']['title'] = $lang->researchplan->name;
  27. $config->researchplan->dtable->fieldList['name']['fixed'] = 'left';
  28. $config->researchplan->dtable->fieldList['name']['flex'] = 1;
  29. $config->researchplan->dtable->fieldList['name']['type'] = 'nestedTitle';
  30. $config->researchplan->dtable->fieldList['name']['nestedToggle'] = false;
  31. $config->researchplan->dtable->fieldList['name']['sortType'] = true;
  32. $config->researchplan->dtable->fieldList['name']['link'] = array('url' => array('module' => 'researchplan', 'method' => 'view', 'params' => 'id={id}'));
  33. $config->researchplan->dtable->fieldList['name']['required'] = true;
  34. $config->researchplan->dtable->fieldList['customer']['title'] = $lang->researchplan->customer;
  35. $config->researchplan->dtable->fieldList['customer']['type'] = 'text';
  36. $config->researchplan->dtable->fieldList['customer']['sortType'] = true;
  37. $config->researchplan->dtable->fieldList['customer']['show'] = true;
  38. $config->researchplan->dtable->fieldList['customer']['group'] = 1;
  39. $config->researchplan->dtable->fieldList['begin']['title'] = $lang->researchplan->begin;
  40. $config->researchplan->dtable->fieldList['begin']['type'] = 'date';
  41. $config->researchplan->dtable->fieldList['begin']['sortType'] = true;
  42. $config->researchplan->dtable->fieldList['begin']['show'] = true;
  43. $config->researchplan->dtable->fieldList['begin']['group'] = 1;
  44. $config->researchplan->dtable->fieldList['end']['title'] = $lang->researchplan->end;
  45. $config->researchplan->dtable->fieldList['end']['type'] = 'date';
  46. $config->researchplan->dtable->fieldList['end']['sortType'] = true;
  47. $config->researchplan->dtable->fieldList['end']['show'] = true;
  48. $config->researchplan->dtable->fieldList['end']['group'] = 1;
  49. $config->researchplan->dtable->fieldList['location']['title'] = $lang->researchplan->location;
  50. $config->researchplan->dtable->fieldList['location']['type'] = 'text';
  51. $config->researchplan->dtable->fieldList['location']['sortType'] = true;
  52. $config->researchplan->dtable->fieldList['location']['show'] = '1';
  53. $config->researchplan->dtable->fieldList['location']['group'] = 1;
  54. $config->researchplan->dtable->fieldList['method']['title'] = $lang->researchplan->method;
  55. $config->researchplan->dtable->fieldList['method']['type'] = 'category';
  56. $config->researchplan->dtable->fieldList['method']['map'] = $lang->researchplan->methodList;
  57. $config->researchplan->dtable->fieldList['method']['sortType'] = true;
  58. $config->researchplan->dtable->fieldList['actions']['type'] = 'actions';
  59. $config->researchplan->dtable->fieldList['actions']['list'] = $config->researchplan->actionList;
  60. $config->researchplan->dtable->fieldList['actions']['menu'] = array('edit', 'createReport');
  61. $config->researchplan->dtable->fieldList['actions']['required'] = true;