Document Document Webbserv1: Källkod
Webbserverprogrammering 1

Show sourcecode

The following files exists in this folder. Click to view.

Webbserverprogrammering/incl/

config.php
footer.php
header.php

header.php

50 lines UTF-8 Windows (CRLF)
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>

<?php
include("incl/config.php");


?>
<!doctype html>
<html lang="sv">
<head>
    <meta charset="utf-8">
    <title><?php echo $title?></title>
    <link rel="stylesheet" href="style/stylesheet.css" 
    title="General stylesheet">
    <link rel="shortcut icon" href="img/favicon_pb.png">

    <!-- Each page can set $pageStyle to create additional style -->
    <?php if(isset($pageStyle)) { ?>
     <style>
       <?php echo $pageStyle?>
     </style>
    <?php ?>
</head>

<!-- The body id helps with highlighting current menu choice -->
<body<?php if(isset($pageId)) echo " id='$pageId' "?>>



    <!-- header -->
    <header id="top">
        <span class="logga">Webbserverprogrammering 1</span>
    
        <!-- navigation menu -->
        <nav class="navmenu">
            <a id="start-"     href="index.php">Start</a>
            <a id="comments-" href="comments.php">Reflektioner</a>
            <a id="exercises-" href="exercises/index.php">Övningar</a>
            <a id="viewsource-" href="viewsource.php">Källkod</a>
        </nav>
    </header>