<?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
<?php include "../templates/header_session.php"; include "../templates/header.php"; $assigned_id = $_SESSION['user_id']; //including classes include "../classes/CafeTrac.php"; //creating objects $cafe_trac = new CafeTrac(); $Yesterday = date("Y-m-d", mktime(0, 0, 0, date("m"), date("d") - 1, date("Y"))); ?> <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"><a href="advertiser_contact.php">Advertiser Contact</a></p> <p class="toptextpadding"><a href="time_sheet.php">Time Sheet</a></p> <p class="toptextpadding"><a href="http://www.emmgts.com/survey">Survey Form</a></p> <p class="toptextpadding"> <?php $res = $cafe_trac->getLiveScreenByUID($assigned_id); $num_live_screen_today = mysql_num_rows($res); //number of screen count yesterday $res_yest = $cafe_trac->getLiveScreenByUID($assigned_id, $Yesterday); $num_live_screen_yesterday = mysql_num_rows($res_yest); ?> Total Live Screens today: <span><?php echo $num_live_screen_today;
<?php include "../templates/header_session.php"; include "../templates/header.php"; $user_id = $_SESSION['user_id']; //including classes include "../classes/CafeDetails.php"; include "../classes/CafeTrac.php"; //creating objects $cafe_details = new CafeDetails(); $cafe_trac = new CafeTrac(); //result of cafe details assigned to the user $result = $cafe_details->getAllCafeIdByAssignedId($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">Cafes Assigned to You</p> <p class="toptextpadding"> </p> <table width="965" border="1" align="center"> <tr> <td>Cafe Name</td> <td>Cafe Owner</td> <td>Office Phone</td> <td>Address</td> <td>City</td> <td>State</td>
<?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;
<?php include "../templates/header_session.php"; include "../templates/header.php"; //including classes include "../classes/CafeTrac.php"; //creating objects $cafe_trac = new CafeTrac(); $Yesterday = date("Y-m-d", mktime(0, 0, 0, date("m"), date("d") - 1, date("Y"))); ?> <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"> Total Live Screens today: <span><?php echo $cafe_trac->getScreensLiveCount(); ?> </span> <a href="#">Click Here</a> to see all the screens </p> <p class="toptextpadding">Total Live screens Yesterday: <span><?php echo $cafe_trac->getLiveScreenCountByDate($Yesterday); ?> </span> <a href="#">Click Here</a> to see all the screens</p> <p class="toptextpadding"> <center> <form id="form1" name="form1" method="post" action="search_cafe_check.php"> <label> Enter Cafe Id
<?php include "../templates/header_session.php"; include "../templates/header.php"; //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"> </p>
<?php include 'account/auth.php'; include "../templates/header.php"; include '../classes/CafeDetails.php'; include '../classes/CafeTrac.php'; error_reporting(E_ALL ^ (E_NOTICE | E_WARNING)); //creating objects $cafe_details = new CafeDetails(); $cafe_trac = new CafeTrac(); $msg = ''; if ($_POST['submit']) { $dd = $_POST['date']; $mm = $_POST['month']; $yy = $_POST['year']; $msg = 'Report of Date :' . $yy . '-' . $mm . '-' . $dd; $date = $yy . '-' . $mm . '-' . $dd; } else { $date = date("Y-m-d", mktime(0, 0, 0, date("m"), date("d") - 1, date("Y"))); $msg = "Yesterday's Cafe Report"; } $cafe_id = $_SESSION['SESS_MEMBER_ID']; $result = $cafe_trac->getCafePayments($cafe_id, $date); $total = 0; $net_time = 0; $counter = 0; ?> <body> <div id="topPan"><div id="ImgPan"><a href="index.html"><img src="http://www.emmgts.com/images/logo.gif" title="Envisage Media" alt="Envisage Media Logo" width="201" height="52" border="0" /></a></div> <?php
<?php $mtime = microtime(); $mtime = explode(" ", $mtime); $mtime = $mtime[1] + $mtime[0]; $starttime = $mtime; ?> <!-- put other code and html in here --> <?php include "../templates/header.php"; //including classes include '../classes/CafeDetails.php'; include '../classes/CafeTrac.php'; //creating objects $cafe_details = new CafeDetails(); $cafe_trac = new CafeTrac(); //getting all the distinct activated cities $city_result = $cafe_details->getDistinctCities(); //parameters for counting the screens live $day4 = date("Y-m-d", mktime(0, 0, 0, date("m"), date("d") - 4, date("Y"))); $day3 = date("Y-m-d", mktime(0, 0, 0, date("m"), date("d") - 3, date("Y"))); $day2 = date("Y-m-d", mktime(0, 0, 0, date("m"), date("d") - 2, date("Y"))); $day1 = date("Y-m-d", mktime(0, 0, 0, date("m"), date("d") - 1, date("Y"))); $today = date("Y-m-d", mktime(0, 0, 0, date("m"), date("d"), date("Y"))); $reg_t = 0; $act_t = 0; $d1_t = 0; $d2_t = 0; $d3_t = 0; $d4_t = 0; $td_t = 0;
$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']; $country = $_POST['country']; $postal_code = $_POST['postal_code']; $area = $_POST['area1'];