本文整理汇总了PHP中Viewer::get_channels_list方法的典型用法代码示例。如果您正苦于以下问题:PHP Viewer::get_channels_list方法的具体用法?PHP Viewer::get_channels_list怎么用?PHP Viewer::get_channels_list使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Viewer
的用法示例。
在下文中一共展示了Viewer::get_channels_list方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: count
$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> " : 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>