alan_k Wed Mar 30 00:30:37 2005 EDT
Modified files:
/pearweb/templates package-search.html
Log:
treat 0 as empty on date entry
http://cvs.php.net/diff.php/pearweb/templates/package-search.html?r1=1.23&r2=1.24&ty=u
Index: pearweb/templates/package-search.html
diff -u pearweb/templates/package-search.html:1.23
pearweb/templates/package-search.html:1.24
--- pearweb/templates/package-search.html:1.23 Tue Mar 29 20:37:07 2005
+++ pearweb/templates/package-search.html Wed Mar 30 00:30:37 2005
@@ -183,9 +183,9 @@
disableDateOptions(prefix);
}
- yearElement = searchForm.elements[prefix + '_year'].value = year;
- monthElement = searchForm.elements[prefix + '_month'].value = month;
- dayElement = searchForm.elements[prefix + '_day'].value = date;
+ yearElement = searchForm.elements[prefix + '_year'].value = (year ==
'0' ? '' : year);
+ monthElement = searchForm.elements[prefix + '_month'].value = (month
== '0' ? '' : month);
+ dayElement = searchForm.elements[prefix + '_day'].value = (date ==
'0' ? '' : date);
}
function validate_form()
@@ -327,6 +327,11 @@
<option value="<?php echo $num; ?>"><?php echo $text; ?></option>
<?php endforeach?>
</select>
+ <select name="released_before_day" onc<option value=""></option>
+ <?php foreach($months as $num => $text):?>
+ <option value="<?php echo $num; ?>"><?php echo $text; ?></option>
+ <?php endforeach?>
+ </select>
<select name="released_before_day" onchange="update_date('released_before',
'day')">
<option value=""></option>
<?php foreach(range(1, 31) as $value):?>
@@ -397,18 +402,4 @@
<td>
<!-- resultItemStart --><a href="/package/<?php echo
$row['raw_name']; ?>"><?php echo $row['name']; ?></a><!-- resultItemEnd -->
</td>
- <td><?php echo $row['summary']; ?></td>
- </tr>
-
- <?php endforeach?>
-<!-- resultListEnd -->
-</table>
-
- <?php $bb->end()?>
-<?php elseif($numrows === 0):?>
-
- <p><b>No results found</b></p>
-
-<?php endif?>
-
-<?php response_footer(); ?>
+ <td><?php echo $row['sum
\ No newline at end of file
|
Try Searching:
servers, voip, java, networking, microsoft ...
|
|
|
|