<?php
session_start();
$typeContent = $_SESSION['typeContent'];
$idContent = $_SESSION['idContent'];
if (isset($typeContent) && isset($idContent)) {
require_once "../class/mysql.class.php";
require_once "../class/utils.class.php";
require_once "../config.php";
require_once "../include/startDb.php";
?>
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Mario Farinato - Doctor in Art Music and Theatre</title>
<style type="text/css">
/* popup page */
div.backgroundPopup {
width: 100%;
background: rgba(3, 3, 3, 0.15);
}
.date {
float: left;
position: relative;
margin-right: 10px;
padding: 44px 5px 0;
}
.date .month {
text-transform: uppercase;
font-size: 25px;
}
.date .day {
font-size: 35px;
line-height: 45px;
position: absolute;
left: 5px;
top: 0;
}
.date .year {
display: block;
position: absolute;
right: -5px;
top: 15px;
-webkit-transform: rotate(-90deg);
-moz-transform: rotate(-90deg);
-o-transform: rotate(-90deg);
-ms-transform: rotate(-90deg);
transform: rotate(-90deg);
}
</style>
</head>
<body>
<!-- projects -->
<div class="backgroundPopup">
<div style="width: 99$; text-align: center;">
<a href="javascript: window.close()" style="text-align: center; text-decoration: none; font-weight: normal; color: #FF0000;">
[ X ] Close
</a>
</div>
<?php
//get all projects
$sql = "select * from blog where code ='".$idContent."'";
$result = $db->query($sql);
$row = $result->fetch();
?>
<!-- title -->
<h2><?=stripslashes($row['title'])?></h2>
<?php
//date
$day = date('d',strtotime($row['create_date']));
$month = date('M',strtotime($row['create_date']));
$year = date('Y',strtotime($row['create_date']));
?>
<div class="date">
<span class="day"><?=$day?></span>
<span class="month"><?=$month?></span>
<span class="year"><?=$year?></span>
</div>
<p><?=stripslashes($row['body'])?></p>
</div>
</body>
</html>
<?php
}
$_SESSION['typeContent'] = '';
$_SESSION['idContent'] = '';
?>