<?php
# Copyright by: Manuel
# Support: www.ilch.de
defined ('main') or die ( 'no direct access' );
$uid = intval($menu->get(2));
$abf = 'SELECT * FROM prefix_user WHERE id = "'.$uid.'"';
$erg = db_query($abf);
function profilefields_show_spez_awards($value, $uid) {
$output = '';
$sql = db_query("SELECT a.platz, a.text, a.wofur, a.team, a.bild, DATE_FORMAT(a.`time`, '%d.%m.%Y') AS time FROM `prefix_awards` a INNER JOIN prefix_user b ON a.team = b.name WHERE b.id = $uid ORDER BY `time` DESC");
while($row = db_fetch_assoc($sql) ) {
$output .= (!empty($row['bild']) ? '<img src="'.$row['bild'].'" alt="'.$row['wofur'].'" title="'.$row['wofur'].'"/>' : $row['wofur']).'<br /><br />';
}
return profilefields_show_echo_standart( 'Awards', $output);
}
if (db_num_rows($erg)) {
$row = db_fetch_assoc($erg);
$avatar = '';
if ( file_exists($row['avatar'])) {
$avatar = '<img src="'.$row['avatar'].'" border="0">';
}
$regsek = mktime ( 0,0,0, date('m'), date('d'), date('Y') ) - $row['regist'];
$regday = round($regsek / 86400);
$postpday = ( $regday == 0 ? 0 : round($row['posts'] / $regday, 2 ) );
$ar = array (
'NAME' => $row['name'],
'JOINED' => date('d M Y',$row['regist']),
'LASTAK' => date('d M Y - H:i',$row['llogin']),
'POSTS' => $row['posts'],
'postpday' => $postpday,
'RANG' => userrang ($row['posts'],$uid),
'AVATA' => $avatar,
);
$title = $allgAr['title'].' :: Users :: Details von '.$row['name'];
$hmenu = $extented_forum_menu.'<a class="smalfont" href="?user">Users</a><b> » </b> Details von '.$row['name'].$extented_forum_menu_sufix;
$design = new design ( $title , $hmenu, 1);
$design->header();
$tpl = new tpl ( 'user/userdetails' );
$l = profilefields_show ( $uid );
$ar['rowspan'] = 4 + substr_count($l, '<tr><td class="');
$ar['profilefields'] = $l;
$tpl->set_ar_out($ar,0);
} else {
$title = $allgAr['title'].' :: Users :: User nicht gefunden';
$hmenu = $extented_forum_menu.'<a class="smalfont" href="?user">Users</a> '.$extented_forum_menu_sufix;
$design = new design ( $title , $hmenu, 1);
$design->header();
echo 'Der Benutzer wurde nicht gefunden bzw. die Seite wurde nicht richtig aufgerufen.<br />';
}
$design->footer();
$tpl->set('awards', genAwards($uid));
?>
und
body
{
background-color: #161616;
scrollbar-face-color: #1e1e1e;
scrollbar-highlight-color: #EFEFEF;
scrollbar-shadow-color: #3b72d1;
scrollbar-3dlight-color: #000000;
scrollbar-arrow-color: #3b72d1;
scrollbar-track-color: #4B4B4A;
scrollbar-darkshadow-color: #DDDDDD;
}
.menu
{
display:block;
color: #696969;
font-size: 11px;
background:url(Bilder/button.jpg);
width: 174px;
height: 20px;
text-indent: 15px;
text-decoration: none;
font-family: Verdana, sans-serif;
line-height: 19px;
}
.menu:hover
{
display:block;
color: #3b72d1;
font-size: 11px;
background:url(Bilder/buttonr.jpg);
width: 174px;
height: 20px;
text-indent: 15px;
text-decoration: none;
font-family: Verdana, sans-serif;
line-height: 19px;
}
.abg
{
background-color: #000000;
}
td
{
font-family: Verdana;
font-size: 11px;
color: #FFFFFF;
}
a
{
color: #3b72d1;
font-family: Verdana;
font-size: 11px;
text-decoration: none;
}
a:hover
{
color: #3b72d1;
font-family: Verdana;
font-size: 11px;
text-decoration: underline;
}
a.box
{
color: #ffffff;
font-family: Verdana;
font-size: 11px;
text-decoration: none;
}
a.box:hover
{
text-decoration: none;
}
hmenu
{
color: #ffffff;
font-family: Verdana;
font-size: 11px;
text-decoration: none;
}
a.hmenu
{
color: #ffffff;
font-family: Verdana;
font-size: 11px;
text-decoration: underline;
}
hmenu:hover
{
color: #ffffff;
font-family: Verdana;
font-size: 11px;
text-decoration: none;
}
.Chead
{
background-color: #303030;
color: #3b72d1;
}
.Chead td, .Chead td strong, .Chead h4, .Chead td b
{
color: #ffffff;
}
.Callg
{
background-color: #000000;
color: #000000;
}
.Callg td
{
color: #ffffff;
}
.Cnorm
{
background-color: #161616;
}
.Cmite
{
background-color: #202020;
}
.Cdark
{
background-color: #161616;
}
#Ballg
{
color: #000000;
}
#Ballg td
{
color: #000000;
}
.Bhead
{
background-color: #333333;
color: #FFFFFF;
}
.Bbody
{
background-color: #2a2a2a;
color: #000000;
}
.rand
{
border: solid #1b1b1b 1px;
}
.smalfont
{
font-size: 10px;
text-decoration: none;
}
.border
{
background-color: #1b1b1b;
}
hr
{
height: 0px;
border: solid #1b1b1b 0px;
border-top-width: 1px;
}
input, textarea, select
{
color: #000000;
font: 12px Verdana;
border-color: #1b1b1b;
border-width: 1px;
border-style: solid;
font-weight: none;
text-decoration: none;
background-color: #EFEFEF;
}
#menu {}
#menu ul { padding-left: 10px; margin-left: 10px; }
#smallmenu { }
#smallmenu li { font-size: 9px; }
#smallmenu a { font-size: 9px; }
#profil_az1 {width:100px;}
#profil_az1 div {float:left; margin: 0px 2px;}