Changeset 11147 for temp/branches
- Timestamp:
- 2006/12/23 19:41:45 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
temp/branches/ec-cube-beta/html/campaign/default/index.php
r11138 r11147 35 35 36 36 // ¥¥ã¥ó¥Ú¡¼¥ó¤¬³«ºÅÃæ¤«¤ò¥Á¥§¥Ã¥¯ 37 if(lfCheck LimitDate($dir_name)) {37 if(lfCheckActive($dir_name)) { 38 38 $status = CAMPAIGN_TEMPLATE_ACTIVE; 39 39 } else { … … 86 86 //--------------------------------------------------------------------------------------------------------------------------------------------------------- 87 87 /* 88 * ´Ø¿ô̾¡§lfCheck LimitDate()88 * ´Ø¿ô̾¡§lfCheckActive() 89 89 * °ú¿ô1 ¡§¥Ç¥£¥ì¥¯¥È¥ê̾ 90 90 * ÀâÌÀ¡¡¡§¥¥ã¥ó¥Ú¡¼¥óÃæ¤«¥Á¥§¥Ã¥¯ 91 91 * Ìá¤êÃÍ¡§¥¥ã¥ó¥Ú¡¼¥óÃæ¤Ê¤é true ½ªÎ»¤Ê¤é false 92 92 */ 93 function lfCheck LimitDate($directory_name) {93 function lfCheckActive($directory_name) { 94 94 95 95 global $objQuery; 96 97 $col = "start_date,end_date"; 96 $is_active = false; 97 98 $col = "limit_count, total_count, start_date, end_date"; 98 99 $arrRet = $objQuery->select($col, "dtb_campaign", "directory_name = ? AND del_flg = 0", array($directory_name)); 99 100 … … 103 104 $now_date = (date("YmdHis")); 104 105 105 // ¥¥ã¥ó¥Ú¡¼¥ó¤¬³«ºÅÃæ¤«¥Á¥§¥Ã¥¯ 106 if($now_date > $start_date && $now_date < $end_date) { 107 return true; 108 } 109 110 return false; 106 // ¥¥ã¥ó¥Ú¡¼¥ó¤¬³«ºÅ´ü´Ö¤Ç¡¢¤«¤Ä¿½¹þÀ©¸ÂÆâ¤Ç¤¢¤ë 107 if($now_date > $start_date && $now_date < $end_date 108 && $arrRet[0]['limit_count'] > 0 && $arrRet[0]['limit_count'] > $arrRet[0]['total_count']) { 109 $is_active = true; 110 } 111 112 return $is_active; 111 113 } 112 114
Note: See TracChangeset
for help on using the changeset viewer.
