cvs: pres2 / index.php
| From: | Rasmus Lerdorf | Date: | Sat, 26 Apr 2003 17:59:01 +0000 |
| Subject: | cvs: pres2 / index.php | ||
| Groups: | php.pres | ||
| Request: | Send a blank email to pres+get-650@lists.php.net to get a copy of this message | ||
rasmus Sat Apr 26 13:59:01 2003 EDT
Modified files:
/pres2 index.php
Log:
Got tired of having the list of presentations be unsorted
Index: pres2/index.php
diff -u pres2/index.php:1.23 pres2/index.php:1.24
--- pres2/index.php:1.23 Wed Nov 20 21:03:46 2002
+++ pres2/index.php Sat Apr 26 13:59:01 2003
@@ -184,11 +184,16 @@
break;
}
?>
-<p>The available presentations are...</p>
+<p>The available presentations are... (most recent first)</p>
<table align="center" class="index">
<tr><th>Title</th><th>Date</th><th>Location</th><th>Speaker</th><th>Slides</th></tr>
<?php
$prnum = sizeof($pr);
+
+function cmp($a,$b) {
+ return strtotime($a['date']) < strtotime($b['date']);
+}
+usort($pr,'cmp');
for($j=0; $j < $prnum; $j++) {