<div class="wrapper bg-white b-t" id="vis_filter_list" style="display:none;">
 <form id="vis_livechat_search_form" name="vis_livechat_search_form" method="post">
	<label class="control-label"><b><?= $vis_language['TXTFILTERLIST']; ?></b></label>
	<div class="row">
	  <div class="m-t m-b">
		<div class="form-group">
			<label class="col-sm-1 control-label m-t-xs"><?= $vis_language['TXTDOMAIN'];?></label>
			<div class="col-sm-2">
			    <select class='form-control selectpicker' name="vis_domain" id="vis_domain">
                          <? for($i=0;$i<count($department);$i++){
								 if($vis_domain == $department[$i]['domain_id'])
								    $chk = 'selected="selected"';
								 else
								    $chk = '';
							 
								 for($l=0;$l<count($livechat_setting);$l++){
									if($livechat_setting[$l]['domain_id'] == $department[$i]['domain_id']){ 
										
									 	echo '<option '.$chk.' value="'.$department[$i]['domain_id'].'">'.$department[$i]['domain_name'].'</option>'; 
									}
									 	 
								 }
						          
							 }?>
                      </select>
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-1 control-label m-t-xs"><?= $vis_language['TXTDATEFROM'];?></label>
			<div class="col-sm-2">
             <span class="input-group-addon no-padder no-borders from_date">
				<input id="from_date" name="from_date" class="form-control input-sm" type="text" >
            </span>
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-1 control-label m-t-xs"><?= $vis_language['TXTDATETO'];?></label>
			<div class="col-sm-2">
             <span class="input-group-addon no-padder no-borders to_date">
				<input id="to_date" name="to_date" class="form-control input-sm" type="text" >
            </span>
			</div>
		</div>
<?php if($operation['vis_operation']!='userlike_list'){?>		
		<div class="form-group">
			<label class="col-sm-1 control-label m-t-xs"><?= $vis_language['TXTSEARCHSTRING'];?></label>
			<div class="col-sm-2">
				<input id="field_search" name="field_search" class="form-control input-sm" type="text" >
			</div>
		</div>	
<?php }?>
	</div>
	</div>
	<div class="row">
		<div class="m-t m-b">
			<div class="form-group">
				<div class="col-sm-12">
				  <button type="button" id="btn_apply_filter" class="btn btn-primary pull-right" onclick="vis_livechat_filter();"><?= $vis_language['TXTAPPLYFILTER'];?></button>
				  <button type="button" class="btn btn-default pull-right m-r-sm" onclick="$('#vis_livechat_search_form').trigger('reset');$('.selectpicker').selectpicker('refresh');"><?= $vis_language['TXTCLEAR'];?></button>
				</div>
			</div>
		</div>
	</div>
  </form>
</div>
