batchcreate.effort.html.hook.php 569 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. $('#objectTable tr').find('th:eq(3)').hide();
  12. $('#objectTable tr').find('th:eq(4)').hide();
  13. $('#objectTable tr').find('td:eq(3)').hide();
  14. $('#objectTable tr').find('td:eq(4)').hide();
  15. $('#objectTable tfoot tr td:first').attr('colspan','4');
  16. });
  17. </script>