<?php include "config.php"; include "Essay.php"; session_start(); $conn = new PDO('mysql:host=' . DB_SERVER . ';dbname=' . DB_NAME, DB_USERNAME, DB_PASSWORD); $essayList = Essay::getEssaysByAuthor($conn, $_SESSION["user_id"]); $conn = null; ?> <html> <head> <title>Моят реферат</title> <link rel="stylesheet" href="css/bootstrap.min.css"> <script src="js/jquery-1.11.2.min.js"></script> </head> <body> <?php include "menu.php"; ?> <div class="container"> <div class="page-header"> <h1>Моят реферат</h1> </div> <?php if ($essayList != null) { $currentVersion = $essayList[0]; array_shift($essayList); ?> <fieldset> <legend>Текуща версия</legend> <table class="table">