Esempio n. 1
0
  <head>
    <meta charset="utf-8">
    <title>The Bethlehem Vineyard - <?php 
echo $system->getPage();
?>
</title>

    <?php 
if ($system->getDevice() == 'mobile') {
    echo '<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no">';
}
?>

    <meta name="viewport" content="width=device-width, initial-scale=1.0">
<!--     <link href="<?php 
echo $system->getUrl();
?>
assets/css/bootstrap-responsive.css" rel="stylesheet"> -->
    <meta name="description" content="Bethlehem Vineyard Winery">
    <meta name="author" content="Bethlehem Vineayrd Winery">
<!-- 
    <link href="<?php 
echo $system->getUrl();
?>
css/bootstrap.css" rel="stylesheet">
	<link href="<?php 
echo $system->getUrl();
?>
css/bootstrap-responsive.css" rel="stylesheet"> -->
	<!-- Latest compiled and minified CSS -->
Esempio n. 2
0
    }
} elseif (isset($_POST['action'])) {
    $action = $_POST['action'];
    if ($action == 'edit') {
        if (isset($_POST['section'])) {
            $page = 'Modify Section';
            require $system->getDir() . 'head.php';
            require $system->getDir() . 'actions/modifySectionAction.php';
        } elseif (isset($_POST['optionID'])) {
            $page = 'Modify Options';
            require $system->getDir() . 'head.php';
            require $system->getDir() . 'actions/modifyOptionAction.php';
        }
    }
    echo '<h2>Update successful!</h2><br />';
    echo '<br />Return to <a href="' . $system->getUrl() . 'index.php?admin' . '">Admin section</a>';
    echo '<br />Return to <a href="' . $system->getUrl() . 'index.php?home">Bethlehem Vineyard Website</a><br />';
} elseif (!isset($_GET) || empty($_GET) || isset($_GET['home'])) {
    //Home
    $system->setPage('Home');
    require $system->getDir() . 'head.php';
    require $system->getDir() . 'home.php';
    require $system->getDir() . 'wines.php';
} else {
    if (isset($_GET['admin'])) {
        //Admin
        $pgae = 'Admin';
        require $system->getDir() . 'head.php';
        require $system->getDir() . 'admin.php';
    } else {
        if (isset($_GET['wine'])) {