<?php 
session_start();
 
if($_SESSION['CheckPWD']==false) { header("Location: login.php"); }
$myTopCaption_Text=" ΚΑΡΤΕΛΑ ΠΕΛΑΤΗ  ";
$MyFormName=str_replace('.php', '', basename($_SERVER['PHP_SELF']));
$tblName='pelates';
$IDcField='IDPelati';
$FocusField="Eponymia";
$RequiredField="Eponymia";
$ListExist=true;
$ReturnTo='pelates_list.php';

include 'include/header.php';

?>
 
<style>
.filter-option {
	font-family:  'Open Sans Condensed', "Helvetica", 'Fira Sans Condensed',   'Helvetica Neue',  sans-serif; 
	font-size:16px;
	font-weight:600;
 }
 .bootstrap-select.btn-group .dropdown-menu li a:hover {
     color: white !important;
     background: #c4c4c4  !important;
}
.input-group .bootstrap-select.form-control {
  z-index: inherit;
}
 

</style>
<html > 

	<head></head>
    <script src="css/tabs/tabcontent.js" type="text/javascript"></script>
    <link href="css/tabs/template1/tabcontent.css" rel="stylesheet" type="text/css" />
	<link rel="shortcut icon"  href="icons/Asthenis_24x24.ico" />
    <link rel="stylesheet" href="css/myPopUp_l.css" />   
	<link rel="stylesheet" href="css/yesno.css">
<?php

//========================================
//        Patients Record Read
//========================================
$closeCap=" Επιστροφή ";
 
# print_r($_SESSION); 

$IDSymvolaiou = 0;$IDc = 0;$IDPelati = 0;$IDApp= 0;$Eponymia='';
$AFM='';$DOY='';$Tilefono='';$Kinito='';$email='';$ApplicationName='';$ApplicationCustomerVer='';
$SerialNo='';$License='';$ActivateEndDate="";
$ActivateStartDateNum=0;$ActivateEndDateNum=0;$ActivateUses=0;$isActive=0;$Message='';$Sxolia='' ;
$isActiveChk='unckecked';
$invemail=""; $invWeb="";

$ActivateStartDate='';

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);

$IDPelati=gConvertField($rs['IDPelati'],0);
$IDc=$IDPelati ;
$Eponymia=$rs['Eponymia'];
$AFM=$rs['AFM'];$DOY=$rs['DOY'];$Epaggelma=$rs['Epaggelma'];
$Dnsi=$rs['Dnsi'];$Poli=$rs['Poli'];$TK=$rs['TK'];
$Til=$rs['Til'];$Kinito=$rs['Kinito'];$email=$rs['email'];
$HmEggrafis=formatMyDate($rs['HmEggrafis'],"MySqlToGr","");
$HmEggrafisNum = $rs['HmEggrafisNum'];

$Web=$rs['Web'];
$AMKA=$rs['AMKA'];$Barcode=$rs['Barcode'];
$CountryCode=$rs['CountryCode'];$Country=$rs['Country']; 

$isActive=$rs['isActive'];$Message=$rs['Message'];$Sxolia=$rs['Sxolia']  ;
$IDPoliti =gConvertField($rs['IDPoliti'],0);

$IDEtairias =gConvertField($rs['IDEtairias'],0);
$invEponymia=$rs['invEponymia'];$invEpaggelma=$rs['invEpaggelma'];
$invDnsi=$rs['invDnsi'];$invPoli=$rs['invPoli'];$invTK=$rs['invTK'];
$invAFM=$rs['invAFM'];$invDOY=$rs['invDOY'];
$invTilefono=$rs['invTilefono'];$invFax=$rs['invFax']; 
$invCountryCode=$rs['invCountryCode'];$invCountry=$rs['invCountry']; 
$invemail=$rs['invemail'];$invWeb=$rs['invWeb']; 
  
$isActiveChk='unckecked';
if($isActive==-1){$isActiveChk='checked';} 
 
// ============================
   
// ============================
  
?> 

<?php
  include 'include/buttons_bar_top.php';
?>
 
<body  OnLoad="javascript:onLoadFocus();"  > 	
<form name="<?php echo $MyFormName; ?>" id="<?php echo $MyFormName;?>" method="post" action=""> 
 
