Advertisement
Guest User

Untitled

a guest
Jan 27th, 2017
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1. <div class="modal">
  2. <div style="overflow-y: auto; max-height: 400px;" class="modal_{$id}">
  3. <form action="report.php" method="post" class="reportData_{$id}" onsubmit="return Report.submitReport({$id});">
  4. <input type="hidden" name="my_post_key" value="{$mybb->post_code}" />
  5. <input type="hidden" name="action" value="do_report" />
  6. <input type="hidden" name="type" value="{$report_type}" />
  7. <input type="hidden" name="pid" value="{$id}" />
  8. <input type="hidden" name="no_modal" value="1" />
  9. <table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
  10. <tr>
  11. <td class="thead" colspan="2"><strong>{$report_title}</strong></td>
  12. </tr>
  13. <tr>
  14. <td class="tcat" colspan="2">{$lang->report_to_mod}</td>
  15. </tr>
  16. {$report_reasons}
  17. </table>
  18. </form>
  19.  
  20. <script type="text/javascript">
  21. <!--
  22. if($("#report_reason option:selected").attr('data-extra') != 1)
  23. {
  24. $("#reason").hide();
  25. }
  26.  
  27. $("#report_reason").change(function()
  28. {
  29. if($(this).find("option:selected").attr('data-extra') == 1)
  30. {
  31. $("#reason").show();
  32. return;
  33. }
  34.  
  35. $("#reason").hide();
  36. });
  37. // -->
  38. </script>
  39. </div>
  40. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement