<?php session_start(); include "blocks/check.php"; require "../blocks/connect.php"; require "../packages/info/mapper/NewsMapper.php"; require "../packages/info/domain/News.php"; require "../packages/info/domain/Category.php"; $page = "news"; if (isset($_GET["id"]) && !empty($_GET["id"])) { $id = $_GET["id"]; } $news = new info\mapper\NewsMapper($pdo); try { $newsItem = $news->find($id); } catch (Exception $e) { die($e->getMessage()); } ?> <!doctype html> <html> <head> <meta charset="utf-8"> <link rel="stylesheet" type="text/css" href="../css/reset.css"> <link rel="stylesheet" type="text/css" href="Bootstrap/styles/bootstrap.min.css"> <link rel="stylesheet" type="text/css" href="css/style.css"> <script src="Bootstrap/js/jquery-1.11.1.min.js"></script> <script src="Bootstrap/js/bootstrap.min.js"></script> <script src="ckeditor/ckeditor.js"></script> <script src="js/del.js"></script> <title>Админ Панель - Редактирование новостей</title>
<?php require "blocks/connect.php"; require "packages/info/mapper/NewsMapper.php"; require "packages/info/domain/News.php"; require "packages/info/domain/Category.php"; $news = new info\mapper\NewsMapper($pdo); try { $newsItem = $news->find($_GET["id"]); } catch (Exception $e) { die($e->getMessage()); } echo "<style>body { font-family: Arial, Helvetica, sans-serif;\n\t\t\t\t\tfont-size: 15px;\n\t\t\t\t\tfont-weight: normal;\n\t\t\t\t\tcolor: #252424;\n\t\t\t\t\tline-height: 19px;\n\t\t\t\t }\n\t </style>"; echo $newsItem->getText();