<form name="<?php echo $MyFormName; ?>" id="<?php echo $MyFormName;?>" method="post" action=""> 
 <body  OnLoad="javascript:onLoadFocus();"  >

 <div id="block_container" style="width:90%;"> 	
	<div  class="bloc1 vsBoxNew "  style="height:57vh; padding:10px 5px 10px 5px ; ">
	
	<div class="row">
		<div class="col-20"><label for="Eponymia">Επωνυμία</label></div>
		<div class="col-10"><input type="text" id="IDPelati" name="IDPelati"  value="<?php echo $IDPelati;?>"></div>
		<div class="col-70"><input type="text" id="Eponymia" name="Eponymia" required value="<?php echo $Eponymia;?>"></div>
	</div>
		
	<div class="row">
		<div class="col-20"><label for="AFM">ΑΦΜ</label></div>
		<div class="col-20"><input type="text" id="AFM" name="AFM"  value="<?php echo $AFM;?>"></div>
		<div class="col-10"><label for="DOY">ΔΟΥ</label></div>
		<div class="col-20"><input type="text" id="DOY" name="DOY" required value="<?php echo $DOY;?>"></div>
	</div>	
 
	<div class="row">
		<div class="col-20"><label for="Tilefono">Τηλέφωνο</label></div>
		<div class="col-10"><input type="text" id="Tilefono" name="Tilefono" value="<?php echo $Tilefono;?>"></div>
		<div class="col-10"><label for="Kinito">Κινητό</label></div>
		<div class="col-10"><input type="text" id="Kinito" name="Kinito" value="<?php echo $Kinito;?>"></div>
		<div class="col-10"><label for="email">email</label></div>
		<div class="col-40"><input type="text" id="email" name="email" value="<?php echo $email;?>"></div>
	</div>	

	<div class="row">
		<div class="col-20"><label for="Tilefono">Τερματικά</label></div>
		<div class="col-80"><textarea id="Terminal" name="Terminal" style="font-size:0.8em; resize:none; min-height:60px;max-height: 100%;padding:10px;"  value="<?php echo $Terminal;?>" ><?php echo $Terminal;?></textarea></div>
	</div>	
  


 		<!-- =============================== basika stoixeia part2 =======================-->
  </div>
  <div  class="bloc2 vsBoxNew "  style="float:right;height:57vh; padding:10px 5px 10px 5px ; ">
	<h1>ΣΤΟΙΧΕΙΑ ΕΦΑΡΜΟΓΗΣ</h1> 
	<table  border="0" width="100%;">
		<tr>
			<td colspan="3" >
			  <label for="cboApplicationName">Εφαρμογή</label>
				  <select id="cboApplicationName" name="cboApplicationName" data-size="10" required title="Επιλογή εφαρμογής..." onclick="javascript:comboChange(this,'ApplicationName','IDApp');"> 
					<?php 
					  $x= AppsComboBoxMake($conn, $ApplicationName);
					?>
				  </select>
			</td>
		</tr>
		<tr>
			<td>
				<label for="ActivateStartDate">Ημερομηνία έναρξης</label>
				<div class="vscombo-div" >
				  <input class="datepicker" type="text" id="ActivateStartDate" name="ActivateStartDate"  required value="<?php echo $ActivateStartDate;?>" onchange="javascript:HmniaCheck(this);">
				  <a class="vscombo_date_button" name="Hmnia_Button" id="Hmnia_Button" ></a>
				</div>	
			</td>
			<td width="10px"></td>
			<td>
				<label for="ActivateEndDate">Ημερομηνία λήξης</label>
				<div class="vscombo-div" >
				  <input class="datepicker" type="text" id="ActivateEndDate" name="ActivateEndDate"  required value="<?php echo $ActivateEndDate;?>" onchange="javascript:HmniaCheck(this);">
				  <a class="vscombo_date_button" name="Hmnia_Button" id="Hmnia_Button" ></a>
				</div>			
			</td>
		</tr>		
		<tr>
			<td><label for="ApplicationCustomerVer">Έκδοση (Ver.)</label> <input type="text" id="ApplicationCustomerVer" name="ApplicationCustomerVer"  value="<?php echo $ApplicationCustomerVer;?>"></td>
			<td width="10px"></td>
			<td><label for="ActivateUses">Χρήσεις</label> <input type="text" id="ActivateUses" name="ActivateUses"   value="<?php echo $ActivateUses;?>"></td>
		</tr>	
			
 
		<tr>
			<td><label for="SerialNo">Serial No</label>	<input type="text" id="SerialNo" name="SerialNo"   value="<?php echo $SerialNo;?>"></td>
			<td width="10px"></td>
			<td><label for="License">License</label>	<input type="text" id="License" name="License" value="<?php echo $License;?>"></td>
		</tr>
		<tr>
			<td colspan="3">
			<label for="Sxolia">Σημειώσεις-Παρατηρήσεις</label>
			<textarea name="Sxolia" id="Sxolia"  style="font-size:0.8em; resize:none; min-height:80px;max-height: 100%;padding:10px;"  value="<?php echo $Sxolia;?>" ><?php echo $Sxolia;?></textarea>
			</td>
		</tr>		
	</table>
		
	<table border="0" style="width:99%;margin:5px 0px 5px 0px;" align="center">

 		<tr>
			<td colspan="3">
 
			<label class='t2' style="margin-top:-5px;float:right;">
				<span class='text'>Συμβόλαιο Ενεργό</span>
				<input  type='checkbox' id="chkisActive" name="chkisActive"  <?php echo $isActiveChk ?> onclick="javascript:chkUpd('isActive');"  />
				<span class='value'></span>
			</label>
 
			</td>
		</tr>
		
	</table>
