Make use of Yapter Template Engine

This commit is contained in:
2023-02-13 09:31:40 +01:00
parent 7322231d3e
commit 8d00ee5e1b
100 changed files with 4804 additions and 2666 deletions

24
locationdel.php Normal file
View File

@@ -0,0 +1,24 @@
<?php
include("header.php");
// get id
$location_id = $_GET['location_id'];
// set template
$tp = new Template("tpl/locationdel.tpl");
// set language variables
$tp->setvars($lang);
// get location info
$result = mysql_query("SELECT location_name FROM location WHERE location_id='$location_id'") or die(mysql_error());
$row=mysql_fetch_object($result);
$tp->set("location_id", $location_id);
$tp->set("location_name", $row->location_name);
// output
$tp->parse();
$tp->spit();
include("footer.php");
?>