コード例 #1
0
<?php

session_start();
require_once "administrator/includes/ADAO.php";
require_once "administrator/includes/UserFunctions.php";
$auth = UserFunctions::isUserAuthenticated();
$id_main = $_GET['id_main'];
$brand_id_main = $_GET['brand_id_main'];
if ($auth) {
    $userDetails = ADAO::getUserDetails($_SESSION['id']);
}
$details = ADAO::getAllProductsByCat($id_main, $brand_id_main);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Sustain Brand</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<link href="css/colorbox.css" rel="stylesheet" type="text/css" />
<script src="js/jquery.min.js" type="text/javascript"></script>
<script src="js/jquery.colorbox.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function(){
                         $(".ajax").colorbox();
						
});


</script>
<script>
コード例 #2
0
ファイル: left-nav.php プロジェクト: nandkunal/sustain-brand
        foreach ($res2 as $row2) {
            ?>
<li><a href="show_products.php?id_main=<?php 
            echo $row2['id'];
            ?>
&brand_id_main=<?php 
            echo $row2['brand_id'];
            ?>
"><?php 
            echo $row2['value'];
            ?>
</a>
<?php 
            if (isset($_GET['id_main']) && isset($_GET['brand_id_main']) && $row2['id'] == $_GET['id_main']) {
                if (ADAO::isProductsExists($_GET['id_main'])) {
                    $res3 = ADAO::getAllProductsByCat($row2['id'], $brand_id_main);
                    if (is_array($res3)) {
                        ?>
     
<ul>
<?php 
                        foreach ($res3 as $row3) {
                            ?>
<li><a href="product_detail.php?id=<?php 
                            echo $row3['id'];
                            ?>
&cat_id=<?php 
                            echo $row3['cat_id'];
                            ?>
&brand_id=<?php 
                            echo $row3['brand_id'];