source: branches/dev/html/products/favorite.php @ 17

Revision 17, 744 bytes checked in by uehara, 15 years ago (diff)
Line 
1<?php
2/*
3 * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
4 *
5 * http://www.lockon.co.jp/
6 */
7
8require_once("../require.php");
9
10class LC_Page{
11    function LC_Page(){
12        $this->tpl_mainpage = "products/favorite.tpl";
13    }
14}
15
16$objPage = new LC_Page();
17$objView = new SC_SiteView();
18$objQuery = new SC_Query();
19$objCustomer = new SC_Customer();
20
21//¥í¥°¥¤¥óȽÄê
22if (!$objCustomer->isLoginSuccess()){
23    sfDispSiteError(CUSTOMER_ERROR);
24}else{
25    switch($_POST['mode']){
26        case 'favorite':
27        $col= "'".$_SESSION['customer']['customer_id']."','".$_POST['product_id']."','1','now()','now()' ";
28        $objQuery->exec("INSERT INTO dtb_customer_favorite VALUES (".$col.")");
29        break;
30    }
31}
32$objView->assignobj($objPage);
33$objView->display(SITE_FRAME);
34
35?>
Note: See TracBrowser for help on using the repository browser.