1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-07-16 21:34:25 +03:00
ifhub.club/application/frontend/skin/developer/components/pagination/README.md
2014-05-04 10:52:24 +07:00

41 lines
1.8 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Компонент pagination
Пагинация
## Шаблоны
### pagination.tpl
| Опция | Тип | По умолчанию | Описание |
| :------------ | :---------- | :----------------- | :------- |
| `aPaging` | boolean | null | Массив с параметрами пагинации |
| `sClasses` | string | null | Дополнительные классы (указываются через пробел) |
| `sMods` | string | null | Список классов-модификаторов (указываются через пробел) |
| `sAttributes` | string | null | Атрибуты (указываются через пробел) |
Параметры содержащиеся в массиве aPaging:
| Опция | Тип | По умолчанию | Описание |
| :-------------- | :----------- | :---------------- | :------- |
| `iCountPage` | integer | null | Общее кол-во страниц |
| `iCurrentPage` | integer | null | Текущая страница |
| `iPrevPage` | integer | null | Предыдущая страница |
| `iNextPage` | integer | null | Следующая страница |
| `aPagesLeft` | array | null | Страницы слева от текущей |
| `aPagesRight` | array | null | Страницы справа от текущей |
## Скрипты
TODO
## Использование
Пример использования.
аблон со списком объектов_ **topic_list.tpl**
```smarty
{include 'components/pagination/pagination.tpl' aPaging=$aTopicPaging}
```