execution.html.php 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <?php
  2. /**
  3. * The project view file of dashboard 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) or AGPL(https://www.gnu.org/licenses/agpl-3.0.en.html)
  7. * @author Chunsheng Wang <chunsheng@cnezsoft.com>
  8. * @package dashboard
  9. * @version $Id: project.html.php 4129 2013-01-18 01:58:14Z wwccss $
  10. * @link http://www.zentao.net
  11. */
  12. ?>
  13. <?php include $this->app->getModuleRoot() . 'common/view/header.html.php';?>
  14. <?php include $this->app->getModuleRoot() . 'common/view/tablesorter.html.php';?>
  15. <?php include $this->app->getModuleRoot() . 'user/view/featurebar.html.php';?>
  16. <div id='mainContent'>
  17. <div class='main-table'>
  18. <table class='table has-sort-head table-fixed'>
  19. <?php $vars = "userID={$user->id}&orderBy=%s&recTotal={$pager->recTotal}&recPerPage={$pager->recPerPage}&pageID={$pager->pageID}"; ?>
  20. <thead>
  21. <tr class='colhead'>
  22. <th class='c-id'> <?php common::printOrderLink('id', $orderBy, $vars, $lang->idAB);?></th>
  23. <th class="text-left"><?php common::printOrderLink('name', $orderBy, $vars, $lang->user->name);?></th>
  24. <th class='c-status'> <?php common::printOrderLink('status', $orderBy, $vars, $lang->statusAB);?></th>
  25. <th class='c-user'> <?php echo $lang->team->role;?></th>
  26. <th class='c-date'> <?php common::printOrderLink('begin', $orderBy, $vars, $lang->execution->begin);?></th>
  27. <th class='c-date'> <?php common::printOrderLink('end', $orderBy, $vars, $lang->execution->end);?></th>
  28. <th class='c-date'> <?php echo $lang->team->join;?></th>
  29. <th class='c-hours'> <?php echo $lang->team->hours;?></th>
  30. </tr>
  31. </thead>
  32. <tbody>
  33. <?php foreach($executions as $execution):?>
  34. <?php $executionLink = $this->createLink('execution', 'view', "executionID=$execution->id");?>
  35. <?php if($this->config->vision == 'lite') $executionLink = $this->createLink('execution', 'kanban', "kanbanID=$execution->id");?>
  36. <tr>
  37. <td><?php echo html::a($executionLink, $execution->id);?></td>
  38. <td>
  39. <?php echo html::a($executionLink, $execution->name);?>
  40. </td>
  41. <?php if(isset($execution->delay)):?>
  42. <td class='project-delay'><?php echo $lang->execution->delayed;?></td>
  43. <?php else:?>
  44. <td class='project-<?php echo $execution->status?>'><?php echo $this->processStatus('execution', $execution);?></td>
  45. <?php endif;?>
  46. <td><?php echo $execution->role;?></td>
  47. <td><?php echo $execution->begin;?></td>
  48. <td><?php echo $execution->end;?></td>
  49. <td><?php echo $execution->join;?></td>
  50. <td><?php echo $execution->hours;?></td>
  51. </tr>
  52. <?php endforeach;?>
  53. </tbody>
  54. </table>
  55. <?php if($executions):?>
  56. <div class="table-footer"><?php $pager->show('right', 'pagerjs');?></div>
  57. <?php endif;?>
  58. </div>
  59. </div>
  60. <?php include $this->app->getModuleRoot() . 'common/view/footer.html.php';?>