Пример #1
0
        publishNewsFeeds($cid, 1, $option);
        break;
    case 'unpublish':
        publishNewsFeeds($cid, 0, $option);
        break;
    case 'remove':
        removeNewsFeeds($cid, $option);
        break;
    case 'cancel':
        cancelNewsFeed($option);
        break;
    case 'orderup':
        orderNewsFeed(intval($cid[0]), -1, $option);
        break;
    case 'orderdown':
        orderNewsFeed(intval($cid[0]), 1, $option);
        break;
    default:
        showNewsFeeds($option);
        break;
}
/**
* List the records
* @param string The current GET/POST option
*/
function showNewsFeeds($option)
{
    global $database, $mainframe, $mosConfig_list_limit;
    $catid = intval($mainframe->getUserStateFromRequest("catid{$option}", 'catid', 0));
    $limit = intval($mainframe->getUserStateFromRequest("viewlistlimit", 'limit', $mosConfig_list_limit));
    $limitstart = intval($mainframe->getUserStateFromRequest("view{$option}limitstart", 'limitstart', 0));
Пример #2
0
/**
* Moves the record down one position
*/
function moveDownNewsFeed()
{
    orderNewsFeed(1);
}
Пример #3
0
        publishNewsFeeds($cid, 1, $option);
        break;
    case "unpublish":
        publishNewsFeeds($cid, 0, $option);
        break;
    case "remove":
        removeNewsFeeds($cid, $option);
        break;
    case "cancel":
        cancelNewsFeed($option);
        break;
    case "orderup":
        orderNewsFeed($cid[0], -1, $option);
        break;
    case "orderdown":
        orderNewsFeed($cid[0], 1, $option);
        break;
    default:
        showNewsFeeds($option);
        break;
}
/**
* List the records
* @param string The current GET/POST option
*/
function showNewsFeeds($option)
{
    global $database, $mainframe, $mosConfig_list_limit;
    $catid = $mainframe->getUserStateFromRequest("catid{$option}", 'catid', 0);
    $limit = $mainframe->getUserStateFromRequest("viewlistlimit", 'limit', $mosConfig_list_limit);
    $limitstart = $mainframe->getUserStateFromRequest("view{$option}limitstart", 'limitstart', 0);