Make use of Yapter Template Engine
This commit is contained in:
24
locationdel.php
Normal file
24
locationdel.php
Normal 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");
|
||||
?>
|
||||
Reference in New Issue
Block a user