<?php
session_start();
ob_start();
if ($_SESSION['islogin']=='' ) { 
  echo "ΠΡΕΠΕΙ ΝΑ ΕΓΓΡΑΦΕΙΤΕ ΓΙΑ ΝΑ ΧΡΗΣΙΜΟΠΟΙΗΣΕΤΕ ΤΟ ΣΥΣΤΗΜΑ"."<BR>";
  sleep(3);
  header("Location: loginall.php"); /* Redirect browser */
  exit();
  }
include "logo.php";
?>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
table.myTable { border-collapse:collapse; }
table.myTable td, table.myTable th { border:1px solid black;padding:2px;font-size:11px; }

.fieldset1
{
    width:576px;
	background: #F5F9F0;
	border:2px solid green;
    -moz-border-radius:4px;
    -webkit-border-radius:4px;	
    border-radius:4px;	
}
.fieldset2
{
    width:270px;
	background: #F0FFF0;
	border:2px solid green;
    -moz-border-radius:4px;
    -webkit-border-radius:4px;	
    border-radius:4px;	
}
.fieldset3
{
    width:575px;
	background: #F0FFF0;
	border:2px solid green;
    -moz-border-radius:4px;
    -webkit-border-radius:4px;	
    border-radius:4px;	
}
.label1
{
display:inline-block;
width:80px;
margin-right:10px;
text-align:right;
}
</style>


<?php
require "dbconnect.php";
$mitroo=$_GET['m'];

$sql = mysqli_query($con,"SELECT * FROM studentinfo WHERE mitroo='$mitroo'  " );
$row = mysqli_fetch_array($sql);
$stname=$row['eponimo']." ".$row['onoma'];
$tmimaid=$row['tmima'];
$pateras=$row['pateras'];
$katpatera=$row['katpatera'];
$epapatera=$row['epapatera'];
$kpatera=$row['kpatera'];
$mitera=$row['mitera'];
$katmiteras=$row['katmiteras'];
$epamiteras=$row['epamiteras'];
$kmiteras=$row['kmiteras'];
$epokidemona=$row['epokidemona'];
$onokidemona=$row['onokidemona'];
$address=$row['address'];
$poli=$row['poli'];
$tk=$row['tk'];
$sms=$row['sms'];
$stathero=$row['sthathero'];
$ektopismenos=$row['ektopismenos'];
$birthplace=$row['birthplace'];
$birthday=$row['birthday'];
$nationality=$row['nationality'];
$religion=$row['religion'];
$stathero=$row['sthathero'];
$politekni=$row['politekni'];
$identity=$row['identity'];
$passport=$row['passport'];

echo "<table>
<tr style='border:0px' bgcolor=#81DAF5 >
<th></th>
<th></th>
</tr>";
?>
<tr>
<td>
<fieldset fieldset class="fieldset2" disabled>
<legend> <?php echo "<b>"."ΣΤΟΙΧΕΙΑ ΠΑΤΕΡΑ"."</b>"; ?> </legend>
<label class="label1"  for="pateras">ΟΝΟΜΑ:</label><input type='text' name='pateras' size='20' value = "<?php echo $pateras; ?>" /></p>
<label class="label1"  for="epapatera">ΕΠΑΓΓΕΛΜΑ:</label><input type='text' name='epapatera' value = "<?php echo $epapatera; ?>" /></p>
<label class="label1"  for="katpatera">ΚΑΤΑΓΩΓΗ:</label><input type='text' name='katpatera' value = "<?php echo $katpatera; ?>" /></p>
<label class="label1"  for="kpatera">ΤΗΛΕΦΩΝΟ:</label><input type='text' name='kpatera' value = "<?php echo $kpatera; ?>" /></p>
</fieldset>
</td>
<td>
<fieldset fieldset class="fieldset2" disabled>
<legend> <?php echo "<b>"."ΣΤΟΙΧΕΙΑ ΜΗΤΕΡΑΣ"."</b>"; ?> </legend>
<label class="label1"  for="mitera">ΟΝΟΜΑ:</label><input type='text' name='mitera' value = "<?php echo $mitera; ?>" /></p>
<label class="label1"  for="epamitera">ΕΠΑΓΓΕΛΜΑ:</label><input type='text' name='epamiteras' value = "<?php echo $epamiteras; ?>" /></p>
<label class="label1"  for="katmiteras">ΚΑΤΑΓΩΓΗ:</label><input type='text' name='katmiteras' value = "<?php echo $katmiteras; ?>" /></p>
<label class="label1"  for="kmiteras">ΤΗΛΕΦΩΝΟ:</label><input type='text' name='kmiteras' value = "<?php echo $kmiteras; ?>" /></p>
</fieldset>
</td>
</tr>
</table>
<table>
<tr>
<td>
<fieldset fieldset class="fieldset3" disabled >
<legend> <?php echo "<b>"."ΣΤΟΙΧΕΙΑ ΚΗΔΕΜΟΝΑ"."</b>"; ?> </legend>
<label class="label1"  for="epokidemona">ΕΠΙΘΕΤΟ:</label><input type='text' name='epokidemona' size='20' value = "<?php echo $epokidemona; ?>" />
 ΟΝΟΜΑ:<input type='text' name='onokidemona' size='20' value = "<?php echo $onokidemona; ?>" /></p>
<label class="label1"  for="address">ΔΙΕΥΘΥΝΣΗ:</label><input type='text' size='40' name='address' value = "<?php echo $address; ?>" /></p>
<label class="label1"  for="katmiteras">ΠΟΛΗ:</label><input type='text' name='poli' value = "<?php echo $poli; ?>" />
 T.K:<input type='text' name='tk' size='5' value = "<?php echo $tk; ?>" /></p>
<label class="label1"  for="sms">ΚΙN.SMS:</label><input type='text' name='sms' size='12' value = "<?php echo $sms; ?>" />
 ΣΤΑΘΕΡΟ:<input type='text' name='stahero' size='12' value = "<?php echo $stathero; ?>" /></p>
</fieldset>
</td>
</tr>
</table>

<br /><br />
<input type="button" name="epistrofi" value="Επιστροφή" onClick="self.close()"> 
</body>
</html>