Файл: ferma/inc/gradka.php
Строк: 13
<?
echo "<li>";
if($post['id_plant']!=0 && mysql_result
(mysql_query("SELECT COUNT(*) FROM
`kolhoz_plant` WHERE `id` = '$post
[id_plant]'"),0)!=0)$plant=mysql_fetch_array
(mysql_query("SELECT * FROM `kolhoz_plant`
WHERE `id` = '$post[id_plant]'"));
echo "<li><a href='?myfarm'><img width='48'
height='48' src='".(!isset($plant)?"".($post
['cultivator']==1?"i/dirt_new.jpg":"i/
dirt2_new.jpg")."":"i/plants/$plant
[id].png")."' alt='o' class='portrait'>";
echo "<div>";
?>