Файл: public_html/modules/padmin/pages.php
Строк: 40
<?php
/**********************************
* @package: PerfCMS *
* @year: 2012 *
* @author: Artas *
* @link: http://perfcms.net *
* ------------------------------- *
* @package: PerfCMS Ultra *
* @year: 2013 *
* @author: wanya26ua & Tesla *
* @link: http://perfclub.ru *
**********************************/
$locate = 'in_padmin';
if(isset($user) && $user['level'] >= 6) {
$title = $lang->word('padmin_pages');
require_once(SYS.'/view/header.php');
$tpl->div('title', $lang->word('padmin_pages'));
$pages_r = $db->query("SELECT * FROM `pages`")->rowCount();
$paginator = new Paginator($pages_r, $ames);
if($pages_r == 0) {
$tpl->div('menu', $lang->word('no_pages'));
} else {
$pages_q = $db->query("SELECT * FROM `pages` ORDER BY name DESC LIMIT $start, $ames");
while($pages = $pages_q->fetch()) {
$tpl->div('menu', NAV .' <a href="/pages/'. $pages['id'].'-'. cyrlat($pages['lat_name']).'.html">'.$pages['name'].'</a> [<a href="/padmin/edit-page/'. $pages['id'].'/">'. img('edit.png') .'</a> | <a href="/padmin/delete-page/'. $pages['id'].'/">'. img('delete.png') .'</a>]');
}
$paginator->view('/padmin/?');
}
$tpl->div('block', img('nav.png') .'<a href="/padmin/add-page/">'. $lang->word('add_page') .'</a><br/>'. img('admin.png') .'<a href="/padmin/">'. $lang->word('padmin') .'</a><br/>'. HICO .'<a href="/">'. $lang->word('home') .'</a>');
require_once(SYS.'/view/footer.php');
} else { go('/'); }
?>