Файл: DARK WARS/dark_war/village/pets/index.php
Строк: 15
<?php
include_once '../../start.php';
$doc = new document();
$doc->title('Премиум петомцы');
$pages = new pages;
$pages->posts = mysql_result(mysql_query("SELECT COUNT(*) FROM `dark_war_pets` WHERE `baks` < '1' "), 0);
$pages->this_page();
$q=mysql_query("SELECT * FROM `dark_war_pets` WHERE `baks` < '1' ORDER BY `baks` ASC LIMIT {$pages->my_start()}, {$pages->items_per_page}");
while ($post = mysql_fetch_array($q)) {
$list = $post['name'];
$img = $post['img'];
$link = "./buy.php?id=" . $post['id'] . "".(isset($_GET['page'])?'&page='.$_GET['page'].'' : '')."";
$dispatch[] = array ('title' => $list, 'img' => $img, 'link' => $link, 'descrip' => $descrip);
}
if (!$dispatch) {
$dispatch[] = array ('title' => 'Магазин пуст');
}
$doc->assign('post', $dispatch);
$doc->display('view_list_plus_img.tpl');
$pages->listing("index.php?type=$type&"); // вывод страниц
$doc->ret("/dark_war/village/pets".(isset($_GET['page'])?'?page='.$_GET['page'].'' : '')."", 'Зоомагазин');
$doc->ret("/dark_war/donat/pets".(isset($_GET['page'])?'?page='.$_GET['page'].'' : '')."", 'Премиум зоомагазин');
$doc->ret("/dark_war/village/trainer_p.php".(isset($_GET['page'])?'?page='.$_GET['page'].'' : '')."", 'Дрессировщик');
?>