<form name="exportNums" method="POST" action="numberModalExport2.php" style="margin:0px" onsubmit="return exoprtData();">
<div class="modal fade modal-fullscreen " style="z-index:10000;padding-<?php echo $align;?>:0px" id="exportModal" tabindex="-1" role="dialog" aria-labelledby="exportModalTitle" 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["export"];?></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="categoryIdEx" class="col-form-label myModalLabel"> <?php echo $numberLBL["category"];?>:</label>
              <select name="categoryId" id="categoryIdEx"  class="form-control" style="padding:0px">
              <option value="0"><?php echo $numberLBL["allCat"];?></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 $rowCategory[1]?></option>
						<?php
					}
				?>
              </select>
           </div>
           
           <div class="form-group" style="margin-bottom: 0px;">
              <label for="csvDelimiterId" class="col-form-label myModalLabel"> <?php echo $numberLBL["version"];?>:</label>
              <select id="csvDelimiterId" name="csvDelimiter" class="form-control" style="padding:0px">
               		<option value="1" selected="selected">Office 2013</option>
               		 <option value="2">Office 2010-2007</option>
              </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["export"];?>' name="exportBTN" class="btn bg-primary btn-flat text-white m-1">
        </div>
     </div>
  </div>
</div>

</form>
<script type="text/javascript">
	$(document).ready(function(){
		$("#categoryIdEx").change(function (){
			$.post("fetchSubCategory2.php",{ id:$("#categoryIdEx").val(),rand:Math.random() } ,function(res){
			$("#subCateEx").html(res);
			});
		});
	});
</script>
