blockbugs.html.php 1.8 KB

12345678910111213141516171819202122232425262728293031323334
  1. <?php $sysURL = $this->session->notHead ? common::getSysURL() : '';?>
  2. <table class='table main-table' id='bugs'>
  3. <thead>
  4. <tr>
  5. <th class='c-id'> <?php echo $lang->idAB;?></th>
  6. <th class='c-status'> <?php echo $lang->priAB;?></th>
  7. <th class='text-left'> <?php echo $lang->testreport->bugTitle;?></th>
  8. <th class='c-user'> <?php echo $lang->openedByAB;?></th>
  9. <th class='c-user'> <?php echo $lang->bug->resolvedBy;?></th>
  10. <th class='c-full-date'><?php echo $lang->bug->resolvedDate;?></th>
  11. <th class='c-status'> <?php echo $lang->statusAB;?></th>
  12. </tr>
  13. </thead>
  14. <?php if($bugs):?>
  15. <tbody>
  16. <?php foreach($bugs as $bug):?>
  17. <tr>
  18. <td><?php echo sprintf('%03d', $bug->id) . html::hidden('bugs[]', $bug->id)?></td>
  19. <td><span class='label-pri label-pri-<?php echo $bug->pri?>' title='<?php echo zget($lang->bug->priList, $bug->pri);?>'><?php echo zget($lang->bug->priList, $bug->pri);?></span></td>
  20. <td class='text-left c-name' title='<?php echo $bug->title?>'><?php echo html::a($sysURL . $this->createLink('bug', 'view', "bugID=$bug->id", '', true), $bug->title, '', "data-toggle='modal' data-type='iframe' data-width='90%'");?></td>
  21. <td><?php echo zget($users, $bug->openedBy);?></td>
  22. <td><?php echo zget($users, $bug->resolvedBy);?></td>
  23. <td><?php if(!helper::isZeroDate($bug->resolvedDate)) echo substr($bug->resolvedDate, 2);?></td>
  24. <?php $status = $this->processStatus('bug', $bug);?>
  25. <td title='<?php echo $status;?>'>
  26. <span class="status-bug status-<?php echo $bug->status?>"><?php echo $status;?></span>
  27. </td>
  28. </tr>
  29. <?php endforeach;?>
  30. </tbody>
  31. <?php else:?>
  32. <tr><td class='none-data' colspan='7'><?php echo $lang->testreport->none;?></td></tr>
  33. <?php endif?>
  34. </table>