cmis_query.theme.inc in CMIS API 6.2
File
cmis_query/cmis_query.theme.inc
View source
<?php
function theme_cmis_query_results($rows) {
if (empty($rows)) {
return '<div class="empty-search">There are no results for your search.</div>';
}
$contents = "<br /><b>Query results</b><br />";
$header = array(
t('name'),
t('type'),
t('size'),
t('author'),
t('last modified'),
);
$contents .= theme('table', $header, $rows);
return $contents;
}
function theme_cmis_query_pager($query, $p) {
$base_search_url = 'cmis/query/' . urlencode($query) . '/';
$next_p = $p + 1;
$prev_p = $p - 1;
$contents .= '<div class="pagination">';
if ($p != 1) {
$contents .= l(t('Prev'), $base_search_url . $prev_p);
}
$contents .= l(t('Next'), $base_search_url . $next_p);
return $contents;
}