<?php
    include('loginsession.php');
    error_reporting(E_ALL);
    $filename = __FILE__;  //---Nama file saat ini
    if (strlen(__FILE__) > 48) {$filename = substr(__FILE__, 48);}
    $save = mysqli_query($conn, "INSERT INTO novia_abc_user_logs (userid,filename) VALUES ('$userini_id','$filename')");
//-------------
$b = mysqli_fetch_array(mysqli_query($conn, "SELECT * FROM novia_abc_biodata where id='$_GET[id]'"));

//Script Umur
$sa = date("Y");
$si = $b['birthday'];
$dti = new DateTime($si);
$currdate_ = $dti->format('Y');
$umur = $sa-$currdate_;
if ($umur > 150) $umur1 = "";
if ($umur < 150) $umur1 = $umur;
//--------

?>
<!DOCTYPE>
<html>
<head>
	<title></title>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" type="text/css" href="css/status.css">
	<link href="images/balance.ico" rel="icon" type="image/icon" />

	<style>
		a { text-decoration: none; color:inherit;}
		a:hover {color:#FF00FF;}   /* Mouse over link */
		input[type=text],input[type=password]
		{
		width:60%;
		padding:8px;
		margin-top:8px;
		margin-bottom:8px;
		border:1px solid #ccc;
		padding-left:5px;
		font-size:18px;
		}

		input[type=submit]
		{
		width:35%;
		background-color:#8baca4;
		color:#FFFFFF;
		border:2px solid #8baca4;
		padding:6px;
		font-size:18px;
		cursor:pointer;
		border-radius:5px;
		}	
    </style>	
</head>

<body style="margin-left:22px; margin-top:22px;">

<table width="580px">

			<tr style= "text-transform:uppercase; font-weight: 900; font-size: 15;" >
				<td width="63%"><a title="nama"><a>NAMA : <?php echo $b["name"]; ?></td>
				<td width="18%"><a title="umur"><a>UMUR : <?php echo $umur1; ?></td>
				<td width="19%" align="center"><a title="mr"><a></a>MR : <?php echo $b["mr"]; ?></td>
			</tr>
			<tr style= "font-size: 13;">
				<td colspan="3"><a title="nama"><a>Alamat : <?php echo $b["street_address"].", ".$b["kelurahan"].", ".$b["city"]; ?></td>
			</tr>
			<tr style= "font-size: 12;">
				<td colspan="1"><a title="nama"><a>Email : <?php echo $b["email"]; ?></td>
				<td colspan="1" align="left"><a title="nama"><a><?php echo $b["phone_home"]; ?></td>
				<td colspan="1" align="left"><a title="nama"><a><?php echo $b["phone_wa"]; ?></td>
			</tr>
			<tr style= "font-size: 12;">
				<td colspan="3"><a title="nama"><a>Catatan Penting :</td>
			</tr>


</table>
<table width="580px" ">

			<tr style= "font-size: 13;">
				<td width="50px"><a title="nama"><a>Tanggal</td>
				<td width="180px"><a title="umur"><a>Keterangan</td>
				<td width="235px"><a title="mr"><a></a>Tindakan</td>
				<td width="55px"><a title="mr"><a></a>Biaya</td>
			</tr>
			<tr>
				<td height="650px" colspan="1"><a title="nama"><a></td>
				<td colspan="1"><a title="nama"><a></td>
				<td colspan="1"><a title="nama"><a></td>
				<td colspan="1"><a title="nama"><a></td>
			</tr>


</table>
</body>
</html>








