o.php

1 lines UTF-8 Unix (LF)
1
<?php include("incl/config.php"); //felmeddelande
$pageId = "object";

$dbPath = dirname(__FILE__) . "/incl/bmo/data/bmo.sqlite";

// variablar
$p = null;
$path = "incl/object";
$file = null;

if(isset($_GET["p"]))
{
        $p = $_GET["p"];
}

switch($p){  
  case "read": 
    $title = "Visa ett objekt";
    $file = "read.php";
    break;
  
  case "read_all":
    $title = "Visa alla objekt";
    $file = "read_all.php";
    break;
    
  case "category_begravningskonfekt": 
    $title = "Visa begravningskonfekt";
    $file = "begravningskonfekt.php";
    break;
  
  case "category_begravningssked":
    $title = "Visa begravningssked";
    $file = "begravningssked.php";
    break;

  case "category_begravningstal": 
    $title = "Visa begravningstal";
    $file = "begravningstal.php";
    break;
  
  case "category_begravningsfest":
    $title = "Visa begravningsfest";
    $file = "begravningsfest.php";
    break;

  case "category_inbjudningsbrev": 
    $title = "Visa inbjudningsbrev";
    $file = "inbjudningsbrev.php";
    break;
  
  case "category_minnestavla":
    $title = "Visa minnestavla";
    $file = "minnestavla.php";
    break;

  case "category_pärlkrans":
    $title = "Visa pärlkrans";
    $file = "parlkrans.php";
    break;
    
  case "object_more":
    $title = "Mer info";
    $file = "object_more.php";
    break;
  
  default:
    $title = "BMO, objekt";
    $file = "default.php";
  
}

?>

<!-- huvudet -->
<?php include("incl/header.php"); //huvud 
?>

<!-- innehåll -->
<div id = "box">
<div id = "wrap">

    <aside class = "left" style = "width:22%;">
        <?php include("$path/aside.php"); ?>
    </aside>

    <article class = "right justify-para" style="width:73%;">
        <?php include("$path/$file"); ?>
    </article>
    
</div>
</div>


 <!-- foten --> 
  <?php include("incl/footer.php"); ?>