view.cmmi.html.hook.php 424 B

1234567891011121314151617181920
  1. <?php
  2. if($bug->identify)
  3. {
  4. $review = $this->loadModel('review')->getByID($bug->identify);
  5. $identify = $review->title . '-' . $review->version;
  6. }
  7. else
  8. {
  9. $identify = '';
  10. }
  11. $html = "<tr>";
  12. $html .= "<th>" . $lang->bug->identify . "</th>";
  13. $html .= "<td>" . $identify;
  14. $html .= '</td>';
  15. $html .= '</tr>';
  16. ?>
  17. <script>
  18. $('#legendBasicInfo .table-data tr:eq(-3)').after(<?php echo json_encode($html);?>);
  19. </script>