<?  global $vis_language;

 


    $header_title=$vis_language['TXTREPORTS']; 
	$paging_list='';
    for($i=0;$i<$view_info['page_count'];$i++) $paging_list.='<option value="'.$i.'" '.(($subaccount_info['page']==$i)?'selected="selected"':'').'>'.($i+1).'</option>';  ?>
      <? if(isset($request_data['incorrect']) && $request_data['incorrect']=='email') { ?>
        <script> $("#vis_submit_msg_div").show(); $("#vis_submit_msg_div").html('<? echo $vis_language['MSGCLTEMAILEXIST']; ?>'); </script><? } 
        if(isset($operation['reg_message']) && $operation['reg_message']!='') { ?><script> $("#vis_submit_msg_div").show(); $("#vis_submit_msg_div").html('<? echo $operation['reg_message']; ?>'); </script><? } ?>
  <section class="container">
   <div class="row">
      <div class="col-md-12">
         <section class="panel shadow-none">
           
            <form class="vis_contacts_form" method="post">
			
			
			
		<br> 	
			 <section class="padder">
   
     
	  
      
               <table class="table table-hover b-t b-light m-b-none" data-ride="datatables" >
                   
                     <tr>
                        <td><? echo $vis_language['TXTBYSTATUS']; ?></td>
                        <td><a class="link"href="index.php?/client/work_report">  <? echo $vis_language['TXTVIEWRESULT']; ?></a></td>
                     </tr>
                     <tr>
                        <td><? echo $vis_language['TXTPRIPORTY']; ?></td>
						 <td><a class="link"href="index.php?/client/priorty_report">  <? echo $vis_language['TXTVIEWRESULT']; ?></a></td>
						 
                         
                     </tr>
                     <tr>
                        <td><? echo $vis_language['TXTBYTYPE']; ?></td>
						<td><a class="link"href="index.php?/client/type_report">  <? echo $vis_language['TXTVIEWRESULT']; ?></a></td>
                         
                     </tr>
					  <?  if(VIS_HEAD_MENU_ASSIGNEDTO==1) {?>
                     <tr>
                        <td><? echo $vis_language['TXTBYOWNER']; ?></td>
                        	<td><a class="link"href="index.php?/client/owner_report">  <? echo $vis_language['TXTVIEWRESULT']; ?></a></td>
                     </tr>
					 <? } ?>
					 <? 
					   
					 if($client['is_manager']==1) {?>
					  <tr>
                        <td><? echo $vis_language['TXTCLIENTBYTICKET']; ?></td>
                        	<td><a class="link"href="index.php?/client/ticket_by_client">  <? echo $vis_language['TXTVIEWRESULT']; ?></a></td>
                     </tr>
					  <tr>
                        <td><? echo $vis_language['TXTCLIENTBYORGNATION']; ?></td>
                        	<td><a class="link"href="index.php?/client/organization_by_report">  <? echo $vis_language['TXTVIEWRESULT']; ?></a></td>
                     </tr> 
                     <? } ?>
				 
                     
                  
               </table>
            
   
</section> 
 
   
				 <div class="form-group">
				  
				  
				 
				<!--<div class="col-sm-2">
				 
				  
			
			<div class="row padder clr" <? if($subaccount_details==-1) echo 'style="display:none;"'; ?>>
				<div class="col-sm-9 m-t-xs">
					 <div class="panel-heading m-t-lg">
					   <p class="pull-right m-t-n-lg">
					  <!-- <a class="btn btn-link btn-sm vis_link_button link pull-right text-xm m-t-xs" href="index.php?/client/add-contact"><? echo $vis_language['TXTADDCONTACT']; ?></a></p>  -->           
                  </div>  
				</div>
				<div class="col-sm-3 text-right text-center-xs tkt_right_menu">
                        <ul class="pagination-sm pagination" id="task_pagination"></ul>
               </div>
			</div>
            <div class="list-unstyled padder m-b-none table-responsive  " id="vis_subaccount_list" <? if($subaccount_details==-1) echo 'style="display:none;"'; ?>>
			  <? include_once(VIS_PATH_TEMPLATE.'subaccount_report.php'); ?>
            </div>
              <div class="row padder clr m-b" <? if($subaccount_details==-1) echo 'style="display:none;"'; ?>>
				<div class="col-sm-9"></div>
				<div class="col-sm-3 text-right text-center-xs tkt_right_menu">
                        <ul class="pagination-sm pagination" id="task_pagination1"></ul>
           </div>
			</div>
			<input type="hidden" name="vis_page" id="vis_page" value="">
			<input type="hidden" name="vis_module" value="client">
			<input type="hidden" name="vis_operation" value="get_subaccounts">
			</form>
          
          </section>
      </div>
   </div>
</section>
<script>
function showData(data)
{
    var answer=document.getElementById("duration");
    if(answer[answer.selectedIndex].value=="4")
    {
         document.getElementById("divid").style.display="block";
         document.getElementById("divid1").style.display="block";
    }
    else
    {
         document.getElementById("divid").style.display="none";
         document.getElementById("divid1").style.display="none";
    }
    //document.getElementById('vis_client_group_ticket_report1_details').innerHTML = "";
    //document.getElementById("vis_export_rpt_client_group_ticket_report1").style.display="none";
}
</script>
<script type="text/javascript">
   $(document).ready(function() {
   $('[data-ride="datatables"]').dataTable({
   	 "bPaginate" : false,
          "paginate": false,
   		"sDom": 't', "bAutoWidth": false,
   		"aoColumns": [
   			{ "bSortable": false },
   		  	null,
   		  	null,
   		  	null,
   		  	null,
   			{ "bSortable": false },
   		]
   	});
   });
	$('.from_date').datetimepicker({
        format: "<?php echo VIS_DATETIMEPICKER_FORMAT;?>"
	 });
	 $('.to_date').datetimepicker({
			format: "<?php echo VIS_DATETIMEPICKER_FORMAT;?>"
	 });
	 $('.to_date').click();
	 $('.bootstrap-datetimepicker-widget').hide();
</script>
<!--<script>
<?// if($view_info['page_count']>0) {?>
    $('.pagination-sm').twbsPagination({
		totalPages:<?php echo $view_info['page_count']; ?>,
		visiblePages:3,
		first:false,
		last:false,
		onPageClick: function (event, page) {     
		$.ajax({
		url: 'index.php',
		data: {'vis_module':"client", 'vis_operation':"get_subaccounts", 'vis_page':page-1, 'vis_form':'vis_task_form1', 'vis_change':1},
		type: "POST",
		success: function(data) {            
			$("#vis_subaccount_list").html(data);
		}
		});
          }
      });
<?// }?>
function load_page(page) {
	$('#vis_page').val(page);
	$(".vis_contacts_form").submit();
}
</script>
