<script language="javascript" type="text/javascript">

function sub_on() {
	if(document.getElementById("nameId").value=="")
	{
		alert("<?php echo sprintf($insert,$connectionsListLBL["ConnectionName"]);?>");
		document.getElementById("nameId").focus();
		return false;
	}
}

</script>
<form method="POST" action="connectionsListModalEdit2.php" target="_parent"  name="formCatAdd" onsubmit="return sub_on();">
   <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 $connectionsListLBL["editConnection"];?></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="row">
                   <div class="col-6">
                      <div class="form-group" style="margin-bottom: 0px">
                         <label for="ConnectionNameId" class="col-form-label myModalLabel"> <?php echo $connectionsListLBL["ConnectionName"];?>:</label>
                         <input type="text" class="form-control" name="ConnectionName" id="ConnectionNameId">
                      </div>
                   </div>
                   <div class="col-6">
                      <div class="form-group" style="margin-bottom: 0px">
              			<label for="CompanyCodeId" class="col-form-label myModalLabel"> <?php echo $connectionsListLBL["CompanyCode"];?>:</label>
             	 		<input type="text" class="form-control" name="CompanyCode" id="CompanyCodeId">
           				</div>
                   </div>
                </div>
                <div class="row">
                   <div class="col-6">
                      <div class="form-group" style="margin-bottom: 0px">
                         <label for="HostId" class="col-form-label myModalLabel"> <?php echo $connectionsListLBL["Host"];?>:</label>
                         <input type="text" class="form-control" name="Host" id="HostId">
                      </div>
                   </div>
                   <div class="col-6">
                      <div class="form-group" style="margin-bottom: 0px">
              			<label for="PortId" class="col-form-label myModalLabel"> <?php echo $connectionsListLBL["Port"];?>:</label>
             	 		<input type="text" class="form-control" name="Port" id="PortId">
           				</div>
                   </div>
                </div>
                <div class="row">
                   <div class="col-6">
                      <div class="form-group" style="margin-bottom: 0px">
                         <label for="UserNameId" class="col-form-label myModalLabel"> <?php echo $connectionsListLBL["UserName"];?>:</label>
                         <input type="text" class="form-control" name="UserName" id="UserNameId">
                      </div>
                   </div>
                   <div class="col-6">
                      <div class="form-group" style="margin-bottom: 0px">
              			<label for="Port" class="col-form-label myModalLabel"> <?php echo $connectionsListLBL["Password"];?>:</label>
             	 		<input type="text" class="form-control" name="Password" id="PasswordId">
           				</div>
                   </div>
                </div>
                
                <div class="row">
                   <div class="col-6">
                      <div class="form-group" style="margin-bottom: 0px">
                         <label for="AddressTONId" class="col-form-label myModalLabel"> <?php echo $connectionsListLBL["AddressTON"];?>:</label>
                         <input type="text" class="form-control" name="AddressTON" id="AddressTONId" value="0">
                      </div>
                   </div>
                   <div class="col-6">
                      <div class="form-group" style="margin-bottom: 0px">
              			<label for="AddressNPIId" class="col-form-label myModalLabel"> <?php echo $connectionsListLBL["AddressNPI"];?>:</label>
             	 		<input type="text" class="form-control" name="AddressNPI" id="AddressNPIId" value="0">
           				</div>
                   </div>
                </div>
                
                <div class="row">
                   <div class="col-6">
                      <div class="form-group" style="margin-bottom: 0px">
                         <label for="SystemTypeId" class="col-form-label myModalLabel"> <?php echo $connectionsListLBL["SystemType"];?>:</label>
                         <input type="text" class="form-control" name="SystemType" id="SystemTypeId">
                      </div>
                   </div>
                   <div class="col-6">
                      <div class="form-group" style="margin-bottom: 0px">
              			<label for="SubmitModeId" class="col-form-label myModalLabel"> <?php echo $connectionsListLBL["SubmitMode"];?>:</label>
                        <select id="SubmitMode" name="SubmitModeId" class="indexs form-control" style="padding: 0px">
                            <option value='0' selected>Transmitter</option>
                            <option value='1' >Receiver</option>
                            <option value='2'>Transceiver</option>
                        </select>
           				</div>
                   </div>
                </div>
                
                <div class="row">
                   <div class="col-6">
                      <div class="form-group" style="margin-bottom: 0px">
                         <label for="SrcTONId" class="col-form-label myModalLabel"> <?php echo $connectionsListLBL["SrcTON"];?>:</label>
                         <input type="text" class="form-control" name="SrcTON" id="SrcTONId">
                      </div>
                   </div>
                   <div class="col-6">
                      <div class="form-group" style="margin-bottom: 0px">
              			<label for="SrcNPIId" class="col-form-label myModalLabel"> <?php echo $connectionsListLBL["SrcNPI"];?>:</label>
             	 		<input type="text" class="form-control" name="SrcNPI" id="SrcNPIId">
           				</div>
                   </div>
                </div>
                
                 <div class="row">
                   <div class="col-6">
                      <div class="form-group" style="margin-bottom: 0px">
                         <label for="DestTONId" class="col-form-label myModalLabel"> <?php echo $connectionsListLBL["DestTON"];?>:</label>
                         <input type="text" class="form-control" name="DestTON" id="DestTONId">
                      </div>
                   </div>
                   <div class="col-6">
                      <div class="form-group" style="margin-bottom: 0px">
              			<label for="DestNPIId" class="col-form-label myModalLabel"> <?php echo $connectionsListLBL["DestNPI"];?>:</label>
             	 		<input type="text" class="form-control" name="DestNPI" id="DestNPIId">
           				</div>
                   </div>
                </div>
                
                <div class="row">
                   <div class="col-6">
                      <div class="form-group" style="margin-bottom: 0px">
                         <label for="DataCodingId" class="col-form-label myModalLabel"> <?php echo $connectionsListLBL["DataCoding"];?>:</label>
                         <select id="DataCoding" name="DataCodingId" class="indexs form-control" style="padding: 0px">
                            <option value='0' selected>Text</option>
                            <option value='1' >Unicode</option>
                            <option value='2'>Data</option>
                            <option value='3'>Flash</option>
                            <option value='4'>Flash Unicode</option>
                        </select>
                      </div>
                   </div>
                   <div class="col-6">
                      <div class="form-group" style="margin-bottom: 0px">
              			<label for="SubmitCountId" class="col-form-label myModalLabel"> <?php echo $connectionsListLBL["SubmitCount"];?>:</label>
             	 		<input type="text" class="form-control" name="SubmitCount" id="SubmitCountId">
           				</div>
                   </div>
                </div>
                
                <div class="row">
                <div class="col-6">
                      <div class="form-group" style="margin-bottom: 0px">
              			<label for="SubmitCountPend" class="col-form-label myModalLabel"> <?php echo $connectionsListLBL["SubmitCountPend"];?>:</label>
             	 		<input type="text" class="form-control" name="SubmitCountPend" id="SubmitCountPendId">
           				</div>
                   </div>
                   <div class="col-6">
                      <div class="form-group" style="margin-bottom: 10px">
                         <label for="EnquireIntervalId" class="col-form-label myModalLabel"> <?php echo $connectionsListLBL["EnquireInterval"];?>:</label>
                         <input type="number" value="0" class="form-control" name="EnquireInterval" id="EnquireIntervalId">
                      </div>
                   </div>
                   
                </div>
                 <div class="row">
                 
                 <div class="col-6">
                		<div class="form-group" style="margin-bottom: 5px;margin-right: 15px;">
                        	<label for="defSenderId" class="col-form-label myModalLabel"> <?php echo $connectionsListLBL["defSender"];?>:</label>
                         	<input type="text" class="form-control" name="defSender" id="defSenderId">
           				</div>
                   </div>
                   <div class="col-6">
                      <div class="form-group" style="margin-bottom: 0px;margin-right: 15px;">
                      	<input class="form-check-input" type="checkbox" name="AutoReconnect" id="AutoReconnectId">
                        <label class="form-check-label myModalLabel" for="AutoReconnectId">
                            <?php echo $connectionsListLBL["AutoReconnect"];?>
                        </label><br>
              			<input class="form-check-input" type="checkbox" name="SaveLogFile" id="SaveLogFileId">
                        <label class="form-check-label myModalLabel" for="SaveLogFileId">
                            <?php echo $connectionsListLBL["SaveLogFile"];?>
                        </label>
           				</div>
                   </div>
                </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="submit1" class="btn bg-primary btn-flat text-white m-1">
               <input type="hidden" value="" name="connId" id="connId">
            </div>
         </div>
      </div>
   </div>
</form>
