Файл: user/anketa/contacts.php
Строк: 181
<?php
/* DCMS Special
* Дата последнего редактирования 21.12.2015
* Модифицировал densnet
*/
only_reg();
echo "<div class='collection'>";
echo "<a class = 'list-group-item' href = '/user/anketa/?name=$ank[nick]&mod=information'><i class='material-icons'>chat</i> Общие сведения</a>";
echo "<a class = 'list-group-item' href = '/user/anketa/?name=$ank[nick]&mod=work'><i class='material-icons'>work</i> Работа и образование</a>";
echo "<a class = 'list-group-item' href = '/user/anketa/?name=$ank[nick]&mod=locations'><i class='material-icons'>location_city</i> Место проживания</a>";
echo "<div class = 'list-group-item'>";
echo "<a href = '/user/anketa/?name=$ank[nick]'><i class='material-icons'>contact_phone</i> Контакты и ссылки</a>";
echo "<div class = 'hr'></div>";
if ($ank['ank_icq'] == NULL && $ank['ank_icq'] == 0) {
$ank_icq = "<a style = 'cursor:pointer;text-decoration:underline;color:#069;background-color:transparent;border:0;color:grey;' href = '?mod=contacts&ank_icq'>?</a>";
} else {
$ank_icq = "<a style = 'cursor:pointer;text-decoration:underline;color:#069;background-color:transparent;border:0;color:green;' href = '?mod=contacts&ank_icq'><img src = "http://web.icq.com/whitepages/online?icq=$ank[ank_icq]&img=27" alt="icq" height="16" width="16" /> $ank[ank_icq]</a>";
}
if ($ank['ank_n_tel'] == NULL) {
$ank_n_tel = "<a style = 'cursor:pointer;text-decoration:underline;color:#069;background-color:transparent;border:0;color:grey;' href = '?mod=contacts&ank_icq'>?</a>";
} else {
$ank_n_tel = "<a style = 'cursor:pointer;text-decoration:underline;color:#069;background-color:transparent;border:0;color:green;' href = '?mod=contacts&ank_icq'>$ank[ank_n_tel]</a>";
}
if ($ank['ank_n_tel_home'] == NULL) {
$ank_n_tel_home = "<a style = 'cursor:pointer;text-decoration:underline;color:#069;background-color:transparent;border:0;color:grey;' href = '?mod=contacts&ank_icq'>?</a>";
} else {
$ank_n_tel_home = "<a style = 'cursor:pointer;text-decoration:underline;color:#069;background-color:transparent;border:0;color:green;' href = '?mod=contacts&ank_icq'>$ank[ank_n_tel_home]</a>";
}
if ($ank['ank_mail'] != NULL && ($ank['set_show_mail'] == 1 || isset($user) && ($user['level'] > $ank['level'] || $user['level'] == 4))) {
if ($ank['set_show_mail'] == 0) {
$hide_mail = ' (скрыт)';
} else {
$hide_mail = NULL;
}
if (preg_match("#(@mail.ru$)|(@bk.ru$)|(@inbox.ru$)|(@list.ru$)#", $ank['ank_mail'])) {
echo "<img src="http://status.mail.ru/?$ank[ank_mail]" width="13" height="13" alt="" /> <a href="mailto:$ank[ank_mail]" title="Написать письмо">$ank[ank_mail]</a>$hide_mail<br />n";
} else {
echo "E-mail: <a href="mailto:$ank[ank_mail]" title="Написать письмо">$ank[ank_mail]</a>$hide_mail<br />n";
}
}
echo "Телефон (Дом): $ank_n_tel_home<br />";
echo "Телефон (Моб): $ank_n_tel<br />n";
echo "ICQ: $ank_icq<br />";
echo "</div>";
echo "<a class = 'list-group-item' href = '/user/anketa/?name=$ank[nick]&mod=family'><i class='material-icons'>child_friendly</i> Семья и отношения</a>";
echo "<a class = 'list-group-item' href = '/user/anketa/?name=$ank[nick]&mod=events'><i class='material-icons'>event</i> События из жизни</a>";
echo "<a class = 'list-group-item' href = '/user/anketa/?name=$ank[nick]&mod=activity'><i class='material-icons'>important_devices</i> Активность</a>";
echo "<a class = 'list-group-item' href = '/user/anketa/?name=$ank[nick]&mod=character_type'><i class='material-icons'>accessibility</i> Типаж</a>";
echo "<a class = 'list-group-item' href = '/user/anketa/?name=$ank[nick]&mod=hobbies'><i class='material-icons'>pool</i> Интересы и увлечения</a>";
echo "<a class = 'list-group-item' href = '/user/anketa/?name=$ank[nick]&mod=position'><i class='material-icons'>local_library</i> Жизненная позиция</a>";
echo "</div>";