
<form action="complaint.manage.php?action=modify_handling" method="post" id="form_modi">
<table width="100%" border="0" cellspacing="0" cellpadding="0"  class="from_table">
	<input type="hidden" name="complaint_report_id" value="<tpl> $complaint_report_id </tpl>" />
	<input type="hidden" name="complaint_report" value="<tpl> $complaint_report </tpl>" />
	<tr bgcolor="#FFFFFF">
      <th height="57" colspan="2" align="left" bgcolor="#FFFFFF" style="text-align:left; padding-left:10px"><em>
      <tpl> if $complaint_report eq 'complaint' </tpl> <tpl> $langComplaintInfo </tpl> <tpl> $langComplaintManageOperator </tpl> <tpl> else </tpl> <tpl> $langCompLawInfo </tpl> <tpl> $langComplaintManageOperator </tpl> 
      <tpl> /if </tpl></em></th>
	</tr>
	<tr bgcolor="#FFFFFF">
	  <th height="58" bgcolor="#FFFFFF">   <tpl> $langComplaintOperatorResult </tpl>:</th>
      <td bgcolor="#FFFFFF">   <textarea name="result" cols="40" rows="5"  class="tarea"  ></textarea>
	  <label style="display:none" for="result" class="wrong" metaDone="true" generated="true"></label>	 </td>
	</tr>
	<tr bgcolor="#FFFFFF">
      <td height="30" align="left">　      </td>
	  <td>  
	              <span class="btn_left">
	  <input type="submit" name="Submit" value="<tpl> $langComplaintEndOperator </tpl>" class="btn_submit" />
	  </span>
	              <span class="btn_left">
        <input type="button" name="Submit2" value="<tpl> $langCReturn </tpl>" class="btn_submit" onclick="ShowDiv='result_content';getPageContent('complaint.manage.php?action=view&complaint_report=<tpl> $complaint_report </tpl>&complaint_report_id=<tpl> $complaint_report_id </tpl>');" />
		</span>
		　</td>
    </tr>
</table>
</form>
<script type="text/javascript" language="javascript">
$(document).ready(function(){
	hideMessage();

	var options_modi = {
		beforeSubmit:  function(){showLoading(showText);},
		success:       function(msg){
						hideLoading();
						showMessage(msg.message,msg.type);
						if(msg.type == '1'){
							ShowDiv = "result_content";
							getPageContent("complaint.manage.php?action=view&complaint_report=<tpl> $complaint_report </tpl>&complaint_report_id=<tpl> $complaint_report_id </tpl>");
						}
					},
		type:      'post',
		dataType:  'json'
	};
	$("#form_modi").validate({
		errorClass: "wrong",
		rules: {
			result: {required:true}
		},
		messages: {
			result: {required:"<tpl> $langComplaintContentNotNull </tpl>"}
		},
		submitHandler: function() {
			$('#form_modi').ajaxSubmit(options_modi);
		}
	});
});
</script>
  
