Esempio n. 1
0
    echo $pv_qty = $product_pv * $items['item_qty'];
    $total_pv += $pv_qty;
    ?>
												</td>
												<td>
													<?php 
    //total price
    $product_price = selectname('products', 'product_price_member', 'product_id', $items['product_id']);
    echo $sum_price = $items['item_qty'] * $product_price;
    //echo $sum_price=$items['order_total'];
    $total_price += $sum_price;
    ?>
												</td>
												<td>
													<?php 
    $product_cost = selectname('products', 'product_cost', 'product_id', $items['product_id']);
    echo $total_cost = $product_cost * $items['item_qty'];
    ?>
												</td>
												<td>
													<?php 
    echo $sum_price - $total_cost;
    ?>
												</td>
											</tr>
											<?php 
}
?>
											<tr>
												<td colspan="4" align="right"></td>
												<td align="right"><b>Total PV</b></td>
Esempio n. 2
0
												  </div>
												  <div class="modal-body">
														<div>
														<ul class="list-group">
														<?php 
    $query_orderdetail = mysqli_query($connect, "select * from order_items where order_id = '" . $orders['order_id'] . "' order by item_id asc");
    while ($reitems = mysqli_fetch_object($query_orderdetail)) {
        ?>
															<li class="list-group-item"><?php 
        echo "<b>(" . $reitems->product_id . ")</b> " . selectname('products', 'product_name', 'product_id', $reitems->product_id);
        ?>
  <span class="badge">QTY : <?php 
        echo $reitems->item_qty;
        ?>
</span><span class="badge">PRICE : <?php 
        echo selectname('products', 'product_price_member', 'product_id', $reitems->product_id);
        ?>
</span></li>
														<?php 
    }
    ?>
														</ul>
														</div>
												  </div>
												  <div class="modal-footer">
													<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
												  </div>
												</div><!-- /.modal-content -->
											  </div><!-- /.modal-dialog -->
											</div><!-- /.modal -->
											
Esempio n. 3
0
<?php

include "config.php";
?>
<!DOCTYPE html>
<html>
<head>
	<title><?php 
selectname();
?>
</title>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
  <!-- Bootstrap -->
    <link href="css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" type="text/css" href="css/style.css">
		<script src="https://api-maps.yandex.ru/2.1/?lang=ru_RU" type="text/javascript"></script>
		<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
	     <script src="js/jquery-1.11.3.min.js"></script>
			 <script src="js/main.js"></script>

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
      <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>
Esempio n. 4
0
                        <td><u><a href="<?php 
    echo $site_url;
    ?>
/profile/?id=<?php 
    echo $member['member_id'];
    ?>
"><?php 
    echo $re->member_name . " " . $re->member_surname;
    ?>
</a></u></td>
                        <td  class="hidden-phone"><?php 
    echo $member['ip'];
    ?>
</td>
                        <td class="hidden-phone"><?php 
    echo selectname('country', 'country', 'country_code', $member['country']);
    ?>
</td>
                        <td class="hidden-phone"><?php 
    echo $member['session'];
    ?>
</td>
                        <td class="hidden-phone"><?php 
    echo date('d/m/Y  H:i:s', $member['time']);
    ?>
</td>
					<?php 
}
?>
                    </tbody>
                    </table>
Esempio n. 5
0
    if (isset($_REQUEST['shipping_city'])) {
        echo $_REQUEST['shipping_city'];
    }
    ?>
" placeholder="City" readonly>
										  </div>
										  <div class="col-xs-6 col-sm-6" style="margin-bottom:5px;">
											<input class="form-control" type="text" name="shipping_country"  id="shipping_country" value="<?php 
    if (isset($_REQUEST['shipping_country'])) {
        echo $_REQUEST['shipping_country'];
    }
    ?>
" style="display : none;">
											<input class="form-control" type="text"  id="shipping_country" value="<?php 
    if (isset($_REQUEST['shipping_country'])) {
        echo selectname('country', 'country', 'country_id', $_REQUEST['shipping_country']);
    }
    ?>
" placeholder="Country" readonly>
										  </div>
										  <div class="col-xs-6 col-sm-6" style="margin-bottom:5px;">
											<input class="form-control" type="text" name="shipping_zipcode"  id="shipping_zipcode" value="<?php 
    if (isset($_REQUEST['shipping_zipcode'])) {
        echo $_REQUEST['shipping_zipcode'];
    }
    ?>
