effort.effort.html.hook.php 534 B

12345678910111213141516171819202122
  1. <?php
  2. $nonRDUser = 'false';
  3. if(!empty($_SESSION['user']->feedback) or !empty($_COOKIE['feedbackView'])) $nonRDUser = 'true';
  4. global $app;
  5. ?>
  6. <script language='Javascript'>
  7. $(function()
  8. {
  9. var nonRDuser = <?php echo $nonRDUser;?>;
  10. if(nonRDuser == false) return false;
  11. $('table tr').find('th:eq(4)').hide();
  12. $('table tr').find('th:eq(5)').hide();
  13. $('table tr').find('td:eq(4)').hide();
  14. $('table tr').find('td:eq(5)').hide();
  15. $('table tfoot tr td:first').attr('colspan','5');
  16. });
  17. </script>