5) { $edit = 1; } ?> Daily Crawl

Daily Crawl

Developed by >Matt Kingston

Refresh | >Manage Links
Sort: Update | Category | Name
IE4+ sidebar | NS6+ sidebar

Sort by

links ". "LEFT JOIN `$wpdb->linkcategories` ON (link_category = cat_id) ". "WHERE link_visible = 'Y' ". "$orderby"; $links = $wpdb->get_results($sql); if ($sort == "category") { $last_category = ""; foreach ($links as $link) { if ($link->cat_name <> $last_category) { print "
".$link->cat_name."
\n"; } print "
link_url."\" title=\"".$link->link_updated."\" $target>".$link->link_name.""; if ($edit) { print " link_id."&action=linkedit\" $target title=\"Edit this link\">#"; } print "
\n"; $last_category = $link->cat_name; } } elseif ($sort == "name") { foreach ($links as $link) { print "
link_url."\" title=\"".$link->link_updated."\" $target>".$link->link_name.""; if ($edit) { print " link_id."&action=linkedit\" $target title=\"Edit this link\">#"; } print "
\n"; } } else { $last_date = ""; $last_hour = ""; $no_update = ""; foreach ($links as $link) { $date = date("D, M j, Y", strtotime($link->link_updated)); $hour = date("g:00a", strtotime($link->link_updated)); if ($link->link_updated == "0000-00-00 00:00:00") { if (!$no_update) { print "
No Update on Record
\n"; $no_update = 1; } } else { if ($date <> $last_date) { print "
$date
\n"; } if ($hour <> $last_hour) { print "
$hour
\n"; } } print "
link_url."\" title=\"".$link->link_updated."\" $target>".$link->link_name.""; if ($edit) { print " link_id."&action=linkedit\" $target title=\"Edit this link\">#"; } print "
\n"; $last_date = $date; $last_hour = $hour; } } ?>