Beispiel #1
0
<?php

include '../include/header.php';
if (isset($_REQUEST['item_id'])) {
    $item_id = $_REQUEST['item_id'];
}
$allItemdetail = user::mainDetailOfItem($item_id);
$countreview = itemClass::countReview($item_id);
$reviewResult = itemClass::averageReview($item_id);
$featurimage = itemClass::select_featured_image($item_id);
$allrow = user::selectItemImages($item_id);
$sql = itemClass::allReviewOfItem($item_id);
$objPagination = new Ps_Pagination($conn, $sql, 5, 5);
$exsql = $objPagination->paginate();
?>
	<div id="message">
	<?php 
if (isset($_SESSION['MSG'])) {
    echo $_SESSION['MSG'];
    unset($_SESSION['MSG']);
}
?>
</div>
			  <div class="containersearch">
			  
			  <!--containertop-->
			   <div class="itemtop">
			     <div class="back pL20 left">  
				 <a href='<?php 
echo $URL_SITE;
?>
Beispiel #2
0
<?php

include '../include/header.php';
if (isset($_POST['search'])) {
    $sql = user::searchAll();
    $objPagination = new Ps_Pagination($conn, $sql, 5, 5);
    $exsql = $objPagination->paginate();
    $total_item = mysql_num_rows($exsql);
} else {
    echo $sql = admin::displayItems();
    $objPagination = new Ps_Pagination($conn, $sql, 5, 5);
    echo $exsql = $objPagination->paginate();
    $total_item = mysql_num_rows($exsql);
}
if (isset($_REQUEST['del_id'])) {
    $item_id = $_REQUEST['del_id'];
    $result = admin::deleteItem($item_id);
    $_SESSION['succ_msg'] = "Item Deleted successfully";
    header("location:" . $URL_SITE . "admin/itemManagement.php");
}
if (isset($_SESSION['MSG'])) {
    echo $_SESSION['MSG'];
    unset($_SESSION['MSG']);
}
?>
<h2>item listing</h2><br/>
<a href="addItem.php" >ADD Item</a>
	
	<?php 
if ($total_item > 0) {
    ?>
Beispiel #3
0
				</div>
				<!--/Pagination----------->
				</div>
			</div>
			<?php 
    } else {
        echo "<h3>No Review</h3>";
    }
}
?>

		<?php 
if ($_GET['type'] == 'reviewby') {
    $user_id = $_SESSION['user']['id'];
    $byyouexsql = user::reviewsByYoupagi($user_id);
    $objPagination = new Ps_Pagination($conn, $byyouexsql, 5, 5, "type=reviewby");
    $newexsql = $objPagination->paginate();
    if (mysql_num_rows($newexsql) > 0) {
        ?>
				
				    <div id="reviewby">
					  <?php 
        while ($row = mysql_fetch_assoc($newexsql)) {
            $reviewResult = itemClass::averageReview($row['item_id']);
            $user = user::user_profile($row['user_id']);
            ?>
						<div class="wdthpercent100">
						<div class="reviewoverall">
						<h3>Overall</h3>
						<ul class="reviewstarover">
						<?php