82 lines
2.6 KiB
Smarty
82 lines
2.6 KiB
Smarty
{* INCLUDE HEADER CODE *}
|
|
{include file="header_modal.tpl"}
|
|
{literal}
|
|
|
|
<script src="/include/js/jquery.form.js"></script>
|
|
<script>
|
|
function checkreport()
|
|
{
|
|
if(jQuery("#report_details").val()==""){alert("Please give a description of the problem"); return false;}
|
|
}
|
|
jQuery(document).ready(function() {
|
|
|
|
jQuery('#form1').ajaxForm({
|
|
success: function(){
|
|
jQuery('#form_div').hide();
|
|
jQuery('#success_div').show();
|
|
setTimeout(closemodal, 5000);
|
|
|
|
}
|
|
});
|
|
});</script>
|
|
{/literal}
|
|
{* $Id: user_report.tpl 8 2009-01-11 06:02:53Z john $ *}
|
|
|
|
{* SHOW CONFIRMATION OF REPORT *}
|
|
{if $submitted == 1}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{* SHOW SEND REPORT FORM *}
|
|
{else}
|
|
<div class="reportdiv">
|
|
<h2 class="orangetitle"><strong>Report a Problem</strong></h2>
|
|
<div id="success_div" style='display: none;'>{lang_print id=866}</div>
|
|
<div style='text-align:left;' id="form_div">
|
|
|
|
What's being reported: {$reportingwhat}
|
|
{* lang_print id=858 *}
|
|
<br />
|
|
<br />
|
|
|
|
<form action='user_report.php' method='POST' id="form1" onsubmit="return checkreport();" enctype="multipart/form-data">
|
|
|
|
|
|
<div>Tell us a little about the problem, including any relevant details</div>
|
|
<textarea class="form-control" name='report_details' id='report_details' rows='5' cols='50' minlength="20"></textarea>
|
|
|
|
<br>
|
|
|
|
|
|
<div class="upload-btn-wrapper">
|
|
|
|
|
|
<input type="image" class="btn" src="/images/uploadbutton.png" onclick="return false;">
|
|
<input type="file" name="screenshot" style="height:35px;" />
|
|
</div>
|
|
|
|
<br>
|
|
<div class="pull-left"><a href="https://support.bateworld.com/support/solutions/articles/154000136906-how-does-bateworld-handle-reports-" target="_blank" class="grey" style="font-size:10px;">How does BateWorld handle reports?</a></div>
|
|
<div class="pull-right">
|
|
<input type='button' class=' reportcancel grey' value='{lang_print id=39}' onClick='closemodal();'>
|
|
<input type='submit' class=' reportsubmit' value='Submit'></div><div class="clearfix clear"></div>
|
|
<input type='hidden' name='task' value='dosend'>
|
|
<input type='hidden' name='return_url' value='{$return_url}'>
|
|
<input type='hidden' name='objectid' value='{$objectid}'>
|
|
<input type='hidden' name='item' value='{$item}'>
|
|
<input type='hidden' name='type' value='{$type}'>
|
|
<input type='hidden' name='report_reason' value='5'>
|
|
<input type='hidden' name='user' value='{$owner->user_info.user_username}'>
|
|
<input type='hidden' name='customcomments' value='{$customcomments}'>
|
|
</form>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
{/if}
|
|
|
|
</body>
|
|
</html> |