View sourcecode

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

index.php

49 lines UTF-8 Unix (LF)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?php
// -----------------------------------------------------------------------------
//
// Requires and includes
//
require_once('dbConn.php');
require_once(
'common.php');

# mess, om mess finns skall det skrivas ut.
$mess = isset($_GET['mess']) ? "<p class=\"mess\">".$_GET['mess']."</p>" "";

// -----------------------------------------------------------------------------
//
// Sätt aside och content
//
$aside2 "";
$content $aside2 == "" "content_full" "content";


// ----------------------------------------------------------------------
//
// Content
//
$html = <<< EOD
  <article class="{$content}">
    <section class="box">
    
{$mess}
    <h2>Databas och PHP, en tutorial</h2>
    <p>Detta är en applikation som är stöd till kursen Webbserverprogrammering 1. Tanken är att du som elev via dessa sidor och exempel skall kunna lära dig att skapa en egen databasdriven applikation.</p>
    <p>Det finns ingen direkt uppgift kopplad till denna applikation utan tanken är att du skall bekanta dig med sidorna, koden, funktionerna och lära dig att använda dem på egen hand.</p>
    <p>Alla koder och databasscript finns tillgängliga genom menyn på vänsterkanten.</p>

    </section>
</article>
EOD;

// -----------------------------------------------------------------------------
//
// Create the html-page
//

$title         "Car";
$charset     "UTF-8";
$style         "stilmall.css";

// Här sköts sidbygget och utskriften.
include_once("page.php");
?>