示例#1
0
<?php

ob_start();
session_start();
include '../include/alertHeader.php';
if (!isset($_SESSION['user'])) {
    header("location:" . $URL_SITE . "front/login.php");
}
if (isset($_GET['item_id'])) {
    $item_id = $_GET['item_id'];
    $reservationid = $_GET['id'];
    $msg_id = $_GET['msg_id'];
}
$update = user::update_message($msg_id);
$check = itemClass::checkDetail($_GET['id']);
$msg_detail_res = inbox::select_msg_by_id($_GET['msg_id']);
$msg_detail = mysql_fetch_assoc($msg_detail_res);
$renter_detail = user::user_profile($msg_detail['sender_id']);
// renter profile
//echo "<pre>";print_r($msg_detail);echo "</pre>";
$rentitemdetail = user::mainDetailOfItem($item_id);
// Details of item
$featurimage = itemClass::select_featured_image($item_id);
// select image of item
$dates = itemClass::renter_praposal_date($item_id, $renter_detail['id']);
// to check date by renter
if ($dates['newissuedate'] != '0000-00-00') {
    $start = strtotime($dates['newissuedate']);
    // if  dates were changed by owner
    $end = strtotime($dates['newienddate']);
} else {
示例#2
0
<?php 
}
?>

<?php 
if ($_GET['action'] == 'denySuccus') {
    $action = $_GET['action'];
    $reserve_id = $_GET['id'];
    $item_id = $_GET['item_id'];
    $msg_id = $_GET['msg_id'];
    //$user_id=$_GET['user_id'];
    //$owner_id=$_GET['owner_id'];
    $rentitemdetail = user::mainDetailOfItem($item_id);
    $featurimage = itemClass::select_featured_image($item_id);
    $renter = $user_id;
    $msg_detail = inbox::select_msg_by_id($msg_id);
    $msg_detail = mysql_fetch_assoc($msg_detail);
    $renter_detail = user::user_profile($msg_detail['sender_id']);
    // renter profile
    $message_detail = inbox::select_notification($msg_id);
    ?>

		<div id="container">			  
			  <!--container search-->
			  <div class="containersearch">
				<div id="" class="pT10 pB10">
					<?php 
    if (isset($_SESSION['msg'])) {
        echo $_SESSION['msg'] = "18";
    }
    ?>
示例#3
0
文件: home.php 项目: raju99/sparkswap
<div class="DashboarddivR">
<div class="dashwhitebg mB10">
	<div class="dasbmessages">
		<h3>Messages (<?php 
echo $nmber_of_unread;
?>
 New)</h3>
			<?php 
if ($nmber_of_msg > 0) {
    $i = 0;
    while ($mesg = mysql_fetch_assoc($res_inbox)) {
        //echo "<pre>";print_r($mesg);echo "</pre>";
        if ($i > 5) {
            break;
        }
        $on_which_reply_did_res = inbox::select_msg_by_id($mesg['replied_on_id']);
        $on_which_reply_did = mysql_fetch_assoc($on_which_reply_did_res);
        $frnd_user = user::user_profile($mesg['sender_id']);
        $checkacepteddeniedPost_res = user::checkRentStatus($mesg['reservation_id']);
        $checkRentStatusOfUSer = mysql_fetch_assoc($checkacepteddeniedPost_res);
        //echo "<pre>";print_r($checkRentStatusOfUSer);echo "</pre>";
        ?>
					<div class="dasbmessagesbdr">
						<div class="dasbmessagespicdiv">
							<?php 
        if (!empty($frnd_user['user_picture'])) {
            ?>
								<img src="<?php 
            echo $URL_SITE;
            ?>
classes/show_image.php?filename=../images/profile/<?php