<?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
<?php /* * including Classes */ include "../classes/CafeActivation.php"; include "../classes/CafeMgmt.php"; /* * creating objects * objects for the above classes */ $cafe_act = new CafeActivation(); $cafe_mgmt = new CafeMgmt(); /* * get yesterdays d */ $yesterday = $_REQUEST['date']; //date("Y-m-d",mktime(0,0,0,date("m") ,date("d")-1,date("Y"))); /* * gettingvalues in result array */ $result = $cafe_act->getInstalledCafe($yesterday); $num = mysql_num_rows($result); ?> <h4>Number of screens Installed today: <?php echo $num; ?> </h4><table width="973" border="1"><tr><td>Cafe Id</td><td>Mac Id</td><td>Installed By</td><td>Time</td></tr> <?php while ($row = mysql_fetch_array($result)) { echo ' <tr>';
<?php include "../templates/header_session.php"; 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;
include "../templates/header_session.php"; $session_id = $_SESSION['session_id']; $user_id = $_SESSION['user_id']; $cafe_id = $_POST['cafe_id']; $pay = $_POST['pay']; //including all the relevant classes include '../classes/CafeDetails.php'; include '../classes/CafeActivation.php'; include '../classes/CafeMgmt.php'; include '../classes/CafeTrac.php'; include '../classes/SugarSoap.php'; //creating object of class cafe details $cafe_details = new CafeDetails(); //creating object of class Cafe Activation $cafe_activate = new CafeActivation(); //creating objects of cafe Magmt $cafe_mgmt = new CafeMgmt(); $cafe_trac = new CafeTrac(); $sugar = new SugarSoap(); //getting post values in the variables $salutation = $_POST['salutation']; $first_name = $_POST['first_name']; $last_name = $_POST['last_name']; $office_phone = $_POST['office_phone']; $cafe_name = $_POST['cafe_name']; $mobile = $_POST['mobile']; $email = $_POST['email']; $address = $_POST['address']; $state = $_POST['state']; $city = $_POST['city'];