dtable.php 5.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <?php
  2. global $lang;
  3. $config->zahost->dtable = new stdclass();
  4. $config->zahost->dtable->fieldList['id']['title'] = $lang->idAB;
  5. $config->zahost->dtable->fieldList['id']['name'] = 'hostID';
  6. $config->zahost->dtable->fieldList['id']['type'] = 'id';
  7. $config->zahost->dtable->fieldList['name']['type'] = 'name';
  8. $config->zahost->dtable->fieldList['name']['link'] = array('module' => 'zahost', 'method' => 'view', 'params' => 'id={hostID}');
  9. $config->zahost->dtable->fieldList['type']['name'] = 'hostType';
  10. $config->zahost->dtable->fieldList['type']['title'] = $lang->zahost->type;
  11. $config->zahost->dtable->fieldList['type']['map'] = $lang->zahost->zaHostTypeList;
  12. $config->zahost->dtable->fieldList['type']['sortType'] = true;
  13. $config->zahost->dtable->fieldList['extranet']['name'] = 'extranet';
  14. $config->zahost->dtable->fieldList['cpuCores']['name'] = 'cpuCores';
  15. $config->zahost->dtable->fieldList['cpuCores']['sortType'] = true;
  16. $config->zahost->dtable->fieldList['memory']['name'] = 'memory';
  17. $config->zahost->dtable->fieldList['memory']['sortType'] = true;
  18. $config->zahost->dtable->fieldList['diskSize']['name'] = 'diskSize';
  19. $config->zahost->dtable->fieldList['diskSize']['sortType'] = true;
  20. $config->zahost->dtable->fieldList['vsoft']['name'] = 'vsoft';
  21. $config->zahost->dtable->fieldList['vsoft']['map'] = $lang->zahost->softwareList;
  22. $config->zahost->dtable->fieldList['status']['name'] = 'status';
  23. $config->zahost->dtable->fieldList['status']['map'] = $lang->zahost->statusList;
  24. $config->zahost->dtable->fieldList['status']['sortType'] = true;
  25. $config->zahost->dtable->fieldList['heartbeat']['title'] = $lang->zahost->registerDate;
  26. $config->zahost->dtable->fieldList['heartbeat']['type'] = 'datetime';
  27. $config->zahost->dtable->fieldList['actions']['name'] = 'actions';
  28. $config->zahost->dtable->fieldList['actions']['title'] = $lang->actions;
  29. $config->zahost->dtable->fieldList['actions']['type'] = 'actions';
  30. $config->zahost->dtable->fieldList['actions']['menu'] = array('browseImage', 'edit', 'delete');
  31. $config->zahost->dtable->fieldList['actions']['list']['browseImage']['icon'] = 'mirror';
  32. $config->zahost->dtable->fieldList['actions']['list']['browseImage']['hint'] = $lang->zahost->image->browseImage;
  33. $config->zahost->dtable->fieldList['actions']['list']['browseImage']['text'] = $lang->zahost->image->browseImage;
  34. $config->zahost->dtable->fieldList['actions']['list']['browseImage']['className'] = 'browseImage';
  35. $config->zahost->dtable->fieldList['actions']['list']['browseImage']['data-toggle'] = 'modal';
  36. $config->zahost->dtable->fieldList['actions']['list']['browseImage']['url'] = helper::createLink('zahost', 'browseImage', 'hostID={hostID}');
  37. $config->zahost->dtable->fieldList['actions']['list']['edit']['icon'] = 'edit';
  38. $config->zahost->dtable->fieldList['actions']['list']['edit']['hint'] = $lang->zahost->edit;
  39. $config->zahost->dtable->fieldList['actions']['list']['edit']['url'] = helper::createLink('zahost', 'edit', 'hostID={hostID}');
  40. $config->zahost->dtable->fieldList['actions']['list']['delete']['icon'] = 'trash';
  41. $config->zahost->dtable->fieldList['actions']['list']['delete']['hint'] = $lang->zahost->delete;
  42. $config->zahost->dtable->fieldList['actions']['list']['delete']['url'] = helper::createLink('zahost', 'delete', 'hostID={hostID}');
  43. $config->zahost->dtable->fieldList['actions']['list']['delete']['className'] = 'ajax-submit';
  44. $config->zahost->dtable->fieldList['actions']['list']['delete']['data-confirm'] = array('message' => $lang->zahost->confirmDelete, 'icon' => 'icon-exclamation-sign', 'iconClass' => 'warning-pale rounded-full icon-2x');
  45. $config->zahost->imageDtable = new stdclass();
  46. $config->zahost->imageDtable->fieldList['name']['title'] = $lang->zahost->image->name;
  47. $config->zahost->imageDtable->fieldList['osName']['title'] = $lang->zahost->image->os;
  48. $config->zahost->imageDtable->fieldList['status']['title'] = $lang->zahost->status;
  49. $config->zahost->imageDtable->fieldList['status']['map'] = $lang->zahost->image->statusList;
  50. $config->zahost->imageDtable->fieldList['path']['title'] = $lang->zahost->image->path;
  51. $config->zahost->imageDtable->fieldList['path']['hint'] = true;
  52. $config->zahost->imageDtable->fieldList['progress']['title'] = $lang->zahost->image->progress;
  53. $config->zahost->imageDtable->fieldList['actions']['name'] = 'actions';
  54. $config->zahost->imageDtable->fieldList['actions']['title'] = $lang->actions;
  55. $config->zahost->imageDtable->fieldList['actions']['type'] = 'actions';
  56. $config->zahost->imageDtable->fieldList['actions']['menu'] = array('downloadImage', 'cancelDownload');
  57. $config->zahost->imageDtable->fieldList['actions']['list']['downloadImage']['icon'] = 'download';
  58. $config->zahost->imageDtable->fieldList['actions']['list']['downloadImage']['hint'] = $lang->zahost->image->downloadImage;
  59. $config->zahost->imageDtable->fieldList['actions']['list']['downloadImage']['url'] = array('module' => 'zahost', 'method' => 'downloadImage', 'params' => 'hostID={hostID}&imageID={id}');
  60. $config->zahost->imageDtable->fieldList['actions']['list']['downloadImage']['className'] = 'ajax-submit';
  61. $config->zahost->imageDtable->fieldList['actions']['list']['cancelDownload']['icon'] = 'ban-circle';
  62. $config->zahost->imageDtable->fieldList['actions']['list']['cancelDownload']['hint'] = $lang->zahost->cancel;
  63. $config->zahost->imageDtable->fieldList['actions']['list']['cancelDownload']['url'] = array('module' => 'zahost', 'method' => 'cancelDownload', 'params' => 'imageID={id}');
  64. $config->zahost->imageDtable->fieldList['actions']['list']['cancelDownload']['className'] = 'ajax-submit';
  65. $config->zahost->imageDtable->fieldList['actions']['list']['cancelDownload']['data-confirm'] = $lang->zahost->cancelDelete;