" placeholder="Zipcode" readonly>
										  </div>
										  <div class="col-xs-6 col-sm-6" style="margin-bottom:5px;">
											<input class="form-control" type="text" name="shipping_phone"  id="shipping_phone" value="<?php 
    if (isset($_REQUEST['shipping_phone'])) {
Esempio n. 6
0
echo $site_dir;
?>
/images/payment/icon-1.png" class="black-white"></a>-->
						</div>

						<div class="col-md-6 col-md-pull-6 copyright">
							<p>
							<?php 
if (isset($me_country)) {
    $country = $me_country;
} else {
    $country = $getdetails->country;
}
?>
								&copy; <?php 
date('Y');
?>
 JinueMall by <a href="http://www.inspires-studio.com/" title="INSPIRES STUDIO">INSPIRES STUDIO</a> - All Rights Reserved.    GET Country : <?php 
echo selectname('country', 'country', 'country_code', $country);
?>
							<script type="text/javascript" language="javascript1.1" src="http://tracker.stats.in.th/tracker.php?sid=66958"></script><noscript><a target="_blank" href="http://www.stats.in.th/">www.Stats.in.th</a></noscript>
							
							
							
							</p>
						</div>

					</div>
				</div>
			</div>
		</footer>
Esempio n. 7
0
                    <tr>
						<td><img src="<?php 
    echo $site_main;
    ?>
/gallery/avatar/<?php 
    echo selectname('members', 'member_avatar', 'member_id', $member['member_id']);
    ?>
" width="35" width="35" alt="avatar member" class="img-circle"></td>
                        <td><u><a href="<?php 
    echo $site_url;
    ?>
/profile/?id=<?php 
    echo $member['member_id'];
    ?>
"><?php 
    echo selectname('members', 'member_name', 'member_id', $member['member_id']) . " " . selectname('members', 'member_surname', 'member_id', $member['member_id']);
    ?>
</a></u></td>
                        <td  class="hidden-phone"><?php 
    echo $member['ip'];
    ?>
</td>
                        <td class="hidden-phone"><?php 
    echo $member['country'];
    ?>
</td>
                        <td class="hidden-phone"><?php 
    echo $member['session'];
    ?>
</td>
                        <td class="hidden-phone"><?php 
Esempio n. 8
0
    $product_id = $_REQUEST['product_id'];
    $product_delete = mysqli_query($connect, "DELETE FROM products WHERE product_id='{$product_id}'");
    if ($product_delete) {
        $picture_query = mysqli_query($connect, "SELECT * FROM product_pictures WHERE product_id={$product_id}");
        while ($picture = mysqli_fetch_array($picture_query)) {
            unlink("../gallery/product/" . $picture['picture_id'] . "." . $picture['picture_type']);
        }
        mysqli_query($connect, "DELETE FROM product_pictures WHERE product_id='{$product_id}'");
    }
    $goto = $site_url . "/products";
} elseif ($process == "product_picture_delete") {
    $picture_id = $_REQUEST['picture_id'];
    $picture = $picture_id . "." . selectname('product_pictures', 'picture_type', 'picture_id', $picture_id);
    unlink("../gallery/products/" . $picture);
    unlink("../gallery/products/thumb/" . $picture);
    $goto = $site_url . "/product?action=edit&id=" . selectname('product_pictures', 'product_id', 'picture_id', " {$picture_id} LIMIT 1");
    $picture_delete = mysqli_query($connect, "DELETE FROM product_pictures WHERE picture_id='{$picture_id}'");
} elseif ($process == "order_sent") {
    $order_id = $_REQUEST['order_id'];
    $order_send = mysqli_query($connect, "UPDATE orders SET order_status='sent',date_sended=NOW() WHERE order_id={$order_id}");
} elseif ($process == "withdraw_approve") {
    $withdraw_id = $_REQUEST['withdraw_id'];
    $withdraw_amount = mysqli_fetch_assoc(mysqli_query($connect, "SELECT withdraw_amount FROM withdraw WHERE withdraw_id={$withdraw_id}"));
    $withdraw_amount = $withdraw_amount['withdraw_amount'];
    $member_id = mysqli_fetch_assoc(mysqli_query($connect, "SELECT member_id FROM withdraw WHERE withdraw_id={$withdraw_id}"));
    $member_id = $member_id['member_id'];
    $member_jWallet = mysqli_fetch_assoc(mysqli_query($connect, "SELECT jWallet FROM members WHERE member_id={$member_id}"));
    $member_jWallet = $member_jWallet['jWallet'];
    if ($member_jWallet >= $withdraw_amount) {
        $jWallet_update = $member_jWallet - $withdraw_amount;
        $withdraw_approved = mysqli_query($connect, "UPDATE members SET jWallet='{$jWallet_update}' WHERE member_id={$member_id}");