  <form method="POST" action="numberModalImportFileFilter2.php" target="_parent" name="editNum" onsubmit="return validateEdit();" enctype="multipart/form-data">
   <div class="modal fade modal-fullscreen " style="z-index:10000;padding-<?php echo $align;?>:0px" id="importFileFilter" tabindex="-1" role="dialog" aria-labelledby="eimportFileFilterTitle" 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="editModalTitle"><?php echo  $numberLBL["importFileFilter"];?></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="categoryId" class="col-form-label myModalLabel"> <?php echo $numberLBL["category"];?>:</label>
             	 <select name="categoryId" id="categoryIdIm" 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 echo ((isset($_POST["categoryId"]) && $_POST["categoryId"]==$rowCategory[0])? "selected" : "");?>><?php echo $rowCategory[1]?></option>
                        <?php
                    }
                    ?>
                </select>
           		</div>
                <div class="form-group" style="margin-bottom: 0px">
              	<label for="subCateIm" class="col-form-label myModalLabel"> <?php echo $numberLBL["subCategory"];?>:</label>
             	 <select id="subCateIm" name="subCateIm" class="form-control" style="padding: 0px">
                   <option value="0"><?php echo $numberLBL["select"];?></option>
                </select>
           		</div>
                <div class="form-group custom-file" style="margin-top:15px">
                    <input type="file" name="file" class="custom-file-input" >
                    <label class="custom-file-label" for="validatedCustomFile">عنوان الملف...</label>
                  </div>
                <div class="form-group" style="margin-bottom: 0px">
              		<label for="name" class="col-form-label myModalLabel" style="color:#FF0000"> 
					<?php echo $numberLBL["numbersNote1"];?><a href=sample2.csv>sample.csv</a><br />
               		<?php echo $numberLBL["numbersNote2"];?> <a href=sample1.csv>sample1.csv</a>
                    </label>
           		</div>
                <div class="form-group" style="margin-bottom: 0px">
              		<label for="name" class="col-form-label myModalLabel" style="color:#FF0000"> 
					<?php echo $numberLBL["example"];?><a href=sample1.txt> sample.txt</a><br />
               		<?php echo $numberLBL["numbersNote2"];?> <a href=sample2.txt> sample1.txt</a>
                    </label>
           		</div>
                <div class="form-group" style="margin-bottom: 0px">
              		<label for="name" class="col-form-label myModalLabel" style="color:#FF0000"> 
					<?php echo $numberLBL["example"];?><a href=sample2.xls>sample.xls</a><br />
               		<?php echo $numberLBL["numbersNote2"];?><a href=sample1.xls>sample1.xls</a>
                    </label>
           		</div>
                <div class="form-group" style="margin-bottom: 0px">
              		<label for="name" class="col-form-label myModalLabel" style="color:#FF0000"> 
					<?php echo $numberLBL["example"];?><a href=sample2.xlsx>sample.xlsx</a><br />
               		<?php echo $numberLBL["numbersNote2"];?><a href=sample1.xlsx>sample1.xlsx</a></p>
                    </label>
           		</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["add"];?>' name="addFileBTN" class="btn bg-primary btn-flat text-white m-1">
            </div>
         </div>
      </div>
   </div>
   <input type="hidden" name="numberId" id="numberId" />
    <input type="hidden" name="CatId" id="CatId" />
    <input type="hidden" name="pageStart" id="pageStart" value="<?php echo $_POST["start"]?>" />
</form>
  <script type="text/javascript">
	$(document).ready(function(){
		$("#categoryIdIm").change(function (){
			$.post("fetchSubCategory.php",{ id:$("#categoryIdIm").val(),rand:Math.random() } ,function(res){
			$("#subCateIm").html(res);
			});
		});
	});
	$.post("fetchSubCategory.php",{ id:$("#categoryIdIm").val(),rand:Math.random() } ,function(res){
	$("#subCateIm").html(res);
	});
</script>
