'."\n";
global $current_user;
get_currentuserinfo();
include_once('incl/functions.inc.php');
include('incl/config.php');
if (isset($_GET['id']))
{
$con_id = base_connect($host, $v_user, $v_password, $data_base);
$qw = "
SELECT `last_name`, `first_name`, `fathers_name`, `birth_date`,
`education`, `interest`, `occupation`, `organization`,
`prof_rabota`, `city`, `top`
FROM `youth_forum_2013_members`
WHERE `youth_forum_2013_members`.`id` LIKE '".$_GET['id']."'
"
;
mysql_query('SET names "utf8"');
$q = mysql_query($qw, $con_id);
if ($q != '0')
$num_rows = mysql_num_rows($q);
if ((isset($num_rows)) AND ($num_rows != '0'))
{
$f = mysql_fetch_array($q);
$folder = 'images/youth_forum_2013_members/'.$_GET['id'].'/';
$files = scandir($folder);
if (!isset($files) OR count($files) <= 2)
{
print'
'."\n";
}
else
{
print'
'."\n";
}
print'
Имя: '.$f['last_name'].' '.$f['first_name'].' '.$f['fathers_name'].'
'."\n";
print'Дата рождения: '.$f['birth_date'].'
'."\n";
print'Образование: '.$f['education'].'
'."\n";
print'Должность: '.$f['occupation'].'
'."\n";
print'Профсоюзная работа: '.$f['prof_rabota'].'
'."\n";
print'Место работы: '.$f['organization'].', (г. '.$f['city'].')
'."\n";
print'ТОП: '.$f['top'].'
'."\n";
print'Увлечения: '.$f['interest'].'
'."\n";
$files = scandir($folder);
if (isset($files) AND count($files) > 2)
{
$num = 0;
for ($z=2; $z < count($files); $z++)
{
if (strstr($files[$z], 'portrait_') == '')
{
$num++;
}
}
if ($num != 0)
$num = $num/2;
for ($i=1; $i <= $num; $i++)
{
if ($i<10)
print'
'."\n";
else
print'
'."\n";
}
}
}
else
{
print'
Извините, запрашиваемая страница не найдена
';
}
}
print''."\n";
?>