Esempio n. 1
0
    $which = $_GET['which'];
}
$order = $_GET['order'];
if (!isset($_GET['what'])) {
    $what = "unread";
} else {
    $what = $_GET['what'];
}
if (!isset($_GET['order'])) {
    $order = $fof_prefs_obj->get("order");
}
$how = $_GET['how'];
$feed = $_GET['feed'];
$when = $_GET['when'];
$howmany = $_GET['howmany'];
$title = fof_view_title($_GET['feed'], $what, $_GET['when'], $which, $_GET['howmany'], $_GET['search']);
$noedit = $_GET['noedit'];
?>

<ul id="item-display-controls-spacer" class="inline-list">
	<li class="orderby">[new to old]</li>
	<li class="orderby">[old to new]</li>
	<li><a href="javascript:flag_all();mark_read()"><strong>Mark all read</strong></a></li>
	<li><a href="javascript:flag_all()">Flag all</a></li>
	<li><a href="javascript:unflag_all()">Unflag all</a></li>
	<li><a href="javascript:toggle_all()">Toggle all</a></li>
	<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>
Esempio n. 2
0
    if (!empty($view_settings['order'])) {
        $order = $view_settings['order'];
    } else {
        $order = $fof_prefs_obj->get('order');
    }
}
if (empty($order)) {
    $order = 'desc';
}
$itemcount = 0;
$statement = fof_db_get_item_count(fof_current_user(), $what, $feed, $search);
while (($row = fof_db_get_row($statement)) !== false) {
    // fof_log('feed:' . $row['feed_id'] . ' count:' . $row['count']);
    $itemcount += $row['count'];
}
$title = fof_view_title($feed, $what, $when, $which, $howmany, $search, $itemcount);
// Placeholder to push content down:
?>
<div id="item-display-controls" class="banner ontop">
<ul class="inline-list">
<?php 
$item_controls = '';
/* the current view settings */
$qv = array('feed' => $feed, 'what' => $what, 'when' => $when, 'how' => $how, 'howmany' => $howmany, 'search' => $search);
$set_view_button = '&hearts;';
$item_controls .= '	<li id="view-settings-button">';
if (!empty($search)) {
    $item_controls .= '<span class="unavailable" title="Sorry, collections of items which involve search terms cannot currently store custom orderings.">';
    $item_controls .= $set_view_button;
    $item_controls .= '</span>';
} else {