<ul class="tabs" data-persist="true" style="margin-top:24px;" width="99%">
	<li><a href="#tab_basika">Βασικά Στοιχεία</a></li>
	<li><a href="#tab_stoixeia_timologisis">Στοιχεία Τιμολόγησης</a></li>
	<li><a href="#tab_kiniseis">Κινήσεις</a></li>
	<li><a href="#tab_service">Service</a></li>
	<li><a href="#tab_symvolaia">Συμβόλαια</a></li>
</ul>
 
 	<link rel="stylesheet" href="css/font-awesome.min.css" />
	<link rel="stylesheet" href="css/tab2023.css" />
 
		<div class="page" style="margin-top:20px;">
	 
			<div class="pcss3t pcss3t-theme-1 ">
				<input type="radio" name="pcss3t" checked  id="tab1" class="tab-content-first" >
				<label for="tab1"><i class="icon-edit "></i>Βασικά Στοιχεία</label>
				
				<input type="radio" name="pcss3t" id="tab2" class="tab-content-2" >
				<label for="tab2"><i class="icon-paper-clip"></i>Στοιχεία Τιμολόγησης</label>

				<input type="radio" name="pcss3t" id="tab2" class="tab-content-2" >
				<label for="tab3"><i class="icon-paper-clip"></i>Κινήσεις</label>

				<input type="radio" name="pcss3t" id="tab2" class="tab-content-2" >
				<label for="tab4"><i class="icon-paper-clip"></i>Service</label>

				<input type="radio" name="pcss3t" id="tab2" class="tab-content-2" >
				<label for="tab5"><i class="icon-paper-clip"></i>Συμβόλαια</label>				
				<ul>
					<li class="tab-content tab-content-first typography">
						<?php include 'pelates_basika_stoixeia.php'; ?>
					</li>
					<li class="tab-content tab-content-2 typography">
						<?php include 'pelates_stoixeia_timologisis.php'; ?>
					</li>					
					<li class="tab-content tab-content-3 typography">
						<?php include 'pelates_kiniseis.php'; ?>
					</li>
					<li class="tab-content tab-content-4 typography">
						<?php include 'pelates_service.php'; ?>
					</li>
					<li class="tab-content tab-content-5 typography">
						<?php #include 'pelates_stoixeia_timologisis.php'; ?>
					</li>

				
				</ul>
			</div>	
		</div>	
 
 
 <div class="tabcontents"  >
	 <div id="tab_basika" style="padding-bottom:20px;">		
		 <?php  include 'pelates_basika_stoixeia.php'; ?>
	 </div>
 
 	 <div id="tab_stoixeia_timologisis" style="padding-bottom:20px;">
		 <?php include 'pelates_stoixeia_timologisis.php'; ?>
	 </div>
	
 	<div id="tab_kiniseis" style="margin-bottom:0px;" >
		<?php include 'pelates_kiniseis.php'; ?>
	</div>
	
 	<div id="tab_service" style="margin-bottom:-22px;">
		<?php  include 'pelates_service.php'; ?>
	</div>	
	
	<div id="tab_symvolaia">
 
  </div>	
</div>	 
 

<?php
  include 'include/del_yes_no.php';
?>  
 <Div style="visibility:hidden; position:absolute; margin-left:150px; margin-top:-500px; top:50; width:20%; " >
	  <input type="text" name="IDPelati" id="IDPelati" value="<?php echo $IDPelati;?>">  
	  <input type="text" name="isActive" id="isActive" value="<?php echo $isActive;?>">  
	  <input type="text" name="CountryCode" id="CountryCode" value="<?php echo $CountryCode;?>"> 
	  <input type="text" name="invCountryCode" id="invCountryCode" value="<?php echo $invCountryCode;?>">   
	  <input type="text" name="HmEggrafisNum" id="HmEggrafisNum" value="<?php echo $HmEggrafisNum;?>">
	  <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;?>">  
 </div>	
		<!---   ΚΛΕΙΝΕΙ ΤΟ FRAME  visibility:hidden; --->

</form>
 </body>
 
<?php
// href="javascript:ShowDateDiv();" 

?> 
<?php
   include 'HmApoEos.php';
   include 'include/footer2020.php';
?> 
</html>
 
 <script type="text/javascript" src="js/mycheck.js"></script>   
 <script type="text/javascript" src="js/datepicker.js"></script>  