</div>
 </div>  
     
</body>
 
	 <Div style="visibility:hidden;  position:absolute; margin-left:150px; margin-top:-500; top:50; width:15%; float:inline;" >
		  <input type="text" name="IDSymvolaiou" id="IDSymvolaiou"   value="<?php echo $IDSymvolaiou;?>">
		  <input type="text" name="IDPelati" id="IDPelati" value="<?php echo $IDPelati;?>">  
		  <input type="text" name="ApplicationName" id="ApplicationName" value="<?php echo $ApplicationName;?>">
		  <input type="text" name="IDApp" id="IDApp" value="<?php echo $IDApp;?>"> 
		  <input type="text" name="ActivateStartDateNum" id="ActivateStartDateNum" value="<?php echo $ActivateStartDateNum;?>">
		  <input type="text" name="ActivateEndDateNum" id="ActivateEndDateNum" value="<?php echo $ActivateEndDateNum;?>">
		  <input type="text" name="Message" id="Message" value="<?php echo $Message;?>">
		  <input type="text" name="isActive" id="isActive" value="<?php echo $isActive;?>">
		  <input type="text" name="PageName" id="PageName" value="<?php echo $MyFormName.'.php';?>">
		  <input type="text" name="tblName" id="tblName" value="<?php echo $tblName;?>">
		  <input type="text" name="IDcField" id="IDcField" value="<?php echo $IDcField;?>">
		  <input type="text" name="IDc" id="IDc" value="<?php echo $IDc;?>">
		  <input type="text" name="CloseType" id="CloseType" value="<?php echo $CloseType;?>">
	 </div>	
</form>

<?php
  include 'include/del_yes_no.php';
?> 

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

  var ep = document.getElementById("Eponymia");
ep.addEventListener("keypress", function(event) {
  if (event.key === 'Enter') {
	   event.preventDefault(); 
	   var fw="?pelates_select@FindWhat="+ep.value;
       cbo_select('pelates',fw);
   }
});
 
function myBlurFunction() {
   alert("Δεν έχει γίνει αποθήκευση της καρτέλας. Να γίνει αποθήκευση της καρτέλλας; ");
}
 
 
</script>
