commit | author | age
|
3e083b
|
1 |
<?php |
B |
2 |
|
|
3 |
/** |
|
4 |
* 降价通知 |
|
5 |
*/ |
|
6 |
|
|
7 |
define('IN_ECS', true); |
|
8 |
|
|
9 |
require(dirname(__FILE__) . '/includes/init.php'); |
|
10 |
|
|
11 |
$goods_id = $_POST['goods_id'] ? intval($_POST['goods_id']) : 0; |
|
12 |
$price = $_POST['price'] ? $_POST['price'] : 0; |
|
13 |
$mobile = $_POST['mobile'] ? $_POST['mobile'] : ''; |
|
14 |
$email = $_POST['email'] ? $_POST['email'] : ''; |
|
15 |
$nowtime= gmtime(); |
|
16 |
|
|
17 |
$sql = "insert into ".$ecs->table('pricecut')." (goods_id, price, mobile, email, add_time) values('$goods_id', '$price', '$mobile', '$email', '$nowtime')"; |
|
18 |
$db->query($sql); |
|
19 |
|
|
20 |
$goods_url = build_uri('goods', array('gid'=>$goods_id), ''); |
|
21 |
show_message('恭喜,您的降价通知已经成功提交!', '返回上一页', $goods_url); |
|
22 |
|
|
23 |
?> |