s1
This commit is contained in:
@@ -167,7 +167,7 @@ $grandTotal = [
|
|||||||
|
|
||||||
foreach($types as $type){
|
foreach($types as $type){
|
||||||
$typeLike = "%$type%";
|
$typeLike = "%$type%";
|
||||||
if($_SESSION['type']==='admin'){
|
if($_SESSION['type']==='admin' || $_SESSION['type']==='bm'){
|
||||||
$sql = "SELECT * FROM `" . $GLOBALS['arif_ac'] . "` WHERE `AA_TYPE` LIKE ? AND (`STATUS` IS NULL OR (`STATUS`!='closed' AND `STATUS`!='matured')) ORDER BY `AA_ID` DESC";
|
$sql = "SELECT * FROM `" . $GLOBALS['arif_ac'] . "` WHERE `AA_TYPE` LIKE ? AND (`STATUS` IS NULL OR (`STATUS`!='closed' AND `STATUS`!='matured')) ORDER BY `AA_ID` DESC";
|
||||||
$stmt = $conn->prepare($sql);
|
$stmt = $conn->prepare($sql);
|
||||||
$stmt->bind_param("s", $typeLike);
|
$stmt->bind_param("s", $typeLike);
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
<?php
|
<?php
|
||||||
// ---- if Admin then Agent dropdown and filter with agent----
|
// ---- if Admin then Agent dropdown and filter with agent----
|
||||||
if($_SESSION['type'] === 'admin'){
|
if($_SESSION['type'] === 'admin' || $_SESSION['type'] === 'bm' ){
|
||||||
$conn = new mysqli($GLOBALS['host'], $GLOBALS['user'], $GLOBALS['pass'], $GLOBALS['db']);
|
$conn = new mysqli($GLOBALS['host'], $GLOBALS['user'], $GLOBALS['pass'], $GLOBALS['db']);
|
||||||
if ($conn->connect_error) die("Connection failed: " . $conn->connect_error);
|
if ($conn->connect_error) die("Connection failed: " . $conn->connect_error);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user