create.feedback.html.hook.php 864 B

12345678910111213141516171819202122232425
  1. <?php if(isset($feedbackID)):?>
  2. <?php
  3. js::set('notifyEmail', $feedback->notifyEmail);
  4. js::set('feedbackBy', $feedback->feedbackBy);
  5. ?>
  6. <?php $inputHtml = html::hidden('feedback', (int)$feedbackID) . html::hidden('found', $feedback->openedBy);?>
  7. <script language='Javascript'>
  8. $(function()
  9. {
  10. $(this).find('#dataform').children('table').find('tr:last').children('td:last').append(<?php echo json_encode($inputHtml)?>);
  11. $('#notifyEmail').val(notifyEmail).attr('readonly', true);
  12. $('#feedbackBy').val(feedbackBy).attr('readonly', true);
  13. })
  14. </script>
  15. <?php endif;?>
  16. <?php if(isset($ticketID)):?>
  17. <?php $inputHtml = html::hidden('ticket', $ticketID);?>
  18. <script language='Javascript'>
  19. $(function()
  20. {
  21. $(this).find('#dataform').children('table').find('tr:last').children('td:last').append(<?php echo json_encode($inputHtml)?>);
  22. })
  23. </script>
  24. <?php endif;?>