');
echo '| '.$d->id.' |
'.$d->title.' |
'.$file.' |
';
if ($d->category_id=="" || $d->category_id==0) echo "N/A"; else {
$c = $wpdb->get_row("SELECT * FROM $wp_dlm_db_cats where id=".$d->category_id." LIMIT 1;");
$chain = $c->name;
while ($c->parent>0) {
$c = $wpdb->get_row("SELECT * FROM $wp_dlm_db_cats where id=".$c->parent." LIMIT 1;");
$chain = $c->name.' — '.$chain;
}
echo $d->category_id." - ".$chain;
}
echo ' | ';
if (strlen($d->file_description) > 25)
$file_description = substr(htmlspecialchars($d->file_description), 0, strrpos(substr(htmlspecialchars($d->file_description), 0, 25), ' ')) . ' [...]';
else $file_description = htmlspecialchars($d->file_description);
echo ''.nl2br($file_description).' |
';
if ($d->members) echo __('Yes',"wp-download_monitor"); else echo __('No',"wp-download_monitor");
echo ' |
Insert | ';
}
echo '