<script>
	   $(".selectpicker").selectpicker();
</script>
<?  //echo count($customfield_array);
   global $vis_language;
   $paging_list='';
   for($i=0;$i<$view_info['page_count'];$i++) $paging_list.='<option value="'.$i.'" '.(($comments_info['page']==$i)?'selected="selected"':'').'>'.($i+1).'</option>';
   
   ?>
<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"><?= $report_title ?></h3>
      <div>
         <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="#/report/report_list/<? echo $vis_language['TXTREPORTS']; ?>" onclick="$('#vis_workpanel_div').visExecution('load_module', '<? echo $vis_language['TXTREPORTS']; ?>', {'vis_module':'<?php echo $operation['vis_module']; ?>', 'vis_operation':'report_list'});"><? echo $vis_language['TXTREPORTS']; ?></a></li>
            
			
            
            <li><a class="link" href="#/report/report_list/<? echo $vis_language['TXTREPORTS']; ?>/Reports?&show_report=2" onclick="$('#vis_workpanel_div').visExecution('load_module', '<? echo $vis_language['TXTREPORTS']; ?>', {'vis_module':'<?php echo $operation['vis_module']; ?>', 'vis_operation':'report_list','show_report':'2'});"><? echo $vis_language['TXTDATA']; ?></a></li>
           
            <li class="active"><?= $report_title ?></li>
         </ul>
      </div>
   </div>
   <div class="col-sm-6 text-right text-left-xs m-t-lg">
   <? include(VIS_PATH_TEMPLATE.'report_left_menu.php'); ?>
   </div>
