relation.html.php 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php
  2. /**
  3. * The control file of execution 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 execution
  9. * @version $Id$
  10. * @link http://www.zentao.net
  11. */
  12. ?>
  13. <?php include $app->getModuleRoot() . 'common/view/header.html.php';?>
  14. <?php include "featurebar.html.php";?>
  15. <div id="mainContent" class="main-row hide-side">
  16. <div class='main-col'>
  17. <div class='cell'>
  18. <table class='table table-form main-table' target='hiddenwin'>
  19. <thead>
  20. <tr class='colhead text-center'>
  21. <th class='w-id'><?php echo $lang->execution->gantt->id;?></th>
  22. <th><?php echo $lang->execution->gantt->pretask;?></th>
  23. <th class='w-130px'><?php echo $lang->execution->gantt->condition;?></th>
  24. <th><?php echo $lang->execution->gantt->task;?></th>
  25. <th class='w-120px'><?php echo $lang->execution->gantt->action;?></th>
  26. <th class='w-80px'><?php echo $lang->execution->gantt->type;?></th>
  27. <th class='w-60px {sorter:false}'><?php echo $lang->actions;?></th>
  28. </tr>
  29. </thead>
  30. <tbody>
  31. <?php foreach($relations as $id => $relation):?>
  32. <?php if(!isset($tasks[$relation->pretask]) or !isset($tasks[$relation->task])) continue;?>
  33. <tr class='text-center'>
  34. <td><?php echo $id;?></td>
  35. <td class='text-left'><?php echo $tasks[$relation->pretask];?></td>
  36. <td><?php echo $lang->execution->gantt->preTaskStatus[$relation->condition];?> </td>
  37. <td class='text-left'><?php echo $tasks[$relation->task];?> </td>
  38. <td><?php echo $lang->execution->gantt->taskActions[$relation->action];?> </td>
  39. <td><?php echo $relation->condition == 'begin' ? 'S' : 'F'; echo $relation->action == 'begin' ? 'S' : 'F';?> </td>
  40. <td class='c-actions'><?php $lang->execution->deleteRelation = $lang->delete; common::printIcon('execution', 'deleteRelation', "id=$id&executionID=$executionID", '', 'list', 'trash', 'hiddenwin');?></td>
  41. </tr>
  42. <?php endforeach;?>
  43. </tbody>
  44. </table>
  45. </div>
  46. </div>
  47. </div>
  48. <?php include $app->getModuleRoot() . 'common/view/footer.html.php';?>