Exemplo n.º 1
0
	<?php 
include '../include/header.php';
if (!isset($_SESSION['user'])) {
    header("location:" . $URL_SITE . "front/login.php");
}
if (isset($_GET['item_id'])) {
    $item_id = $_GET['item_id'];
    $id = $_GET['id'];
}
$rentitemdetail = user::mainDetailOfItem($item_id);
$featurimage = itemClass::select_featured_image($item_id);
$check = itemClass::checkDetail($id);
if ($check['item_status'] == 1) {
    ?>
			<table>

	<tr>
	<td>
	<?php 
    echo '';
    ?>
	</td>
	<td>
	<img class="itemdetailsL" src="<?php 
    echo $URL_SITE;
    ?>
/classes/show_image.php?filename=../images/itemimages/<?php 
    echo $item_id;
    ?>
/<?php 
    echo $featurimage['filename'];
Exemplo n.º 2
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 {