</section>
<div class="col-lg-12">
   <form name="vis_<?= $operation['vis_operation'] ?>_frm" id="vis_<?= $operation['vis_operation'] ?>_frm" class="form-horizontal">
      <section class="panel panel-default">
         <div class="row wrapper clr">
            <div class="col-sm-12">
               <div>
 
                  
 
                  <?php if($operation['vis_operation']!='client_report' && $operation['vis_operation']!='get_client_survey_report' && $operation['vis_operation']!='quest_report' && $operation['vis_operation']!='quest1_report' && $operation['vis_operation']!='merged_tickets_report'&& $operation['vis_operation']!='channel_wise_tickets_report' && $operation['vis_operation']!='customfield_data_userreg_report' && $operation['vis_operation']!='customfield_data_orgreg_report'&& $operation['vis_operation']!='assets_usedby_client_report' && $operation['vis_operation']!='assets_managedby_staff_report' && $operation['vis_operation']!='assets_linkedto_tickets_report' && $operation['vis_operation']!='assets_linkedto_problems_report' && $operation['vis_operation']!='assets_groupby_status_report' && $operation['vis_operation']!='assets_groupby_location_report' && $operation['vis_operation']!='task_by_status_report' && $operation['vis_operation']!='assets_asset_type_report' && $operation['vis_operation']!='assets_asset_type_report' && $operation['vis_operation']!='assets_asset_product_report' && $operation['vis_operation']!='hardware_assets_by_state_report' && $operation['vis_operation']!='assets_depreciation_report' && $operation['vis_operation']!='assets_depreciation_notification_report' && $operation['vis_operation']!='clients_by_organization_report' && $operation['vis_operation']!='assign_staff_task_report')
 
                     { ?>
                  <div class="col-sm-2">
                     <div class="text-muted pull-center label_page"><? echo $vis_language['TXTDURATION']; ?>:</div>
                     <select id="duration" name="duration" class="selectpicker" onchange="showData(this.value)">
                        <option value="0"><? echo $vis_language['TXTSELECTDURATION']; ?></option>
                        <option value="1"><? echo $vis_language['TXTLAST30DAYS']; ?></option>
                        <option value="2"><? echo $vis_language['TXTLAST7DAYS']; ?></option>
                        <option value="3"><? echo $vis_language['TXTLAST24HOURS']; ?></option>
                        <option value="4"><? echo $vis_language['TXTCUSTOM']; ?></option>
                     </select>
                  </div>
                  <div class="col-sm-3" id='mdivid' style="display:none;">
                  <div class="col-sm-6" id='divid' style="display:none;">
                      <div class="text-muted pull-center label_page"><? echo $vis_language['TXTFROM']; ?>:</div>
                      <div class="text-muted pull-center from_date"><input type="text" name="from_date" id="vis_<?= $operation['vis_operation'] ?>_from_date" value="<?= date(VIS_EDITDATETIMEPICKER_FORMAT,strtotime(date('Y-m-d H:i:s')." -3 months") + VIS_TIMEZONE);?>" class="input-sm form-control " /></div>
                  </div>
                  <div class="col-sm-6"  id='divid1' style="display:none;">
                     <div class="text-muted pull-center label_page"><? echo $vis_language['TXTTO']; ?>:</div>
                      <div class="text-muted pull-center to_date"><input type="text" name="to_date" id="vis_<?= $operation['vis_operation'] ?>_to_date" value="" class="input-sm form-control " /></div>
                  </div>
                  </div>
                  <?php
                     }// Display to and form date
                     if($operation['vis_operation']=='work_report' || $operation['vis_operation']=='performance_report' || $operation['vis_operation']=='staff_sla_report' || $operation['vis_operation']=='login_act_report' || $operation['vis_operation']=='staff_report' || $operation['vis_operation']=='staff_response_time_report' || $operation['vis_operation'] =='ticket_replied_by_staff_report' || $operation['vis_operation'] =='ticket_forwarded_by_staff_report' || $operation['vis_operation'] =='ticket_viewed_by_staff_report' )
                     {
                       if(VIS_ADMIN_ACCESS==-1){
                           echo '<input type="hidden" name="staff_id" value="'.VIS_STAFF_ID.'" />';
                       } else { ?>
                  <div class="col-sm-2">
                     <div class="text-muted pull-center label_page"><? echo $vis_language['TXTSTAFF']; ?>:</div>
                     <select name="staff_id" class="selectpicker staffId" <? if(count($staff) > 10) echo 'data-live-search="true"' ?>>
                     <option value="0"><? echo $vis_language['TXTSELECTSTAFF']; ?></option>
                     <?php if($staff!=-1) for($i=0;$i<count($staff);$i++) echo '<option value="'.$staff[$i]['staff_id'].'">'.$staff[$i]['staff_name'].'</option>'; ?>
                     </select>
                  </div>
                  <? }
                     }// Condition for work_report
                     elseif($operation['vis_operation']=='time_tracking_staff_report')
                     { ?>
                  <div class="col-sm-2">
                     <div class="text-muted pull-center label_page"><? echo $vis_language['TXTSTAFF']; ?>:</div>
                     <select name="staff_id" class="selectpicker staffId" <? if(count($staff) > 10) echo 'data-live-search="true"' ?>>
                     <option value="0"><? echo $vis_language['TXTSELECTSTAFF']; ?></option>
                     <?php if($staff!=-1) for($i=0;$i<count($staff);$i++) echo '<option value="'.$staff[$i]['staff_id'].'">'.$staff[$i]['staff_name'].'</option>'; ?>
                     </select>
                  </div>
                  <div class="col-sm-2">
                     <div class="text-muted pull-center label_page"><? echo $vis_language['TXTDOMAIN']; ?>:</div>
                     <select name="domain_id" class="selectpicker domain_id" <? if(count($domain) > 10) echo 'data-live-search="true"' ?>>
                     <option value="0"><? echo $vis_language['TXTSELDOM']; ?></option>
                     <?php if($domain!=-1) for($i=0;$i<count($domain);$i++) echo '<option value="'.$domain[$i]['domain_id'].'">'.$domain[$i]['domain_name'].'</option>'; ?>
                     </select>
                  </div>
                  <?
                     }
                     elseif($operation['vis_operation']=='response_report' || $operation['vis_operation']=='sla_report' || $operation['vis_operation']=='top_performance' || $operation['vis_operation']=='channel_report' || $operation['vis_operation']=='rating_report' || $operation['vis_operation']== 'staff_response_report' || $operation['vis_operation']== 'time_tracking_department_report' || $operation['vis_operation']== 'graphical_report' || $operation['vis_operation']== 'problems_report' || $operation['vis_operation']== 'changes_report' || $operation['vis_operation']== 'releases_report' || $operation['vis_operation']== 'ticket_ci_relation_report' || $operation['vis_operation']== 'problem_ci_relation_report' || $operation['vis_operation']== 'changes_ci_relation_report') { ?>
                  <div class="col-sm-3">
                     <div class="text-muted pull-center label_page"><? echo $vis_language['TXTDEPARTMENT']; ?>:</div>
                     <select name="department_id" class="selectpicker" id="department_id" <? if(count($departments) > 10) echo 'data-live-search="true"' ?>>
						<option value="0"><? echo $vis_language['TXTSELECTDEPARTMENT']; ?></option>
                     <?php if($departments!=-1) for($i=0;$i<count($departments);$i++) echo '<option value="'.$departments[$i]['department_id'].'">'.$departments[$i]['domain_name'].' : '.$departments[$i]['department_name'].'</option>'; ?>
                     </select>
                  </div>
                  	 <? } elseif($operation['vis_operation']=='billing_invoice_report')   {?>
					 
					  <div class="col-sm-2">
                     <div class="text-muted pull-center label_page"><? echo $vis_language['TXTDEPARTMENT']; ?>:</div>
                     <select name="department_id" class="selectpicker" id="department_id" <? if(count($departments) > 10) echo 'data-live-search="true"' ?>>
						<option value="-1"><? echo $vis_language['TXTSELECTDEPARTMENT']; ?></option>
						<option value="0"><? echo $vis_language['TXTALLDEPARTMENTS']; ?></option>
                     <?php if($departments!=-1) for($i=0;$i<count($departments);$i++) {
						 
					 echo '<option value="'.$departments[$i]['department_id'].'">'.$departments[$i]['domain_name'].' :'.$departments[$i]['department_name'].'</option>';} ?>
                     </select>
                  </div>
				    <div class="col-sm-2">
                     <div class="text-muted pull-center label_page"><? echo $vis_language['TXTBILLINGSTATUS']; ?>:</div>
                     <select name="status_id" class="selectpicker" id="status_id"  >
						<option value="-1"><? echo $vis_language['TXTSELECTSTATUS']; ?></option>
						<option value="0"><? echo $vis_language['TXTUNPAID']; ?></option>
						<option value="1"><? echo $vis_language['TXTPAID']; ?></option>
						
						<option value="2"><? echo $vis_language['TXTCANCELED']; ?></option>
						<option value="3"><? echo $vis_language['TXTALL']; ?></option>
						 

                     </select>
                  </div>
				   <? } elseif($operation['vis_operation']=='task_linkedto_ticket_report')   {?>
					 
					  <div class="col-sm-2">
                     <div class="text-muted pull-center label_page"><? echo $vis_language['TXTDEPARTMENT']; ?>:</div>
                     <select name="department_id" class="selectpicker" id="department_id" <? if(count($departments) > 10) echo 'data-live-search="true"' ?>>
						<option value="-1"><? echo $vis_language['TXTSELECTDEPARTMENT']; ?></option>
						<!--<option value="0"><? echo $vis_language['TXTALLDEPARTMENTS']; ?></option>-->
                     <?php if($departments!=-1) for($i=0;$i<count($departments);$i++) {
						 
					 echo '<option value="'.$departments[$i]['department_id'].'">'.$departments[$i]['domain_name'].' :'.$departments[$i]['department_name'].'</option>';} ?>
                     </select>
                  </div>
				  
                   <? } elseif($operation['vis_operation']=='order_report' || $operation['vis_operation']=='transaction_report')   {?>
					 
					  <div class="col-sm-2">
                     <div class="text-muted pull-center label_page"><? echo $vis_language['TXTDEPARTMENT']; ?>:</div>
                     <select name="department_id" class="selectpicker" id="department_id" <? if(count($departments) > 10) echo 'data-live-search="true"' ?>>
						<option value="-1"><? echo $vis_language['TXTSELECTDEPARTMENT']; ?></option>
						<option value="0"><? echo $vis_language['TXTALLDEPARTMENTS']; ?></option>
                     <?php if($departments!=-1) for($i=0;$i<count($departments);$i++) {
						 
					 echo '<option value="'.$departments[$i]['department_id'].'">'.$departments[$i]['domain_name'].' :'.$departments[$i]['department_name'].'</option>';} ?>
                     </select>
                  </div>
				  <div class="col-sm-2">
                     <div class="text-muted pull-center label_page"><? echo $vis_language['TXTSTATUS']; ?>:</div>
                    <select name="status_id" class="selectpicker" id="status_id"  >
						<option value="-1"><? echo $vis_language['TXTSELECTSTATUS']; ?></option>
						<option value="0"><? echo $vis_language['TXTUNPAID']; ?></option>
						<option value="1"><? echo $vis_language['TXTPAID']; ?></option>
						<option value="2"><? echo $vis_language['TXTCANCELED']; ?></option>
						<option value="3"><? echo $vis_language['TXTINPROCESS']; ?></option>
						<option value="4"><? echo $vis_language['TXTALL']; ?></option>
                     </select>
                  </div>
				  
				   <? } elseif($operation['vis_operation']=='client_order_report' || $operation['vis_operation']=='client_transaction_report')     {?>
					 
					   <div class="col-sm-2">
						 <div class="text-muted pull-center label_page"><? echo $vis_language['TXTCLIENT']; ?>:</div>
						 <input class="form-control input-sm" type="text" name="vis_new_ticket_list_client" id="vis_new_ticket_list_client"  value="<? //echo $operation['vis_email_id']; ?>" placeholder="<?= $vis_language['TXTTYPETOSEARCHEXISTINGCLIENTSEMAILADDRESS']?>" data-resize="no" style="width:100%" onkeypress="tokIp()" onclick="tokIp()"/>
                                <script type="text/javascript">
                                    function tokIp()
                                    {
										$("#vis_new_ticket_list_client").tokenInput(
                                            "index.php?vis_module=client&vis_operation=list_clients",
                                            {
                                                theme: "facebook",
                                                searchDelay: 300,
                                                minChars: 3,
                                                queryParam: "vis_data",
                                                propertyToSearch: "email",
                                                tokenValue: "email",
                                                tokenLimit: 1,
                                                noResultsText: "<? echo $vis_language['TXTNOMATCHFOUND']; ?>",
                                                preventDuplicates: true,
                                                resultsFormatter: function(item) {
													contactType = (item.client_type == 0)?item.email:item.contact_number ;
                                                    return "<li>" + "<div style='display: inline-block; padding-left: 10px;'><div class='full_name'>" + item.domain_name + " " + item.full_name + " < " + contactType + " ></div></div></li>";
                                                },
                                                tokenFormatter: function(item) {
                                                    contactType = (item.client_type == 0)?item.email:item.contact_number ;
                                                    return "<li><p>" + contactType + "</p></li>";
                                                },
                                                onAdd: function(item)
												{
													$('#vis_client_id').val(item.id);
													$('#domain_id').val(item.domain_id);
												},
												onDelete: function(item)
												{
													$('#vis_client_id').val('');
												}
                                            }
                                        );
                                        $("div.token-input-dropdown-facebook").css('width', $(".token-input-list-facebook").width() + 2 + 'px');
                                        $("#token-input-vis_new_ticket_list_client").parent().css('width','100%');
										$("#vis_new_ticket_list_client").focus();
                                    }
                                </script>
                                <input type="hidden" name="vis_client_id" id="vis_client_id">
								<input type="hidden" name="domain_id" id="domain_id">
					  </div>
				  <div class="col-sm-2">
                     <div class="text-muted pull-center label_page"><? echo $vis_language['TXTSTATUS']; ?>:</div>
                    <select name="status_id" class="selectpicker" id="status_id"  >
						<option value="-1"><? echo $vis_language['TXTSELECTSTATUS']; ?></option>
						<option value="0"><? echo $vis_language['TXTUNPAID']; ?></option>
						<option value="1"><? echo $vis_language['TXTPAID']; ?></option>
						<option value="2"><? echo $vis_language['TXTCANCELED']; ?></option>
						<option value="3"><? echo $vis_language['TXTINPROCESS']; ?></option>
						<option value="4"><? echo $vis_language['TXTALL']; ?></option>
                     </select>
                  </div>
				  
				  
				  <? } elseif($operation['vis_operation']=='client_with_maximum_ticket_report' || $operation['vis_operation']=='most_commented_article_report' || $operation['vis_operation']=='client_with_maximum_reply_ticket_report'   || $operation['vis_operation']=='most_rated_articles_report' || $operation['vis_operation']=='most_view_articles_report')   {?>
					 
					  <div class="col-sm-2">
                      <div class="text-muted pull-center label_page"><? echo $vis_language['TXTDOMAIN']; ?>:</div>
                     <select name="domain_id" class="selectpicker domain_id" <? if(count($domain) > 10) echo 'data-live-search="true"' ?>>
                     <option value="0"><? echo $vis_language['TXTSELDOM']; ?></option>
                     <?php if($domain!=-1) for($i=0;$i<count($domain);$i++) echo '<option value="'.$domain[$i]['domain_id'].'">'.$domain[$i]['domain_name'].'</option>'; ?>
                     </select>
                  </div>
				    <div class="col-sm-1">
                     <div class="text-muted pull-center label_page"><? echo $vis_language['TXTMAXCOUNT']; ?>:</div>
                     <select name="maxcount" class="selectpicker" id="maxcount"  >
						<option value="-1"><? echo $vis_language['TXTSELECT']; ?></option>
						<option value="0,10"><? echo $vis_language['TXTTEN']; ?></option>
						<option value="0,20"><? echo $vis_language['TXTTWENTY']; ?></option>
						<option value="0,50"><? echo $vis_language['TXTFIFTY']; ?></option>
						<option value="0,100"><? echo $vis_language['TXTHUNDRED']; ?></option>
                     </select>
                  </div>
				   
				    <? }
				   elseif($operation['vis_operation']=='assign_staff_task_report' )
                     { ?>
					 
					 <div class="col-sm-2" id='divid' ">
                      <div class="text-muted pull-center label_page"><? echo $vis_language['TXTSTARTDATE']; ?>:</div>
                    <div class="text-muted pull-center from_date"><input type="text" name="from_date" id="vis_<?= $operation['vis_operation'] ?>_from_date" value="<?= date(VIS_EDITDATETIMEPICKER_FORMAT,strtotime(date('Y-m-d H:i:s')." -3 months") + VIS_TIMEZONE);?>" class="input-sm form-control " /></div>
                  </div>
					 
                  <div class="col-sm-2">
                     <div class="text-muted pull-center label_page"><? echo $vis_language['TXTSTAFF']; ?>:</div>
                     <select name="staff_id" class="selectpicker staffId" <? if(count($staff) > 10) echo 'data-live-search="true"' ?>>
                     <option value="0"><? echo $vis_language['TXTSELECTSTAFF']; ?></option>
                     <?php if($staff!=-1) for($i=0;$i<count($staff);$i++) echo '<option value="'.$staff[$i]['staff_id'].'">'.$staff[$i]['staff_name'].'</option>'; ?>
                     </select>
                  </div>
				  <? }
				   elseif($operation['vis_operation']=='task_commented_report' ||$operation['vis_operation'] =='graphical_status_change_report')
                     { ?>	 
                  <div class="col-sm-2">
                     <div class="text-muted pull-center label_page"><? echo $vis_language['TXTSTAFF']; ?>:</div>
                     <select name="staff_id" class="selectpicker staffId" <? if(count($staff) > 10) echo 'data-live-search="true"' ?>>
                     <option value="0"><? echo $vis_language['TXTSELECTSTAFF']; ?></option>
                     <?php if($staff!=-1) for($i=0;$i<count($staff);$i++) echo '<option value="'.$staff[$i]['staff_id'].'">'.$staff[$i]['staff_name'].'</option>'; ?>
                     </select>
                  </div>
				  <? }
                                 elseif($operation['vis_operation'] =='graphical_status_change_report')
                     { ?>	 
                  <div class="col-sm-2">
                     <div class="text-muted pull-center label_page"><? echo $vis_language['TXTSTAFF']; ?>:</div>
                     <select name="staff_id" class="selectpicker staffId" <? if(count($staff) > 10) echo 'data-live-search="true"' ?>>
                     <option value="0"><? echo $vis_language['TXTSELECTSTAFF']; ?></option>
                     <?php if($staff!=-1) for($i=0;$i<count($staff);$i++) echo '<option value="'.$staff[$i]['staff_id'].'">'.$staff[$i]['staff_name'].'</option>'; ?>
                     </select>
                  </div>
				  <? }  
				  
				   elseif($operation['vis_operation']=='task_commented_report')
                     { ?>
					 
					 
					 
                  <div class="col-sm-2">
                     <div class="text-muted pull-center label_page"><? echo $vis_language['TXTSTAFF']; ?>:</div>
                     <select name="staff_id" class="selectpicker staffId" <? if(count($staff) > 10) echo 'data-live-search="true"' ?>>
                     <option value="0"><? echo $vis_language['TXTSELECTSTAFF']; ?></option>
                     <?php if($staff!=-1) for($i=0;$i<count($staff);$i++) echo '<option value="'.$staff[$i]['staff_id'].'">'.$staff[$i]['staff_name'].'</option>'; ?>
                     </select>
                  </div>
				  <? }
						elseif($operation['vis_operation']=='task_by_status_report' )//THIS ONE FOR TASK  BY STATUS
				   {
					   ?>
						<div class="col-sm-2">
						<div class="text-muted pull-center label_page"><? echo $vis_language['TXTSTATUS']; ?>:</div>
						<select class="selectpicker" name="vis_status" id="vis_status">
						  <option value="0"><? echo $vis_language['TXTSELECT']; ?></option>
        <option value="-1"><? echo $vis_language['TXTALL']; ?></option>
						  <option value="1"><? echo $vis_language['TXTINPROGRESS']; ?></option>
						  <option value="2"><? echo $vis_language['TXTOVERDUE']; ?></option>
						  <option value="3"><? echo $vis_language['TXTCOMPLETED']; ?></option>
						  <option value="4"><? echo $vis_language['TXTCANCELED']; ?></option>
						  <option value="5"><? echo $vis_language['TXTNOTSTARTED']; ?></option>
						</select>
						</div>  
					   
				   
				   <?
				   }
				   
				   elseif($operation['vis_operation']=='overdue_task_report' || $operation['vis_operation']=='assets_managedby_staff_report')
                     { ?>
                  <div class="col-sm-2">
                     <div class="text-muted pull-center label_page"><? echo $vis_language['TXTSTAFF']; ?>:</div>
                     <select name="staff_id" class="selectpicker staffId" <? if(count($staff) > 10) echo 'data-live-search="true"' ?>>
                     <option value="-1"><? echo $vis_language['TXTSELECTSTAFF']; ?></option>
					 <option value="0"><? echo $vis_language['TXTALLSTAFF']; ?></option>
					 <option value="-2"><? echo 'Unassigned'; ?></option>
					  
                     <?php if($staff!=-1) for($i=0;$i<count($staff);$i++) echo '<option value="'.$staff[$i]['staff_id'].'">'.$staff[$i]['staff_name'].'</option>'; ?>
                     </select>
                  </div>
				  
				   
				   <!--<div class="col-sm-3">
                     <div class="text-muted pull-center label_page"><? echo $vis_language['TXTSTATUS']; ?>:</div>
                     <select name="status_id" class="selectpicker" id="status_id"  >
						<option value="0"><? echo $vis_language['TXTSELECT']; ?></option>
						<option value="1"><? echo $vis_language['TXTINPROGRESS']; ?></option>
						<option value="2"><? echo $vis_language['TXTOVERDUE']; ?></option>
						<option value="3"><? echo $vis_language['TXTCOMPLETED']; ?></option>
						<option value="4"><? echo $vis_language['TXTCANCELED']; ?></option>
						 

                     </select>
                  </div>!-->
				 
        <? } elseif($operation['vis_operation']=='first_response_report' || $operation['vis_operation']=='total_response_report'){?>
					 
					  <div class="col-sm-3">
                     <div class="text-muted pull-center label_page"><? echo $vis_language['TXTDEPARTMENT']; ?>:</div>
                     <select name="department_id" class="selectpicker" id="department_id" <? if(count($departments) > 10) echo 'data-live-search="true"' ?>>
						<option value="0"><? echo $vis_language['TXTSELECTDEPARTMENT']; ?></option>
						<option value="1"><? echo $vis_language['TXTALLDEPARTMENTS']; ?></option>
                     <?php if($departments!=-1) for($i=0;$i<count($departments);$i++) {
						 
					 echo '<option value="'.$departments[$i]['department_id'].'">'.$departments[$i]['domain_name'].' :'.$departments[$i]['department_name'].'</option>';} ?>
                     </select>
                  </div>
        <? }elseif($operation['vis_operation']=='staff_point_report')   {?>
					 
					  
				   <div class="col-sm-2">
                     <div class="text-muted pull-center label_page"><? echo $vis_language['TXTSTAFF']; ?>:</div>
                     <select name="staff_id" class="selectpicker staffId" <? if(count($staff) > 10) echo 'data-live-search="true"' ?>>
                     <option value="-1"><? echo $vis_language['TXTSELECTSTAFF']; ?></option>
					   <option value="0"><? echo $vis_language['TXTALLSTAFF']; ?></option>
                     <?php if($staff!=-1) for($i=0;$i<count($staff);$i++) echo '<option value="'.$staff[$i]['staff_id'].'">'.$staff[$i]['staff_name'].'</option>'; ?>
                     </select>
                  </div>
	    <?} elseif($operation['vis_operation']=='itil_problems_groupby_status_report') { ?>
		        <div class="col-sm-2">
                   <div class="text-muted pull-center label_page">&nbsp;&nbsp;</div>
			        <select name="vis_status_condition" class="selectpicker" id="vis_status_condition">
                     <option value="0" selected="selected"><? echo $vis_language['TXTEQUAL'];?></option>
					   <option value="1"><? echo $vis_language['TXTNOTEQUAL'];?></option>
                     </select>
					</div>
				
				<div class="col-sm-2">
                   <div class="text-muted pull-center label_page"><? echo $vis_language['TXTSTATUS']; ?></div>
				   <select class=" selectpicker" name="vis_status" id="vis_status"<? if (count($status) > 10) echo ' data-live-search="true"'; ?>><? for ($i = 0; $i < count($status); $i++)
                   echo '<option value="' . $status[$i]['status_id'] . '">' . $status[$i]['status_name'] . '</option>'; ?>
			     </select>
				 </div>
		
		<?} elseif($operation['vis_operation']=='itil_problems_groupby_priority_report') { ?>
		        <div class="col-sm-2">
                   <div class="text-muted pull-center label_page">&nbsp;&nbsp;</div>
			        <select name="vis_priority_condition" class="selectpicker" id="vis_priority_condition">
                     <option value="0" selected="selected"><? echo $vis_language['TXTEQUAL'];?></option>
					   <option value="1"><? echo $vis_language['TXTNOTEQUAL'];?></option>
                     </select>
					</div>
				
				<div class="col-sm-2">
                   <div class="text-muted pull-center label_page"><? echo $vis_language['TXTPRIORITY']; ?></div>
				   <select class=" selectpicker" name="vis_priority" id="vis_priority"<? if (count($priorities) > 10) echo ' data-live-search="true"'; ?>><? for ($i = 0; $i < count($priorities); $i++)
                   echo '<option value="' . $priorities[$i]['priority_id'] . '">' . $priorities[$i]['priority_name'] . '</option>'; ?>
			     </select>
				 </div>
				 
		<?} elseif($operation['vis_operation']=='itil_problems_groupby_impact_report') { ?>
		        <div class="col-sm-2">
                   <div class="text-muted pull-center label_page">&nbsp;&nbsp;</div>
			        <select name="vis_impact_condition" class="selectpicker" id="vis_impact_condition">
                     <option value="0" selected="selected"><? echo $vis_language['TXTEQUAL'];?></option>
					   <option value="1"><? echo $vis_language['TXTNOTEQUAL'];?></option>
                     </select>
					</div>
					
				<div class="col-sm-2">
                   <div class="text-muted pull-center label_page"><? echo $vis_language['TXTIMPACT']; ?></div>
				   <select class=" selectpicker" name="vis_impact" id="vis_impact"<? if (count($impact) > 10) echo ' data-live-search="true"'; ?>><? for ($i = 0; $i < count($impact); $i++)
                   echo '<option value="' . $impact[$i]['impact_id'] . '">' . $impact[$i]['name'] . '</option>'; ?>
			     </select>
				 </div>
		
        <? }elseif($operation['vis_operation']=='staff_bonus_point_report')   {?>
					  
				   <div class="col-sm-2">
                     <div class="text-muted pull-center label_page"><? echo $vis_language['TXTSTAFF']; ?>:</div>
                     <select name="staff_id" class="selectpicker staffId" <? if(count($staff) > 10) echo 'data-live-search="true"' ?>>
                     <option value="-1"><? echo $vis_language['TXTSELECTSTAFF']; ?></option>
					   <option value="0"><? echo $vis_language['TXTALLSTAFF']; ?></option>
                     <?php if($staff!=-1) for($i=0;$i<count($staff);$i++) echo '<option value="'.$staff[$i]['staff_id'].'">'.$staff[$i]['staff_name'].'</option>'; ?>
                     </select>
                  </div>
		<? }
				elseif($operation['vis_operation']=='assets_linkedto_tickets_report' || $operation['vis_operation']=='assets_linkedto_problems_report') { ?>
				<div class="col-sm-3">
				<div class="text-muted pull-center label_page"><? echo $vis_language['TXTASSETNAME']; ?>:</div>
			    <select name="vis_asset_id" id="vis_asset_id" class="selectpicker">
                <option value="-1">Select</option>
			    <?   if($assets!=-1){
				     for ($a=0;$a<count($assets);$a++) {
						echo '<option value="'.$assets[$a]['assets_id'].'">'.$assets[$a]['name'].'</option>';
						}
				}
					 ?>
                 </select>
                </div>	
                
   	<? }
				elseif($operation['vis_operation']=='assets_groupby_status_report') { ?>
				<div class="col-sm-3">
				<div class="text-muted pull-center label_page"><? echo $vis_language['TXTSTATUS']; ?>:</div>
			    <select name="status_id" id="status_id" class="selectpicker">
                <option value="-1">Select</option>
                <option value="1"><? echo $vis_language['TXTNOTEXPIRED'];?></option>
			    <option value="2"><? echo $vis_language['TXTITILEXPIRED'];?></option>
				 </select>
                </div>	
				
				<div class="col-sm-3">
				<div class="text-muted pull-center label_page"><? echo $vis_language['TXTCITYPE']; ?>:</div>
			    <select name="vis_ci_type" id="vis_ci_type" class="selectpicker">
                <option value="">Select</option>
                <option value="2"><? echo $vis_language['TXTHARDWARE'];?></option>
			    <option value="3"><? echo $vis_language['TXTSOFTWARE'];?></option>
				 </select>
                </div>	
   <? }
				elseif($operation['vis_operation']=='assets_groupby_location_report') { ?>
				<div class="col-sm-3">
				<div class="text-muted pull-center label_page"><? echo $vis_language['TXTLOCATION']; ?>:</div>
			    <select name="location_id" id="location_id" class="selectpicker">
               <? echo $location;?>
                 </select>
                </div>	
				
				<?}elseif($operation['vis_operation']=='ticket_activity_by_department_report') { ?>
				 <div class="col-sm-3">
                     <div class="text-muted pull-center label_page"><? echo $vis_language['TXTDEPARTMENT']; ?>:</div>
					  <select name="department_id" class="selectpicker" id="department_id" <? if(count($departments) > 10) echo 'data-live-search="true"' ?>>
						<option value="0"><? echo $vis_language['TXTSELECTDEPARTMENT']; ?></option>		 			
                     <?php if($departments!=-1) for($i=0;$i<count($departments);$i++) echo '<option value="'.$departments[$i]['department_id'].'">'.$departments[$i]['domain_name'].' : '.$departments[$i]['department_name'].'</option>'; ?>
                     </select>
                  </div>
                  
				<? }elseif($operation['vis_operation']=='assets_asset_type_report') { ?>
				<div class="col-sm-3">
				<div class="text-muted pull-center label_page"><? echo $vis_language['TXTTYPE']; ?>:</div>
			    <select name="location_id" id="location_id" class="selectpicker">
				<option value="-1">Select</option>
				<? if($config_details!=-1) for($i=0;$i<count($config_details);$i++) 
						echo '<option value="'.$config_details[$i]['item_id'].'">'.$config_details[$i]['name'].'</option>'; 
						  ?>
					   
                 </select>
                </div>	
				
				<? }elseif($operation['vis_operation']=='assets_asset_product_report') { ?>
				 <div class="col-sm-2">
				<div class="text-muted pull-center label_page"><? echo $vis_language['TXTPRODUCT']; ?>:</div>
			    <select name="product_id" id="product_id" class="selectpicker">
				<option value="-1">Select</option>
				<!--<option value="0"><? echo $vis_language['TXTALL'];?></option>-->
					<? if($ci_product_details!=-1) for($i=0;$i<count($ci_product_details);$i++) 
						echo '<option value="'.$ci_product_details[$i]['product_id'].'">'.$ci_product_details[$i]['name'].'</option>'; 
						  ?>
					   
                 </select>
                </div>	
                <div class="col-sm-2">
                     <div class="text-muted pull-center label_page"><? echo $vis_language['TXTCITYPE']; ?>:</div>
			     <select name="vis_ci_type" id="vis_ci_type" class="selectpicker">
				 <option value=""><? echo $vis_language['TXTSELECT']; ?></option>
					 <? for($i=0;$i<count($citype_details);$i++) 
							echo '<option value="'.$citype_details[$i]['item_id'].'">'.$citype_details[$i]['name'].'</option>'; 
					?>
				</select>
				 </div>
				<div class="col-sm-3">
				<div class="text-muted pull-center label_page"><? echo $vis_language['TXTVENDOR']; ?>:</div>
			    <select name="vendor_id" id="vendor_id" class="selectpicker">
				<option value="-1">Select</option>
				<!--<option value="0"><? echo $vis_language['TXTALL'];?></option>-->
					<? if($vendor_details!=-1) for($i=0;$i<count($vendor_details);$i++) 
						echo '<option value="'.$vendor_details[$i]['vendor_id'].'">'.$vendor_details[$i]['name'].'</option>'; 
						  ?>
					   
                  </select>
                </div> 
				 
                  <? }elseif($operation['vis_operation']=='hardware_assets_by_state_report') { ?>
				 <div class="col-sm-2">
				<div class="text-muted pull-center label_page"><? echo $vis_language['TXTASSETSTATE']; ?>:</div>
			    <select name="asset_id" id="asset_id" class="selectpicker">
				<option value="-1">Select</option>
				<!--<option value="0"><? echo $vis_language['TXTALL'];?></option>-->
					<? if($asset_state_details!=-1) for($i=0;$i<count($asset_state_details);$i++) 
						echo '<option value="'.$asset_state_details[$i]['asset_id'].'">'.$asset_state_details[$i]['description'].'</option>'; 
						  ?>
					   
                 </select>
                </div>
				 <? }elseif($operation['vis_operation']=='assets_depreciation_report' || $operation['vis_operation']=='assets_depreciation_notification_report') { ?>
				 <div class="col-sm-2">
				<div class="text-muted pull-center label_page"><? echo $vis_language['TXTDEPRECIATIONTYPE']; ?>:</div>
			    <select name="depr_type_id" id="depr_type_id" class="selectpicker">
				<option value="-1">Select</option>
				<option value="0"><? echo $vis_language['TXTALL'];?></option>
					<? if($depreciation_details!=-1) for($i=0;$i<count($depreciation_details);$i++) 
						echo '<option value="'.$depreciation_details[$i]['finance_id'].'">'.$depreciation_details[$i]['name'].'</option>'; 
						  ?>
					   
                 </select>
                </div>
				  
				<? } elseif($operation['vis_operation']=='domain_report' || $operation['vis_operation']=='graphical_domain_report' || $operation['vis_operation']=='staff_leaderboard_report' || $operation['vis_operation']=='staff_leaderboard_first_avgresponse_report'){?>
					 
					  <div class="col-sm-2">
                     <div class="text-muted pull-center label_page"><? echo $vis_language['TXTDOMAIN']; ?>:</div>
                     <select name="domain_id" class="selectpicker domain_id" <? if(count($domain) > 10) echo 'data-live-search="true"' ?>>
                     <option value="0"><? echo $vis_language['TXTSELDOM']; ?></option>
                     <?php if($domain!=-1) for($i=0;$i<count($domain);$i++) echo '<option value="'.$domain[$i]['domain_id'].'">'.$domain[$i]['domain_name'].'</option>'; ?>
                     </select>
                  </div>
                  
                  <? } elseif($operation['vis_operation']=='staff_leaderboard_avgresponse_report' || $operation['vis_operation']=='staff_leaderboard_avgresponse_maintain_report'){?>
                  
                  <div class="col-sm-2">
                     <div class="text-muted pull-center label_page"><? echo $vis_language['TXTDOMAIN']; ?>:</div>
                     <select name="domain_id" class="selectpicker domain_id" <? if(count($domain) > 10) echo 'data-live-search="true"' ?>>
                     <option value="0"><? echo $vis_language['TXTSELDOM']; ?></option>
                     <?php if($domain!=-1) for($i=0;$i<count($domain);$i++) echo '<option value="'.$domain[$i]['domain_id'].'">'.$domain[$i]['domain_name'].'</option>'; ?>
                     </select>
                  </div>
                  
                   <?
                     }
					 
					 
					 
                     elseif($operation['vis_operation']=='deleted_tickets_report' || $operation['vis_operation']=='unoverdue_ticket_report' || $operation['vis_operation']=='channel_wise_tickets_report' || $operation['vis_operation']=='customfield_data_report') { ?>
					 <div class="col-sm-3">
                     <div class="text-muted pull-center label_page"><? echo $vis_language['TXTDEPARTMENT']; ?>:</div>
					  <select name="department_id" class="selectpicker" id="department_id" <? if(count($departments) > 10) echo 'data-live-search="true"' ?>>
						 <option value=''><? echo $vis_language['TXTSELECTDEPARTMENT']; ?></option>
						 <option value="0"><? echo $vis_language['TXTALLDEPARTMENTS']; ?></option>						
                     <?php if($departments!=-1) for($i=0;$i<count($departments);$i++) echo '<option value="'.$departments[$i]['department_id'].'">'.$departments[$i]['domain_name'].' : '.$departments[$i]['department_name'].'</option>'; ?>
                     </select>
                  </div>
				  <? 
                    				  
				  if($operation['vis_operation']=='channel_wise_tickets_report') { ?>
					 <div class="col-sm-3">
					 <div class="text-muted pull-center label_page"><? echo $vis_language['TXTCHANNEL']; ?>:</div>
					 <select name="channel_id" id="channel_id" class="selectpicker" <? if(count($channels)>10) echo 'data-live-search="true"';?>>
						<? if($channels!=-1) 
						{
						for($i=0;$i<count($channels); $i++) 
						{
					     if($channels[$i]['channel_id']!=7){ //set for service item
						echo '<option '.((isset($operation['vis_channel_id']) && $operation['vis_channel_id']==$channels[$i]['channel_id']) || ($operation['vis_chat_type']=='livechatinc' && $channels[$i]['channel_id']=='8') ||($operation['vis_chat_type']=='teamviewer' && $channels[$i]['channel_id']=='14') || ($operation['vis_chat_type']=='clickdesk' && $channels[$i]['channel_id']=='17')|| ($operation['vis_chat_type']=='zopim' && $channels[$i]['channel_id']=='18')|| ($operation['vis_chat_type']=='teamviewersession' && $channels[$i]['channel_id']=='14')|| ($operation['vis_chat_type']=='gotomeeting' && $channels[$i]['channel_id']=='12') || ($operation['vis_chat_type']=='gotoassist' && $channels[$i]['channel_id']=='13') || ($operation['vis_chat_type']=='webex' && $channels[$i]['channel_id']=='15') || ($operation['vis_chat_type']=='twilio' && $channels[$i]['channel_id']=='16') || ($operation['vis_chat_type']=='livezilla' && $channels[$i]['channel_id']=='9') || ($operation['vis_chat_type']=='userlike' && $channels[$i]['channel_id']=='10') || ($operation['vis_chat_type']=='comm100' && $channels[$i]['channel_id']=='11')?'selected="selected"':'').'value="'.$channels[$i]['channel_id'].'" '.$chk.'>'.$channels[$i]['channel_name'].'</option>';
						}
						}
						?>
					</select>
					  </div>
				  <? } }
				  
					 if($operation['vis_operation']=='customfield_data_report'){ ?>
					 <div class="col-sm-3">
					 <div class="text-muted pull-center label_page"><? echo $vis_language['TXTFIELDNAME']; ?>:</div>
					
					 <select name="field_type" id="field_type" class="selectpicker">
					 <option value="">Select</option>
					 <? if($customfield_array[0]!=-1){ ?>
					 <option value="0">All Fields</option> 
					 <?} 
					 if($customfield_array[0]!=-1) for($i=0;$i<count($customfield_array);$i++) for($j=0;$j<count($customfield_array[$i]);$j++) echo '<option value="'.$customfield_array[$i][$j]['field_group'].'">'.$customfield_array[$i][$j]['field_name'].'</option>' ?>
					 </select>
					</div>
				     <? } }
					 
					  elseif($operation['vis_operation']=='customfield_staff_report' ) { ?>
					  <div class="col-sm-2">
                     <div class="text-muted pull-center label_page"><? echo $vis_language['TXTSTAFF']; ?>:</div>
                     <select name="staff_id" class="selectpicker staffId" <? if(count($staff_details) > 10) echo 'data-live-search="true"' ?>>
                     <option value="-1"><? echo $vis_language['TXTSELECTSTAFF']; ?></option>
                    <option value="0"><? echo $vis_language['TXTALLSTAFF']; ?></option>
                     <?php if($staff_details!=-1) for($i=0;$i<count($staff_details);$i++) echo '<option value="'.$staff_details[$i]['staff_id'].'">'.$staff_details[$i]['staff_name'].'</option>'; ?>
                     </select>
                  </div>
					
                                     <div class="col-sm-3">
					 <div class="text-muted pull-center label_page"><? echo $vis_language['TXTFIELDNAME']; ?>:</div>
					
					 <select name="field_type" id="field_type" class="selectpicker">
					 <option value="">Select</option>
					 <? if($customfield_array[0]!=-1){ ?>
					 <option value="0">All Fields</option> 
					 <?} 
					 if($customfield_array[0]!=-1) for($i=0;$i<count($customfield_array);$i++) for($j=0;$j<count($customfield_array[$i]);$j++) echo '<option value="'.$customfield_array[$i][$j]['field_group'].'">'.$customfield_array[$i][$j]['field_name'].'</option>' ?>
					 </select>
					</div>
				     <? } 
				    
					 
					elseif($operation['vis_operation']=='customfield_data_userreg_report'){ ?>
					 <div class="col-sm-3">
					 <div class="text-muted pull-center label_page"><? echo $vis_language['TXTFIELDNAME']; ?>:</div>
					 <?php // print_r($customfield_array); ?>
					 <select name="userfield_name" id="userfield_name" class="selectpicker">
					  <option value="">Select</option>
					<? if($customfield_userreg_array[0]!=-1 && count($customfield_userreg_array[0])>0){ ?>
                     <option value="0">All Fields</option>
					<? }
					 if($customfield_userreg_array[0]!=-1) for($i=0;$i<count($customfield_userreg_array);$i++) for($j=0;$j<count($customfield_userreg_array[$i]);$j++) echo '<option value="'.$customfield_userreg_array[$i][$j]['field_group'].'">'.$customfield_userreg_array[$i][$j]['field_name'].'</option>' ?>
                     </select>
                     </div>		
                  
                  
                  <?
                     }
					 elseif($operation['vis_operation']=='customfield_data_orgreg_report'){ ?>
					 <div class="col-sm-3">
					 <div class="text-muted pull-center label_page"><? echo $vis_language['TXTFIELDNAME']; ?>:</div>
					 <?php // print_r($customfield_orgreg_array); ?>
					 <select name="userfield_name" id="userfield_name" class="selectpicker">
					  <option value="">Select</option>
					<? if($customfield_orgreg_array[0]!=-1 && count($customfield_orgreg_array[0])>0){ ?>
                     <option value="0">All Fields</option>
					<? }
					 if($customfield_orgreg_array[0]!=-1) for($i=0;$i<count($customfield_orgreg_array);$i++) for($j=0;$j<count($customfield_orgreg_array[$i]);$j++) echo '<option value="'.$customfield_orgreg_array[$i][$j]['field_group'].'">'.$customfield_orgreg_array[$i][$j]['field_name'].'</option>' ?>
                     </select>
                     </div>		
                  
                  
                  <?
                     }
                     elseif($operation['vis_operation']=='billing_report' || $operation['vis_operation']=='department_report') { ?>
                  <div class="col-sm-3">
                     <div class="text-muted pull-center label_page"><? echo $vis_language['TXTDOMAIN']; ?>:</div>
                     <select name="domain_id" class="selectpicker domain_id" <? if(count($domain) > 10) echo 'data-live-search="true"' ?>>
                     <option value="0"><? echo $vis_language['TXTSELDOM']; ?></option>
                     <?php if($domain!=-1) for($i=0;$i<count($domain);$i++) echo '<option value="'.$domain[$i]['domain_id'].'">'.$domain[$i]['domain_name'].'</option>'; ?>
                     </select>
                  </div>
                  <?
                     }
					 
					 elseif($operation['vis_operation']=='billing_client_report' || $operation['vis_operation']=='assets_usedby_client_report') { ?>
					 <?
					 if($operation['vis_operation']=='assets_usedby_client_report') { ?>
					 <div class="col-sm-3">
					 <div class="text-muted pull-center label_page"><? echo $vis_language['TXTASSETNAME']; ?>:</div>
					<select name="asset_name" id="asset_name" class="selectpicker">
                     <option value="">Select</option>
					 <? foreach ($assets_details as $i) {
						foreach ($i as $key => $val) {
							if(strpos($val,'"')){
								echo "<option value='".$val."'>".$val."</option>";
							}
							else{
								echo '<option value="'.htmlentities($val, ENT_COMPAT, 'UTF-8').'">'.$val.'</option>';
							}
						}
					} ?>
                     </select>
                     </div>	
					 
					  <div class="col-sm-2">
                     <div class="text-muted pull-center label_page"><? echo $vis_language['TXTCITYPE']; ?>:</div>
			          <select name="vis_ci_type" id="vis_ci_type" class="selectpicker">
				      <option value=""><? echo $vis_language['TXTSELECT']; ?></option>
					 <? for($i=0;$i<count($citype_details);$i++) 
						echo '<option value="'.$citype_details[$i]['item_id'].'">'.$citype_details[$i]['name'].'</option>'; 
						  ?>
				     </select>
				    </div>
                     
					 <div class="col-sm-3">	
                     <div class="text-muted pull-center label_page"><? echo $vis_language['TXTCLIENT']; ?>:</div>					 
					<input class="form-control input-sm" type="text" name="vis_usedby" id="vis_usedby"  placeholder="<?= $vis_language['TXTTYPETOSEARCHEXISTINGCLIENTSEMAILADDRESS']?>" data-resize="no" style="width:100%"/>
                                <script type="text/javascript">
                                    $(document).ready(function() {
                                        $("#vis_usedby").tokenInput(
                                            "index.php?vis_module=cmdb&vis_operation=get_staff_client_details",
                                            {
                                                theme: "facebook",
                                                searchDelay: 300,
                                                minChars: 3,
                                                queryParam: "vis_data",
                                                propertyToSearch: "email",
                                                tokenValue: "email",
                                                tokenLimit: 1,
                                                preventDuplicates: true,
                                                resultsFormatter: function(item) {
                                                    return "<li>" + "<div style='display: inline-block; padding-left: 10px;'><div class='full_name'>" + item.full_name + " < " + item.email + " ></div></div></li>";
                                                },
                                                tokenFormatter: function(item) {
													if(item.email!=''){
                                                    	return "<li><p>" + item.email + "</p></li>";
													}else{
														return '';
													}
                                                }
                                            }
                                        );
										$("div.token-input-dropdown-facebook").css('width', $(".token-input-list-facebook").width() + 2 + 'px');
                                        $("#token-input-vis_usedby").parent().css('width','100%');
										$("#vis_usedby").focus();
								   
								   <? if($assets_details['usedby']!=''){ ?>
                                     	$("#vis_usedby").tokenInput("add", {email: "<?= $assets_details['usedby']; ?>"});
                                   <? }?>
                                    });
                                </script></div>
					 
					 <? } if($operation['vis_operation']!='assets_usedby_client_report') {?>
                  <div class="col-sm-3">
						 <div class="text-muted pull-center label_page"><? echo $vis_language['TXTCLIENT']; ?>:</div>
						 <input class="form-control input-sm" type="text" name="vis_new_ticket_list_client" id="vis_new_ticket_list_client"  value="<? //echo $operation['vis_email_id']; ?>" placeholder="<?= $vis_language['TXTTYPETOSEARCHEXISTINGCLIENTSEMAILADDRESS']?>" data-resize="no" style="width:100%" onkeypress="tokIp()" onclick="tokIp()"/>
                                <script type="text/javascript">
                                    function tokIp()
                                    {
										$("#vis_new_ticket_list_client").tokenInput(
                                            "index.php?vis_module=client&vis_operation=list_clients",
                                            {
                                                theme: "facebook",
                                                searchDelay: 300,
                                                minChars: 3,
                                                queryParam: "vis_data",
                                                propertyToSearch: "email",
                                                tokenValue: "email",
                                                tokenLimit: 1,
                                                noResultsText: "<? echo $vis_language['TXTNOMATCHFOUND']; ?>",
                                                preventDuplicates: true,
                                                resultsFormatter: function(item) {
													contactType = (item.client_type == 0)?item.email:item.contact_number ;
                                                    return "<li>" + "<div style='display: inline-block; padding-left: 10px;'><div class='full_name'>" + item.domain_name + " " + item.full_name + " < " + contactType + " ></div></div></li>";
                                                },
                                                tokenFormatter: function(item) {
													contactType = (item.client_type == 0)?item.email:item.contact_number ;
                                                    return "<li><p>" + contactType + "</p></li>";
                                                },
                                                onAdd: function(item)
												{
													$('#vis_client_id').val(item.id);
													$('#domain_id').val(item.domain_id);
												},
												onDelete: function(item)
												{
													$('#vis_client_id').val('');
												}
                                            }
                                        );
                                        $("div.token-input-dropdown-facebook").css('width', $(".token-input-list-facebook").width() + 2 + 'px');
                                        $("#token-input-vis_new_ticket_list_client").parent().css('width','100%');
										$("#vis_new_ticket_list_client").focus();
                                    }
                                </script>
                                <input type="hidden" name="vis_client_id" id="vis_client_id">
								<input type="hidden" name="domain_id" id="domain_id">
					  </div>
					 <?}
                     }
					    
                     elseif($operation['vis_operation']=='ticket_activity_report') {   ?>
					 <div class="col-sm-3" id="tok">
                            <div class="text-muted pull-center label_page"><? echo $vis_language['TXTTICKETHASH']; ?>:</div>
							 
                        
				<input class="form-control input-sm" type="text" name="vis_new_ticket_list_client1" id="vis_new_ticket_list_client1"  value="" placeholder="<?= $vis_language['TXTTYPETOSEARCHEXISTINGTICKETHASH']?>" data-resize="no" style="width:100%" onkeypress="tokIp()"/>
					  
					 </div><?
					 }
                     elseif($operation['vis_operation']=='get_survey_report') { ?>
					  <div class="col-sm-3">
						 <div class="text-muted pull-center label_page"><? echo $vis_language['TXTSURVEY']; ?>:</div>
						 <select name="survey_id" class="selectpicker" <? if(count($custom_group_details) > 10) echo 'data-live-search="true"' ?>>
						 <option value="0"><? echo $vis_language['TXTSELSURVEY'];?></option>
						 <?php if($custom_group_details!=-1) for($i=0;$i<count($custom_group_details);$i++) echo '<option value="'.$custom_group_details[$i]['customgroup_id'].'">'.trim($custom_group_details[$i]['customgroup_name']).'</option>'; ?>
						 </select>
					  </div>
                  <?
                     }
                     elseif($operation['vis_operation']=='time_tracking_client_report') { ?>					
			<div class="col-sm-3" id="tok">
                            <div class="text-muted pull-center label_page"><? echo $vis_language['TXTCLIENT']; ?>:</div>
				<input class="form-control input-sm" type="text" name="vis_new_ticket_list_client" id="vis_new_ticket_list_client"  value="<? //echo $operation['vis_email_id']; ?>" placeholder="<?= $vis_language['TXTTYPETOSEARCHEXISTINGCLIENTSEMAILADDRESS']?>" data-resize="no" style="width:100%" onkeypress="tokIp()" onclick="tokIp()"/>
                                <script type="text/javascript">
                                    function tokIp()
                                    {
					var selectVal = $('.domain_id option:selected').val();
                                        $("#vis_new_ticket_list_client").tokenInput(
                                            "index.php?vis_module=client&vis_operation=list_clients&vis_domain_id="+selectVal,
                                            {
                                                theme: "facebook",
                                                searchDelay: 300,
                                                minChars: 3,
                                                queryParam: "vis_data",
                                                propertyToSearch: "email",
                                                tokenValue: "email",
                                                tokenLimit: 1,
                                                noResultsText: "<? echo $vis_language['TXTNOMATCHFOUND']; ?>",
                                                preventDuplicates: true,
                                                resultsFormatter: function(item) {
													contactType = (item.client_type == 0)?item.email:item.contact_number ;
                                                    return "<li>" + "<div style='display: inline-block; padding-left: 10px;'><div class='full_name'>" + item.domain_name + " " + item.full_name + " < " + contactType + " ></div></div></li>";
                                                },
                                                tokenFormatter: function(item) {
													contactType = (item.client_type == 0)?item.email:item.contact_number ;
                                                    return "<li><p>" + contactType + "</p></li>";
													 
                                                },
                                                onAdd: function(item)
												{
													$('#vis_client_id').val(item.id);
													$('#domain_id').val(item.domain_id);
												},
												onDelete: function(item)
												{
													$('#vis_client_id').val('');
												}
                                            }
                                        );
                                        $("div.token-input-dropdown-facebook").css('width', $(".token-input-list-facebook").width() + 2 + 'px');
                                        $("#token-input-vis_new_ticket_list_client").parent().css('width','100%');
										$("#vis_new_ticket_list_client").focus();
                                    }
                                </script>
                                <input type="hidden" name="vis_client_id" id="vis_client_id">
								<input type="hidden" name="domain_id" id="domain_id">
					  </div>
		 <?  }
                     elseif($operation['vis_operation']=='get_client_survey_report' || $operation['vis_operation'] == 'rating_client_report' || $operation['vis_operation']=='client_sla_report' || $operation['vis_operation']=='time_tracking_client_report') { ?>
						<div class="<? if($operation['vis_operation']=='client_sla_report'){ echo 'col-sm-1';}else{ echo 'col-sm-2'; }?>">
							 <div class="text-muted pull-center label_page"><? echo $vis_language['TXTDOMAIN']; ?>:</div>
							 <select name="domain_id" class="selectpicker domain_id" <? if(count($domain) > 10) echo 'data-live-search="true"' ?> onchange="selDomain()">
							 <option value="0" selected="selected"><? echo $vis_language['TXTSELDOM']; ?></option>
							 <?php if($domain!=-1) for($i=0;$i<count($domain);$i++) echo '<option value="'.$domain[$i]['domain_id'].'">'.$domain[$i]['domain_name'].'</option>'; ?>
							 </select>
					    </div>
					    <div class="col-sm-3" id="tok">
						 <div class="text-muted pull-center label_page"><? echo $vis_language['TXTCLIENT']; ?>:</div>
						 <input class="form-control input-sm" type="text" name="vis_new_ticket_list_client" id="vis_new_ticket_list_client"  value="<? //echo $operation['vis_email_id']; ?>" placeholder="<?= $vis_language['TXTTYPETOSEARCHEXISTINGCLIENTSEMAILADDRESS']?>" data-resize="no" style="width:100%" onkeypress="tokIp()" onclick="tokIp()"/>
                                <script type="text/javascript">
                                    function tokIp()
                                    {
										var selectVal = $('.domain_id option:selected').val();
                                        $("#vis_new_ticket_list_client").tokenInput(
                                            "index.php?vis_module=client&vis_operation=list_clients&vis_domain_id="+selectVal,
                                            {
                                                theme: "facebook",
                                                searchDelay: 300,
                                                minChars: 3,
                                                queryParam: "vis_data",
                                                propertyToSearch: "email",
                                                tokenValue: "email",
                                                tokenLimit: 1,
                                                noResultsText: "<? echo $vis_language['TXTNOMATCHFOUND']; ?>",
                                                preventDuplicates: true,
                                                resultsFormatter: function(item) {
												    contactType = (item.client_type == 0)?item.email:item.contact_number;
                                                    return "<li>" + "<div style='display: inline-block; padding-left: 10px;'><div class='full_name'>" + item.domain_name + " " + item.full_name + " < " + contactType + " ></div></div></li>";
                                                },
                                                tokenFormatter: function(item) {
                                                    contactType = (item.client_type == 0)?item.email:item.contact_number ;
                                                    return "<li><p>" + contactType + "</p></li>";
                                                },
                                                onAdd: function(item)
												{
													$('#vis_client_id').val(item.id);
													$('#domain_id').val(item.domain_id);
												},
												onDelete: function(item)
												{
													$('#vis_client_id').val('');
												}
                                            }
                                        );
                                        $("div.token-input-dropdown-facebook").css('width', $(".token-input-list-facebook").width() + 2 + 'px');
                                        $("#token-input-vis_new_ticket_list_client").parent().css('width','100%');
										$("#vis_new_ticket_list_client").focus();
                                    }
                                </script>
                                <input type="hidden" name="vis_client_id" id="vis_client_id">
								<input type="hidden" name="domain_id" id="domain_id">
					  </div>
        <?
					 }
					 
					 // merged tickets report added by sumit
					elseif($operation['vis_operation']=='merged_tickets_report' || $operation['vis_operation']=='itil_problemsolved_report' ||  $operation['vis_operation']=='changes_resolvedby_staff_report') { ?>
					  <?//print_r($staff_list); ?>
					 <div class="col-sm-2">
                     <div class="text-muted pull-center label_page"><? echo $vis_language['TXTSTAFF']; ?>:</div>
                     <select name="staff_id" class="selectpicker staffId" <? if(count($staff_list) > 10) echo 'data-live-search="true"' ?>>
                     <option value="0"><? echo $vis_language['TXTALLSTAFF']; ?></option>
                     <?php if($staff_list!=-1) for($i=0;$i<count($staff_list);$i++) echo '<option value="'.$staff_list[$i]['staff_id'].'">'.$staff_list[$i]['first_name'].' '.$staff_list[$i]['last_name'].'</option>'; ?>
                     </select>
                  </div>
					 <?
					 }
                     elseif($operation['vis_operation']=='client_report') {
                      ?>
                  <div class="col-sm-3">
                     <div class="text-muted pull-center label_page"><? echo $vis_language['TXTDOMAIN']; ?>:</div>
                     <select name="domain_id" class="selectpicker domain_id" <? if(count($domain) > 10) echo 'data-live-search="true"' ?>>
                     <option value="0"><? echo $vis_language['TXTSELDOM']; ?></option>
                     <?php if($domain!=-1) for($i=0;$i<count($domain);$i++) echo '<option value="'.$domain[$i]['domain_id'].'">'.$domain[$i]['domain_name'].'</option>'; ?>
                     </select>
                  </div>
                  <div class="col-sm" >
				 <div class="text-muted pull-center label_page">&nbsp;</div>
				  <div class="btn-toolbar">
		                <div class="btn-group">
                     <button class="btn btn-default" type="button" onclick="$('#vis_<?= $operation['vis_operation'] ?>_details').visExecution('load_operations', {'vis_module':'report', 'vis_operation':'<?= $operation['vis_operation'] ?>', 'vis_form':'vis_<?= $operation['vis_operation'] ?>_frm', 'vis_client_start':'a'})">A</button>
                      <button class="btn btn-default" type="button" onclick="$('#vis_<?= $operation['vis_operation'] ?>_details').visExecution('load_operations', {'vis_module':'report', 'vis_operation':'<?= $operation['vis_operation'] ?>', 'vis_form':'vis_<?= $operation['vis_operation'] ?>_frm', 'vis_client_start':'b'})">B</button>
                     <button class="btn btn-default" type="button" onclick="$('#vis_<?= $operation['vis_operation'] ?>_details').visExecution('load_operations', {'vis_module':'report', 'vis_operation':'<?= $operation['vis_operation'] ?>', 'vis_form':'vis_<?= $operation['vis_operation'] ?>_frm', 'vis_client_start':'c'})">C</button>
                      <button class="btn btn-default" type="button" onclick="$('#vis_<?= $operation['vis_operation'] ?>_details').visExecution('load_operations', {'vis_module':'report', 'vis_operation':'<?= $operation['vis_operation'] ?>', 'vis_form':'vis_<?= $operation['vis_operation'] ?>_frm', 'vis_client_start':'d'})">D</button>
                      <button class="btn btn-default" type="button" onclick="$('#vis_<?= $operation['vis_operation'] ?>_details').visExecution('load_operations', {'vis_module':'report', 'vis_operation':'<?= $operation['vis_operation'] ?>', 'vis_form':'vis_<?= $operation['vis_operation'] ?>_frm', 'vis_client_start':'e'})">E</button>
                      <button class="btn btn-default" type="button" onclick="$('#vis_<?= $operation['vis_operation'] ?>_details').visExecution('load_operations', {'vis_module':'report', 'vis_operation':'<?= $operation['vis_operation'] ?>', 'vis_form':'vis_<?= $operation['vis_operation'] ?>_frm', 'vis_client_start':'f'})">F</button>
                     <button class="btn btn-default" type="button" onclick="$('#vis_<?= $operation['vis_operation'] ?>_details').visExecution('load_operations', {'vis_module':'report', 'vis_operation':'<?= $operation['vis_operation'] ?>', 'vis_form':'vis_<?= $operation['vis_operation'] ?>_frm', 'vis_client_start':'g'})">G</button>
                      <button class="btn btn-default" type="button" onclick="$('#vis_<?= $operation['vis_operation'] ?>_details').visExecution('load_operations', {'vis_module':'report', 'vis_operation':'<?= $operation['vis_operation'] ?>', 'vis_form':'vis_<?= $operation['vis_operation'] ?>_frm', 'vis_client_start':'h'})">H</button>
                      <button class="btn btn-default" type="button" onclick="$('#vis_<?= $operation['vis_operation'] ?>_details').visExecution('load_operations', {'vis_module':'report', 'vis_operation':'<?= $operation['vis_operation'] ?>', 'vis_form':'vis_<?= $operation['vis_operation'] ?>_frm', 'vis_client_start':'i'})">I</button>
                      <button class="btn btn-default" type="button" onclick="$('#vis_<?= $operation['vis_operation'] ?>_details').visExecution('load_operations', {'vis_module':'report', 'vis_operation':'<?= $operation['vis_operation'] ?>', 'vis_form':'vis_<?= $operation['vis_operation'] ?>_frm', 'vis_client_start':'j'})">J</button>
                      <button class="btn btn-default" type="button" onclick="$('#vis_<?= $operation['vis_operation'] ?>_details').visExecution('load_operations', {'vis_module':'report', 'vis_operation':'<?= $operation['vis_operation'] ?>', 'vis_form':'vis_<?= $operation['vis_operation'] ?>_frm', 'vis_client_start':'k'})">K</button>
                      <button class="btn btn-default" type="button" onclick="$('#vis_<?= $operation['vis_operation'] ?>_details').visExecution('load_operations', {'vis_module':'report', 'vis_operation':'<?= $operation['vis_operation'] ?>', 'vis_form':'vis_<?= $operation['vis_operation'] ?>_frm', 'vis_client_start':'l'})">L</button>
                      <button class="btn btn-default" type="button" onclick="$('#vis_<?= $operation['vis_operation'] ?>_details').visExecution('load_operations', {'vis_module':'report', 'vis_operation':'<?= $operation['vis_operation'] ?>', 'vis_form':'vis_<?= $operation['vis_operation'] ?>_frm', 'vis_client_start':'m'})">M</button>
                      <button class="btn btn-default" type="button" onclick="$('#vis_<?= $operation['vis_operation'] ?>_details').visExecution('load_operations', {'vis_module':'report', 'vis_operation':'<?= $operation['vis_operation'] ?>', 'vis_form':'vis_<?= $operation['vis_operation'] ?>_frm', 'vis_client_start':'n'})">N</button>
                      <button class="btn btn-default" type="button" onclick="$('#vis_<?= $operation['vis_operation'] ?>_details').visExecution('load_operations', {'vis_module':'report', 'vis_operation':'<?= $operation['vis_operation'] ?>', 'vis_form':'vis_<?= $operation['vis_operation'] ?>_frm', 'vis_client_start':'o'})">O</button>
                      <button class="btn btn-default" type="button" onclick="$('#vis_<?= $operation['vis_operation'] ?>_details').visExecution('load_operations', {'vis_module':'report', 'vis_operation':'<?= $operation['vis_operation'] ?>', 'vis_form':'vis_<?= $operation['vis_operation'] ?>_frm', 'vis_client_start':'p'})">P</button>
                      <button class="btn btn-default" type="button" onclick="$('#vis_<?= $operation['vis_operation'] ?>_details').visExecution('load_operations', {'vis_module':'report', 'vis_operation':'<?= $operation['vis_operation'] ?>', 'vis_form':'vis_<?= $operation['vis_operation'] ?>_frm', 'vis_client_start':'q'})">Q</button>
                      <button class="btn btn-default" type="button" onclick="$('#vis_<?= $operation['vis_operation'] ?>_details').visExecution('load_operations', {'vis_module':'report', 'vis_operation':'<?= $operation['vis_operation'] ?>', 'vis_form':'vis_<?= $operation['vis_operation'] ?>_frm', 'vis_client_start':'r'})">R</button>
                      <button class="btn btn-default" type="button" onclick="$('#vis_<?= $operation['vis_operation'] ?>_details').visExecution('load_operations', {'vis_module':'report', 'vis_operation':'<?= $operation['vis_operation'] ?>', 'vis_form':'vis_<?= $operation['vis_operation'] ?>_frm', 'vis_client_start':'s'})">S</button>
                     <button class="btn btn-default" type="button" onclick="$('#vis_<?= $operation['vis_operation'] ?>_details').visExecution('load_operations', {'vis_module':'report', 'vis_operation':'<?= $operation['vis_operation'] ?>', 'vis_form':'vis_<?= $operation['vis_operation'] ?>_frm', 'vis_client_start':'t'})">T</button>
                      <button class="btn btn-default" type="button" onclick="$('#vis_<?= $operation['vis_operation'] ?>_details').visExecution('load_operations', {'vis_module':'report', 'vis_operation':'<?= $operation['vis_operation'] ?>', 'vis_form':'vis_<?= $operation['vis_operation'] ?>_frm', 'vis_client_start':'u'})">U</button>
                      <button class="btn btn-default" type="button" onclick="$('#vis_<?= $operation['vis_operation'] ?>_details').visExecution('load_operations', {'vis_module':'report', 'vis_operation':'<?= $operation['vis_operation'] ?>', 'vis_form':'vis_<?= $operation['vis_operation'] ?>_frm', 'vis_client_start':'v'})">V</button>
                      <button class="btn btn-default" type="button" onclick="$('#vis_<?= $operation['vis_operation'] ?>_details').visExecution('load_operations', {'vis_module':'report', 'vis_operation':'<?= $operation['vis_operation'] ?>', 'vis_form':'vis_<?= $operation['vis_operation'] ?>_frm', 'vis_client_start':'w'})">W</button>
                      <button class="btn btn-default" type="button" onclick="$('#vis_<?= $operation['vis_operation'] ?>_details').visExecution('load_operations', {'vis_module':'report', 'vis_operation':'<?= $operation['vis_operation'] ?>', 'vis_form':'vis_<?= $operation['vis_operation'] ?>_frm', 'vis_client_start':'x'})">X</button>
                      <button class="btn btn-default" type="button" onclick="$('#vis_<?= $operation['vis_operation'] ?>_details').visExecution('load_operations', {'vis_module':'report', 'vis_operation':'<?= $operation['vis_operation'] ?>', 'vis_form':'vis_<?= $operation['vis_operation'] ?>_frm', 'vis_client_start':'y'})">Y</button>
                      <button class="btn btn-default" type="button" onclick="$('#vis_<?= $operation['vis_operation'] ?>_details').visExecution('load_operations', {'vis_module':'report', 'vis_operation':'<?= $operation['vis_operation'] ?>', 'vis_form':'vis_<?= $operation['vis_operation'] ?>_frm', 'vis_client_start':'z'})">Z</button>
                     <button class="btn btn-default" type="button" onclick="$('#vis_<?= $operation['vis_operation'] ?>_details').visExecution('load_operations', {'vis_module':'report', 'vis_operation':'<?= $operation['vis_operation'] ?>', 'vis_form':'vis_<?= $operation['vis_operation'] ?>_frm', 'vis_client_start':''})">All</button>
					 		                </div>
		              </div>
                  </div>
                  <?
                     } //condition for client report form
                       else if( $operation['vis_operation']=='client_group_ticket_report')
                      {  ?>
                  <div class="col-sm-2">
                     <div class="text-muted pull-center label_page"><? echo $vis_language['TXTORGANIZATION']; ?>:</div>
                     <select  name="group_id"  class="selectpicker" <? if(count($clientGroup) > 10) echo 'data-live-search="true"' ?>>
					 <option value="0"><? echo $vis_language['TXTSELORG']; ?></option>
                     <?php if($clientGroup!=-1) for($i=0;$i<count($clientGroup);$i++) echo '<option value="'.$clientGroup[$i]['group_id'].'">'.$clientGroup[$i]['group_name'].'</option>'; ?>
                     </select>
                  </div>
                  <div class="col-sm-2">
                     <div class="text-muted pull-center label_page"><? echo $vis_language['TXTDOMAIN']; ?>:</div>
                     <select  name="domain_id"  class="selectpicker domain_id" <? if(count($domain) > 10) echo 'data-live-search="true"' ?>>
					 	 <option value=""><? echo $vis_language['TXTSELDOM']; ?></option>
                         <option value="0"><? echo $vis_language['TXTALLDOMAIN']; ?></option>
                        <?php if($domain!=-1) for($i=0;$i<count($domain);$i++) echo '<option value="'.$domain[$i]['domain_id'].'">'.$domain[$i]['domain_name'].'</option>'; ?>
                     </select>
                  </div>
                  <?php
                     }// condition for invoices by organization report 
					 if( $operation['vis_operation']== 'invoiceby_organization_report' )
					 {  ?>
					 <div class="col-sm-2">
                     <div class="text-muted pull-center label_page"><? echo $vis_language['TXTDOMAIN']; ?>:</div>
                     <select  name="domain_id"  class="selectpicker domain_id" onchange="showAllOrgs(this.value)" <? if(count($domain) > 10) echo 'data-live-search="true"' ?>>
					 	 <option value=""><? echo $vis_language['TXTSELDOM']; ?></option>
                         <?php if($domain!=-1) for($i=0;$i<count($domain);$i++) echo '<option value="'.$domain[$i]['domain_id'].'">'.$domain[$i]['domain_name'].'</option>'; ?>
                     </select>
                       </div>
				  
				   <div class="col-sm-2" >
                     <div class="text-muted pull-center label_page"><? echo $vis_language['TXTORGANIZATION']; ?>:</div>
                     <span id='orgdivid'><select  name="group_id"  class="selectpicker" <? if(count($clientGroup) > 10) echo 'data-live-search="true"' ?>>
					 <option value="0"><? echo $vis_language['TXTSELORG']; ?></option>
                    </select></span>
                  </div>
			<? }	 
			if($operation['vis_operation']=='clients_by_organization_report')
					{	
						?>
						<div class="col-sm-2">

							<div class="text-muted pull-center label_page"><? echo $vis_language['TXTDOMAIN']; ?>:</div>

							<select id="domain_sel" name="domain_id" class="selectpicker domain_id" <? if(count($domain) > 10) echo 'data-live-search="true"' ?> onchange="showAllOrgs(this.value)">

								<option value=""><? echo $vis_language['TXTSELDOM']; ?></option>

								<option value="0"><? echo $vis_language['TXTALLDOMAIN']; ?></option>

								<?php if($domain!=-1) for($i=0;$i<count($domain);$i++) echo '<option value="'.$domain[$i]['domain_id'].'">'.$domain[$i]['domain_name'].'</option>'; ?>

							</select>

						</div>
						
						<div class="col-sm-2" >
							<div class="text-muted pull-center label_page"><? echo $vis_language['TXTORGANIZATION']; ?>:</div>
							<span id='orgdivid'><select id="cltbyorg" name="group_id" class="selectpicker" <? if(count($clientGroup) > 10) echo 'data-live-search="true"' ?>>
								<option value=""><? echo $vis_language['TXTSELORG']; ?></option></select>
							</span>
						</div>
						<?
					}
					
					
					if($operation['vis_operation']=='overdue_tickets_report'){?>
						<div class="col-sm-2">
							<div class="text-muted pull-center label_page"><? echo $vis_language['TXTDOMAIN']; ?>:</div>
							<select name="domain_id" class="selectpicker domain_id" <? if(count($domain) > 10) echo 'data-live-search="true"' ?> onchange="showAllDepts(this.value)">
								<option value=""><? echo $vis_language['TXTSELDOM']; ?></option>
								<?php if($domain!=-1) for($i=0;$i<count($domain);$i++) echo '<option value="'.$domain[$i]['domain_id'].'">'.$domain[$i]['domain_name'].'</option>'; ?>
							</select>
							<input type="hidden" name="filter_id" id="filter_id" value='3'>
						</div>
						
						<div class="col-sm-2" >
							<div class="text-muted pull-center label_page"><? echo $vis_language['TXTDEPARTMENTS']; ?>:</div>
						<span id='deptdivid'>	<select name="department_id" class="selectpicker" id="department_id" <? if(count($departments) > 10) echo 'data-live-search="true"' ?>>
								<option value="0"><? echo $vis_language['TXTALLDEPARTMENTS']; ?></option>
							</select></span>
						</div>
						<?
					}
					
                     if($operation['vis_operation']=='time_tracking_organization_report')
                      {  ?>
                  <div class="col-sm-2">
                     <div class="text-muted pull-center label_page"><? echo $vis_language['TXTDOMAIN']; ?>:</div>
                     <select  name="domain_id"  class="selectpicker domain_id" <? if(count($domain) > 10) echo 'data-live-search="true"' ?>>
					 	 <option value=""><? echo $vis_language['TXTSELDOM']; ?></option>                        
                        <?php if($domain!=-1) for($i=0;$i<count($domain);$i++) echo '<option value="'.$domain[$i]['domain_id'].'">'.$domain[$i]['domain_name'].'</option>'; ?>
                     </select>
                  </div>
				  
				   <div class="col-sm-2">
                     <div class="text-muted pull-center label_page"><? echo $vis_language['TXTORGANIZATION']; ?>:</div>
                     <select  name="group_id"  class="selectpicker" <? if(count($clientGroup) > 10) echo 'data-live-search="true"' ?>>
					 <option value="-1"><? echo $vis_language['TXTSELORG']; ?></option>
					 <option value="0"><? echo $vis_language['TXTALL']; ?></option>
                     <?php if($clientGroup!=-1) for($i=0;$i<count($clientGroup);$i++) echo '<option value="'.$clientGroup[$i]['group_id'].'">'.$clientGroup[$i]['group_name'].'</option>'; ?>
                     </select>
                  </div>
                   <? }
				    if($operation['vis_operation']=='quest1_report')
                   {
                   ?>
                    <div class="col-sm-2">
                     <div class="text-muted pull-center label_page"><? echo 'Select quest'; ?>:</div>
                     <select  name="quest_id"  class="selectpicker" <? if(count($questDetails) > 10) echo 'data-live-search="true"' ?>>
					 <option value="0"><? echo $vis_language['TXTQUEST']; ?></option>
                     <?php if($questDetails!=-1) for($i=0;$i<count($questDetails);$i++) echo '<option value="'.$questDetails[$i]['quest_id'].'">'.$questDetails[$i]['quest_title'].'</option>'; ?>
                     </select>
                  </div>
						
				   <? }
					if($operation['vis_operation']=='quest1_report')
					{
					?>
						 <div class="col-sm-2">
                     <div class="text-muted pull-center label_page"><? echo $vis_language['TXTSTAFF']; ?>:</div>
                     <select name="staff_id" class="selectpicker staffId" <? if(count($staff) > 10) echo 'data-live-search="true"' ?>>
                     <option value="0"><? echo $vis_language['TXTSELECTSTAFF']; ?></option>
                     <?php if($staff!=-1) for($i=0;$i<count($staff);$i++) echo '<option value="'.$staff[$i]['staff_id'].'">'.$staff[$i]['staff_name'].'</option>'; ?>
                     </select>
                  </div>	
                  
                  <?php
                     }
                     if($operation['vis_operation']!='client_report' ) {
					  if(isset($export) && $export==1) {  ?>
                  <div class="col-sm-1 pull-right"><div class="text-muted pull-center label_page">&nbsp;</div><span id="vis_export_rpt_<?= $operation['vis_operation'] ?>" ></span></div>
                   <div class="col-sm-1 pull-right"><div class="text-muted pull-center label_page">&nbsp;</div><span id="vis_schedule_rpt_<?= $operation['vis_operation'] ?>" ></span></div>
                  <? } }?>
                  <? if(isset($getPdf) && $getPdf==1){?>
					<div class="col-sm-1 pull-right" id="pdfDiv" style="display:none;">
					<div class="text-muted pull-center label_page">&nbsp;</div>
					<a class="btn btn-primary  btn-sm" href="javascript:void(0)" onclick="generatePDF(<? echo "'".$canvasDiv."','".$pdfTitle."','".$toDisplay."','".$vis_language['TXTTITLE']."','".$vis_language['TXTDURATION']."','".$vis_language['TXTCREATIONDATE']."','".date('M-d,Y',strtotime(date('Y-m-d h:i:s')))."'" ?> )"><?= $vis_language['TXTEXPORT'] ?></a></div>

                  <? }?>
                  <? if(isset($getSlaPdf) && $getSlaPdf==1){
					$slaTitle = $vis_language['TXTSTAFFSLA'];
					$slaDuration = $vis_language['TXTDURATION'];
					$slaStaff = $vis_language['TXTSTAFF'];
					$slaOverdue = $vis_language['TXTOVERDUE'];
					$slaMaintain = $vis_language['TXTMAINTAIN'];
					$slaPdf = $vis_language['TXTSTAFFSLA'];
					?>

					<div class="col-sm-1 pull-right" id="pdfSlaDiv" style="display:none;">
					<div class="text-muted pull-center label_page">&nbsp;</div>
					<a class="btn btn-primary btn-sm" href="javascript:void(0)" onclick="generateStaffSlaPDF(<? echo "'".$slaTitle."','".$slaDuration."','".$slaStaff."','".$slaOverdue."','".$slaMaintain."','".$slaPdf."','".$vis_language['TXTCREATIONDATE']."','".date('M-d,Y',strtotime(date('Y-m-d h:i:s')))."'" ?>)"><?= $vis_language['TXTEXPORT'] ?></a></div>

                  <? } ?>
                  <? if(isset($getGraphPdf) && $getGraphPdf==1){
					$graphTitle = $pdfTitle;
					$graphDuration = $vis_language['TXTDURATION'];
					$graphDept = $vis_language['TXTDEPARTMENT'];
					?>

					<div class="col-sm-1 pull-right" id="pdfGraphExport" style="display:none;">
					<div class="text-muted pull-center label_page">&nbsp;</div>
					<a class="btn btn-primary btn-sm" href="javascript:void(0)" onclick="generateGraphPDF(<? echo "'".$graphTitle."','".$graphDuration."','".$graphDept."','".$graphDiv."','".$graphOpts."','".$vis_language['TXTCREATIONDATE']."','".date('M-d,Y',strtotime(date('Y-m-d h:i:s')))."'" ?>)"><?= $vis_language['TXTEXPORT'] ?></a></div>

                  <? }
                  if($operation['vis_operation']=='quest_report')
                   {
                   ?>
                    <div class="col-sm-2">
                     <div class="text-muted pull-center label_page"><? echo 'Select quest'; ?>:</div>
                     <select  name="quest_id"  class="selectpicker" <? if(count($questDetails) > 10) echo 'data-live-search="true"' ?>>
					 <option value="0"><? echo $vis_language['TXTQUEST']; ?></option>
                     <?php if($questDetails!=-1) for($i=0;$i<count($questDetails);$i++) echo '<option value="'.$questDetails[$i]['quest_id'].'">'.$questDetails[$i]['quest_title'].'</option>'; ?>
                     </select>
                  </div>

                  <?  }
                  
                   if($operation['vis_operation']=='not_answered_ticket_report')
                     {?>
                  <div class="col-sm-3">
                     <div class="text-muted pull-center label_page"><? echo $vis_language['TXTDEPARTMENT']; ?>:</div>
                     <select name="department_id" class="selectpicker" id="department_id" <? if(count($departments) > 10) echo 'data-live-search="true"' ?>>
						<option value="0"><? echo $vis_language['TXTSELECTDEPARTMENT']; ?></option>
                     <?php if($departments!=-1) for($i=0;$i<count($departments);$i++) echo '<option value="'.$departments[$i]['department_id'].'">'.$departments[$i]['domain_name'].' : '.$departments[$i]['department_name'].'</option>'; ?>
                     </select>
                  </div>
                  <? 
                     }// Condition for not_answered_ticket
                     if($operation['vis_operation']=='ticket_escalation_staff_report')
                     {?>
                  <div class="col-sm-2">
                     <div class="text-muted pull-center label_page"><? echo $vis_language['TXTSTAFF']; ?>:</div>
                     <select name="staff_id" class="selectpicker staffId" <? if(count($staff) > 10) echo 'data-live-search="true"' ?>>
                     <option value="0"><? echo $vis_language['TXTSELECTSTAFF']; ?></option>
                     <?php if($staff!=-1) for($i=0;$i<count($staff);$i++) echo '<option value="'.$staff[$i]['staff_id'].'">'.$staff[$i]['staff_name'].'</option>'; ?>
                     </select>
                  </div>
                  <? 
                     }// Condition for ticket_escalation_staff_report
                    if($operation['vis_operation']=='ticket_escalation_department_report')
                     {?>
                  <div class="col-sm-3">
                     <div class="text-muted pull-center label_page"><? echo $vis_language['TXTDEPARTMENT']; ?>:</div>
                     <select name="department_id" class="selectpicker" id="department_id" <? if(count($departments) > 10) echo 'data-live-search="true"' ?>>
						<option value="0"><? echo $vis_language['TXTSELECTDEPARTMENT']; ?></option>
                     <?php if($departments!=-1) for($i=0;$i<count($departments);$i++) echo '<option value="'.$departments[$i]['department_id'].'">'.$departments[$i]['domain_name'].' : '.$departments[$i]['department_name'].'</option>'; ?>
                     </select>
                  </div>
                  <? 
                     }// Condition for ticket_escalation_department_report
                   if(!isset($clientReport)): ?>
                  <div class="col-sm-1 pull-right"><div class="text-muted pull-center label_page">&nbsp;</div> <a class="btn btn-primary btn-sm" onclick="$('#vis_<?= $operation['vis_operation'] ?>_details').visExecution('load_operations', {'vis_module':'report', 'vis_operation':'<?= $operation['vis_operation'] ?>', 'vis_form':'vis_<?= $operation['vis_operation'] ?>_frm'});"><?= $vis_language['TXTGENERATE'] ?></a></div>
				  <? endif;
				  if($operation['vis_operation']=='dept_report') { ?>
				   <div class="col-sm-3">
                     <div class="text-muted pull-center label_page"><? echo $vis_language['TXTDEPARTMENT']; ?>:</div>
                     <div id="dept_item"><select onchange="return change_deptype()" name="department_id" class="selectpicker" id="department_id" <? if(count($departments) > 10) echo 'data-live-search="true"' ?>>
						<option value=""><? echo $vis_language['TXTSELECTDEPARTMENT']; ?></option>
                        <option value="0"><? echo $vis_language['TXTALLDEPARTMENTS']; ?></option>
                     <?php if($departments!=-1) for($i=0;$i<count($departments);$i++) echo '<option value="'.$departments[$i]['department_id'].'">'.$departments[$i]['domain_name'].' : '.$departments[$i]['department_name'].'</option>'; ?>
                     </select></div>
                  </div>
                  <?
                     }  if($operation['vis_operation']=='staff_activity_search_report') { ?>
					<!-- <style> .token-input-delete-token-facebook{position:absolute; left:0px; top:-1px;}</style>-->
					 <div class="col-sm-2">
						 <div class="text-muted pull-center label_page"><? echo $vis_language['TXTSTAFF']; ?>:</div>
						 <select name="staff_id" class="selectpicker staffId" <? if(count($staff) > 10) echo 'data-live-search="true"' ?> onchange="selStaff()">
						 <option value="0"><? echo $vis_language['TXTSELECTSTAFF']; ?></option>
						 <?php if($staff!=-1) for($i=0;$i<count($staff);$i++) echo '<option value="'.$staff[$i]['staff_id'].'">'.$staff[$i]['staff_name'].'</option>'; ?>
						 </select>
                     </div>
				  
					  <div class="col-sm-2" id="search">
						 <div class="text-muted pull-center label_page">Search activity:</div>
						 <input class="form-control input-sm" type="text" name="vis_new_ticket_list_client" id="vis_new_ticket_list_client"  value="<? //echo $operation['vis_email_id']; ?>" placeholder="search" data-resize="no" style="width:100%" onkeypress="tokSearchIp()" onclick="tokSearchIp()"/>
                                <script type="text/javascript">
                                    function tokSearchIp()
                                    {
										 var selectVal = $('.staffId option:selected').val(); 
										  $("#vis_new_ticket_list_client").tokenInput(
                                            "index.php?vis_module=report&vis_operation=staff_activity_search_list&vis_staff_id="+selectVal,
                                            {
                                                theme: "facebook",
                                                searchDelay: 300,
                                                minChars: 3,
                                                queryParam: "vis_data",
                                                propertyToSearch: "content",
                                                tokenValue: "content",
                                                tokenLimit: 1,
                                                noResultsText: "<? echo $vis_language['TXTNOMATCHFOUND']; ?>",
                                                preventDuplicates: true,
                                                resultsFormatter: function(item) { 
                                                    return "<li>" + "<div style='display: inline-block; padding-left: 10px;'><div class='full_name'>" + item.content + " </div></div></li>";
                                                },
                                                tokenFormatter: function(item) { 
                                                    return "<li><p>" + item.content + "</p></li>";
                                                },
                                                onAdd: function(item)
												{
													$('#vis_client_id').val(item.id);
													$('#staff_id').val(item.staff_id);
												},
												onDelete: function(item)
												{
													$('#vis_client_id').val('');
												}
                                            }
                                        );
                                       $("div.token-input-dropdown-facebook").css('width', $(".token-input-list-facebook").width() + 2 + 'px');
                                       $("#token-input-vis_new_ticket_list_client").parent().css('width','100%');
									   $("#vis_new_ticket_list_client").focus();
                                    }
                                </script>
                                <input type="hidden" name="vis_client_id" id="vis_client_id">
								<input type="hidden" name="staff_id" id="staff_id">
					  </div>
                  <? } if($operation['vis_operation']=='ticket_linking_report')
                     {?>
						 <div class="col-sm-2">
					   <div class="text-muted pull-center label_page"><? echo $vis_language['TXTLINK']; ?></div>
					  
							<select id="vis_link_type" name="vis_link_type" class="form-control input-sm selectpicker">
								<option value="1" selected="selected"><?= $vis_language['TXTRELATESTO'];?></option>
								<option value="2"><?= $vis_language['TXTISRELATEDTO'];?></option>
								<option value="3"><?= $vis_language['TXTISAPARENTOF'];?></option>
								<option value="4"><?= $vis_language['TXTISACHILDOF'];?></option>
								<option value="5"><?= $vis_language['TXTDEPENDSON'];?></option>
								<option value="6"><?= $vis_language['TXTISDEPENDEDON'];?></option>
								<option value="7"><?= $vis_language['TXTDUPLICATES'];?></option>
								<option value="8"><?= $vis_language['TXTISADUPLICATEDBY'];?></option>
							</select>
					  
					</div>
						 
                  <div class="col-sm-2">
                     <div class="text-muted pull-center label_page"><? echo $vis_language['TXTDOMAIN']; ?>:</div>
                     <select name="domain_id" class="selectpicker domain_id" <? if(count($domain) > 10) echo 'data-live-search="true"' ?>>
                     <option value="0"><? echo $vis_language['TXTSELDOM']; ?></option>
                     <?php if($domain!=-1) for($i=0;$i<count($domain);$i++) echo '<option value="'.$domain[$i]['domain_id'].'">'.$domain[$i]['domain_name'].'</option>'; ?>
                     </select>
                  </div>
                  
                  <? 
                     }// ticket_linking?>
				  <?php if($operation['vis_operation']=='assets_managedby_staff_report' || $operation['vis_operation']=='assets_linkedto_tickets_report' || $operation['vis_operation']=='assets_linkedto_problems_report' ||  $operation['vis_operation']=='assets_groupby_location_report') { ?>
				  <div class="col-sm-2">
                     <div class="text-muted pull-center label_page"><? echo $vis_language['TXTCITYPE']; ?>:</div>
			     <select name="vis_ci_type" id="vis_ci_type" class="selectpicker">
				 <option value=""><? echo $vis_language['TXTSELECT']; ?></option>
					 <? for($i=0;$i<count($citype_details);$i++) 
						echo '<option value="'.$citype_details[$i]['item_id'].'">'.$citype_details[$i]['name'].'</option>'; 
						  ?>
				</select>
				 </div> 
				  <?php } ?>
                 
				       <?php if($operation['vis_operation']=='ticket_closed_by_user_report'){ ?>
						   
					<div class="col-sm-2">
                     <div class="text-muted pull-center label_page"><? echo $vis_language['TXTSTAFF']; ?>:</div>
                     <select name="staff_id" class="selectpicker staffId" <? if(count($staff) > 10) echo 'data-live-search="true"' ?>>
                     <option value="0"><? echo $vis_language['TXTSELECTSTAFF']; ?></option>
                     <?php if($staff!=-1) for($i=0;$i<count($staff);$i++) echo '<option value="'.$staff[$i]['staff_id'].'">'.$staff[$i]['staff_name'].'</option>'; ?>
                     </select>
                  </div>
                  
				  <div class="col-sm-2">
                     <div class="text-muted pull-center label_page"><? echo $vis_language['TXTDEPARTMENT']; ?>:</div>
                     <select name="department_id" class="selectpicker" id="department_id" <? if(count($departments) > 10) echo 'data-live-search="true"' ?>>
						<option value="0"><? echo $vis_language['TXTSELECTDEPARTMENT']; ?></option>
                     <?php if($departments!=-1) for($i=0;$i<count($departments);$i++) echo '<option value="'.$departments[$i]['department_id'].'">'.$departments[$i]['domain_name'].' : '.$departments[$i]['department_name'].'</option>'; ?>
                     </select>
                  </div>
						   
					<?php   }
                  ?>	

				<? if($operation['vis_operation']=='ticket_flag_by_user') {  ?>
				 <div class="col-sm-2">
                     <div class="text-muted pull-center label_page"><? echo $vis_language['TXTDEPARTMENT']; ?>:</div>
					  <select name="department_id" class="selectpicker" id="department_id" <? if(count($departments) > 10) echo 'data-live-search="true"' ?>>					  	
						<option value="-1"><? echo $vis_language['TXTSELECTDEPARTMENT']; ?></option>		 			
						<option value="0"><? echo $vis_language['TXTALLDEPARTMENTS']; ?></option>
                     <?php if($departments!=-1) for($i=0;$i<count($departments);$i++) echo '<option value="'.$departments[$i]['department_id'].'">'.$departments[$i]['domain_name'].' : '.$departments[$i]['department_name'].'</option>'; ?>
                     </select>
                  </div>		
				<?} if($operation['vis_operation']=='ticket_flag_by_user') {?> 
				  <div class="col-sm-1">
                     <div class="text-muted pull-center label_page"><? echo $vis_language['TXTSTAFF']; ?>:</div>
					  <select name="staff_id" class="selectpicker" id="staff_id" <? if(count($staff_details) > 10) echo 'data-live-search="true"' ?>>					  	
						<option value="0"><? echo $vis_language['TXTSELECTSTAFF']; ?></option>	
						
                     <?php if($staff_details!=-1) for($i=0;$i<count($staff_details);$i++) echo '<option value="'.$staff_details[$i]['staff_id'].'">'.$staff_details[$i]['staff_name'].'</option>'; ?>
                     </select>
                  </div>
				  
				<?} if($operation['vis_operation']=='ticket_flag_by_user') {?> 
				  <div class="col-sm-1">
                     <div class="text-muted pull-center label_page"><? echo $vis_language['TXTFLAG']; ?>:</div>
					  <select name="flag_id" class="selectpicker" id="flag_id" <? if(count($flags) > 10) echo 'data-live-search="true"' ?>>					  	
						<option value="-1"><? echo $vis_language['TXTSELFLAG']; ?></option>		 			
						<option value="0"><? echo $vis_language['TXTALLFLAG']; ?></option>
                     <?php if($flags!=-1) for($i=0;$i<count($flags);$i++) echo '<option value="'.$flags[$i]['flag_id'].'">'.$flags[$i]['flag_name'].'</option>'; ?>
                     </select>
                  </div>
				  
				<? } ?>
				  
               </div>
            </div>
         </div>
         <input type="hidden" name="vis_client_id" id="vis_client_id" value="">
         <input type="hidden" name="vis_criteria" value="<?= $criteria; ?>">
         <input type="hidden" name="vis_criteria1" value="<?= $criteria1; ?>">
         <div class="table-responsive scroll-x" id="vis_<?= $operation['vis_operation'] ?>_details">
         </div>
      </section>
   </form>
