<?php require_once "./includes/initialize.php"; session_start(); if (!isset($_SESSION['smemp'])) { header("Location: index.php"); exit; } $sm_empid = $_SESSION['smemp']; $conditions = array("WHERE rm.SM_EMP_ID = '{$sm_empid}' GROUP BY rm.BM_EMP_ID "); $topper = man_power::bmViewStatus2($conditions); require_once 'header.php'; ?> <script src="jquery-ui.js" type="text/javascript"></script> <a href="SMDashboard.php"> << Back</a> <div class="row"> <div class="col-lg-12"> <div class="col-xs-12"> <table class="table table-bordered table-stripped"> <tr style="background: #5BC6DE"> <th>BM Name</th> <th>Drs. Started Practicing Change</th> <th>Rotahaler Check points</th> <th>RCP Drives</th> <th>No. Of Rotahaler Changed</th> </tr> <?php if (!empty($topper)) { foreach ($topper as $value) { echo '<tr>' . '<td><a href="Activity_list.php?id=' . $value->BM_Emp_Id . '">' . $value->BM_Name . '</a></td>' . '<td>' . $value->Practicing_Change . '</td>' . '<td>' . $value->Check_Points . '</td>' . '<td>' . $value->RCP_Drives . '</td>' . '<td>' . $value->Rotahaler . '</td>' . '</tr>';
//responsive code end }); </script> <div id="page-wrapper" style="background-image: url('images/screen2.jpg'); margin: 0px 0 0 0px; background-repeat:repeat-y; background-size:100%"> <div class="row"> <div class="col-lg-12" style="padding-top:20px"> <a href="viewStatus.php" class="btn btn-info pull-right" >View</a> </div> <!-- /.col-lg-12 --> </div> <!-- /.row --> <br /> <?php // $conditions = array('WHERE rm.BM_EMP_ID = ' . $bm_empid); $dashboard = man_power::bmViewStatus(); if (!empty($dashboard)) { $dashboard = array_shift($dashboard); } ?> <div class="row"> <div class="col-lg-6 col-md-6"> <div style="background-color:#f0ad4e;border-radius:4px;border:1px solid transparent"> <div class="panel-heading"> <div class="row"> <!-- <div class="col-xs-1"> <i class="glyphicon glyphicon-education fa-3x" style="color:white"></i> </div>--> <div class="col-xs-12 text-right"> <div class="medium"> <label id="lblPoint" style="color:white"><?php
if (!isset($_SESSION['adminname'])) { header("Location: index.php"); exit; } require_once "../includes/initialize.php"; require_once './header.php'; if (isset($_GET['id'])) { $bm_id = $_GET['id']; $show = man_power::BM_by_id($bm_id); } if (isset($_GET['BM_Name'])) { $BM_Name = $_GET['BM_Name']; $BM_Mobile = $_GET['BM_Mobile']; $BM_Emp_id = $_GET['BM_Emp_Id']; $field_array = array('BM_Emp_Id' => $BM_Emp_id, 'BM_Mobile' => $BM_Mobile, 'BM_Name' => $BM_Name); $update = new man_power(); $update->update($field_array); //$update2=man_power::update_bm($BM_Name,$BM_Mobile,$BM_Emp_id); header("location:Edit_Bm.php"); } ?> <div class="row"> <div class="col-lg-6 panel panel-default"> <div class="panel panel-body"> <form action="Edit_BM_Page.php" method="GET"> <div class="form-group"> <input type="text" class="form-control" name="BM_Name" value="<?php echo $show->BM_Name; ?> "/>
echo $v->brand; ?> </td> <td><?php echo $v->support; ?> </td> </tr> <?php } } } } } } elseif (isset($_GET['bmreport'])) { $BMlist = man_power::BMList(array('WHERE SM_Emp_Id = ' . $value->SM_Emp_Id)); if (!empty($BMlist)) { foreach ($BMlist as $value2) { if ($value2->BM_Emp_Id != '') { $view = doctor::BM_Doctor($value2->BM_Emp_Id); if (!empty($view)) { foreach ($view as $v) { ?> <tr> <td><?php echo $value2->Zone; ?> </td> <td><?php echo $value2->Region; ?>
}); </script> <div id="page-wrapper" style="background-image: url('images/screen2.jpg'); margin: 0px 0 0 0px; background-repeat:repeat-y; background-size:100%"> <div class="row"> <div class="col-lg-12" style="padding-top:20px"> <a href="Add_detail.php" class="btn btn-success pull-left" >Add</a> <a href="BMviewStatus.php" class="btn btn-info pull-right" >View</a> </div> <!-- /.col-lg-12 --> </div> <!-- /.row --> <br /> <?php $conditions = array('WHERE rm.BM_EMP_ID = ' . $bm_empid); $dashboard = man_power::bmViewStatus($conditions); if (!empty($dashboard)) { $dashboard = array_shift($dashboard); } ?> <div class="row"> <div class="col-lg-6 col-md-6"> <div style="background-color:#f0ad4e;border-radius:4px;border:1px solid transparent"> <div class="panel-heading"> <div class="row"> <!-- <div class="col-xs-1"> <i class="glyphicon glyphicon-education fa-3x" style="color:white"></i> </div>--> <div class="col-xs-12 text-right"> <div class="medium"> <label id="lblPoint" style="color:white"><?php
<?php require_once "./includes/initialize.php"; $errors = array(); session_start(); if (isset($_POST['submit'])) { // Form has been submitted. $username = trim($_POST['username']); $password = trim($_POST['password']); // Check database to see if username/password exist. $found_bdm = man_power::authenticate($username, $password); $found_sm = man_power::sm_authenticate($username, $password); $found_tm = man_power::tm_authenticate($username, $password); if ($found_bdm) { $_SESSION['bdm'] = $found_bdm->smsWayID; $_SESSION['bdmname'] = $found_bdm->BM_Name; $_SESSION['bdmzone'] = $found_bdm->Zone; $_SESSION['bdmemp'] = $found_bdm->BM_Emp_Id; $_SESSION['sm_emp'] = $found_bdm->SM_Emp_Id; redirect_to("bmdashboard.php"); } elseif ($found_sm) { $_SESSION['smsWayID'] = $found_sm->smsWayID; $_SESSION['smname'] = $found_sm->SM_Name; $_SESSION['smzone'] = $found_sm->Zone; $_SESSION['smemp'] = $found_sm->SM_Emp_Id; redirect_to("SMDashboard.php"); } elseif ($found_tm) { $_SESSION['smsWayID'] = $found_tm->smsWayID; $_SESSION['tmname'] = $found_tm->TM_Name; $_SESSION['tmzone'] = $found_tm->Zone; $_SESSION['tmemp'] = $found_tm->TM_Emp_Id;
<?php session_start(); require_once "./includes/initialize.php"; if (isset($_SESSION['bdmemp'])) { $BM_Emp_id = $_SESSION['bdmemp']; $Activities = Launch::BMActivity($BM_Emp_id); $TMlist = man_power::TMDropdowm(array('WHERE BM_Emp_Id = ' . $BM_Emp_id)); if (isset($_POST['tmreport'])) { $TM_Emp_id = $_POST['tmreport']; $TMlist = man_power::TMDropdowm(array('WHERE BM_Emp_Id = ' . $BM_Emp_id), $TM_Emp_id); $Activities = Launch::TMActivity($TM_Emp_id); } } elseif (isset($_SESSION['tmemp'])) { $TM_Emp_id = $_SESSION['tmemp']; $Activities = Launch::TMActivity($TM_Emp_id); } require_once './header.php'; ?> <div class="col-xs-3"> <a href = "View.php" class = "badge">GO Back</a> </div> <div class="col-xs-9"> <?php if (!empty($TMlist) && isset($TMlist)) { echo '<form action="#" method="post"><select onchange="this.form.submit()" name="tmreport">' . $TMlist . '</select></form>'; } ?> </div><br/>
<?php session_start(); if (!isset($_SESSION['adminname'])) { header("Location: index.php"); exit; } require_once "../includes/initialize.php"; require_once './header.php'; $show = man_power::BMList(); ?> <div class="row"> <div class="col-lg-12"> <table class="table table-bordered table-stripped"> <tr> <th>Bm Name</th> <th>Bm Id</th> <th>Bm Mobile</th> <th>Edit</th> </tr> <?php if (!empty($show)) { foreach ($show as $sh) { ?> <tr> <td><?php echo $sh->BM_Name; ?> </td> <td><?php
<?php require_once "./includes/initialize.php"; session_start(); if (!isset($_SESSION['smemp'])) { header("Location: index.php"); exit; } $sm_empid = $_SESSION['smemp']; if (isset($_GET['id'])) { $bm_emp_id = $_GET['id']; $topper = man_power::Activity_list2($bm_emp_id); } require_once 'header.php'; ?> <script src="jquery-ui.js" type="text/javascript"></script> <a href="SMviewStatus.php"> << Back</a> <div class="row"> <div class="col-lg-12"> <div class="col-xs-12"> <table class="table table-bordered table-stripped"> <tr style="background: #5BC6DE"> <th>BM Name</th> <td>Doctor Converted</td> <td>Health Device Clinic</td> <th>RCP Drives</th> <th>No of Rotahaler Changed</th> <td>RCP Made</td> <th>Date</th>
<?php session_start(); require_once "./includes/initialize.php"; require_once './header.php'; if (isset($_SESSION['smemp'])) { $SM_Emp_id = $_SESSION['smemp']; $TMlist = man_power::TMDropdowm(array('WHERE SM_Emp_Id = ' . $SM_Emp_id)); $BMlist = man_power::BMDropdowm(array('WHERE SM_Emp_Id = ' . $SM_Emp_id)); if (isset($_POST['tmreport'])) { $TM_Emp_id = $_POST['tmreport']; $TMlist = man_power::TMDropdowm(array('WHERE SM_Emp_Id = ' . $SM_Emp_id), $TM_Emp_id); $view = doctor::TM_Doctor($TM_Emp_id); } elseif (isset($_POST['bmreport'])) { $BM_Emp_id = $_POST['bmreport']; $BMlist = man_power::BMDropdowm(array('WHERE SM_Emp_Id = ' . $SM_Emp_id), $BM_Emp_id); $view = doctor::BM_Doctor($BM_Emp_id); } } ?> <div class="col-xs-3"> <a href = "View.php" class = "badge">GO Back</a> </div> <div class="col-xs-5"> <?php if (!empty($TMlist) && isset($TMlist)) { echo '<form action="#" method="post"><select onchange="this.form.submit()" name="tmreport">' . $TMlist . '</select></form>'; } ?> </div><br/> <div class="col-xs-offset-3 col-xs-5">
<?php require_once "./includes/initialize.php"; $bmlist = man_power::BMlist2('BETWEEN 1 AND 25'); foreach ($bmlist as $BM) { $message = "Dear " . $BM->BM_Name . "," . PHP_EOL; $message .= "The Mebapp reporting system will be active only for today.Login now to share your team's performance for Go-Make A Difference." . PHP_EOL . "Regards" . PHP_EOL . "Cipla Respiratory"; $sendSMS = new SMS(); $sendSMS->sendSMS($BM->BM_Mobile, $message); }
<?php require_once "./includes/initialize.php"; $bmlist = man_power::BMlist2('BETWEEN 36 AND 70'); foreach ($bmlist as $BM) { $message = "Dear " . $BM->BM_Name . "," . PHP_EOL; $message .= "The Mebapp reporting system will be active only for today.Login now to share your team's performance for Go-Make A Difference." . PHP_EOL . "Regards" . PHP_EOL . "Cipla Respiratory"; $sendSMS = new SMS(); $sendSMS->sendSMS($BM->BM_Mobile, $message); }
<?php require_once "../includes/initialize.php"; $errors = array(); session_start(); if (isset($_POST['submit'])) { // Form has been submitted. $username = trim($_POST['username']); $password = trim($_POST['password']); // Check database to see if username/password exist. $found_admin = man_power::adminLogin($username, $password); //$found_sm = sm::authenticate($username, $password); if ($found_admin) { $_SESSION['adminname'] = $found_admin->username; redirect_to("adminDashboard.php"); } else { $message = "Incorrect Username/Password."; flashMessage($message, 'error'); } } if (isset($_SESSION['message'])) { echo $_SESSION['message']; unset($_SESSION['message']); } ?> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1">
<?php require_once "./includes/initialize.php"; $bmlist = man_power::BMlist2(' > 100'); foreach ($bmlist as $BM) { $message = "Dear " . $BM->BM_Name . "," . PHP_EOL; $message .= "The Mebapp reporting system will be active only for today.Login now to share your team's performance for Go-Make A Difference." . PHP_EOL . "Regards" . PHP_EOL . "Cipla Respiratory"; $sendSMS = new SMS(); $sendSMS->sendSMS($BM->BM_Mobile, $message); }
<?php require_once "./includes/initialize.php"; $errors = array(); session_start(); if (isset($_POST['submit'])) { // Form has been submitted. $username = trim($_POST['username']); $password = trim($_POST['password']); // Check database to see if username/password exist. $found_bdm = man_power::authenticate($username, $password); $found_sm = sm::authenticate($username, $password); if ($found_bdm) { $_SESSION['bdm'] = $found_bdm->smsWayID; $_SESSION['bdmname'] = $found_bdm->BM_Name; $_SESSION['bdmzone'] = $found_bdm->Zone; $_SESSION['bdmemp'] = $found_bdm->BM_Emp_Id; $_SESSION['sm_emp'] = $found_bdm->SM_Emp_Id; redirect_to("bmdashboard.php"); } elseif ($found_sm) { $_SESSION['smsWayID'] = $found_sm->smsWayID; $_SESSION['smname'] = $found_sm->SM_Name; $_SESSION['smzone'] = $found_sm->Zone; $_SESSION['smemp'] = $found_sm->SM_Emp_Id; redirect_to("SMDashboard.php"); } else { $message = "Incorrect Username/Password."; flashMessage($message, 'error'); } } if (isset($_SESSION['message'])) {
//responsive code end }); </script> <div id="page-wrapper" style="background-image: url('../images/screen2.jpg'); margin: 0px 0 0 0px; background-repeat:repeat-y; background-size:100%"> <div class="row"> <br/> <div class="col-lg-12" > <input type="button" class="btn btn-info" onclick="window.location = 'view.php'" value="View" > </div> </div> <!-- /.row --> <br /> <?php $SBH_Emp_Id = $_SESSION['SBH_Emp_Id']; $SMList = man_power::SMList(array('WHERE SBH_Emp_Id = ' . $SBH_Emp_Id)); $empid = array(); foreach ($SMList as $value) { array_push($empid, $value->SM_Emp_Id); } $empid = array_filter(array_map('trim', $empid)); $string = join(" , ", $empid); $conditions = array('WHERE SM_EMP_ID IN(' . $string . ')'); $dashboard = Activity::SMActivity(array('GROUP BY t_union.SM_Emp_Id'), $conditions); if (!empty($dashboard)) { $dashboard = array_shift($dashboard); } ?> <div class="row"> <div class="col-lg-6 col-md-6"> <div style="background-color:#f0ad4e;border-radius:4px;border:1px solid transparent">
session_start(); if (!isset($_SESSION['adminname'])) { header("Location: index.php"); exit; } require_once "../includes/initialize.php"; $SMList = man_power::SMDropdowm(); //$sm_empid = $_POST['SM_Emp_Id']; $conditions = array(" GROUP BY rm.BM_EMP_ID "); $BMList = man_power::bmViewStatus2($conditions); if (isset($_GET['from']) && isset($_GET['to'])) { $from = $_GET['from']; $to = $_GET['to']; $conditions = array(" WHERE DATE_FORMAT(act.created,'%Y-%m-%d') BETWEEN '{$from}' AND '{$to}' ", " GROUP BY rm.BM_EMP_ID "); $BMList = man_power::bmViewStatus2($conditions); } require_once './header.php'; ?> <a href="viewstatus.php"> << Back </a> <div class="row"> <div class="col-lg-2"> <a download="BreathefreeBMReport.xls" class="btn btn-success" href="#" onclick="return ExcellentExport.excel(this, 'datatable', 'Sheeting');">Export to Excel</a> <!-- <input type="button" value="Export" id="export">--> </div> <form action="#" method="get" > <div class="col-lg-2"> <input type="text" name="from" value="<?php if (isset($_GET['from'])) { echo $_GET['from'];
</div> <br /> <div id="dv_tm2Region" u="caption" t="ZMF|10" style="position: absolute; left:0px;top: 120px; width: 100%; height: 40px; font-size: 36px; color: #fff; line-height: 40px;"><?php echo isset($checkPointTopper->Check_Points) ? $checkPointTopper->Check_Points : '-'; ?> </div> <br /> <div id="dv_tm2Rx" u="caption" t="ZMF|10" style="position: absolute;left:0px; top: 170px; width: 100%; height: 20px; font-size: 36px;font-weight:600;color:#fff; line-height: 40px;"><?php echo isset($checkPointTopper->Region) ? $checkPointTopper->Region : 'NA'; ?> </div> </div> <div> <?php $conditions = array('GROUP BY rm.smsWayid ORDER BY Rotahaler DESC LIMIT 1'); $RotahalerTopper = man_power::bmViewStatus($conditions); if (!empty($RotahalerTopper)) { $RotahalerTopper = array_shift($RotahalerTopper); } ?> <img u="image" src="Images/darkback.jpg" /> <div id="Div2" style="position: absolute; top: 10px;width: 100%; height: 20px; font-size: 23px; color: #fff; line-height: 30px;">Most No. Of Rotahaler Changed</div> <div id="dv_tm3name" u="caption" t="RTT|10" style="position: absolute;left:0px; top: 70px; width: 100%; height: 40px; font-size: 43px; color: #fff; line-height: 40px;"><?php echo isset($RotahalerTopper->BM_Name) ? $RotahalerTopper->BM_Name : 'NA'; ?> </div> <br /> <div id="dv_tm3Region" u="caption" t="RTT|10" style="position: absolute;left:0px; top: 120px; width: 100%; height: 40px; font-size: 36px; color: #fff; line-height: 40px;"><?php echo isset($RotahalerTopper->Rotahaler) ? $RotahalerTopper->Rotahaler : 'NA'; ?> </div>
require_once "./includes/initialize.php"; session_start(); if (!isset($_SESSION['bdmemp'])) { header("Location: index.php"); exit; } $bm_empid = $_SESSION['bdm']; if (isset($_POST['getReport'])) { $from = $_POST['from']; $to = $_POST['to']; $conditions = array("WHERE rm.smsWayid = " . $bm_empid, "AND DATE_FORMAT(act.created,'%Y-%m-%d') BETWEEN '{$from}' AND '{$to}' "); $result = man_power::bmViewStatus($conditions); } else { $conditions = array("WHERE rm.smsWayid = " . $bm_empid); $result = man_power::bmViewStatus($conditions); } require_once 'header.php'; ?> <script src="jquery-ui.js" type="text/javascript"></script> <a href="BMDashboard.php"> << Back</a> <div class="col-lg-12 col-xs-12 panel panel-default"> <div class="panel-body"> <form action="BMviewStatus.php" method="POST"> <div class="form-group"> <label class="control-label">From</label> <input type="text" class="form-control from" value="<?php echo isset($_POST['from']) ? $_POST['from'] : ''; ?>
<?php require_once "./includes/initialize.php"; $bmlist = man_power::BMlist2('BETWEEN 71 AND 100 '); foreach ($bmlist as $BM) { $message = "Dear " . $BM->BM_Name . "," . PHP_EOL; $message .= "The Mebapp reporting system will be active only for today.Login now to share your team's performance for Go-Make A Difference." . PHP_EOL . "Regards" . PHP_EOL . "Cipla Respiratory"; $sendSMS = new SMS(); $sendSMS->sendSMS($BM->BM_Mobile, $message); }