$chemist = $_POST['chemist']; if (empty($_POST['pob'])) { $pobErr = 'required'; } elseif (empty($_POST['strips'])) { $stripsErr = 'required'; } elseif (empty($_POST['chemist'])) { $chemistErr = 'required'; } else { if (!is_numeric($_POST['pob'])) { $msg = '<span class="error"> Data entered was not numeric</span>'; } else { if (!is_numeric($_POST['strips'])) { $msg2 = '<span class="error"> Data entered was not numeric</span>'; } else { $field_array = array('pob' => $_POST['pob'], 'strips' => $_POST['strips'], 'chemist' => $_POST['chemist'], 'bdm_id' => $tf_id, 'type' => 'tf', 'created_at' => date('Y:m:d ')); $rx = new pob(); $rx->create($field_array); flashMessage('Added Successfully', 'success'); } } } } ?> <a href="dashboard.php" class="btn btn" >Back</a> <?php require_once 'header.php'; if (isset($_SESSION['message'])) { echo $_SESSION['message']; unset($_SESSION['message']); } ?>
<?php require_once "./includes/initialize.php"; session_start(); $bdm = $_SESSION['bdm']; $doctor = doctor::find_by_rx($bdm); //$doctors= doctor:: find_by_date($bdm); $total = pob::total($bdm); $last = pob::last($bdm); require_once './header.php'; ?> <?php if (!empty($total)) { foreach ($total as $totals) { ?> <div class="row"> <div class="col-lg-10 "><b> Total Value POB</b> <?php echo $totals->sum; } } ?> </div> </div> <div class="row"> <div class= "col-lg-12 "><b> Last Entered POB Value</b> <?php if (!empty($last)) { echo $last->pob;
<?php require_once "./includes/initialize.php"; session_start(); $tf_id = $_SESSION['taskforce']; $doctor = doctor::find_by_tf($tf_id); //$doctors= doctor:: find_by_date($bdm); $total = pob::total_tf($tf_id); $last = pob::last_tf($tf_id); require_once './header.php'; ?> <?php if (!empty($total)) { foreach ($total as $totals) { ?> <div><b> Total Value POB</b> <?php echo $totals->sum; ?> <?php } } ?> </div> <div><b> Last Entered POB Value</b> <?php if (!empty($last)) { echo $last->pob; }
$westname = 'West'; $west = $west + $value->rxcount; $westDoctorCount++; } elseif ($value->zone == 'North') { $northname = 'North'; $north = $north + $value->rxcount; $northDoctorCount++; } elseif ($value->zone == 'Central') { $centralname = 'Central'; $central = $central + $value->rxcount; $centralDoctorCount++; } } $allrx = $east + $south + $west + $north + $central; $allindiacount = $eastDoctorCount + $southDoctorCount + $westDoctorCount + $northDoctorCount + $centralDoctorCount; $pob = pob::live_pob(); $top_bdm = bdm::top_bdm(); $top_asm = bdm::top_asm(); $top_zsm = bdm::top_zsm(); // $total=array($pob,$rx); ?> <html lang="en"> <head> <meta charset="UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <title>Tv</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="description" content="Fullscreen Slit Slider with CSS3 and jQuery" /> <meta name="keywords" content="slit slider, plugin, css3, transitions, jquery, fullscreen, autoplay" /> <meta name="author" content="Codrops" />