Parašė BloodKiller· 2007 Lie. 30 22:07:14
#14
Demonas parašė:
o ne geriau butu
if ($data['user_avatar'] != "") {
echo "<img border='0' alt='Nario Avataras' title='Nario Avataras' src='".BASEDIR."images/avatars/".$data['user_avatar']."'>";
} else {
echo "<img border='0' alt='Nėra Avataro' title='Nėra Avataro' src='/images/imagenotfound.jpg'>";
}
Kaip tik blogiau butu. Aklas dede PLAY pasiule pati geriausia varianta (zinoma, po mano).
Geresnis variantas yra toks:
echo $data['user_avatar'] ? "<img src='".IMAGES."avatars/".$data['user_avatar']."' alt='".$locale['u017']."'><br><br>\n<hr>\n" : "<img src='".IMAGES."avatars/noavatar.jpg'>"