Changeset 6977 for temp/trunk/html/admin
- Timestamp:
- 2006/10/27 18:22:48 (20 years ago)
- File:
-
- 1 edited
-
temp/trunk/html/admin/batch/daily.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
temp/trunk/html/admin/batch/daily.php
r6976 r6977 239 239 // ǯÎðËè¤Ë½¸·×¤¹¤ë¡£ 240 240 for($i = 0; $i <= $age_loop; $i++) { 241 $start_age = $i * 10; 242 $where = $base_where . " AND order_birth >= cast('$start_date' as date) -interval " . lfSingleQuot("$start_age year"); 243 if($i < $age_loop) { 244 $end_age = $start_age+9; 245 $where = $where . " AND order_birth < cast('$end_date' as date) -interval " . lfSingleQuot("$start_age year"); 246 }else{ 247 $where = $base_where . " AND order_birth < cast('$end_date' as date) -interval " . lfSingleQuot("$start_age year"); 248 $end_age = 999; 249 } 250 lfBatOrderAgeSub($sql . $where, $start, $end, $start_age, $end_age, 1); 251 } 252 241 $where = $base_where . " AND order_birth >= cast('$start_date' as date)"; 242 $start_age = $i * 10; 243 if($i < $age_loop) { 244 $end_age = $start_age+9; 245 $where = $where . " AND order_birth < cast('$end_date' as date)"; 246 }else{ 247 $where = $base_where . " AND order_birth < cast('$end_date' as date)"; 248 $end_age = 999; 249 } 250 lfBatOrderAgeSub($sql . $where, $start, $end, $start_age, $end_age, 1); 251 $end_date = date("Y/m/d",strtotime("1 day" ,strtotime($start_date))); 252 $start_date = date("Y/m/d",strtotime("-10 year",strtotime($start_date))); 253 } 254 253 255 // ÃÂÀ¸ÆüÆþÎϤʤ· 254 256 $where = $base_where . " AND order_birth IS NULL "; … … 265 267 // ǯÎðËè¤Ë½¸·×¤¹¤ë¡£ 266 268 for($i = 0; $i <= $age_loop; $i++) { 267 $start_age = $i * 10; 268 $where = $base_where . " AND order_birth >= cast('$start_date' as date) -interval " . lfSingleQuot("$start_age year"); 269 if($i < $age_loop) { 270 $end_age = $start_age+9; 271 $where = $where . " AND order_birth < cast('$end_date' as date) -interval " . lfSingleQuot("$start_age year"); 272 }else{ 273 $where = $base_where . " AND order_birth < cast('$end_date' as date) -interval " . lfSingleQuot("$start_age year"); 274 $end_age = 999; 275 } 276 lfBatOrderAgeSub($sql . $where, $start, $end, $start_age, $end_age, 0); 277 } 278 269 $where = $base_where . " AND order_birth >= cast('$start_date' as date)"; 270 $start_age = $i * 10; 271 if($i < $age_loop) { 272 $end_age = $start_age+9; 273 $where = $where . " AND order_birth < cast('$end_date' as date)"; 274 }else{ 275 $where = $base_where . " AND order_birth < cast('$end_date' as date)"; 276 $end_age = 999; 277 } 278 lfBatOrderAgeSub($sql . $where, $start, $end, $start_age, $end_age, 0); 279 $end_date = date("Y/m/d",strtotime("1 day" ,strtotime($start_date))); 280 $start_date = date("Y/m/d",strtotime("-10 year",strtotime($start_date))); 281 } 282 279 283 // ÃÂÀ¸ÆüÆþÎϤʤ· 280 284 $where = $base_where . " AND order_birth IS NULL AND del_flg = 0";
Note: See TracChangeset
for help on using the changeset viewer.
