Файл: test.zfarm.mobi/mystylelipost/linkindex.php
Строк: 39
<?php
/////////////////////////
/*
Author MyStyle ZomBi.Biz
Год 2013 Права предоставлены автору Шехову Виталию Александровичу
http://vk.com/online_user
*/
/////////////////////////
echo '<div class="feedbackPanel">Постройки.</div>';
$user['set'] = 3;
$k_post = mysql_result(mysql_query("SELECT COUNT(*) FROM `mystyle_postroyki`"),0);
if ($k_post==0){
}
$k_page=k_page($k_post,$user['set']);
$page=page($k_page);
$start=$user['set']*$page-$user['set'];
$q=mysql_query("SELECT * FROM `mystyle_postroyki` LIMIT $start, $user[set]");
while($post=mysql_fetch_array($q))
{
$sr = $start+1;
$postq = mysql_fetch_array(mysql_query("SELECT * FROM `mystyle_postroyki` WHERE `id` = '".$post['id']."'"));
if($postq['id'] == 1) $user_postroyki = $user['postroyki1'];
if($postq['id'] == 2) $user_postroyki = $user['postroyki2'];
if($postq['id'] == 3) $user_postroyki = $user['postroyki3'];
if($postq['id'] == 4) $user_postroyki = $user['postroyki4'];
if($postq['id'] == 5) $user_postroyki = $user['postroyki5'];
if($postq['id'] == 6) $user_postroyki = $user['postroyki6'];
if($postq['id'] == 7) $user_postroyki = $user['postroyki7'];
if($postq['id'] == 8) $user_postroyki = $user['postroyki8'];
if($postq['id'] == 9) $user_postroyki = $user['postroyki9'];
if($postq['id'] == 10) $user_postroyki = $user['postroyki10'];
if($postq['id'] == 11) $user_postroyki = $user['postroyki11'];
if($postq['id'] == 12) $user_postroyki = $user['postroyki12'];
if($user_postroyki == $post['id']){}elseif($user['sunduk1']>=$post['col1'] && $user['sunduk2']>=$post['col2'] && $user['sunduk3']>=$post['col3'] && $user['sunduk4']>=$post['col4'] && $user['sunduk5']>=$post['col5']){
$type_link = '<a href="?linkpostroykiusergood='.$post['id'].'" class="btnp">Строить</a>';
}
echo '<li><div style="border: 1px solid #8c6c4c; margin: 4px 0; border-radius: 4px; background-color: #472701">
<img class="portrait pt6 pl6 pr6 center kartinki_div" width="60" height="60" src="images/postroyki/'.$post['img'].'" alt="" />
<div class="pt6"><span class="whiteBoldLink">'.$post['name'].'</span></div>Требуется:<span class="fr">'.$type_link.'</span><br />
<span>'.$post['col1'].'</span> <img width="30" height="30" src="images/who_postroyki/'.$post['ver1'].'.png" alt="" />
<span>'.$post['col2'].'</span> <img width="30" height="30" src="images/who_postroyki/'.$post['ver2'].'.png" alt="" />
<span>'.$post['col3'].'</span> <img width="30" height="30" src="images/who_postroyki/'.$post['ver3'].'.png" alt="" />
<span>'.$post['col4'].'</span> <img width="30" height="30" src="images/who_postroyki/'.$post['ver4'].'.png" alt="" />
<span>'.$post['col5'].'</span> <img width="30" height="30" src="images/who_postroyki/'.$post['ver5'].'.png" alt="" />
<br />'.$post['opis'].'';
echo '</div></div><div style="clear:both"></div></li>';
$start++;
}
echo '</table></div></div></div>';
echo '';
if ($k_page>1)str("?linkpostrouki&",$k_page,$page);
?>