Changeset 11166
- Timestamp:
- 2006/12/23 23:33:22 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
temp/branches/ec-cube-beta/html/campaign/default/application.php
r11164 r11166 57 57 58 58 //--------------------------------------------------------------------------------------------------------------------------------------------------------- 59 /* 60 * ´Ø¿ô̾¡§lfCheckActive() 61 * °ú¿ô1 ¡§¥Ç¥£¥ì¥¯¥È¥ê̾ 62 * ÀâÌÀ¡¡¡§¥¥ã¥ó¥Ú¡¼¥óÃæ¤«¥Á¥§¥Ã¥¯ 63 * Ìá¤êÃÍ¡§¥¥ã¥ó¥Ú¡¼¥óÃæ¤Ê¤é true ½ªÎ»¤Ê¤é false 64 */ 65 function lfCheckActive($directory_name) { 66 67 global $objQuery; 68 $is_active = false; 69 70 $col = "limit_count, total_count, start_date, end_date"; 71 $arrRet = $objQuery->select($col, "dtb_campaign", "directory_name = ? AND del_flg = 0", array($directory_name)); 72 73 // ³«»ÏÆü»þ¡¦Ää»ßÆü»þ¤òÀ®·¿ 74 $start_date = (date("YmdHis", strtotime($arrRet[0]['start_date']))); 75 $end_date = (date("YmdHis", strtotime($arrRet[0]['end_date']))); 76 $now_date = (date("YmdHis")); 77 78 // ¥¥ã¥ó¥Ú¡¼¥ó¤¬³«ºÅ´ü´Ö¤Ç¡¢¤«¤Ä¿½¹þÀ©¸ÂÆâ¤Ç¤¢¤ë 79 if($now_date > $start_date && $now_date < $end_date 80 && $arrRet[0]['limit_count'] > 0 && $arrRet[0]['limit_count'] > $arrRet[0]['total_count']) { 81 $is_active = true; 82 } 83 84 return $is_active; 85 } 86 59 87 ?>
Note: See TracChangeset
for help on using the changeset viewer.
