featurebar.html.php 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <div id="mainMenu" class="clearfix">
  2. <div class="btn-toolbar pull-left">
  3. <?php if(isset($ganttType)):?>
  4. <?php echo html::a('javascript:updateCriticalPath()', $lang->execution->gantt->showCriticalPath, '', "class='btn btn-link' id='criticalPath'");?>
  5. <?php echo html::a('###', "<i class='icon icon-fullscreen'></i> " . $lang->execution->gantt->fullScreen, '', "class='btn btn-link' id='fullScreenBtn'");?>
  6. <div class='btn btn-link' id='ganttPris'>
  7. <strong><?php echo $lang->task->pri . " : "?></strong>
  8. <?php foreach($lang->execution->gantt->progressColor as $pri => $color):?>
  9. <?php if($pri > 0 && $pri <= 4):?>
  10. <span style="background:<?php echo $color?>"><?php echo $pri;?></span> &nbsp;
  11. <?php endif;?>
  12. <?php endforeach;?>
  13. </div>
  14. <?php else:?>
  15. <?php echo html::a($this->createLink('execution', 'gantt', "executionID=$executionID"), "<i class='icon icon-back icon-sm'></i> " . $lang->goback, '', "class='btn btn-secondary'");?>
  16. <?php endif;?>
  17. </div>
  18. <div class="btn-toolbar pull-right">
  19. <?php if(isset($ganttType)):?>
  20. <?php if(common::hasPriv('execution', 'ganttsetting')) echo html::a($this->createLink('execution', 'ganttsetting', "executionID=$executionID", '', true), "<i class='icon icon-cog-outline muted'></i> " . $lang->execution->ganttSetting, '', "class='btn btn-link iframe' data-width='45%'");?>
  21. <?php if(common::hasPriv('execution', 'relation') && $config->vision != 'lite') echo html::a($this->createLink('execution', 'relation', "executionID=$executionID"), "<i class='icon icon-list-alt muted'></i> " . $lang->execution->maintainRelation, '', "class='btn btn-link'");?>
  22. <?php endif;?>
  23. <?php if($this->app->rawMethod != 'relation' and $this->app->rawMethod != 'maintainrelation'):?>
  24. <div class="btn-group">
  25. <button class="btn btn-link" data-toggle="dropdown"><i class="icon icon-export muted"></i> <span class="text"><?php echo $lang->export ?></span> <span class="caret"></span></button>
  26. <ul class="dropdown-menu" id='exportActionMenu'>
  27. <li><a href='javascript:exportGantt()'><?php echo $lang->execution->gantt->exportImg;?></a></li>
  28. <li><a href='javascript:exportGantt("pdf")'><?php echo $lang->execution->gantt->exportPDF;?></a></li>
  29. </ul>
  30. </div>
  31. <?php else:?>
  32. <?php
  33. if(common::hasPriv('execution', 'maintainRelation')) echo html::a($this->createLink('execution', 'maintainRelation', "executionID=$executionID"), "<i class='icon icon-plus'></i> " . $lang->execution->gantt->editRelationOfTasks, '', "class='btn btn-secondary'");
  34. ?>
  35. <?php endif;?>
  36. <?php
  37. $checkObject = new stdclass();
  38. $checkObject->execution = $executionID;
  39. $misc = common::hasPriv('task', 'create', $checkObject) ? "class='btn btn-primary iframe' data-size='lg' data-toggle='modal'" : "class='btn btn-primary disabled'";
  40. $link = common::hasPriv('task', 'create', $checkObject) ? $this->createLink('task', 'create', "execution=$executionID" . (isset($moduleID) ? "&storyID=&moduleID=$moduleID" : ''), '', true) : '#';
  41. echo html::a($link, "<i class='icon icon-plus'></i> " . $lang->task->create, '', $misc);
  42. ?>
  43. </div>
  44. </div>