diff options
| author | Stefan Suhren <suhren.stefan@fh-swf.de> | 2015-06-01 18:46:12 +0200 |
|---|---|---|
| committer | Stefan Suhren <suhren.stefan@fh-swf.de> | 2015-06-01 18:46:12 +0200 |
| commit | af6dd5f8f9844596e85db25a8e97df9e08cb795c (patch) | |
| tree | 8408e754dd335571635bcde041bbce69213af592 /contact.php | |
| parent | be50d9ed4ba2b844bbc29686cee46b1dc149372a (diff) | |
| download | Catalog-af6dd5f8f9844596e85db25a8e97df9e08cb795c.tar.gz Catalog-af6dd5f8f9844596e85db25a8e97df9e08cb795c.zip | |
Port alls sites to smarty and use the inheritance model
Diffstat (limited to 'contact.php')
| -rw-r--r-- | contact.php | 41 |
1 files changed, 8 insertions, 33 deletions
diff --git a/contact.php b/contact.php index 85fc9dc..9b9384c 100644 --- a/contact.php +++ b/contact.php @@ -1,35 +1,10 @@ <?php session_start(); -?> -<!DOCTYPE html> -<html> -<head> -<meta charset="UTF-8"> -<title>Contact Us</title> -<link rel="stylesheet" type="text/css" href="styles/style.css"> -</head> -<body> - <header><h1>Contact us</h1></header> - <nav> - <dl> - <dt><a href=".">Home</a></dt> - <dt><a href="categories.php">Categories</a></dt> - <?php - if(isset($_SESSION['username'])) - { - echo "<dt><a href=\"login.php?logout\">Logout</a></dt>"; - } - else - { - echo "<dt><a href=\"login.php\">Login</a></dt>"; - } - ?> - </dl> - </nav> - <div id="content"> - <p>Name: SomeCompany Ltd.<br>Telephone: +1-555-6383<br>Address: SomeStreet in Alamo</p> - <div class="spacer"></div> - </div> - <footer>Copyright by SomeCompany Ltd.</footer> -</body> -</html>
\ No newline at end of file +require_once('vendor.inc.php'); + +$smarty = new Smarty; + +$smarty->assign('loggedin', isset($_SESSION['username'])); + +$smarty->display('contact.tpl'); +?>
\ No newline at end of file |
