source: branches/feature-module-update/html/products/favorite.php @ 15532

Revision 15532, 750 bytes checked in by nanasess, 17 years ago (diff)

svn:mime-type 修正

  • Property svn:keywords set to Id
  • Property svn:mime-type set to text/x-httpd-php; charset=UTF-8
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.