Example #1
0
        $to_next = true;
    }
} else {
    $start = $page * $step;
    $stop = $start + $step;
    $to_next = false;
    $to_back = true;
    if ($maxpages > $page) {
        if ($stop < $intChannels) {
            $to_next = true;
        }
    }
}
$but_to_back = $to_back ? "<a href='/rss_admin/cs.php?p=" . ($page - 1) . "'>< Back</a>&nbsp;&nbsp;" : null;
$but_to_next = $to_next ? "<a href='/rss_admin/cs.php?p=" . ($page + 1) . "'>Next ></a>" : null;
$chi = $cDataViewer->get_channels_list($start, $step);
$chin = count($chi);
$return = null;
for ($c = 0; $chin > $c; $c++) {
    $channel_id = $chi[$c]['channel']['channel_id'];
    $url = $chi[$c]['channel']['url'];
    $link = $chi[$c]['info']['link'];
    $title = $chi[$c]['info']['title'] != "" ? $chi[$c]['info']['title'] : "unknown";
    $num = $c + $start + 1;
    $return .= <<<PPH
\t\t\t<tr> 
\t\t\t\t<td>{$num}.</td>
\t\t\t\t<td><b><span><a href="/rss_admin/item.php?item_id={$channel_id}">{$title}</a></span></b></td>
\t\t\t\t<td><button type=submit name=deletefeed value={$channel_id}>Delete</button></td>
\t\t\t</tr>