<?php
    include('loginsession.php');
    error_reporting(E_ALL);
    $filename = basename(__FILE__);
    $save = mysqli_query($conn, "INSERT INTO novia_abc_user_logs (userid,filename) VALUES ('$userini_id','$filename')");
//-------------
$today = date("Y-m-d");
//-------------
?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//ID" "http://www.w3.org/TR/html4/frameset.dtd">
<html lang="id">
<head>
	<title>Administrasi</title>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" type="text/css" href="css/style.css">
	<link href="images/balance.ico" rel="icon" type="image/icon" />
	<style>
        body {
            background-color: #fff;
            background-image : url('../images/Xiaomi1.jpg');
            }
        a { text-decoration: none; 
            color: none;
            font-family: "Times New Roman";
            }
        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;}
		img {
            width: 100%;
            max-width: 500px;
            height: auto;
        }
    </style>	
</head>
<body>

    <div><img src="images/page/navigasi_02.png" alt="Deskripsi Gambar"></div>
	<br>
	<h1>DATA PASIEN</h1>
	<br>	


	<table width="100%" cellpadding="5">
		<tr class="dua">
			<td><a href="visit-yearly.php?tanggal=<?php echo date("Y-m-d");?>" title="Lihat Pasien Tahunan"><button style="padding : 10px; width:100%; background-color:#8baca4;">PASIEN TAHUNAN</button></a></td>
			<td><a href="visit-monthly.php?tanggal=<?php echo date("Y-m-d");?>" title="Lihat Pasien Bulanan"><button style="padding : 10px; width:100%; background-color:#8baca4;">PASIEN BULANAN</button></a></td>
			<td><a href="visit-daily.php?tanggal=<?php echo date("Y-m-d");?>" title="Lihat Pasien Harian"><button style="padding : 10px; width:100%; background-color:#8baca4;">PASIEN HARIAN</button></a></td>
		</tr>
	
		<tr class="dua">
			<td><a href="_index_lengkap.php" title="Lihat Data Pasien Lengkap"><button style="padding : 10px; width:100%; background-color:#8baca4;">Data Pasien Lengkap</button></a></td>
			<td><a href="visit-last.php" title="Terakhir Datang"><button style="padding : 10px; width:100%; background-color:#8baca4;">TERAKHIR DATANG</button></a></td>
			<td><a href="cash/stock.php" title=""><button style="padding : 10px; width:100%; background-color:#546E7A;">STOCK</button></a></td>
		</tr>
	</table>
    <table width="100%" cellpadding="5">
		<tr class="dua">
			<td><a href="visit-stat.php" title="Statistik Kunjungan Pasien Perbulan"><button style="padding : 10px; width:100%; background-color:#4b6ca4;">Statistik Pasien</button></a></td>
			<td><a href="online_view.php" title="Calon pasien yang daftar online"><button style="padding : 10px; width:100%; background-color:#8baca4;">Calon pasien online</button></a></td>
	    </tr>
	</table>

	<br>
	<h1>KEUANGAN</h1>
	<br>	
	<table width="100%" cellpadding="4">
		<tr class="dua">
			<td><a href="cash/cash-stat.php?tanggal=<?php echo $today;?>" title="Lihat Statistik Keuangan"><button style="padding : 10px; width:100%; background-color:#546E7A;">STATISTIK</button></a></td>
			<td><a href="cash/cash-piutang.php?userid=1" title="Lihat Hutang Piutang"><button style="padding : 10px; width:100%; background-color:#546E7A;">PIUTANG</button></a></td>
			<td><a href="cash/cash-main.php" title="Lihat Keuangan Hari ini"><button style="padding : 10px; width:100%; background-color:#546E7A;">TAMBAH BELANJA</button></a></td>
		</tr>
	</table>
		
	<table width="100%" cellpadding="4">
		<tr class="dua">
			<td><a href="cash/cash-view-monthly.php?tanggal=<?php echo date("Y-m-d");?>" title="Lihat Pengeluaran Bulan ini"><button style="padding : 10px; width:100%; background-color:#8baca4;">KEUANGAN<br>BULANAN</button></a></td>
			<td><a href="cash/cash-view-daily.php?tanggal=<?php echo date("Y-m-d");?>" title="Lihat Pengeluaran Hari ini"><button style="padding : 10px; width:100%; background-color:#8baca4;"> KEUANGAN<br>HARIAN </button></a></td>
		</tr>
	</table>
	<br>
	<h1>PENGEMBANGAN DIRI</h1>
	<br>
	<table width="100%" cellpadding="4">
		<tr class="dua">
			<td><a href="aero/meditation.php" title="Lihat Keuangan Hari ini"><button style="padding : 10px; width:100%; background-color:#546E7A;">--------------------<br>MEDITASI<br>--------------------</button></a></td>
			<td><a href="aero/aero_main.php" title="Lihat Keuangan Hari ini"><button style="padding : 10px; width:100%; background-color:#546E7A;">--------------------<br>AEROBIK<br>-------------------</button></a></td>
		</tr>

		<tr class="dua">
			
                <?php
                    if($userini_id == "3"){
                ?>
                <td><a href="diary/index.php?check=1" title=""><button style="padding : 10px; width:100%; background-color:#C7D2D9;">CATATAN HARIAN</button></a></td>
                <?php
                    }
                    if($userini_id != "3"){
                ?>
                <td><a href="diary/index.php?check=0" title=""><button style="padding : 10px; width:100%; background-color:#C7D2D9;">CATATAN HARIAN</button></a></td>
                <?php
                    }
                ?>			
			
			
			
			<td><a href="todo/routine.php" title="User Log"><button style="padding : 10px; width:100%; background-color:#C7D2D9;">RUTINITAS HARIAN</button></a></td>
			
		</tr>

		<tr class="dua">
			<td><a href="todo/todo.php" title="ToDo List"><button style="padding : 10px; width:100%; background-color:#819CA9;">RENCANA</button></a></td>
		    <td colspan="2"><a href="counter/counter.php?item=1" title="No Smoking"><button style="padding : 10px; width:100%; background-color:#819CA9;">SMOKING</button></a></td>
        </tr>
	</table>



