<?session_start();?>
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru">

<head><meta http-equiv='content-type' content='application/xhtml+xml; charset=windows-1251'/>
<link rel="shortcut icon" href="ico.ico" type="image/x-icon" />

<title>журнал заданий</title>
<link rel="stylesheet" href="styleN.css" type="text/css" />
</head>
<body>
<div class='main' style='word-wrap:break-word;padding-bottom:0px'>
<div class="center" style="padding-top:10px;padding-bottom:10px"><div class='main_title'>
<strong>журнал заданий</strong>
</div></div>
<div style="padding-left:10px;padding-right:10px">
<b>
<?
echo "<link href=\"styleN.css\" type=\"text/css\" rel=\"stylesheet\">";
$id=$_GET['id'];
$NICK = $_GET['NICK'];
$pass = $_GET['pass'];
//квест осколки
include("db.php");
$db->openDB();
$questsBOOK = mysql_query("SET NAMES cp1251");
$questsBOOK=mysql_query("SELECT * FROM quests WHERE quests_users=\"$_SESSION[s]\"");
$count=mysql_num_rows($questsBOOK);
echo"

<a href=\"game.php\"><img src=\"img/al.png\"> в игру</a><br/>";
if($count==0){echo"<div class=\"main_title\"><font color=\"red\"><center>журнал заданий пуст!</center></font></div><br/>";die;}

while($questsBOOK2=mysql_fetch_assoc($questsBOOK)){
if($count>0){echo"<font color=\"red\">&#187;</font><a href=\"game.php?info=$questsBOOK2[quests_name]\"> $questsBOOK2[quests_FullName]</a> <a href=\"game.php?del=$questsBOOK2[quests_name]\"><img src=\"img/yes.png\" alt=\"del\" width=\"12\" height=\"12\"></a><br/>";}
}

?>
		</div><div class='line'></div>
		<div class='main_foot'>
		<div class=center>
		<div class=grey>
		<div class=small>
		<div class=foot>
		<a href=pvp.php?r=381966>Главная</a> | <a href=forum.php>Форум</a> | <a href=lib.php?cat=rules>Правила</a> | <a href=lib.php>Помощь</a> | <a href=support.php>Поддержка</a>
		</div>
		</div>
		<div class='foot_margin'></div>
		<div class=smallest>
		<?echo date("H:i");?>, 
		<?echo $total_time.' с.';?>
		<br/>
		<div class='min_margin'></div>
		<font color="black">&copy; 2013 <u>Мрак Подземелья</u></font></div></div></div></div></div>

		<?
?>
</div>