effort.html.php 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <?php
  2. /**
  3. * The control file of my module of ZenTaoPMS.
  4. *
  5. * @copyright Copyright 2009-2012 禅道软件(青岛)有限公司(ZenTao Software (Qingdao) Co., Ltd. www.cnezsoft.com)
  6. * @license business(商业软件)
  7. * @author Yangyang Shi <shiyangyang@cnezsoft.com>
  8. * @package my
  9. * @version $Id$
  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/datepicker.html.php';?>
  15. <?php include $this->app->getModuleRoot() . 'user/view/featurebar.html.php';?>
  16. <div id='mainContent'>
  17. <nav id='contentNav'>
  18. <ul class='nav nav-default'>
  19. <?php
  20. foreach($lang->user->featureBar['effort'] as $key => $name)
  21. {
  22. echo "<li id='$key'>" . html::a(inlink('effort', "userID={$user->id}&date=$key"), $name) . '</li>';
  23. }
  24. ?>
  25. <script>$('#<?php echo $type;?>').addClass('active')</script>
  26. </ul>
  27. </nav>
  28. </div>
  29. <form class='main-table table-effort'>
  30. <table class='table table-fixed'>
  31. <thead>
  32. <tr class='colhead'>
  33. <th class='w-60px'><?php echo $lang->idAB;?></th>
  34. <th class='w-date'><?php echo $lang->effort->date;?></th>
  35. <th class='w-60px'><?php echo $lang->effort->consumed;?></th>
  36. <th width='350'><?php echo $lang->effort->objectType;?></th>
  37. <th><?php echo $lang->effort->work;?></th>
  38. </tr>
  39. </thead>
  40. <tbody>
  41. <?php $times = 0?>
  42. <?php foreach($efforts as $effort):?>
  43. <tr class='text-center'>
  44. <td class='text-left'>
  45. <?php printf('%03d', $effort->id);?>
  46. </td>
  47. <td><?php echo $effort->date;?></td>
  48. <td class='text-left'><?php echo $effort->consumed;?></td>
  49. <td class='text-left'><?php if($effort->objectType != 'custom') echo html::a($this->createLink($effort->objectType, 'view', "id=$effort->objectID", '', true), $effort->objectTitle, '', "class='iframe'");?></td>
  50. <td class='text-left'><?php echo html::a($this->createLink('effort', 'view', "id=$effort->id&from=my"), $effort->work);?></td>
  51. </tr>
  52. <?php $times += $effort->consumed;?>
  53. <?php endforeach;?>
  54. </tbody>
  55. </table>
  56. <?php if($efforts):?>
  57. <div class="table-footer"><?php $pager->show('right', 'pagerjs');?></div>
  58. <?php endif;?>
  59. </form>
  60. <?php include $app->getModuleRoot() . 'common/view/footer.html.php';?>