<?php
ob_start();
require_once '../incfiles/core.php';
require_once '../incfiles/func.php';
require_once '../incfiles/auth.php';
require_once '../incfiles/user.php';

$title = lang('Флирт','Флірт').'';
require_once '../incfiles/head.php';

echo '<div class="title">'.lang('Флирт','Флірт').' </div>';

echo '<div class="block">';

$req = mysql_query("SELECT * FROM `flirt_history` WHERE `id` = '".$_GET['id']."'");
$history = mysql_fetch_array($req);

if($history['who_id'] != $user_id) go(URL);

$req = mysql_query("SELECT * FROM `users` WHERE `id` = '".$history['user_id']."'");
$us = mysql_fetch_array($req);
?>
<style>
.booble {
    border: 1px solid #CCCCCC;
    background-color: #fff;
    border-radius: 9px;
    -webkit-border-radius: 9px;
    -moz-border-radius: 9px;
    -khtml-border-radius: 9px;
    line-height: 130%;
    margin: auto;
    margin-top: 4px;
    margin-bottom: 9px;
    padding: 5px;
    position: relative;
    width: 95%;
    clear: left;
}

.f_red {
    color: #B40033;
}
.bold {
    font-weight: bold;
}
.booble .arrow {
    background: url("sp_arrow.png") 0px 0px no-repeat transparent;
    bottom: -8px;
    display: block;
    height: 8px;
    left: 46%;
    position: absolute;
    width: 15px;
}

.button_g {
    background-color: #1CB841;
	 color: white;
    border-radius: 4px;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    -khtml-border-radius: 4px;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
    font-family: inherit;
    font-size: 13px;
    padding: 5px 8px;
    display: inline-block;
    line-height: normal;
    white-space: nowrap;
    vertical-align: baseline;
    text-align: center;
    cursor: pointer;
    text-transform: none;
    text-decoration: none;
    border: 0;
}
.button_r {
    background-color: #dd514c;
    color: white;
    border-radius: 4px;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    -khtml-border-radius: 4px;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
    font-family: inherit;
    font-size: 13px;
    padding: 5px 8px;
    display: inline-block;
    line-height: normal;
    white-space: nowrap;
    vertical-align: baseline;
    text-align: center;
    cursor: pointer;
    text-transform: none;
    text-decoration: none;
    border: 0;
}

.vote_block span {
    font-size: 15px;
    color: #585858;
    font-weight: bold;
}

.vote_block {
    padding: 12px 0 6px 0;
    text-align: center;
    line-height: 1.5;
}
.box_a, .box_b, .box_i, .box_n {
    line-height: 150%;
    padding: 8px;
    word-wrap: break-word;
    clear: left;
}
Inherited from body

</style>

<?
$arr_user = mysql_fetch_array(mysql_query("SELECT `id`, `avatar`, `name`, `surname`, `online`, `ban`, `device` FROM `users` WHERE `id` = '".$user_id."' LIMIT 1"));

$reqq = mysql_query("SELECT * FROM `users` WHERE `id` = '".$arr_ava['user_id']."'");
$user_ava = mysql_fetch_array($reqq);
echo '<center>
<div class="booble">
	<img src="off.png" alt="" class="ico"> <span class="bold f_red"><a href="'.URL.'/?id='.$us['id'].'" onclick="Page.Go(this.href); return false"> '.$us['name'].' '.$us['surname'].' </a>('.$us['rating'].')</span>'.($us['hide_year'] != 0 ? ', '.age($us['day'],$us['month'],$us['year']) : null).'
	'.(!empty($us['city']) ? '<br>'.$us['city'] : null).'<br>	<span class="arrow"></span>
</div><br />

';
echo ''.lang('Вопрос','Питання').': '.lang($history['text_ru'],$history['text_ua']).'<br />';

//echo '<b><a href="'.URL.'/?id='.$us['id'].'">'.$us['name'].' '.$us['surname'].'</a><br /></b>';

echo ''.lang('Ответ','Відповідь').': '.($history['type'] == 'yes' ? ''.lang('Да','Так').'' : ''.lang('Нет','Ні').'');

echo '</div>';

require_once '../incfiles/foot.php';


?>