<?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
error_reporting(E_ALL); ini_set('display_errors', 1);
 
if (session_status() == PHP_SESSION_ACTIVE) {
    ## echo "<br><br><br><br><br><br><br><br><br>session already exists";
	} else {
			header("Location: login.php"); 
			}
 
if ( isset($_SESSION['CheckPWD'])) {
		# echo 'Session is active'; 
		} 
    else
		{
	 # echo "Session not Active";
	 header("Location: login.php"); 
  }
 
 
?>
<html lang='gr'>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,height=device-height,initial-scale=1.0"/>
	<head>
		
	</head>


<title>vs OfficeManager</title>

<link href="https://fonts.googleapis.com/css?family=Open+Sans+Condensed:300,300italic,700&subset=latin,greek,greek-ext" rel="stylesheet" type="text/css">
<link href="https://fonts.googleapis.com/css?family=Fira+Sans" rel="stylesheet">

<link rel="stylesheet" type="text/css" href="css/all.css">
<link rel="stylesheet" type="text/css" href="css/mitroo.css"  charset="utf-8"/>
 

 
<style type="text/css">
/* body {padding-top:0px; } */
 @media print{ .hideOnPrint{ display:none } 	}
 a:link {text-decoration: none;}
 a:hover{text-decoration:  none;}
 a:active {text-decoration: none;}
/* 
.input-group .bootstrap-select.form-control { z-index: inherit; } 
.input-group .form-control { z-index: 2;    }

*/
</style>

<?php

 
$myTopCaption_Text=" ΣΗΜΕΙΩΣΕΙΣ - ΕΠΕΞΕΡΓΑΣΙΑ ΕΓΓΡΑΦΗΣ ";
$MyFormName=str_replace('.php', '', basename($_SERVER['PHP_SELF']));
$prefix="mitroo_parametroi@";
$tblName='mitroo_parametroi';
$IDcField='IDc';
$FocusField="Username";
$RequiredField="Username";
$CloseType="StayHere";
$ReturnTo='parametroi_menou.php';
 
include 'menu_left/menu_left.php';
include 'myfunctions.php';

//========================================
//       Record Read
//========================================
$closeCap=" Επιστροφή ";
 
$IDc=1;
$Username="";$Password='';$AFM= "";$Sxolia='';

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

$Username = $rs['Username'];
$Password=$rs['Password'] ;
$AFM=$rs['AFM'];
$Sxolia = $rs['Sxolia'];
 
?>

  <form  name="<?php echo $MyFormName;?>" id="<?php echo $MyFormName;?>" method="post" action="">  
  <div class="page">
	<div class="header">CUSTOMERS</div>
	<div class="main">
		<p style="text-align:center;">Παρακαλώ εισάγετε τα παρακάτω στοιχεία για την αναζήτηση στο Μητρώο των επιχειρήσεων.</p>
		<div class="form">	
			<div class="caption"> ΠΑΡΑΜΕΤΡΟΙ ΜΗΤΡΩΟΥ </Div>
			<label for="Username">User Name</label>
			<input type="text" name="Username" id="Username" required placeholder="" value="<?php echo $Username;?>"></input>
			 
			<label for="Password">Password</label>
			<input type="text" name="Password" id="Password" required placeholder="" value="<?php echo $Password;?>" ></input>
			 
			<label for="AFM">ΑΦΜ</label>
			<input type="text" name="AFM" id="AFM" placeholder="" value="<?php echo $AFM;?>" ></input>		
			
			<label for="Sxolia">Σημειώσεις</label>
			<textarea name="Sxolia" id="Sxolia"  style="height:60px;" value="<?php echo $Sxolia;?>" ><?php echo $Sxolia;?></textarea>
 
				<div class="row" style="display:flex; justify-content:flex-end; border:0px solid red; padding:5px 0 5px 0;z-index:999;  ">
					<div style=" z-index:0;"  >
					<a id="btnSave" name="btnSave" class="button green save1"  > Αποθήκευση </a> 
					<a id="btnClose" name="btnClose" style="width:120px;text-align:center;" class="button gray close1">&nbsp;Εξοδος&nbsp;</a>
					</div>
				</div>
		</div>	
	</div>

</div>

  
 <Div style="visibility:hidden ; position:absolute; margin-left:-110px; margin-top:-150px; top:-150; width:20%; " >
	  <input type="text" name="IDUser" id="IDUser" value="<?php echo $IDc;?>"> 
	  <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" id="FocusField" value="<?php echo $FocusField;?>">
 </div>	
</form>
 
 </html>

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

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

 
 
 