<form name="formMsgFree28" method="post">
   <div class="modal fade modal-fullscreen " style="z-index:10000;padding-<?php echo $align;?>:0px" id="settingsModal" tabindex="-1" role="dialog" aria-labelledby="settingsModalTitle" 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="settingsModalTitle"><?php echo $usersLBL["userSettings"];?> : <span id="userFullName"></span></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="col-12 mb-4 alert-div" id="chargeTrue281" style="display:none">
                <div class="alert alert-success alert-dismissible fade show" role="alert">
                    <button type="button" class="close" data-dismiss="alert" aria-label="Close">
                        <span aria-hidden="true">x</span>
                    </button>
                    <?php echo $usersLBL["sucessEdit"];?>
                </div>
            </div>
            <div class="col-12 mb-4 alert-div" id="chargeFalse281" style="display:none">
                <div class="alert alert-danger alert-dismissible fade show" role="alert">
                    <button type="button" class="close" data-dismiss="alert" aria-label="Close">
                        <span aria-hidden="true">x</span>
                    </button>
                    <?php echo $usersLBL["dangerEdit"];?>
                </div>
            </div>
            
            <div class="form-group">
                <label class="form-check-label myModalLabel" for="allowChangeSender">
                    <?php echo $usersLBL["allowChangeSender"];?>:
                </label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <input class="form-check-input" type="radio" name="allowChangeSender" id="allowChangeSender1" value="1">
                <label class="form-check-label myModalLabel" for="allowChangeSender1">
                    <?php echo $usersLBL["yes"];?>
                </label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <input class="form-check-input" type="radio" name="allowChangeSender" id="allowChangeSender0" value="0">
                <label class="form-check-label myModalLabel" for="allowChangeSender0">
                    <?php echo $usersLBL["no"];?>
                </label>
               </div>
               
               <div class="form-group">
                    <label class="form-check-label myModalLabel" for="specifyNumber">
                        <?php echo $usersLBL["specifyNumber"];?>:
                    </label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <input class="form-check-input" type="radio" name="specifyNumber" id="specifyNumber1" value="1">
                    <label class="form-check-label myModalLabel" for="specifyNumber1">
                        <?php echo $usersLBL["yes"];?>
                    </label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <input class="form-check-input" type="radio" name="specifyNumber" id="specifyNumber0" value="0">
                    <label class="form-check-label myModalLabel" for="specifyNumber0">
                        <?php echo $usersLBL["no"];?>
                    </label>
               </div>
               <div class="form-group spNumber" id="spNumber">
                  <label for="number" class="col-form-label myModalLabel"> <?php echo $usersLBL["allowedNumbers"];?> :</label>
                  <textarea name="number" id="number" class="form-control" ></textarea>
               </div>
               
           <div class="form-group">
              <label for="sender" class="col-form-label myModalLabel"> <?php echo $usersLBL["sender"];?> :</label>
              <select name="sender" id="sender"  class="form-control"  style="padding:0px"></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="button" value='<?php echo $button["edit"];?>' id="submit2" name="submit1" onclick="modify();" class="btn bg-primary btn-flat text-white m-1">
            </div>
         </div>
      </div>
   </div>
    <input type="hidden" name="idUser28" id="idUser28">
</form>
<script>
function modify()
{
	var allowChangeSender = specifyNumber= 0;
	var number='';
	var sender='';
	
	if($("#allowChangeSender1").is(":checked"))
        allowChangeSender = 1;
	if($("#specifyNumber1").is(":checked"))
        specifyNumber = 1;
	number=$("#number").val();
	sender=$("#sender").val();
	
	
	
	$.post("modifyUser3.php",{ id:$("#idUser28").val(),allowChangeSender:allowChangeSender,specifyNumber:specifyNumber,number:number,sender:sender,rand:Math.random() } ,function(res){																																																											
		if(res == 1)
		{
			$("#chargeFalse281").hide();
			$("#chargeTrue281").show();
		}
		else
		{
			$("#chargeTrue281").hide();
			$("#chargeFalse281").show();
		}
	});
}
</script>