<script language="javascript" type="text/javascript">
function sub_Edit() {
	if(document.getElementById("catName").value=="")
	{
		alert("<?php echo sprintf($insert,$categoryLBL["category"]);?>");
		document.getElementById("catName").focus();
		return false;
	}
}
</script>
  <form method="POST" action="categoryModalEdit2.php" target="_parent"  name="formCatAdd" onsubmit="return sub_Edit();">
   <div class="modal fade modal-fullscreen " style="z-index:10000;padding-<?php echo $align;?>:0px" id="editModal" tabindex="-1" role="dialog" aria-labelledby="editModalTitle" 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 $categoryLBL["editCategory"];?></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="nameId" class="col-form-label myModalLabel"> <?php echo $categoryLBL["category"];?>:</label>
             	 <input type="text" class="form-control" name="catName" id="catName">
           		</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["edit"];?>' id="submit2" class="btn bg-primary btn-flat text-white m-1">
            </div>
         </div>
      </div>
   </div>
   <input type="hidden" name="catId" id="catId"  />
</form>
