{% else-1 %}
fara * 0.26
(20 окт 2013, 14:25) (0/0) [0]
SKING,
Нужно поставит ето условия if($post[\'id_plant\']!=0){<a href=\'?myfarm&seat=$post[id]\'><span>выбрать семена</span></a>} в низу
<?
echo \"<span>\";
if($ku[\'last_plant\']!=0 && mysql_result(mysql_query(\"SELECT COUNT(*) FROM `kolhoz_plant` WHERE `id` = \'$ku[last_plant]\'\"*,0)!=0)$lp=mysql_fetch_array(mysql_query(\"SELECT * FROM `kolhoz_plant` WHERE `id` = \'$ku[last_plant]\'\"*);
echo \"\".($post[\'cultivator\']==1?\"<img width=\'16\' height=\'16\' src=\'images/icons/seat.png\' alt=\'o\'> \".(isset($lp)?\"<a href=\'?myfarm&seat=$post[id]&select=$lp[id]\'>Посадить <span>\".hsc($lp[\'name\']).\"</span></a>, \".if($post[\'id_plant\']!=0){<a href=\'?myfarm&seat=$post[id]\'><span>выбрать семена</span></a>}\":\"<a href=\'?myfarm&seat=$post[id]\'>Посадить</a>\"*.\"\":\"<img width=\'16\' height=\'16\' src=\'images/icons/dig.png\' alt=\'o\'> <a href=\'?myfarm&cultivator=$post[id]\'><span style=\'title\'>Вскопать</span></a>\"*.\"\";
echo \"</span>\";


?>
fara * 0.26
(20 окт 2013, 14:18) (0/0) [0]
как павилно поставит етот код if($post[\'id_plant\']!=0){<a href=\'?myfarm&seat=$post[id]\'><span>выбрать семена</span></a>}
в том месте каторий написано в низу
<?echo \"<span>\";
if($ku[\'last_plant\']!=0 && mysql_result(mysql_query(\"SELECT COUNT(*) FROM `kolhoz_plant` WHERE `id` = \'$ku[last_plant]\'\"*,0)!=0)$lp=mysql_fetch_array(mysql_query(\"SELECT * FROM `kolhoz_plant` WHERE `id` = \'$ku[last_plant]\'\"*);
echo \"\".($post[\'cultivator\']==1?\"<img width=\'16\' height=\'16\' src=\'images/icons/seat.png\' alt=\'o\'> \".(isset($lp)?\"<a href=\'?myfarm&seat=$post[id]&select=$lp[id]\'>Посадить <span>\".hsc($lp[\'name\']).\"</span></a>, \".if($post[\'id_plant\']!=0){<a href=\'?myfarm&seat=$post[id]\'><span>выбрать семена</span></a>}\":\"<a href=\'?myfarm&seat=$post[id]\'>Посадить</a>\"*.\"\":\"<img width=\'16\' height=\'16\' src=\'images/icons/dig.png\' alt=\'o\'> <a href=\'?myfarm&cultivator=$post[id]\'><span style=\'title\'>Вскопать</span></a>\"*.\"\";
echo \"</span>\";?>
  • 1 из 1