
<div id="block_container" style="padding:0px; "> 
 <div id="bloc1" class="vsBoxNew" style="height:50vh;overflow-y:auto; padding:10px;"> 
   
		<div class="row"  >
		<div class="col-20"><label class="b" for="Eponymia">Επωνυμία</label></div>
		<div class="col-80" style="position: relative; display: inline;">
		<input type="text" id="Eponymia" name="Eponymia" required placeholder='Πελάτης...'  onKeyUp="eponymia_upd();" value="<?= $Eponymia;?>"  > 
			<a class="btnGlobe" style="position:absolute;top:8;right:44;" onclick="javascript:mitroo_form_show('');"> </a> 
			<a class="btnCancel" style="position:absolute;top:8;right:12;" onclick="javascript:pelatis_remove('');"> </a>
		</input>
 
		</div>	
		</div>
		
		<div class="row"><?php input_field_2080('20','80','Επάγγελμα', 'Epaggelma', $Epaggelma, false); ?></div>
		<div class="row"><?php input_field_2080('20','80','Διεύθυνση', 'Dnsi', $Dnsi, false); ?></div>
		<div class="row">
					<?php input_field_2080('20','50','Πόλη', 'Poli', $Poli, false); ?>
					<?php input_field_2080('10','20','TK', 'TK', $TK, false); ?>
		</div>
		
		<?php # poliComboBoxMake($conn ,'Poli', $Poli); ?>
		<div class="row">
					<?php input_field_2080('20','50','Χώρα', 'Country', $Country, false); ?>
					<?php input_field_2080('10','20','Code', 'CountryCode', $CountryCode, false); ?>
		</div>
		<?php # ComboBoxMake($conn ,'countries', 'Country', $Country);  ?>
		<div class="row">
					<?php input_field_2080('20','30','&#x260E; Τηλέφωνο', 'Til', $Til, false); ?>
					<?php input_field_2080('20','30','Κινητό', 'Kinito', $Kinito, false); ?>
		</div>
		<div class="row"><?php input_field_2080('20','80','&#x2709; email', 'email', $email, false); ?></div>
		<div class="row"><?php input_field_2080('20','80','&#x1F310; Web', 'Web', $Web, false); ?></div>
		
		<div class="row">
					<?php input_field_2080('20','30','ΑΦΜ', 'AFM', $AFM, false); ?>
					<?php input_field_2080('10','40','ΔΟΥ', 'DOY', $DOY, false); ?>
		</div>
 
		<?php #ComboBoxMake($conn ,'efories', 'DOY', $DOY, 'Button'); ?>
		<div class="row">
					<?php input_field_2080('20','30','AMKA', 'AMKA', $AMKA, false); ?>
					<?php input_field_2080('20','30','Barcode', 'Barcode', $Barcode, false); ?>
		</div>
		<div class="row">
					<?php input_field_2080('20','30','Ημ/νια Εγγραφής', 'HmEggrafis', $HmEggrafis, false); ?>
				<div class="col-20"><label for="isDoneChk">Ενεργός</label></div>
				<div class="col-30">	
						<?php  input_yesno_only("Ενεργός", "isActiveChk", "isActive", $isActive,"" )?> 
				
				</div>
		</div>
		
 
	</div>
 
 <!--
				<label class='t2' style="margin-top:-5px;float:right;">
					<span class='text'>Ενεργός</span>
					<input  type='checkbox' id="isActiveChk" name="isActiveChk"  <?php echo $isActive ?> onclick="javascript:chkUpd('isActive');"  />
					<span class='value'></span>
				</label>
-->	 
 		<!-- =============================== basika stoixeia part2 =======================-->
  
  
 <div id="bloc2" class="vsBoxNew" style="height:50vh;overflow-y:auto; padding:10px;">
		   

		<div class="row">
			<div class="col-20"><label for="Sxolia">Σημειώσεις</label></div>
			<div class="col-80 textarea-container" style="position: relative; display: inline;">	
					<textarea name="Sxolia" id="Sxolia" style="padding-right:26px; min-height:200px;overflow-y:scroll;" value="<?php echo $Sxolia;?>" ><?php echo $Sxolia;?></textarea>
					<a class="btnMicrophone" style="position:absolute;top:6;right:28;" onclick="runSpeechRecognition('Sxolia');"></a>
			</div>
		</div>		   
		   
	<div class='search_container'>
 
  
</div>

<!-- Search Result -->
<div class="container"></div>	   
		   <div class="row">
				<div class="col-20"><label for="Sxolia">Μήνυμα</label></div>
				<div class="col-80"><input type="text" id="Message" name="Message" placeholder="Μήνυμα για προσοχή!!!" value="<?php echo $Message;?>"></div>
		   </div>
 	 	
 </div>
 </div>
 
<script language="JavaScript" type="text/JavaScript">

var recognition = new webkitSpeechRecognition();
recognition.onresult = function(event) { 
  var saidText = "";
  for (var i = event.resultIndex; i < event.results.length; i++) {
    if (event.results[i].isFinal) {
      saidText = event.results[i][0].transcript;
    } else {
      saidText += event.results[i][0].transcript;
    }
  }
  // Update Textbox value
  document.getElementById('speechText').value = saidText;
 
  // Search Posts
  searchPosts(saidText);
}
function startRecording(){
  recognition.start();
}
// Search Posts
function searchPosts(saidText){
  $.ajax({
    url: 'getData.php',
    type: 'post',
    data: {speechText: saidText},
    success: function(response){
       $('.container').empty();
       $('.container').append(response);
    }
  });
}

</script>