<?php
//ADMIN AREA
//---------------------------------------------
if($userini_id == 3){
?>
	<br>
	<h1>ADMIN AREA</h1>
	<br>	
    <table width="100%" cellpadding="5">
		<tr class="dua">
		    <td><a href="todo/routine_edit.php" title=""><button style="padding : 10px; width:100%; background-color:#546E7A;">PDA EDIT</button></a></td>
		    <td><a href="coding/coding_main.php" title=""><button style="padding : 10px; width:100%; background-color:#546E7A;">CODING</button></a></td>
			<td><a href="userlog.php" title="User Log"><button style="padding : 10px; width:100%; background-color:#C7D2D9;"> ACTIVITY </button></a></td>
		 </tr>
		 <tr class="dua">
		     
		    <td><a href="coding/page.php" title="Halaman Awal"><button style="padding : 10px; width:100%; background-color:#A6B7C1;">Page</button></a></td> 
		    <td><a href="coding/page-01.php" title="Halaman Awal"><button style="padding : 10px; width:100%; background-color:#A6B7C1;">Page-01</button></a></td> 
		    <td><a href="https://scr.drrocky.skin" title="scr.drrocky.skin"><button style="padding : 10px; width:100%; background-color:#A6B7C1;">MY SCRIPT</button></a></td> 
	     </tr>
 		 <tr class="dua">
  			 <td><a href="_kelurahan.php" title="Lihat Pasien Tahunan"><button style="padding : 10px; width:100%; background-color:#8baca4;">Reset Data Kelurahan</button></a></td>
 		     <td colspan="1"><a href="https://form.drrocky.skin" title="Form Online"><button style="padding : 10px; width:100%; background-color:#A6B7C1;">Online Form</button></a></td>
 		     <td colspan="1"><a href="player/index.php" title="Player Utama"><button style="padding : 10px; width:100%; background-color:#819CA9;">Player Utama</button></a></td>
 		 </tr>
 		 <tr class="dua">
 		     <td colspan="2"><a href="#" title="Afirmasi"><button style="padding : 10px; width:100%; background-color:#819CA9;">KOSONG</button></a></td>
		    <td><a href="player/player_01/index3.html" title="Afirmasi"><button style="padding : 10px; width:100%; background-color:#819CA9;">PLAYER 01</button></a></td>
 		 </tr>
	</table>
	
<?php
}
?>
    <br>
    <table width="100%" cellpadding="5">
		<tr class="dua">
		    <td colspan="3"><a href="logout.php" title=""><button style="padding : 10px; width:100%; background-color:#546E7A;">LOGOUT</button></a></td>
		</tr>
	</table>	
</body>
</html>



