singletemplate.html.php 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <div class='main-col'>
  2. <div class='main-table' >
  3. <table class='table'>
  4. <thead>
  5. <tr>
  6. <th class='w-50px'><?php echo $lang->meastemplate->id?></th>
  7. <th width='160'><?php echo $lang->meastemplate->name?></th>
  8. <th><?php echo $lang->meastemplate->desc?></th>
  9. <th class='w-130px'><?php echo $lang->actions?></th>
  10. </tr>
  11. </thead>
  12. <tbody class='text-center'>
  13. <?php foreach($templates as $report):?>
  14. <tr>
  15. <td><?php echo $report->id;?></td>
  16. <td class='text-left'>
  17. <?php
  18. $name = json_decode($report->name, true);
  19. if(empty($name)) $name[$this->app->getClientLang()] = $report->name;
  20. echo zget($name, $this->app->getClientLang(), '');
  21. ?>
  22. </td>
  23. <?php
  24. $desc = json_decode($report->desc, true);
  25. $desc = zget($desc, $this->app->getClientLang(), '');
  26. ?>
  27. <td class='text-left' title='<?php echo $desc?>'><?php echo $desc;?></td>
  28. <td>
  29. <?php
  30. if(common::hasPriv('report', 'useReport')) echo html::a($this->createLink('report', 'useReport', "reportID=$report->id&from=cmmi", '', true), $lang->report->useReport, '', "data-type='iframe' data-toggle='modal' data-width='90%'");
  31. if(common::hasPriv('report', 'editReport')) echo html::a($this->createLink('report', 'editReport', "reportID=$report->id&from=cmmi"), $lang->report->editReport, '', "data-type='iframe' data-toggle='modal'");
  32. if(common::hasPriv('report', 'deleteReport')) echo html::a($this->createLink('report', 'deleteReport', "reportID=$report->id&confirm=no&from=cmmi"), $lang->delete, 'hiddenwin');
  33. ?>
  34. </td>
  35. </tr>
  36. <?php endforeach;?>
  37. </tbody>
  38. </table>
  39. <div class='table-footer'>
  40. <?php $pager->show('right', 'pagerjs');?>
  41. </div>
  42. </div>
  43. </div>