<?php 
session_start();
 ?>
<head>
	<title>Visualsoft Office Manager - Εφαρμογές</title>
	<link href="logos/ofm1.ico" rel="shortcut icon" type="image/x-icon"> 
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<meta name="description" content="">
	<meta http-equiv="content-type" content="text/html; charset=UTF-8">	
</head>
<?php  
if($_SESSION['CheckPWD']==false) { header("Location: login.php"); }
$myTopCaption_Text=" ΕΦΑΡΜΟΓΕΣ ";
$MyFormName=str_replace('.php', '', basename($_SERVER['PHP_SELF']));
$MyADDFormName="app_add";
$tblName='apps';
$IDcField='IDApp';
$FocusField="Perigrafi";
$RequiredField="Perigrafi";
$ListExist=true;
$ReturnTo='app_list.php';
require '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;
 }
</style>

<html> 
 
	<link rel="stylesheet" href="css/tab2023.css" />  	
	 
<?php

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

$IDc=0;$IDApp=0;
$Perigrafi='';$FtpServerFolder='';$Version='';$VersionDate='';$VersionDateDateNum=0;
$FtpServer='';$FtpServer2='';$isActive=0;$Sxolia='';$isActiveChk='unckecked';

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

$IDApp = gConvertField($rs['IDApp'],0);
$IDc=$IDApp;
$Perigrafi=$rs['Perigrafi'];
$Version=$rs['Version'];
$VersionDate=formatMyDate($rs['VersionDate'],"MySqlToGr"); 
$FtpServer=$rs['FtpServer'];
$FtpServer2=$rs['FtpServer2'];
$FtpServerFolder=$rs['FtpServerFolder'];
$isActive=$rs['isActive'];
$Sxolia=$rs['Sxolia'] ;

$isActiveChk='unckecked';
if($isActive==-1){$isActiveChk='checked';} 
 
// ============================
   
// ============================
  
?> 


<?php
  # include 'include/buttons_bar_top.php';
#  foreach (glob("*.*") as $filename) {
 #   echo "$filename size " . filesize($filename) . "<br>";
#}

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

<form name="<?php echo $MyFormName;?>" id="<?php echo $MyFormName;?>" method="post" action=""> 
 <body  OnLoad="javascript:onLoadFocus();"  >
 
 <div id="block_container" > 
 <div id="bloc1" class="fieldset2 "  > 
	<h1>ΣΤΟΙΧΕΙΑ ΕΦΑΡΜΟΓΗΣ</h1> 
	
	<div class="row"  >
		<?php input_field_2080('20','80','Ονομα Εφαρμογής', 'Perigrafi', $Perigrafi, true); ?>
	</div>
	
	<div class="row" >
			<?php input_field_2080('20','30','Version', 'Version', $Version, false); ?>
			<?php input_field_2080('20','30','Ημ/νία', 'VersionDate', $VersionDate, false); ?>
	</div>	
	<div class="row"  >
		<?php input_field_2080('20','80','FtpServer 1', 'FtpServer', $FtpServer, true); ?>
	</div>	
	<div class="row"  >
		<?php input_field_2080('20','80','FtpServer 2', 'FtpServer2', $FtpServer2, true); ?>
	</div>
	
	<div class="row"  >
		<?php input_field_2080('20','80','Directory Folder', 'FtpServerFolder', $FtpServerFolder, true); ?>
	</div>
	
	<div class="row">
		<div class="col-20"><label for="isDoneChk">Εφαρμογή Ενεργή</label></div>
		<div class="col-80">	
				<?php  input_yesno_only("Εφαρμογή Ενεργή", "isActiveChk", "isActive", $isActive,"" )?> 
		
		</div>
	</div>
 
 
	<div class="row">
		<div class="col-20"><label for="Tilefono">Σημειώσεις</label></div>
		<div class="col-80"><textarea id="Sxolia" name="Sxolia" style="font-size:0.8em; resize:none; min-height:60px;max-height: 100%;padding:10px;"  value="<?php echo $Sxolia;?>" ><?php echo $Sxolia;?></textarea></div>
	</div>	
 
	</div>
 


 		<!-- =============================== basika stoixeia part2 =======================-->

	<div id="bloc2" class="fieldset2"  > 
		<h1>ΣΥΜΒΟΛΑΙΑ</h1>
		<?php include 'app_pelates.php'; ?>
	</div>

  </div>
 
  </body>


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

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

<script type="text/javascript" src="js/mycheck.js"></script>   
<script type="text/javascript" src="js/datepicker.js"></script>   

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


 
</html>
 