m.browse.html.php 1.5 KB

1234567891011121314151617181920212223242526272829303132
  1. <?php include $app->getModuleRoot() . 'common/view/m.header.html.php';?>
  2. <section id='page' class='section list-with-actions list-with-pager'>
  3. <table class="table bordered">
  4. <thead>
  5. <tr>
  6. <?php $vars = "browseType=$browseType&param=$param&orderBy=%s&recTotal={$pager->recTotal}&recPerPage={$pager->recPerPage}";?>
  7. <th class='text-left'><?php common::printOrderLink('group', $orderBy, $vars, $lang->host->group);?></th>
  8. <th class='text-left'><?php common::printOrderLink('name', $orderBy, $vars, $lang->host->name);?></th>
  9. <th class='w-110px'> <?php common::printOrderLink('intranet', $orderBy, $vars, $lang->host->intranet);?></th>
  10. <th class='w-70px'> <?php common::printOrderLink('status', $orderBy, $vars, $lang->host->status);?></th>
  11. </tr>
  12. </thead>
  13. <?php if(!empty($hostList)):?>
  14. <tbody>
  15. <?php foreach($hostList as $host):?>
  16. <tr class='text-left' data-url="<?php echo $this->inlink('view', "id=$host->id");?>">
  17. <td class='hidden-xs hidden-sm'><?php echo zget($optionMenu, $host->group, '');?></td>
  18. <td><?php echo $host->name;?></td>
  19. <td><?php echo $host->intranet;?></td>
  20. <td class='hidden-xs hidden-sm'><?php echo $lang->host->statusList[$host->status];?></td>
  21. </tr>
  22. <?php endforeach;?>
  23. </tbody>
  24. <?php endif;?>
  25. </table>
  26. <?php if(!empty($hostList)):?>
  27. <nav class='nav justify pager'>
  28. <?php $pager->show($align = 'justify');?>
  29. </nav>
  30. <?php endif;?>
  31. </section>
  32. <?php include $app->getModuleRoot() . 'common/view/m.footer.html.php';?>