示例#1
0
文件: home.php 项目: raju99/sparkswap
ini_set("display_errors", "2");
ERROR_REPORTING(E_ALL);
$basedir = dirname(__FILE__) . "../../";
include $basedir . '/include/header.php';
if (!isset($_SESSION['user'])) {
    header("location:" . $URL_SITE . "front/login.php");
}
if (isset($_SESSION['item_for_search'])) {
    $item_id = $_SESSION['item_for_search'];
    unset($_SESSION['item_for_search']);
    header('location:' . $URL_SITE . 'front/viewItem.php?item_id=' . $item_id);
}
$user_id = $_SESSION['user']['id'];
$res_inbox = inbox::select_messages_for_dashboard($user_id);
$nmber_of_msg = mysql_num_rows($res_inbox);
$nmber_of_unread = inbox::select_unread_messages_for_user($user_id);
$nmber_of_unread = mysql_num_rows($nmber_of_unread);
$user = user::user_profile($user_id);
?>

<div class="wdthpercent100">
<!--Dashboard Left-->
<div class="DashboarddivL">
<!--Dashboard profile-->
<div class="dashwhitebg mB15">
	<div class="dashboardprofile">
		<p class="pB10">
		<?php 
if (!empty($user['user_picture'])) {
    ?>
			<img src="<?php