<style>
* {
  box-sizing: border-box;
  margin:6px;
}

input[type=text], select, textarea {
  width: 100%;
  resize: vertical; 
}

label {
  padding: 12px 12px 12px 0;  
  display: inline-block;
}
 
.col-10 { float:left;width:10%;margin-top:6px;}
.col-20 { float:left;width:20%;margin-top:6px;}
.col-30 { float:left;width:30%;margin-top:6px;}
.col-40 { float:left;width:40%;margin-top:6px;}
.col-50 { float:left;width:50%;margin-top:6px;}
.col-60 { float:left;width:60%;margin-top:6px;}
.col-70 { float:left;width:70%;margin-top:6px;}
.col-80 { float:left;width:80%;margin-top:6px;}

/* Clear floats after the columns */
.row:after {
  content: "";
  display: table;
  clear: both;
}

/* Responsive layout - when the screen is less than 600px wide, make the two columns stack on top of each other instead of next to each other */
@media screen and (max-width: 600px) {
.col-10, .col-20, .col-30, .col-40, .col-50, .col-60, .col-70, .col-80, input[type=submit] {
    width: 100%;
    margin-top: 0;
  }
}
</style>

<?php 
session_start();
 
?>
 
 	 
<?php
 
//========================================
//       Record Read
//========================================
$closeCap=" Επιστροφή ";
 
$IDc=0;$IDNote=0;$Aitiologia='';
$Hmnia= date_create('now')->format('d/m/Y'); 
$HmniaNum=0;$Sxolia='';

if($conn == false){
	 echo 'Δεν υπαρχει συνδεση...<br>';
	  dbConnect();
}
   $IDc = gConvertField($_COOKIE[$IDcField], '0');
 $query = "SELECT * FROM ".$tblName . " WHERE ". $IDcField . "=" . $IDc ;
 
 // echo '<br>'. $query ;
$result = mysqli_query($conn, $query);
    $rs = mysqli_fetch_assoc($result);

$IDNote = gConvertField($rs['IDNote'],0);
$IDc=$IDNote;
$Hmnia=formatMyDate($rs['Hmnia'],"MySqlToGr",date_create('now')->format('d/m/Y')); 
$HmniaNum= $rs['HmniaNum'] ; 
$Aitiologia=$rs['Aitiologia'];
$isDone=$rs['isDone'];
$Sxolia=$rs['Sxolia'] ;

$isDoneChk='unchecked'; 
if($isDone==-1){$isDoneChk='checked';} 
if($IDc==0){$LeftCap="Σημειώσεις : Νέα εγγραφή";}else{$LeftCap="Σημειώσεις: Μεταβολή εγγραφής";}
 
// ============================
   
// ============================
  
?> 
 
<form name="<?php echo $MyFormName; ?>" id="<?php echo $MyFormName;?>" method="post" action=""> 
 
 <body  OnLoad="javascript:onLoadFocus();"  >
 
   
	
 <div  class="vsBoxNew"    >

    <div id="dataDiv"  >
	<div class="row">
	<label for="Hmnia" class="col-20">Ημερομηνία</label> 
		<div class="vscombo-div col-80" >
		  <input class="datepicker" type="text" id="Hmnia" name="Hmnia" value="<?php echo $Hmnia;?>" >
		  <a class="vscombo_date_button" name="Hmnia_Button" id="Hmnia_Button" ></a>
		</div>	
	</div>
	<div class="row">
		<div class="col-20"><label for="Aitiologia">Αιτιολογία-Ενέργεια</label></div>
		<div class="col-10"><input id="aaaaaa" type="text" value="aaaaaa" />ssss</div>
		<div class="col-50">	
				<input type="text" id="Aitiologia" name="Aitiologia" required value="<?php echo $Aitiologia ?>" />
		</div>
	</div>
	
	<div class="row">
	<div class="col-20"><label for="Sxolia">Σημειώσεις</label></div>
	<div class="col-80">	
			<textarea name="Sxolia" id="Sxolia"  value="<?php echo $Sxolia;?>" ><?php echo $Sxolia;?></textarea>
	</div>
	
	<div class="row">
	<div class="col-20"><label for="isDoneChk">Ολοκληρώθηκε</label></div>
	<div class="col-80" style="text-align:left;">	
			 <?php  input_yesno2("Ολοκληρώθηκε", "isDoneChk", "isDone", $isDone,32 )?>
	</div>
 </div>
 
 </div>
  
 </div>
  </div>
  
 </body>
 
 <Div style="visibility:hidden ; position:absolute; margin-left:-110px; margin-top:-150px; top:-150; width:20%; " >
	  <input type="text" name="IDNote" id="IDNote" value="<?php echo $IDNote;?>"> 
	  <input type="text" name="isDone" id="isDone" value="<?php echo $isDone;?>">  
	  <input type="text" name="HmniaNum" id="HmniaNum" value="<?php echo $HmniaNum;?>">
	  <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;?>">
	  <input type="text" name="FocusField" id="FocusField" value="<?php echo $FocusField;?>">
 
 </div>	
				<!---   ΚΛΕΙΝΕΙ ΤΟ FRAME  visibility:hidden; --->
</form>
 
   