<input id="password" name="password" type="password"/> <button id="LoginBtn" type="Button" value="Login">Login </button> </div> </div> </div> </form> </div> </div> <div class="container"> <?php $article_id = $_GET['var']; include "../include/DB.php"; $res_art = GetArticle($article_id); $up_count = GetUpCount_Art($article_id); $down_count = GetDownCount_Art($article_id); echo "<div class=\"jumbotron\">\n"; echo "<h4>" . $res_art[0]['Title'] . "</h4>"; echo "<h6>Author:" . $res_art[0]['Name'] . "</h6>\n"; echo "<h6>Time:" . $res_art[0]['Time'] . "</h6>\n"; echo "<p>" . $res_art[0]['Content'] . "</p>"; if (isset($_SESSION['login']) && $_SESSION['login'] == true) { echo "<h4></h4>"; echo "<div id=\"article_info\" style=\"display: none;\">" . $article_id . "</div>"; echo "<a href=\"#\" class=\"up_count_art_btn\" id=\"up_count_art_" . $article_id . "\"><span class=\"glyphicon glyphicon-thumbs-up\" aria-hidden=\"true\"></span><span class=\"count\"> " . $up_count . "</span> Up</a>"; echo "<span>     </span>"; echo "<div id=\"article_info\" style=\"display: none;\">" . $article_id . "</div>"; echo "<a padding-left:10px href=\"#\" class=\"down_count_art_btn\" id=\"down_count_art_" . $article_id . "\"><span class=\"glyphicon glyphicon-thumbs-down\" aria-hidden=\"true\"></span></span><span class=\"count\"> -" . $down_count . "</span> Down</a>"; } else {
<?php /** * User: Ivan Pirus * Group: B14 * Date: January 2016 */ include 'models/select_articles.php'; include 'models/update_revisions.php'; include 'controller_main_language.php'; $head_title = $_GET['id']; // increment revision article $value = SelectRevisions($head_title); //select with sql DB $value++; UpdateRevisions($head_title, $value); //update revisions articles //select article $array_article = GetArticle($head_title); ShowSelectArticles($array_article); echo "<script src='content/controllers/views/views_js/articles.js'></script>"; echo "<script src='content/controllers/views/views_js/copy_url.js'></script>";