Changeset 1878 for temp/trunk
- Timestamp:
- 2006/08/24 21:54:29 (20 years ago)
- File:
-
- 1 edited
-
temp/trunk/data/class/SC_SelectSql.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
temp/trunk/data/class/SC_SelectSql.php
r1877 r1878 69 69 70 70 sfprintr($from_year .":". $from_month.":". $from_day.":". $to_year.":". $to_month.":". $to_day); 71 72 // ³«»Ï´ü´Ö¤À¤±»ØÄê¤Î¾ì¹ç¤ÏËÜÆüÅÐϿʬ¤Þ¤Ç 71 $date1 = date("Y/m/d", mktime(0,0,0,$from_month,$from_day,$from_year)); 72 $date2 = date("Y/m/d", mktime(0,0,0,$to_month,$to_day,$to_year)); 73 74 sfprintr($date2); 75 76 // ³«»Ï´ü´Ö¤À¤±»ØÄê¤Î¾ì¹ç 73 77 if( ( $from_year != "" ) && ( $from_month != "" ) && ( $from_day != "" ) && ( $to_year == "" ) && ( $to_month == "" ) && ( $to_day == "" ) ) { 74 // list( $date1, $date2, $err ) = sfCheckSetTerm( $from_year, $from_month, $from_day, date("Y"), date("m"), date("d") ); 75 // if ( ! $err ) { 76 // $this->setWhere( $column ." BETWEEN ? AND ?" ); 77 $date1 = date("Y/m/d", mktime(0,0,0,$from_month,$from_day,$from_year)); 78 $this->setWhere( $column ." >= ?" ); 79 $return = array($date1); 80 // } 78 $date1 = date("Y/m/d", mktime(0,0,0,$from_month,$from_day,$from_year)); 79 $this->setWhere( $column ." >= ?" ); 80 $return = array($date1); 81 81 } 82 82
Note: See TracChangeset
for help on using the changeset viewer.
