Jump to content
php.lv forumi

php building script


FT3

Recommended Posts

Labdien .

te tads jautajums vai jus nevaretu parveidot kodu lai varetu celt max 3 buildingus

iepriekš paldies

<?php
$buildings=buildings($_SESSION["user"][10]);
check_c($_GET["town"], $_SESSION["user"][10]);
$cq=get_c($_GET["town"]);
?>

<font color="#996633"  size="-1">
<b>
<?
if (count($cq)) ":<br \>";
for ($i=0; $i<count($cq); $i++)
{
$name=explode("-", $buildings[$cq[$i][1]][2]);
if ($cq[$i][2]>-1)
{
 $s=1; $l=$land[$cq[$i][1]][$cq[$i][2]]+1;
}
else
{
 $s=0; $l=$data[$cq[$i][1]]+1;
}
echo "[<a class='q_link' href='cancel_c.php?town=".$_GET["town"]."&b=".$cq[$i][1]."&subB=".$cq[$i][2]."'>x</a>] ".$name[$s].", ".$lang['level']." ".$l." - <span id='cq".$i."'>".$cq[$i][0]."</span><script type='text/javascript'> var id=new Array(50); timer('cq".$i."', 'town.php?town=".$_GET["town"]."'); </script><br \>";
}
echo "";
?>
</b>
</font>

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...