m.riskblock.html.php 1.3 KB

12345678910111213141516171819202122232425
  1. <table class='table bordered'>
  2. <thead>
  3. <tr>
  4. <th class='c-name'><?php echo $lang->risk->name?></th>
  5. <th class='c-pri w-50px'><?php echo $lang->priAB?></th>
  6. <th class='c-category w-80px'><?php echo $lang->risk->category;?></th>
  7. <th class='c-plannedClosedDate w-110px'><?php echo $lang->risk->plannedClosedDate;?></th>
  8. <th class='c-status w-80px'><?php echo $lang->risk->status;?></th>
  9. </tr>
  10. </thead>
  11. <tbody>
  12. <?php foreach($risks as $risk):?>
  13. <tr>
  14. <td class='c-name' title='<?php echo $risk->name?>'><?php echo html::a($this->createLink('risk', 'view', "riskID=$risk->id", '', '', $risk->project), $risk->name)?></td>
  15. <td class='c-pri'><?php echo "<span class='pri-{$risk->pri}'>" . zget($lang->risk->priList, $risk->pri) . "</span>";?></td>
  16. <td class='c-category'><?php echo zget($lang->risk->categoryList, $risk->category)?></td>
  17. <td class='c-plannedClosedDate'><?php echo $risk->plannedClosedDate == '0000-00-00' ? '' : $risk->plannedClosedDate;?></td>
  18. <?php $status = $this->processStatus('risk', $risk);?>
  19. <td class='c-status' title='<?php echo $status;?>'>
  20. <span class="status-risk status-<?php echo $risk->status?>"><?php echo $status;?></span>
  21. </td>
  22. </tr>
  23. <?php endforeach;?>
  24. </tbody>
  25. </table>