Пример #1
0
<?php

include "../templates/header_session.php";
include "../templates/header.php";
include "../classes/CafeDetails.php";
include "../classes/CafeTrac.php";
//creating objects
$cafe_details = new CafeDetails();
$cafe_trac = new CafeTrac();
//getting cafe id from url
$cafe_user_id = $_POST['cafeid'];
//getting cafe name
$cafe_name = $cafe_details->getCafeNameByCafeUID($cafe_user_id);
//getting all the details from cafe trac of cafe id
$result = $cafe_trac->getCafeTracDetails($cafe_user_id);
?>
<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 class="toptextpadding">

</p>
<p class="toptextpadding">Cafe Name: <span><?php 
echo $cafe_name;
?>
</span></p>
<p class="toptextpadding">Total Screens Live:<span><?php 
Пример #2
0
include "../templates/header.php";
$cafe_id = $_GET['cafe_id'];
//includeing classes
include "../classes/CafeActivation.php";
include "../classes/CafeDetails.php";
include "../classes/CafeTrac.php";
//creating objects
$cafe_activate = new CafeActivation();
$cafe_details = new CafeDetails();
$cafe_trac = new CafeTrac();
//getting cafe UId by cafe id
$cafe_user_id = $cafe_details->getCafeUIDByCafeId($cafe_id);
//get cafeids and mac ids
$result = $cafe_details->getMacIdsByCafeUID($cafe_user_id);
//get live screen count
$result_screens = $cafe_trac->getCafeTracDetails($cafe_user_id);
$live_screens = mysql_num_rows($result_screens);
$registered_screens = mysql_num_rows($result);
?>
<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 class="toptextpadding">No of Screens running :<span><?php 
echo $live_screens;
?>
</span></p>
<p class="toptextpadding">No of Registered Screens:<span><?php