dtable.php 4.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <?php
  2. global $lang, $app;
  3. $app->loadLang('job');
  4. $config->compile->dtable = new stdclass();
  5. $config->compile->dtable->fieldList['id']['title'] = 'ID';
  6. $config->compile->dtable->fieldList['id']['name'] = 'id';
  7. $config->compile->dtable->fieldList['id']['type'] = 'id';
  8. $config->compile->dtable->fieldList['id']['checkbox'] = false;
  9. $config->compile->dtable->fieldList['name']['title'] = $lang->compile->name;
  10. $config->compile->dtable->fieldList['name']['name'] = 'name';
  11. $config->compile->dtable->fieldList['name']['sortType'] = true;
  12. $config->compile->dtable->fieldList['name']['hint'] = true;
  13. $config->compile->dtable->fieldList['name']['checkbox'] = false;
  14. $config->compile->dtable->fieldList['name']['link'] = array('module' => 'job', 'method' => 'view', 'params' => 'jobID={job}&compileID={id}');
  15. $config->compile->dtable->fieldList['name']['data-toggle'] = 'modal';
  16. $config->compile->dtable->fieldList['name']['minWidth'] = '350';
  17. $config->compile->dtable->fieldList['status']['title'] = $lang->compile->status;
  18. $config->compile->dtable->fieldList['status']['name'] = 'status';
  19. $config->compile->dtable->fieldList['status']['type'] = 'text';
  20. $config->compile->dtable->fieldList['status']['sortType'] = true;
  21. $config->compile->dtable->fieldList['status']['hint'] = true;
  22. $config->compile->dtable->fieldList['status']['width'] = '80';
  23. $config->compile->dtable->fieldList['status']['map'] = $lang->compile->statusList;
  24. $config->compile->dtable->fieldList['repo']['title'] = $lang->compile->repo;
  25. $config->compile->dtable->fieldList['repo']['name'] = 'repoName';
  26. $config->compile->dtable->fieldList['repo']['type'] = 'shortTitle';
  27. $config->compile->dtable->fieldList['repo']['sortType'] = false;
  28. $config->compile->dtable->fieldList['repo']['hint'] = true;
  29. $config->compile->dtable->fieldList['repo']['checkbox'] = false;
  30. $config->compile->dtable->fieldList['repo']['fixed'] = false;
  31. $config->compile->dtable->fieldList['buildType']['title'] = $lang->compile->buildType;
  32. $config->compile->dtable->fieldList['buildType']['name'] = 'engine';
  33. $config->compile->dtable->fieldList['buildType']['type'] = 'text';
  34. $config->compile->dtable->fieldList['buildType']['sortType'] = false;
  35. $config->compile->dtable->fieldList['buildType']['hint'] = true;
  36. $config->compile->dtable->fieldList['buildType']['width'] = '60';
  37. $config->compile->dtable->fieldList['buildType']['map'] = $lang->job->engineList;
  38. $config->compile->dtable->fieldList['triggerType']['title'] = $lang->job->triggerType;
  39. $config->compile->dtable->fieldList['triggerType']['name'] = 'triggerType';
  40. $config->compile->dtable->fieldList['triggerType']['type'] = 'text';
  41. $config->compile->dtable->fieldList['triggerType']['sortType'] = false;
  42. $config->compile->dtable->fieldList['triggerType']['width'] = '80';
  43. $config->compile->dtable->fieldList['triggerType']['hint'] = true;
  44. $config->compile->dtable->fieldList['createdDate']['title'] = $lang->compile->atTime;
  45. $config->compile->dtable->fieldList['createdDate']['name'] = 'createdDate';
  46. $config->compile->dtable->fieldList['createdDate']['type'] = 'datetime';
  47. $config->compile->dtable->fieldList['createdDate']['sortType'] = true;
  48. $config->compile->dtable->fieldList['createdDate']['hint'] = true;
  49. $config->compile->dtable->fieldList['createdDate']['formatDate'] = 'YYYY-MM-dd hh:mm';
  50. $config->compile->actionList = array();
  51. $config->compile->actionList['logs']['icon'] = 'file-log';
  52. $config->compile->actionList['logs']['text'] = $lang->compile->logs;
  53. $config->compile->actionList['logs']['hint'] = $lang->compile->logs;
  54. $config->compile->actionList['logs']['url'] = array('module' => 'compile', 'method' => 'logs', 'params' => 'compileID={id}');
  55. $config->compile->actionList['result']['icon'] = 'list-alt';
  56. $config->compile->actionList['result']['text'] = $lang->compile->result;
  57. $config->compile->actionList['result']['hint'] = $lang->compile->result;
  58. $config->compile->actionList['result']['url'] = array('module' => 'testtask', 'method' => 'unitCases', 'params' => 'taskID={testtask}');
  59. $config->compile->actionList['result']['notLoadModel'] = true;
  60. $config->compile->dtable->fieldList['actions']['name'] = 'actions';
  61. $config->compile->dtable->fieldList['actions']['title'] = $lang->actions;
  62. $config->compile->dtable->fieldList['actions']['type'] = 'actions';
  63. $config->compile->dtable->fieldList['actions']['sortType'] = false;
  64. $config->compile->dtable->fieldList['actions']['fixed'] = 'right';
  65. $config->compile->dtable->fieldList['actions']['menu'] = array('logs', 'result');
  66. $config->compile->dtable->fieldList['actions']['list'] = $config->compile->actionList;