White Papers

User Rating: 0 / 5

Star InactiveStar InactiveStar InactiveStar InactiveStar Inactive
 

if(($_GET['order']=="")||($_GET['order']==null)) {
$order = "Newspaper";
}
else $order = $_GET['order'];

global $wpdb;

$query = 'SELECT * FROM uloop_UloopDocs WHERE Visibility = 1 AND GroupID=\'White Paper\' ORDER BY '.$order.', Docdate ASC';
$myrows = $wpdb->get_results($query, ARRAY_A);
if($wpdb->query($query)) {
echo '

';
echo '

';

echo '

'; echo ''; foreach ($myrows as $row) { $title = strip_tags($row['Title']); echo '';
}
echo '
DateTitleTypeAuthor
'.$row['Docdate'].' '.$row['Newspaper'].'
'.$title.'
'.$row['Type'].' '.$row['Author'].'

 

';
}
else {echo "

No documents to show

"; }
?>