include "mobile/mbi_include_mypagemenu_top.html"; ?>
¡é ³ªÀÇÄíÆù
ÄíÆù¸í/Á¦ÇÑÁ¶°Ç
| Àû¿ë´ë»ó
| ÇÒÀξ×(À²)
|
while($list = hd_fetch($result)) {
$register_date = date("Y-m-d",$list[register_date]);
$start_date = date("Y-m-d",$list[start_date]);
$uend_date = date("Y-m-d [H:i:s]",$list[uend_date]);
$count_date = $list[uend_date]-$g_now_time;
if(86400 < $count_date){
$count_date = number_format($count_date / 60 / 60 / 24);
$count_date .= "ÀÏ";
}else if(0 < $count_date){
$count_date = number_format($count_date / 60 / 60);
$count_date .= "ºÐ";
}else{
$count_date = "±âÇѸ¸·á";
}
if($list[coupon_form] == 1)
{
$coupon_price = make_price_format($list[coupon_price],1)."¿ø";
$coupon_price_over = "±¸ÀԱݾ×".make_price_format($list[coupon_price_over],1)."¿ø ÀÌ»ó ÄíÆù »ç¿ë°¡´É";
$coupon_price_max = "";
}
else
{
$coupon_price = make_price_format($list[coupon_price],0)."%";
$coupon_price_over = "±¸ÀԱݾ×".make_price_format($list[coupon_price_over],1)."¿ø ÀÌ»ó ÄíÆù »ç¿ë°¡´É";
$coupon_price_max = ",ÃÖ´ë ".make_price_format($list[coupon_price_max],1)."¿ø ÀÌÇÏ ±îÁö »ç¿ë°¡´É";
}
if($list[use_html] == 0)
{
if($list[coupon_body]) $list[coupon_body] = make_br($list[coupon_body]);
}
if($list[coupon_use] == 1)
{
$coupon_use = "Àüü»óǰ";
}
elseif($list[coupon_use] == 2)
{
$coupon_use = "Ä«Å×°í¸®";
}
else
{
$coupon_use = "ÇØ´ç»óǰ";
}
if(!$list[coupon_file]) $list[coupon_file] = "./board_data/coupon_basic.gif";
$show_file = " ";
//±×·ìÀÌ ¾Æ´Ï¶ó °³º°ÀûÀ¸·Î ±âÇÑÀÌ ÃʰúµÇÁö ¾ÊÀº°Íµé Ãâ·Â (0ÀΰÍÀº ¹«½Ã)
if(($list[cmb_start_date] == 0 && $list[cmb_uend_date] == 0)||($list[cmb_start_date] < $g_now_time && $list[cmb_uend_date] > $g_now_time)){
if($list[cmb_start_date] > 0 && $list[cmb_uend_date] > 0){
$start_date = date("Y-m-d",$list[cmb_start_date]);
$uend_date = date("Y-m-d[H:i:s]",$list[cmb_uend_date]);
$count_date = $list[cmb_uend_date]-$g_now_time;
if(86400 < $count_date){
$count_date = number_format($count_date / 60 / 60 / 24);
$count_date .= "ÀÏ";
}else if(0 < $count_date){
$count_date = number_format($count_date / 60 / 60);
$count_date .= "ºÐ";
}else{
$count_date = "±âÇѸ¸·á";
}
}
?>
=$show_file?>
=$list[coupon_name]?>
=$coupon_price_over?>
=$coupon_price_max?>
»ç¿ë±â°£ : =$start_date?> ~ =$uend_date?>
|
=$coupon_use?> |
= $coupon_price?> |
}
$co++; }
?>
if(!$co){ ?>
º¸À¯ÇϽŠÄíÆùÀÌ ¾ø½À´Ï´Ù. |
} ?>
|
|