Exemple #1
0
<?php

include "../templates/header_session.php";
include "../templates/header.php";
$user_id = $_SESSION['user_id'];
$cafe_id = $_GET['cafe_id'];
//including all the relevant classes
include '../classes/CafeDetails.php';
include '../classes/CafeActivation.php';
//creating object of class cafe details
$cafe_details = new CafeDetails();
//creating object of class Cafe Activation
$cafe_activate = new CafeActivation();
//getting cafe details by userid
$result = $cafe_details->getCafeDetails($user_id);
//getting cafedetails by cafeId
$result_cafe = $cafe_details->getCafeDetailsByCafeId($cafe_id);
//getting values of all the details
$row = mysql_fetch_array($result_cafe);
?>
<script language="JavaScript" src="gen_validatorv31.js" type="text/javascript"></script>

<body>

<div id="topPan"><div id="ImgPan"><a href="index.html"><img src="../images/logo.gif" title="Coporate Profiles" alt="Coporate Profiles" width="201" height="52" border="0" /></a></div>
<?php 
include "nav_bar.php";
?>
</div>
<div id="bodyPan">
<p>Your Cafe Id :<?php