<form  name="formSearch" action="users.php" method="post" style="margin:0px">
<div class="modal fade modal-fullscreen " style="z-index:10000;padding-<?php echo $align;?>:0px" id="searchModal" tabindex="-1" role="dialog" aria-labelledby="searchModalTitle" aria-hidden="true">
  <div class="modal-dialog modal-dialog-centered" role="document">
     <div class="modal-content text-right">
        <div class="modal-header modal-header-primary">
           <h5 class="modal-title" id="searchModalTitle"><?php echo $usersLBL["searchUser"];?></h5>
           <button type="button" class="close slidedown" data-dismiss="modal" aria-label="Close">
           <span aria-hidden="true">&times;</span>
           </button>
        </div>
        <div class="modal-body" style="text-align: <?php echo $align;?>;">
        	<div class="form-group" style="margin-bottom: 0px;">
              <label for="searchType" class="col-form-label myModalLabel"> <?php echo $usersLBL["searchType"];?>:</label>
              <select name="searchType" id="searchType" class="form-control" style="padding:0px">
                 <option value='fullName' <?php if(!empty($_POST['searchType']) && $_POST['searchType']=="fullName") echo "selected=selected"?>><?php echo ($thirdLevel) ? $usersLBL["modName"] : $usersLBL["fullname"]; ?></option>
                <option value='userName' <?php if(!empty($_POST['searchType']) && $_POST['searchType']=="userName") echo "selected=selected"?>><?php echo $usersLBL["userName"];?></option>
                <option value='mobile' <?php if(!empty($_POST['searchType']) && $_POST['searchType']=="mobile") echo "selected=selected"?>><?php echo $usersLBL["mobile"];?></option>
              </select>
           </div>
           <div class="form-group" style="margin-bottom: 0px;">
              <label for="searchValue" class="col-form-label myModalLabel"> <?php echo $usersLBL["searchValue"];?>:</label>
              <input type="text" class="form-control" name="searchValue">
           </div>
           
        </div>
        <div class="modal-footer">
           <button type="button" class="btn bg-danger btn-flat text-white m-1" data-dismiss="modal"><?php echo $button["close"];?></button>
           <input type="submit" value='<?php echo $button["search"];?>' name="searchBTN" onclick="return checkSearch();" class="btn bg-primary btn-flat text-white m-1">
        </div>
     </div>
  </div>
</div>
</form>
<script language="javascript" type="text/javascript">
function checkSearch()
{
	if(document.formSearch.searchValue.value == "")
	{
		alert("<?php echo $usersLBL["enterSearchVal"];?>");
		document.formSearch.searchValue.focus();		
		return false;
	}
	return true;
}
</script>
