Esempio n. 1
0
	<li><a href="javascript:mark_read()">Mark flagged read</a></li>
	<li><a href="javascript:mark_unread()">Mark flagged unread</a></li>
	<li><a href="javascript:show_all()">Show all</a></li>
	<li><a href="javascript:hide_all()">Hide all</a></li>
</ul>



<!-- close this form to fix first item! -->

		<form id="itemform" name="items" action="view-action.php" method="post" onSubmit="return false;">
		<input type="hidden" name="action" />
		<input type="hidden" name="return" />

<?php 
$links = fof_get_nav_links($_GET['feed'], $what, $_GET['when'], $which, $_GET['howmany']);
if ($links) {
    ?>
		<center><?php 
    echo $links;
    ?>
</center>

<?php 
}
$result = fof_get_items(fof_current_user(), $_GET['feed'], $what, $_GET['when'], $which, $_GET['howmany'], $order, $_GET['search']);
$first = true;
foreach ($result as $row) {
    $item_id = $row['item_id'];
    if ($first) {
        print "<script>firstItem = 'i{$item_id}'; </script>";
Esempio n. 2
0
		<dt>P</dt><dd>Skip to first item.</dd>
		<dt>r</dt><dd>Refresh sidebar.</dd>
	</dl>
</div>

<?php 
}
?>

<!-- close this form to fix first item! -->
		<form id="itemform" name="items" action="view-action.php" method="post" onSubmit="return false;">
		<input type="hidden" name="action" />
		<input type="hidden" name="return" />

<?php 
$links = fof_get_nav_links($feed, $what, $when, $which, $howmany, $search, $itemcount);
$links = ($links ? '<div class="pagination-nav">' : '') . $links . ($links ? "</div>\n" : '');
echo $links;
$items = fof_get_items(fof_current_user(), $feed, $what, $when, $which, $howmany, $order, $search);
if (!empty($items)) {
    list($first_item) = $items;
    echo "<script>firstItem = 'i" . $first_item['item_id'] . "';</script>\n";
    foreach ($items as $item) {
        fof_render_item($item, true);
    }
} else {
    echo "<p><i>No items found.</i></p>\n";
}
?>
<div id="end-of-items"></div>
		</form>