template.html.php 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <?php include $app->getModuleRoot() . 'common/view/header.html.php';?>
  2. <div id="mainContent" class="main-row fade">
  3. <div id='tableList' class='main-col main-content main-table'>
  4. <div id="listHead">
  5. <div class='pull-left'>
  6. <strong><?php echo $lang->baseline->docTemplate;?></strong>
  7. </div>
  8. <div class="btn-toolbar pull-right">
  9. <?php common::printLink('baseline', 'createTemplate', "", "<i class='icon icon-plus'></i>" . $lang->baseline->createTemplate, '', "class='btn btn-primary'");?>
  10. </div>
  11. </div>
  12. <form class='main-table' method='post' id='templateForm'>
  13. <?php $vars = "orderBy=%s&recTotal={$pager->recTotal}&recPerPage={$pager->recPerPage}&pageID={$pager->pageID}"; ?>
  14. <table class='table has-sort-head'>
  15. <thead>
  16. <tr>
  17. <th class='w-50px'><?php common::printOrderLink('id', $orderBy, $vars, $lang->idAB);?></th>
  18. <th><?php common::printOrderLink('title', $orderBy, $vars, $lang->baseline->name);?></th>
  19. <th class='w-140px'><?php common::printOrderLink('templateType', $orderBy, $vars, $lang->baseline->templateType);?></th>
  20. <th class='w-80px'><?php common::printOrderLink('type', $orderBy, $vars, $lang->baseline->docType);?></th>
  21. <th class='w-120px'><?php common::printOrderLink('addedBy', $orderBy, $vars, $lang->baseline->addedBy);?></th>
  22. <th class='w-150px'><?php common::printOrderLink('addedDate', $orderBy, $vars, $lang->baseline->addedDate);?></th>
  23. <th class='c-actions-4'><?php echo $lang->actions;?></th>
  24. </tr>
  25. </thead>
  26. <tbody>
  27. <?php foreach($templates as $template):?>
  28. <tr>
  29. <td><?php echo $template->id;?></td>
  30. <td class='c-title text-ellipsis'><?php echo html::a(helper::createLink('baseline', 'view', "templateID=$template->id"), $template->title);?></td>
  31. <td><?php echo zget($lang->baseline->objectList, $template->templateType);?></td>
  32. <td><?php echo zget($lang->baseline->docTypeList, $template->type);?></td>
  33. <td><?php echo zget($users, $template->addedBy);?></td>
  34. <td><?php echo substr($template->addedDate, 0, 10);?></td>
  35. <td class='c-actions'>
  36. <?php common::printIcon('baseline', 'manageBook', "templateID=$template->id", $template, 'list', 'cog', '', '', '', '', $lang->baseline->manageBook);?>
  37. <?php common::printIcon('baseline', 'editTemplate', "templateID=$template->id", $template, 'list', 'edit', '', '', '', '', $lang->edit);?>
  38. <?php common::printIcon('baseline', 'delete', "templateID=$template->id&confirm=no", $template, 'list', 'trash', 'hiddenwin');?>
  39. </td>
  40. </tr>
  41. <?php endforeach;?>
  42. </tbody>
  43. </table>
  44. <div class='table-footer'>
  45. <?php $pager->show('right', 'pagerjs');?>
  46. </div>
  47. </form>
  48. </div>
  49. </div>
  50. <?php include $app->getModuleRoot() . 'common/view/footer.html.php';?>