browse.html.php 3.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <?php include $app->getModuleRoot() . 'common/view/header.html.php';?>
  2. <?php include $app->getModuleRoot() . 'common/view/datatable.fix.html.php';?>
  3. <?php js::set('browseType', $browseType);?>
  4. <div id="mainMenu" class="clearfix">
  5. <div class="btn-toolbar pull-left">
  6. <a class="btn btn-link querybox-toggle" id='bysearchTab'><i class="icon icon-search muted"></i> <?php echo $lang->searchAB;?></a>
  7. </div>
  8. <div class="btn-toolbar pull-right">
  9. <?php if(common::hasPriv('charter', 'create')) echo html::a($this->createLink('charter', 'create'), "<i class='icon-plus'></i> {$lang->charter->create}", '', "class='btn btn-primary'");?>
  10. </div>
  11. </div>
  12. <div id="mainContent" class="main-row fade">
  13. <div class="main-col">
  14. <div class="cell<?php if($browseType == 'bysearch') echo ' show';?>" id="queryBox" data-module='charter' data-url="<?php echo $this->createLink('search', 'buildOldForm', 'module=charter');?>"></div>
  15. <?php if(empty($charters)):?>
  16. <div class="table-empty-tip">
  17. <p>
  18. <span class="text-muted"><?php echo $lang->charter->noData;?></span>
  19. <?php if(common::hasPriv('charter', 'create')):?>
  20. <?php echo html::a($this->createLink('charter', 'create'), "<i class='icon icon-plus'></i> " . $lang->charter->create, '', "class='btn btn-info'");?>
  21. <?php endif;?>
  22. </p>
  23. </div>
  24. <?php else:?>
  25. <form class='main-table' method='post' id='charterForm'>
  26. <?php $vars = "browseType=$browseType&param=0&orderBy=%s&recTotal=$pager->recTotal&recPerPage=$pager->recPerPage&pageID=$pager->pageID"; ?>
  27. <table class='table has-sort-head' id='charterList'>
  28. <thead>
  29. <tr>
  30. <th class='c-id'><?php common::printOrderLink('id', $orderBy, $vars, $lang->charter->id);?></th>
  31. <th class='c-name'><?php common::printOrderLink('name', $orderBy, $vars, $lang->charter->name);?></th>
  32. <th class='c-level'><?php echo $lang->charter->level;?></th>
  33. <th class='c-status'><?php echo $lang->charter->status;?></th>
  34. <th class='c-category'><?php echo $lang->charter->category;?></th>
  35. <th class='c-market'><?php echo $lang->charter->market;?></th>
  36. <th class='c-budget'><?php echo $lang->charter->budget;?></th>
  37. <th class='c-appliedBy'><?php echo $lang->charter->appliedBy;?></th>
  38. <th class='c-createdDate'><?php echo $lang->charter->createdDate;?></th>
  39. <th class='c-actions-3 text-center'><?php echo $lang->actions;?></th>
  40. </tr>
  41. </thead>
  42. <tbody>
  43. <?php foreach($charters as $charter):?>
  44. <tr>
  45. <td><?php echo sprintf('%03d', $charter->id);?></td>
  46. <td class='c-name' title="<?php echo $charter->name;?>">
  47. <?php echo html::a($this->createLink('charter', 'view', "charterID=$charter->id"), $charter->name);?>
  48. </td>
  49. <td><?php echo zget($lang->charter->levelList, $charter->level);?></td>
  50. <td><?php echo zget($lang->charter->statusList, $charter->status);?></td>
  51. <td><?php echo zget($lang->charter->categoryList, $charter->category);?></td>
  52. <td><?php echo zget($lang->charter->marketList, $charter->market);?></td>
  53. <td><?php echo $charter->budget;?></td>
  54. <td><?php echo zget($users, $charter->appliedBy);?></td>
  55. <td><?php echo $charter->createdDate;?></td>
  56. <td class='c-actions'>
  57. <?php echo $this->charter->buildOperateMenu($charter, 'browse');?>
  58. </td>
  59. </tr>
  60. <?php endforeach;?>
  61. </tbody>
  62. </table>
  63. <div class="table-footer">
  64. <?php $pager->show('right', 'pagerjs');?>
  65. </div>
  66. </form>
  67. <?php endif;?>
  68. </div>
  69. </div>
  70. <?php include $app->getModuleRoot() . 'common/view/footer.html.php';?>