pageTitle = 'Programs - ' . Yii::app()->name;
$this->breadcrumbs = array(
'Programs',
);
$this->selectedNav = 'prog';
?>
breadcrumbs = array(
'Programs' => '/programs',
$category
);
}
?>
';
foreach ($datarow as $dataelem) {
/* @var $dataelem Program */
$this->widget('ThumbnailProgPreview',
[
'caption' => $dataelem->Thumbnailname,
'link' => $dataelem->getLink(),
'description' => $dataelem->Description,
'category' => $dataelem->Kategorie,
'language' => $dataelem->getLanguageList(),
'image' => $dataelem->getImagePath(),
'starcount' => $dataelem->Sterne,
'downloads' => $dataelem->Downloads,
'date' => $dataelem->getDateTime(),
'enabled' => $dataelem->enabled,
'programminglang' => $dataelem->programming_lang,
]);
}
echo '';
}
?>
1) {
$pagination_arr = array();
$pagination_arr[] = ['label' => '«', 'url' => '?page=' . ($page - 1), 'disabled' => ($page <= 1)];
for ($i = 1; $i <= $pagecount; $i++) {
$pagination_arr[] = ['label' => $i, 'url' => '?page=' . $i, 'active' => ($i == $page)];
}
$pagination_arr[] = ['label' => '»', 'url' => '?page=' . ($page + 1), 'disabled' => ($page >= $pagecount)];
echo MsHtml::pagination($pagination_arr,
[
'align' => 'right',
]);
}
?>