ordersprinter/webapp/kundenwebseite/index.php

31 lines
903 B
PHP
Raw Normal View History

2020-11-19 22:47:44 +01:00
<?php
require_once (__DIR__. '/../php/config.php');
require_once (__DIR__. '/php/pager.php');
require_once (__DIR__. '/php/replacer.php');
require_once (__DIR__. '/php/menumanager.php');
require_once (__DIR__. '/php/imager.php');
require_once (__DIR__. '/../php/dbutils.php');
header('Content-Type: text/html; charset=utf-8');
$headerFileTemplate = __DIR__. '/vorlagen/classic/header.html';
$footerFileTemplate = __DIR__. '/vorlagen/classic/footer.html';
$contentTemplate = __DIR__. '/vorlage-startseite.txt';
$pdo = DbUtils::openDbAndReturnPdo();
$header = Pager::readAndSubstituteFile($pdo,$headerFileTemplate);
$menu = Pager::getMenuItems($pdo,"index", null);
$footer = Pager::readAndSubstituteFile($pdo,$footerFileTemplate);
$content = "<div class='content'>" . Pager::readAndSubstituteFile($pdo, $contentTemplate) . "</div>";
$page = $header . $menu . $content . $footer;
echo $page;
?>