</div>
<script>
function selDomain()
{
	$('#tok').html('');
	$('#vis_client_id').val('');
	var str;
	str = ' <div class="text-muted pull-center label_page"><? echo $vis_language['TXTCLIENT']; ?>:</div>';
	str += '<input class="form-control input-sm" type="text" name="vis_new_ticket_list_client" id="vis_new_ticket_list_client"  value="<? //echo $operation['vis_email_id']; ?>" placeholder="<?= $vis_language['TXTTYPETOSEARCHEXISTINGCLIENTSEMAILADDRESS']?>" data-resize="no" style="width:100%" onkeypress="tokIp()"/>';
	$('#tok').html(str);
}
//$("#vis_<?= $operation['vis_operation'] ?>_from_date").datetimepicker({showButtonPanel: true, dateFormat: 'yy-mm-dd'});
//$("#vis_<?= $operation['vis_operation'] ?>_to_date").datetimepicker({showButtonPanel: true, dateFormat: 'yy-mm-dd'});
function showData(data)
{
    var answer=document.getElementById("duration");
    if(answer[answer.selectedIndex].value=="4")
    {
					document.getElementById("mdivid").style.display="block";
         document.getElementById("divid").style.display="block";
         document.getElementById("divid1").style.display="block";
    }
    else
    {
					document.getElementById("mdivid").style.display="none";
         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();
		$('.from_date').click();
	 $('.bootstrap-datetimepicker-widget').hide();
		
	function showAllOrgs(val){
		$.ajax({
			url: 'index.php?vis_module=report&vis_operation=get_domainwise_organizations',
			data: { 'domain_id':val },
			type: "POST",
			success:function(response){
				$("#orgdivid").html(response).bind($(".selectpicker").selectpicker());
			}
		});
	}
	
	function showAllDepts(val){
		$.ajax({
			url: 'index.php?vis_module=report&vis_operation=get_domainwise_departments',
			data: { 'domain_id':val },
			type: "POST",
			success:function(response){
				$("#deptdivid").html(response).bind($(".selectpicker").selectpicker());
			}
		});	
	}
	
</script>
<? if(isset($graphicalReport) && $graphicalReport == 1): ?>
	<? if((isset($staffSLA) && $staffSLA == 1) || (isset($getGraphPdf) && $getGraphPdf == 1)): ?>
		<!-- Sparkline Chart -->
		<script>getScript("<?= VIS_PATH_SCRIPT; ?>charts/sparkline/jquery.sparkline.min.js");</script>
	<? else: ?>
	<!-- Flot -->
	<script>
		getScript("<?= VIS_PATH_SCRIPT; ?>charts/flot/jquery.flot.min.js");
		getScript("<?= VIS_PATH_SCRIPT; ?>charts/flot/jquery.flot.tooltip.min.js");
		getScript("<?= VIS_PATH_SCRIPT; ?>charts/flot/jquery.flot.axislabels.js");
		getScript("<?= VIS_PATH_SCRIPT; ?>charts/flot/jquery.flot.resize.js");
		getScript("<?= VIS_PATH_SCRIPT; ?>charts/flot/jquery.flot.pie.min.js");
		<? if($operation['vis_operation']=='graphical_domain_report'){?>
		getScript("<?= VIS_PATH_SCRIPT; ?>charts/flot/jquery.flot.orderBars.js");
		<? }?>
	</script>
	<? endif; ?>
	<script>
		getScript("<?= VIS_PATH_SCRIPT; ?>charts/flot/html2canvas.js");
		getScript("<?= VIS_PATH_SCRIPT; ?>charts/flot/jspdf.min.js");
	</script>
<? endif; ?>
