Preview: welcome.php
Size: 19.63 KB
/home/godevadmin/public_html/admin/welcome.php
<?php
ob_start();
session_start();
include('../include/config.php');
include("../include/functions.php");
validate_admin();
if($_SESSION['user_type']!='admin'){
header("location:welcome-emp.php");
exit();
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo ucfirst(SITE_TITLE);?></title>
<link href="css/admin.css" rel="stylesheet" type="text/css" />
</head>
<body>
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<?php include("header.php") ?>
<td align="right" class="paddRtLt70" valign="top">
<table width="99%" border="0" cellspacing="0" cellpadding="0">
<td align="right" valign="top">
<table width="100%" height="" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="left" valign="middle" class="headingbg bodr text14"><em><img src="images/arrow2.gif" width="21" height="21" hspace="10" align="absmiddle" /></em>Welcome to <?php echo SITE_TITLE;?> Administration control Panel </td>
</tr>
<form name="frm" method="post" enctype="multipart/form-data">
<tr>
<td height="300" align="left" valign="top" bgcolor="#f3f4f6" class="bodr">
<table width="100%" cellpadding="0" cellspacing="0">
<tr><td align="center">
<iframe src="bargraph.php" width="600" height="300" frameborder="0"></iframe>
</td><td align="center"><iframe src="userbargraph.php" width="600" height="300" frameborder="0"></iframe></td></tr>
<tr>
<td align="left" valign="top" class="contentbox" colspan="2"><table width="100%" border="0" cellspacing="8" cellpadding="0">
<tr>
<td width="23%" class="dashbox"><div class="dashboxleftback">
<div class="dashboxleftback">
<div class="dashboxrightback">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top" class="dashcontainer" width="50"><img src="images/category.png" width="50" style="border:1px solid #ccc; padding:2px; background:#fff;" /></td>
<td class="dashcontainer1" valign="top" align="left" style="padding-left:5px;">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> <h4><a href="maincategory-list.php">Category ( <?php $cArr=$obj->query("select count(*) as cs from $tbl_maincategory ");
$rs=$obj->fetchNextObject($cArr);
echo $rs->cs;
?> )</a></h4></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</div>
</div></td>
<td width="25%" class="dashbox"><div class="dashboxleftback">
<div class="dashboxrightback">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top" class="dashcontainer" width="50"><img src="images/subcategory.png" width="50" style="border:1px solid #ccc; padding:2px; background:#fff;" /></td>
<td class="dashcontainer1" valign="top" align="left" style="padding-left:5px;"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> <h4><a href="brand-list.php">Brand (
<?php $cArr=$obj->query("select count(*) as cs from $tbl_brand");
$rs=$obj->fetchNextObject($cArr);
echo $rs->cs;
?> )</a></h4></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</div></td>
<td width="26%" class="dashbox"><div class="dashboxleftback">
<div class="dashboxrightback">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top" class="dashcontainer" width="50"><img src="images/food.png" width="50" style="border:1px solid #ccc; padding:2px; background:#fff;" /></td>
<td class="dashcontainer1" valign="top" align="left" style="padding-left:5px;"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> <h4><a href="product-list.php">Products ( <?php $cArr=$obj->query("select count(*) as cs from $tbl_product ");
$rs=$obj->fetchNextObject($cArr);
echo $rs->cs;
?> )</a></h4></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</div></td>
<td width="26%" class="dashbox"><div class="dashboxleftback">
<div class="dashboxrightback">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top" class="dashcontainer" width="50"><img src="images/user.jpg" width="50" style="border:1px solid #ccc; padding:2px; background:#fff;" /></td>
<td class="dashcontainer1" valign="top" align="left" style="padding-left:5px;">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> <h4><a href="user-list.php">Customers ( <?php $cArr=$obj->query("select count(*) as cs from $tbl_user ");
$rs=$obj->fetchNextObject($cArr);
echo $rs->cs;
?> )</a></h4></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</div></td>
</tr>
<tr>
<td width="23%" class="dashbox"><div class="dashboxleftback">
<div class="dashboxrightback">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top" class="dashcontainer" width="50"><img src="images/Transaction.png" width="50" style="border:1px solid #ccc; padding:2px; background:#fff;" /></td>
<td class="dashcontainer1" valign="top" align="left" style="padding-left:5px;">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> <h4><a href="order-list.php">Orders ( <?php $cArr=$obj->query("select count(*) as cs from $tbl_order ");
$rs=$obj->fetchNextObject($cArr);
echo $rs->cs;
?> )</a></h4></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</div></td>
<td width="23%" class="dashbox"><div class="dashboxleftback">
<div class="dashboxrightback">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top" class="dashcontainer" width="50"><img src="images/social.png" width="50" style="border:1px solid #ccc; padding:2px; background:#fff;" /></td>
<td class="dashcontainer1" valign="top" align="left" style="padding-left:5px;">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> <h4><a href="sellerlist.php">Seller ( <?php $cArr=$obj->query("select count(*) as cs from sl_users ");
$rs=$obj->fetchNextObject($cArr);
echo $rs->cs;
?> )</a></h4></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</div></td>
<td width="23%" class="dashbox"><div class="dashboxleftback">
<div class="dashboxrightback">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top" class="dashcontainer" width="50"><img src="images/store.png" width="50" style="border:1px solid #ccc; padding:2px; background:#fff;" /></td>
<td class="dashcontainer1" valign="top" align="left" style="padding-left:5px;">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> <h4><a href="storelist.php">Store ( <?php $cArr=$obj->query("select count(*) as cs from stores ");
$rs=$obj->fetchNextObject($cArr);
echo $rs->cs;
?> )</a></h4></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</div></td>
<td width="23%" class="dashbox"><div class="dashboxleftback">
<div class="dashboxrightback">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top" class="dashcontainer" width="50"><img src="images/social.png" width="50" style="border:1px solid #ccc; padding:2px; background:#fff;" /></td>
<td class="dashcontainer1" valign="top" align="left" style="padding-left:5px;">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> <h4><a href="social-list.php">Social Links ( <?php $cArr=$obj->query("select count(*) as cs from $tbl_social ");
$rs=$obj->fetchNextObject($cArr);
echo $rs->cs;
?> )</a></h4></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</div></td></tr>
<tr>
<td width="23%">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="dashbox">
<div class="dashboxleftback">
<div class="dashboxrightback">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top" class="dashcontainer" width="50"><img src="images/change_password.png" width="50" style="border:1px solid #ccc; padding:2px; background:#fff;" /></td>
<td class="dashcontainer1" valign="top" align="left" style="padding-left:5px;">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> <h4><a href="employee-list.php">Manage Employees (
<?php $cArr=$obj->query("select count(*) as cs from $tbl_admin where id!=1 ");
$rs=$obj->fetchNextObject($cArr);
echo $rs->cs;
?> )</a></h4></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</div>
</td>
</tr>
</table>
</td>
<td width="25%" class="dashbox"><div class="dashboxleftback">
<div class="dashboxleftback">
<div class="dashboxrightback">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top" class="dashcontainer" width="50"><img src="images/child-subcategoty.png" width="50" style="border:1px solid #ccc; padding:2px; background:#fff;" /></td>
<td class="dashcontainer1" valign="top" align="left" style="padding-left:5px;">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> <h4><a href="testimonial-list.php">Testmonials</a><a href="category-list.php">( <?php $cArr=$obj->query("select count(*) as cs from $tbl_testimonial");
$rs=$obj->fetchNextObject($cArr);
echo $rs->cs;
?> )</a></h4></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</div>
</div>
</td>
<td width="26%">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="dashbox">
<div class="dashboxleftback">
<div class="dashboxrightback">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top" class="dashcontainer" width="50"><img src="images/Enquiry.png" width="50" style="border:1px solid #ccc; padding:2px; background:#fff;" /></td>
<td class="dashcontainer1" valign="top" align="left" style="padding-left:5px;">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> <h4><a href="enquiry-list.php">Enquiries (
<?php $cArr=$obj->query("select count(*) as cs from $tbl_enquiry ");
$rs=$obj->fetchNextObject($cArr);
echo $rs->cs;
?> )</a></h4></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</div>
</td>
</tr>
</table>
</td>
<td width="26%" class="dashbox"><div class="dashboxleftback">
<div class="dashboxrightback">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top" class="dashcontainer" width="50"><img src="images/cms.jpg" width="50" style="border:1px solid #ccc; padding:2px; background:#fff;" /></td>
<td class="dashcontainer1" valign="top" align="left" style="padding-left:5px;"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> <h4><a href="content-list.php">CMS (
<?php $cArr=$obj->query("select count(*) as cs from $tbl_content ");
$rs=$obj->fetchNextObject($cArr);
echo $rs->cs;
?> )</a></h4></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</div></td>
</tr><tr>
<td width="25%">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="dashbox">
<div class="dashboxleftback">
<div class="dashboxrightback">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top" class="dashcontainer" width="50"><img src="images/FAQ.png" width="50" style="border:1px solid #ccc; padding:2px; background:#fff;" /></td>
<td class="dashcontainer1" valign="top" align="left" style="padding-left:5px;">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> <h4><a href="faq-list.php">FAQs (
<?php $cArr=$obj->query("select count(*) as cs from $tbl_faq ");
$rs=$obj->fetchNextObject($cArr);
echo $rs->cs;
?> )</a></h4></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</div>
</td>
</tr>
</table>
</td>
<td width="26%" class="dashbox"><div class="dashboxleftback">
<div class="dashboxrightback">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top" class="dashcontainer" width="50"><img src="images/newsletter.png" width="50" style="border:1px solid #ccc; padding:2px; background:#fff;" /></td>
<td class="dashcontainer1" valign="top" align="left" style="padding-left:5px;">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> <h4>
<!-- <a href="send_newsletter.php">Send NewsLetter</a>-->
<a href="javascript:void(0);">Send NewsLetter</a></h4></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</div></td>
</tr>
</table></td>
</tr>
</table>
</td>
</tr>
</form>
</table></td>
</tr>
</table></td>
</tr>
<?php include('footer.php'); ?>
</table>
</body>
</html>
Directory Contents
Dirs: 10 × Files: 414