browse.html.php 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php
  2. /**
  3. * The browse view file of dataset module of ZenTaoPMS.
  4. *
  5. * @copyright Copyright 2009-2015 禅道软件(青岛)有限公司(ZenTao Software (Qingdao) Co., Ltd. www.cnezsoft.com)
  6. * @license ZPL (http://zpl.pub/page/zplv12.html)
  7. * @author Chunsheng Wang <chunsheng@cnezsoft.com>
  8. * @package dataset
  9. * @version $Id: browse.html.php 4129 2013-01-18 01:58:14Z wwccss $
  10. * @link http://www.zentao.net
  11. */
  12. ?>
  13. <?php include $app->getModuleRoot() . 'common/view/header.html.php';?>
  14. <?php include $app->getModuleRoot() . 'common/view/tablesorter.html.php';?>
  15. <div id='mainMenu' class='clearfix'>
  16. <div class="btn-toolbar pull-left">
  17. <?php foreach($lang->dataset->featureBar['browse'] as $key => $label):?>
  18. <?php echo html::a(inlink('browse', "type=$key"), "<span class='text'>$label</span>", '', "class='btn btn-link " . ($type == $key ? 'btn-active-text' : '') . "'");?>
  19. <?php endforeach;?>
  20. </div>
  21. <div class="btn-toolbar pull-right">
  22. <?php common::printLink('dataset', 'create', '', '<i class="icon icon-plus"></i> ' . $lang->dataset->create, '', 'class="btn btn-primary"');?>
  23. </div>
  24. </div>
  25. <div id="mainContent" class='main-table'>
  26. <table class="table" id='datasetList'>
  27. <thead>
  28. <tr>
  29. <th class="w-250px"><?php echo $lang->dataset->name;?></th>
  30. <th class="c-desc"><?php echo $lang->dataset->desc;?></th>
  31. <th class="c-actions"><?php echo $lang->actions;?></th>
  32. </tr>
  33. </thead>
  34. <tbody>
  35. <?php foreach($tables as $table):?>
  36. <tr>
  37. <td><?php echo html::a(inlink('view', "code=" . $table['code']), $table['name']);?></td>
  38. <td title='<?php echo $table['desc'];?>'><?php echo $table['desc'];?></td>
  39. <td class='c-actions'>
  40. <?php if($table['id']) common::printIcon('dataset', 'edit', "id=" . $table['id'], $table, 'list');?>
  41. <?php if($table['id']) common::printIcon('dataset', 'delete', "id=" . $table['id'], $table, 'list', 'trash', 'hiddenwin');?>
  42. </td>
  43. </tr>
  44. <?php endforeach;?>
  45. </tbody>
  46. </table>
  47. </div>
  48. <?php include $app->getModuleRoot() . 'common/view/footer.html.php';?>