- Timestamp:
- Jan 20, 2006, 3:39:31 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/search.php
r1008 r1009 82 82 if (!empty($_POST['start_year'])) 83 83 { 84 // $year = $_POST['start_year'];85 // $month = $_POST['start_month'] != 0 ? $_POST['start_month'] : '01';86 // $day = $_POST['start_day'] != 0 ? $_POST['start_day'] : '01';87 // $date = $year.'-'.$month.'-'.$day;88 89 // $search['fields'][$type_date.'-after']['words'] = array($date);90 // $search['fields'][$type_date.'-after']['mode'] = 'inc';91 92 84 $search['fields'][$type_date.'-after'] = array( 93 85 'date' => join( … … 105 97 if (!empty($_POST['end_year'])) 106 98 { 107 // $year = $_POST['end_year'];108 // $month = $_POST['end_month'] != 0 ? $_POST['end_month'] : '12';109 // $day = $_POST['end_day'] != 0 ? $_POST['end_day'] : '31';110 // $date = $year.'-'.$month.'-'.$day;111 112 99 $search['fields'][$type_date.'-before'] = array( 113 100 'date' => join( … … 128 115 $search['mode'] = 'AND'; 129 116 130 // echo '<pre>';131 // print_r($_POST);132 // echo '</pre>';133 134 // echo '<pre>';135 // print_r($search);136 // echo '</pre>';137 138 117 // register search rules in database, then they will be available on 139 118 // thumbnails page and picture page.
Note: See TracChangeset
for help on using the changeset viewer.