Файл: DARK WARS/dark_war/clans/raid/view.php
Строк: 26
<?php
include_once '../../start.php';
$doc = new document();
$doc->title('Монстры');
$pages = new pages;
$pages->posts = mysql_result(mysql_query("SELECT COUNT(*) FROM `dark_war_clan_monsters`"), 0);
$pages->this_page();
if(!$_COOKIE["clan"]){
header("Location: /dark_war/clans/");
}
$q = mysql_query("SELECT * FROM `dark_war_clan_monsters` LIMIT {$pages->my_start()}, {$pages->items_per_page}");
while ($post = mysql_fetch_assoc($q)) {
$list = $post['name'];
$img = $post['img'];
$link = "new_attack.php?id=$post[id]";
$descrip = "<img src='/dark_war/all_img/14/hp.png' alt='' />$post[hp] ";
$descrip .= "<img src='/dark_war/all_img/14/sword.png' alt='' />$post[dmg] ";
$descrip .= "<img src='/dark_war/all_img/14/shield1.png' alt='' />$post[armor] ";
$descrip .= "<img src='/dark_war/all_img/14/shield.png' alt='' />$post[magicr] ";
$descrip .= "<img src='/dark_war/all_img/14/level.png' alt='' />$post[level] ";
$dispatch[] = array ('title' => $list, 'img' => $img, 'link' => $link, 'descrip' => $descrip);
}
$doc->assign('post', $dispatch);
$doc->display('view_list_plus_img.tpl');
$pages->listing("view.php?&"); // вывод страниц
$doc->ret("/dark_war/clans/", "Клан");
?>