effort.php 4.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <?php
  2. global $app;
  3. $app->loadLang('effort');
  4. $app->loadConfig('effort');
  5. $isEn = $app->getClientLang() == 'en';
  6. $config->my->effort = new stdclass();
  7. $config->my->effort->dtable = new stdclass();
  8. $config->my->effort->dtable->fieldList['id']['name'] = 'id';
  9. $config->my->effort->dtable->fieldList['id']['title'] = $lang->idAB;
  10. $config->my->effort->dtable->fieldList['id']['type'] = 'checkID';
  11. $config->my->effort->dtable->fieldList['work']['name'] = 'work';
  12. $config->my->effort->dtable->fieldList['work']['title'] = $lang->effort->work;
  13. $config->my->effort->dtable->fieldList['work']['type'] = 'title';
  14. $config->my->effort->dtable->fieldList['work']['link'] = array('module' => 'effort', 'method' => 'view', 'params' => 'id={id}&from=my');
  15. $config->my->effort->dtable->fieldList['work']['data-toggle'] = 'modal';
  16. $config->my->effort->dtable->fieldList['work']['data-size'] = 'lg';
  17. $config->my->effort->dtable->fieldList['date']['name'] = 'date';
  18. $config->my->effort->dtable->fieldList['date']['title'] = $lang->effort->date;
  19. $config->my->effort->dtable->fieldList['date']['type'] = 'date';
  20. $config->my->effort->dtable->fieldList['date']['show'] = true;
  21. $config->my->effort->dtable->fieldList['date']['required'] = true;
  22. $config->my->effort->dtable->fieldList['account']['name'] = 'account';
  23. $config->my->effort->dtable->fieldList['account']['title'] = $lang->effort->account;
  24. $config->my->effort->dtable->fieldList['account']['type'] = 'user';
  25. $config->my->effort->dtable->fieldList['account']['show'] = true;
  26. $config->my->effort->dtable->fieldList['consumed']['name'] = 'consumed';
  27. $config->my->effort->dtable->fieldList['consumed']['title'] = $lang->effort->consumed;
  28. $config->my->effort->dtable->fieldList['consumed']['type'] = 'number';
  29. $config->my->effort->dtable->fieldList['consumed']['show'] = true;
  30. if($isEn) $config->my->effort->dtable->fieldList['consumed']['width'] = '80';
  31. $config->my->effort->dtable->fieldList['left']['name'] = 'left';
  32. $config->my->effort->dtable->fieldList['left']['title'] = $lang->effort->left;
  33. $config->my->effort->dtable->fieldList['left']['type'] = 'number';
  34. $config->my->effort->dtable->fieldList['left']['show'] = true;
  35. if($isEn) $config->my->effort->dtable->fieldList['left']['width'] = '80';
  36. $config->my->effort->dtable->fieldList['objectTitle']['name'] = 'objectTitle';
  37. $config->my->effort->dtable->fieldList['objectTitle']['title'] = $lang->effort->objectType;
  38. $config->my->effort->dtable->fieldList['objectTitle']['type'] = 'text';
  39. $config->my->effort->dtable->fieldList['objectTitle']['link'] = helper::createLink('{objectType}', 'view', 'id={objectID}');
  40. $config->my->effort->dtable->fieldList['objectTitle']['show'] = true;
  41. $config->my->effort->dtable->fieldList['product']['name'] = 'product';
  42. $config->my->effort->dtable->fieldList['product']['title'] = $lang->effort->product;
  43. $config->my->effort->dtable->fieldList['product']['type'] = 'category';
  44. $config->my->effort->dtable->fieldList['product']['control'] = 'multiple';
  45. $config->my->effort->dtable->fieldList['product']['align'] = 'left';
  46. $config->my->effort->dtable->fieldList['product']['show'] = true;
  47. $config->my->effort->dtable->fieldList['project']['name'] = 'project';
  48. $config->my->effort->dtable->fieldList['project']['title'] = $lang->effort->project;
  49. $config->my->effort->dtable->fieldList['project']['type'] = 'category';
  50. $config->my->effort->dtable->fieldList['project']['align'] = 'left';
  51. $config->my->effort->dtable->fieldList['project']['show'] = true;
  52. $config->my->effort->dtable->fieldList['execution']['name'] = 'execution';
  53. $config->my->effort->dtable->fieldList['execution']['title'] = $lang->effort->execution;
  54. $config->my->effort->dtable->fieldList['execution']['type'] = 'category';
  55. $config->my->effort->dtable->fieldList['execution']['align'] = 'left';
  56. $config->my->effort->dtable->fieldList['execution']['show'] = true;
  57. $config->my->effort->dtable->fieldList['actions']['title'] = $lang->actions;
  58. $config->my->effort->dtable->fieldList['actions']['type'] = 'actions';
  59. $config->my->effort->dtable->fieldList['actions']['width'] = '80px';
  60. $config->my->effort->dtable->fieldList['actions']['sortType'] = false;
  61. $config->my->effort->dtable->fieldList['actions']['list'] = $config->effort->actionList;
  62. $config->my->effort->dtable->fieldList['actions']['menu'] = array('edit', 'delete');
  63. if($isEn) $config->my->effort->dtable->fieldList['actions']['width'] = '100';