<form  name="formSearch" action="search.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 $button["search"];?></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 class="col-form-label myModalLabel"> <?php echo $numberLBL["name"];?>:</label>
              <input type="text" class="form-control" name="name">
           </div>
           
           <div class="form-group" style="margin-bottom: 0px;">
              <label class="col-form-label myModalLabel"> <?php echo $numberLBL["mobile"];?>:</label>
              <input type="text" class="form-control" name="number">
           </div>
           
           <div class="form-group" style="margin-bottom: 0px;">
              <label for="categoryId" class="col-form-label myModalLabel"> <?php echo $numberLBL["category"];?>:</label>
              <select name="categoryId" id="categoryIdSer"  class="form-control" style="padding:0px">
              <option value="0"><?php echo $numberLBL["select"];?></option>
                  <?php
					$queryCategory  = "select id,name from ".$userCategory." where userId='".$_SESSION["userId"]."' ";
					$resultCategory = mysqli_query($conn, $queryCategory);
					$numCategory = mysqli_num_rows($resultCategory);
					for($c=0;$c<$numCategory;$c++)
					{
						$rowCategory= mysqli_fetch_row($resultCategory);?>
						<option value='<?php echo $rowCategory[0];?>' <?php if(@$_POST["categoryId"]==$rowCategory[0]) echo "selected";?> ><?php echo $rowCategory[1]?></option>
						<?php
					}
				?>
              </select>
           </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="sub" class="btn bg-primary btn-flat text-white m-1">
        </div>
     </div>
  </div>
</div>

</form>
