File: /var/www/grapossconnect/center-admin/header.php
<?php
include '../sample-wp/wp-config.php';
session_start();
// error_reporting(E_ALL);
// ini_set('display_errors', 'ON');
date_default_timezone_set('Asia/Calcutta');
if (isset($_SESSION["AGENT_ID"])) {
$AGENT_ID = $_SESSION["AGENT_ID"];
$AGENT_CODE = $_SESSION["AGENT_CODE"];
} else {
header("location:/center-admin");
}
// $GRP_MERCHANTS_TABLE='grp_merchants';
// $GRP_PRODUCT_TABLE='grp_product';
// $GRP_PRODUCT_CATEGORY_TABLE='grp_product_category';
// $getAllProQuery = "select ps.ps_id, ps.name, ps.logo, ps.slug, ps.page_url, ps.custom_css, c.category_name, m.merchant_name from $GRP_PRODUCT_SERVICES_TABLE as ps LEFT JOIN $GRP_PRODUCT_SERVICES_CATEGORY_TABLE as c ON c.category_id=ps.category_id LEFT JOIN $GRP_MERCHANTS_TABLE as m ON m.merchant_id=ps.merchant_id where ps.status='A' order by ps.display_order";
// $getAllProducts = $wpdb->get_results($getAllProQuery);
?>
<html>
<head>
<!-- Title -->
<title>Home | Graposs Connect</title>
<meta content="width=device-width, initial-scale=1" name="viewport" />
<meta charset="UTF-8">
<meta name="description" content="Login" />
<meta name="keywords" content="Login" />
<meta name="author" content="Graposs Connect" />
<link href="assets/images/favicon.png" rel="shortcut icon" type="image/png">
<!-- Styles -->
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,300,600' rel='stylesheet' type='text/css'>
<link href="assets/assets/plugins/pace-master/themes/blue/pace-theme-flash.css" rel="stylesheet" type="text/css" media="screen" />
<link href="assets/assets/plugins/uniform/css/uniform.default.min.css" rel="stylesheet" type="text/css" media="screen" />
<link href="assets/assets/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css" media="screen" />
<link href="assets/assets/plugins/fontawesome/css/font-awesome.css" rel="stylesheet" type="text/css" media="screen" />
<link href="assets/assets/plugins/line-icons/simple-line-icons.css" rel="stylesheet" type="text/css" media="screen" />
<link href="assets/assets/plugins/offcanvasmenueffects/css/menu_cornerbox.css" rel="stylesheet" type="text/css" media="screen" />
<link href="assets/assets/plugins/waves/waves.min.css" rel="stylesheet" type="text/css" media="screen" />
<link href="assets/assets/plugins/switchery/switchery.min.css" rel="stylesheet" type="text/css" media="screen" />
<link href="assets/assets/plugins/3d-bold-navigation/css/style.css" rel="stylesheet" type="text/css" media="screen" />
<link href="assets/assets/plugins/slidepushmenus/css/component.css" rel="stylesheet" type="text/css" media="screen" />
<link href="assets/assets/plugins/nestable/nestable.css" rel="stylesheet" type="text/css" media="screen" />
<link href="assets/assets/plugins/weather-icons-master/css/weather-icons.min.css" rel="stylesheet" type="text/css" media="screen" />
<link href="assets/assets/plugins/metrojs/MetroJs.min.css" rel="stylesheet" type="text/css" media="screen" />
<link href="assets/assets/plugins/toastr/toastr.min.css" rel="stylesheet" type="text/css" media="screen" />
<!-- Theme Styles -->
<link href="assets/css/modern.css" rel="stylesheet" type="text/css" media="screen" />
<link href="assets/css/themes/white.css" class="theme-color" rel="stylesheet" type="text/css" media="screen" />
<link href="assets/css/custom.css" rel="stylesheet" type="text/css" media="screen" />
<script src="assets/assets/plugins/3d-bold-navigation/js/modernizr.js"></script>
<script src="assets/assets/plugins/offcanvasmenueffects/js/snap.svg-min.js"></script>
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<script src="assets/assets/plugins/jquery/jquery-2.1.3.min.js"></script>
</head>
<style>
#toast-container {
display: none;
}
</style>
<body class="page-header-fixed">
<div class="overlay"></div>
<nav class="cbp-spmenu cbp-spmenu-vertical cbp-spmenu-right" id="cbp-spmenu-s1">
<h3><span class="pull-left">Enquiry</span><a href="javascript:void(0);" class="pull-right" id="closeRight"><i class="fa fa-times"></i></a></h3>
<div class="slimscroll">Graposs Connect</div>
</nav>
<nav class="cbp-spmenu cbp-spmenu-vertical cbp-spmenu-right" id="cbp-spmenu-s2">
<h3><span class="pull-left">Sandra Smith</span> <a href="javascript:void(0);" class="pull-right" id="closeRight2"><i class="fa fa-angle-right"></i></a></h3>
<div class="chat-write">
<form class="form-horizontal" action="javascript:void(0);">
<input type="text" class="form-control" placeholder="Say something">
</form>
</div>
</nav>
<main class="page-content content-wrap">
<?php include_once('topheader.php'); ?>
<?php include_once('sidebar.php'); ?>
<div class="page-title-box">
<?php
foreach ($getAllProducts as $pss) {
if ($pss->page_url != '') {
$pageUrl = $pss->page_url;
} else {
$pageUrl = 'services';
}
?>
<div class="panel-body p-body h-80" style="float: left;padding: 10px 10px 0px 80px;">
<div class="product-thumb" style="height: 50px; width: 50px;"><img src="assets/images/product-images/<?php echo $pss->logo; ?>" style="<?php echo $pss->custom_css; ?>"></div>
<div style="text-align:center;">
<a href="<?php echo $pageUrl; ?>?q=<?php echo $pss->slug; ?>" style="font-weight: bold;">
<?php echo $pss->name; ?>
</a>
</div>
</div>
<?php } ?>
</div>