<? global $vis_language; 
$status_array= array(1=>$vis_language['TXTSUCCESS'],2=>$vis_language['TXTMAILQUEUENOTEXIST'],3=>$vis_language['TXTCLIENTEMAILNOTVERIFIED'],4=>$vis_language['TXTREGISTRATIONREQUIRED'],5=>$vis_language['TXTCONTACTACCESS'],6=>$vis_language['TXTCLIENTREGISTRATIONERROR'],7=>$vis_language['TXTBANCLIENT'],8=>$vis_language['TXTAPPROVALPENDING'],9=>$vis_language['TXTIGNOREEMAIL'],10=>$vis_language['TXTSTAFFACCESS'],11=>$vis_language['TXTTICKETCREATIONERROR']);

 $vis_title = (($parserlog_details['ticket_id'] == NULL || $parserlog_details['ticket_id'] == 0) && $parserlog_details['status']==1)?' ( '.$status_array[11]." ) ":(($parserlog_details['status']!=1)?' ( '.$status_array[$parserlog_details['status']].' ) ':'');
 ?>
<section id="breadcrumb" class="row m-b m-l-none m-r-none">
   <div class="col-sm-6">
      <h3 class="m-b-xs text-black"><? echo $operation['view_title'];?></h3>
      <ul class="breadcrumb bg-empty no-border m-b-xxs no-padder">
         <li><a class="link" href="#/home/quick_view/<? echo $vis_language['TXTHOME']; ?>"><? echo $vis_language['TXTHOME']; ?></a></li>
         <li><a class="link" href="#/setting/setting_menu/<? echo $vis_language['TXTSETTINGS'];?>" onclick="$('#vis_workpanel_div').visExecution('load_module','<? echo $vis_language['TXTSETTINGS'];?>',{'vis_module':'setting','vis_operation':'setting_menu'});"><? echo $vis_language['TXTSETTINGS']; ?></a></li>
         <li> <a href="#/setting/view_parser_log/<? echo $vis_language['TXTPARSERLOG']; ?>" onclick="$('#vis_workpanel_div').visExecution('load_module','<? echo $vis_language['TXTPARSERLOG']; ?>',{'vis_module':'setting','vis_operation':'view_parser_log'});" class="link"><? echo $operation['view_title']; ?></a></li>
         <li class="active"> <? echo $vis_language['TXTPARSERLOG']; ?></li>
      </ul>
      <div>
      </div>
   </div>
</section>
<section class="padder">
   <section class="panel panel-default">
      <header class=" panel-heading sub_header"><? echo $vis_language['TXTPARSERLOG']; ?></header>
      <div class="panel-body">
         <form  class="form-horizontal" method="post">
            <div class="form-group">
               <label class="col-sm-2 control-label"><? echo $vis_language['TXTSUBJECT']; ?></label>
               <div class="col-sm-10">
                  <label class="control-label"><? echo stripslashes($parserlog_details['subject']); ?></label>
               </div>
            </div>
            <div class="form-group">
               <label class="col-sm-2 control-label"><? echo $vis_language['TXTFROM']; ?></label>
               <div class="col-sm-10">
                  <label class="control-label"><? echo $parserlog_details['from_email']; ?></label>
               </div>
            </div>
            <div class="form-group">
               <label class="col-sm-2 control-label"><? echo $vis_language['TXTTO']; ?></label>
               <div class="col-sm-10">
                  <label class="control-label"><? echo $parserlog_details['to_email']; ?></label>
               </div>
            </div>
            <div class="form-group">
               <label class="col-sm-2 control-label"><? echo $vis_language['TXTSTATUS']; ?></label>
               <div class="col-sm-10">
                 <label class="control-label"><? echo ($parserlog_details['ticket_id']!='')?$vis_language['TXTSUCCESS']:$vis_language['TXTFAILED'].' '. $vis_title; ?></label>
               </div>
            </div>
            <div class="form-group">
               <label class="col-sm-2 control-label"><? echo $vis_language['TXTMESSAGE']; ?></label>
               <div class="col-sm-10">
                 
                <textarea class="form-control" rows="20" readonly="readonly"><? echo ($parserlog_details['filename']!='')?$buffer:($log_detail['mail_content']); ?></textarea> 
               </div>
            </div>
      </form>
      </div>
   </section>
</section>
