<div class="wrapper bg-white b-t" id="vis_filter_list" style="display:none;">
	<form id="vis_client_search_form" name="vis_client_search_form" method="post" onkeydown="if (event.keyCode == 13) return false;">
	<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"><? echo $vis_language['TXTFIRSTNAME']; ?></label>
			<div class="col-sm-2">
			  <input type="text" class="form-control input-sm" name="vis_firstname" id="vis_firstname" value="<? echo ($data['vis_firstname']!='')?$data['vis_firstname']:''?>" />
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-1 control-label m-t-xs"><? echo $vis_language['TXTLASTNAME']; ?></label>
			<div class="col-sm-2">
			  <input type="text" class="form-control input-sm" name="vis_lastname" id="vis_lastname" value="<? echo ($data['vis_lastname']!='')?$data['vis_lastname']:''?>" />
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-1 control-label m-t-xs"><? echo $vis_language['TXTEMAIL']; ?></label>
			<div class="col-sm-2">
			 <input type="text" class="form-control input-sm" name="vis_email" id="vis_email" value="<? echo ($data['vis_email']!='')?$data['vis_email']:''?>" />
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-1 control-label m-t-xs"><?= $vis_language['TXTSTATUS'];?></label>
			<div class="col-sm-2">
				<select class="form-control input-sm selectpicker bg-white" name="vis_status" id="vis_status"><option value=""><? echo $vis_language['TXTSELECT'];?></option><option value="1"><? echo $vis_language['TXTBANNED'];?></option><option value="2"><? echo $vis_language['TXTSPAM'];?></option><option value="3"><? echo $vis_language['TXTPENDING'];?></option><option value="4"><? echo $vis_language['TXTAPPROVED'];?></option></select>
			</div>
		</div>
	  </div>
	</div>
	<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 input-sm selectpicker bg-white" <? if(count($domain_details)>2) echo ' data-live-search="true"';?> name="vis_domain" id="vis_domain">
					<option value=""><? echo $vis_language['TXTSELECT']; ?></option>
					<? for($i=0;$i<count($domain_details);$i++){
						 if($data['vis_domain'] == $domain_details[$i]['domain_id']) $selected = 'selected="selected"';
                         else $selected ="";
						echo '<option value='.$domain_details[$i]['domain_id'].' '.$selected.'>'.$domain_details[$i]['domain_name'].'</option>';
					} ?>
				</select>
			</div>
		</div>

		<div class="form-group">
			<label class="col-sm-1 control-label m-t-xs"><?= $vis_language['TXTORGANIZATION'];?></label>
			<div class="col-sm-2">
				<select class="form-control input-sm selectpicker" name="vis_group" id="vis_group">
					<option value=""><? echo $vis_language['TXTSELECT'];?></option><?
					for($i=0;$i<count($client_group);$i++) {
					 if($data['vis_group'] == $client_group[$i]['group_id']) $selected = 'selected="selected"';
                         else $selected ="";
					echo '<option value="'.$client_group[$i]['group_id'].'" '.$selected.'>'.$client_group[$i]['group_name'].'</option>'; }?>
				</select>
			</div>
		</div>
		<? if(VIS_MODULE_ACCESS_BILLING == 1) {?>
		<div class="form-group">
			<label class="col-sm-1 control-label m-t-xs"><?= $vis_language['TXTINVOICE'];?></label>
			<div class="col-sm-2">
			   <select class="form-control input-sm selectpicker bg-white" name="vis_invoice" id="vis_invoice">
					<option value=""><? echo $vis_language['TXTSELECT']; ?></option>
					<option <?php echo($data['vis_invoice']== 1)?'selected="selected"':'';?> value="1"><?php echo $vis_language['TXTPAID']; ?></option>
					<option <?php echo($data['vis_invoice']== 0 && $data['vis_invoice']!="")?'selected="selected"':'';?> value="0"><?php echo $vis_language['TXTUNPAID']; ?></option>
					<option <?php echo($data['vis_invoice']== 2)?'selected="selected"':'';?> value="2"><?php echo $vis_language['TXTCANCELED']; ?></option>
					<option <?php echo($data['vis_invoice']== 3)?'selected="selected"':'';?> value="3"><?php echo $vis_language['TXTINPROCESS']; ?></option>
				</select>
			</div>
		</div>
		<? } ?>
	</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="javascript:vis_apply_filter();"><?= $vis_language['TXTAPPLYFILTER'];?></button>
				  <button type="button" class="btn btn-default pull-right m-r-sm" onclick="$('#vis_client_search_form').trigger('reset');$('.selectpicker').selectpicker('refresh');"><?= $vis_language['TXTCLEAR'];?></button>
				</div>
			</div>
		</div>
	</div>
	</form>
</div>
