'; $c .= '
'; $ids = array(); $user_guid = get_loggedin_user()->getGUID(); $sort_vals = array('created', 'title'); $sort_val = "created"; //default sort term if ( get_input('sortValue') ) { $sort_val = get_input('sortValue'); $_SESSION['sortTerm'] = $sort_val; } else if ( $_SESSION['sortTerm'] ){ $sort_val = $_SESSION['sortTerm']; } $pon = true; if ( $filter == 'published' || !$filter ) { $ids = getUserPublishedResources($user_guid, $sort_val); $sort_vals = array('created', 'download', 'favorites', 'title'); } else if ( $filter == 'pending' ) { $ids = getUserPendingResources($user_guid, $sort_val); $pon = false; } else if ( $filter == 'rejected' ) { $ids = getUserRejectedResources($user_guid, $sort_val); $pon = false; } else if ( $filter == 'private' ) { $ids = getUserPrivateResources($user_guid, $sort_val); $pon = false; } $c .= "