Вход Регистрация
Файл: anketa.php
Строк: 62
<?

include $_SERVER['DOCUMENT_ROOT']."/template/head.php";
if(isset(
$id))
{


    if(
$_GET['id']!="")
    {
$ank=$_GET['id'];}
    else
    {
$ank=$id;}
    if(
$str mysql_fetch_array(mysql_query("select * from `prof` where `id`='$ank'")))
    {
    
?>
    
    <div id="mhead" class="mhead">
        <div class="btn back">
            <a class="b al_back" href="wall.php?id=<?=$str[id]?>" accesskey="0"><i>&nbsp;</i>
                <div class="title">
                    <h1><?=$str[name]?></h1>
                </div>
            </a>
        </div>
    </div>
    <div id="mcont" class="mcont">
        <div class="pcont prof prof_finfo">
            <div class="panel prof_panel">
                <img src="data/photo/<?=$str[id]?>/<?=$str[foto]?>" class="u" align="left" />
                <div class="cont">
                    <h2><?=$str[name]?> <?=$str[fam]?><?online($str[id]);?></h2>
                    <div class="ststus"><?status($str[id]);?></div>
                </div>
                <div class="cb"></div>
            </div>
            <?if($str[id]==$id){?>
            <div class="prof_info">
                <ul class="page_menu">
                    <li><a href="profil.php"><i class="p edit"></i>Редактировать страницу</a></li>
                </ul>
            </div>
            <?}else{?>
            <div class="prof_info">
                <ul class="page_menu">
                    <li><a href="priv.php?id=<?=$str[id]?>"><i class="p edit"></i>Отправить сообщение</a></li>
                    <?
                    $drug 
mysql_query("select * from `drug` where `id_user`='$id' and `drug`='$str[id]'");
                    if(
mysql_num_rows($drug)==0)
                    {
                    
?>
                    <li><a href="user.php?add=<?=$str[id]?>"><i class="p friends"></i>Добавить в друзья</a></li>
                    <?}?>
                </ul>
            </div>
            <?}?>
            
            <div class="prof_info">
                <h4>Общая информация</h4>
                <div class="cont">
                    <dl class="pinfo">
                        <dt>День рождения:</dt>
                        <dd><?if($str[d_r]!="" and $str[m_r]!="" and $str[g_r]!=""){?><?=$str[d_r]?> / <?=$str[m_r]?> / <?=$str[g_r]?><?}?></dd>
                    </dl>
                    <dl class="pinfo">
                        <dt>Семейное положение:</dt>
                        <dd><?=$str[sp]?></dd>
                    </dl>
                    <dl class="pinfo">
                        <dt>Родной город:</dt>
                        <dd><?=$str[gorod]?></dd>
                    </dl>
                </div>
            </div>
            <div class="prof_info">
                <h4>Контактная информация</h4>
                <div class="cont">
                    <div>
                        <dl class="pinfo">
                            <dt>Город:</dt>
                            <dd><?=$str[gorod]?></dd>
                        </dl>
                        <dl class="pinfo">
                            <dt>Моб. телефон:</dt>
                            <dd><a href='tel:<?=$str[m_tel]?>'><?=$str[m_tel]?></a></dd>
                        </dl>
                        <dl class="pinfo">
                            <dt>Дом. телефон:</dt>
                            <dd><a href='tel:<?=$str[d_tel]?>'><?=$str[d_tel]?></a></dd>
                        </dl>
                        <dl class="pinfo">
                            <dt>Веб-сайт:</dt>
                            <dd><a href="<?=$str[url]?>" target="_blank"><?=$str[url]?></a></dd>
                        </dl>
                    </div>
                </div>
            </div>
            <div class="prof_info">
                <h4>Личная информация</h4>
                <div class="cont">
                    <div>
                        <dl class="pinfo pinfo_wide">
                            <dt>Деятельность</dt>
                            <dd><?=$str[car]?></dd>
                        </dl>
                        <dl class="pinfo pinfo_wide">
                            <dt>Интересы</dt>
                            <dd><?=$str[interes]?></dd>
                        </dl>
                        <dl class="pinfo pinfo_wide">
                            <dt>Любимая музыка</dt>
                            <dd><?=$str[muz]?></dd>
                        </dl>
                        <dl class="pinfo pinfo_wide">
                            <dt>Любимые цитаты</dt>
                            <dd><?=$str[citat]?></dd>
                        </dl>
                        <dl class="pinfo pinfo_wide">
                            <dt>О себе</dt>
                            <dd><?=$str[o_sebe]?></dd>
                        </dl>
                    </div>
                </div>
            </div>

            <div class="prof_info">
                <div class="cont btns bl_item">
                    <a class="btn pinfo al_back" href="wall.php?id=<?=$str[id]?>">Вернуться к странице</a>
                </div>
            </div>
        </div>
    </div>

    
    
    <?
    
    
}
    else
    {echo
'<div>Такой страницы нет!</div>';}
    
?>
    <div id="mfoot" class="mfoot">
        <ul class="main_menu footer_menu">
            <li><a href="/">На главную</a></li>
            <li><a href="/?exit">Выход</a></li>
        </ul>
    </div>
    <?
}
include 
$_SERVER['DOCUMENT_ROOT']."/template/foot.php";
?>
Онлайн: 1
Реклама