m.printassigntomeblock.html.php 1.6 KB

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. /**
  3. * The assigntome block view file of block 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 Yidong Wang <yidong@cnezsoft.com>
  8. * @package block
  9. * @version $Id$
  10. * @link http://www.zentao.net
  11. */
  12. ?>
  13. <div class="row">
  14. <?php $active = key($hasViewPriv);?>
  15. <nav class="nav" data-display data-selector="a" data-show-single="true" data-active-class="active">
  16. <?php foreach($hasViewPriv as $type => $bool):?>
  17. <?php if($config->global->flow != 'full' && $config->global->flow != 'onlyTask' && $type == 'task') continue;?>
  18. <?php if($config->global->flow != 'full' && $config->global->flow != 'onlyTest' && $type == 'bug') continue;?>
  19. <a href="###" data-target="#<?php echo $type?>" data-toggle="tab"<?php if($type == $active) echo " class='active'"?>><?php echo $lang->block->availableBlocks->$type?></a>
  20. <?php endforeach;?>
  21. </nav>
  22. <div style='padding:0px;width:100%'>
  23. <?php foreach($hasViewPriv as $type => $bool):?>
  24. <?php if($config->global->flow != 'full' && $config->global->flow != 'onlyTask' && $type == 'task') continue;?>
  25. <?php if($config->global->flow != 'full' && $config->global->flow != 'onlyTest' && $type == 'bug') continue;?>
  26. <div class="box <?php echo $type == $active ? "in" : 'hidden'?>" id="<?php echo $type?>" style='padding:0px;'>
  27. <?php include "m.{$type}block.html.php";?>
  28. </div>
  29. <?php endforeach;?>
  30. </div>
  31. </div>