Вход Регистрация
Файл: Website/towns.php
Строк: 101
<?php

/*** Freedom City | Check RPGBUNNY.COM for more Full RPG Sources | www.rpgbunny.com ***/include "antet.php"; include "func.php";

if (isset(
$_SESSION["user"][0]))
{
 
$towns=towns($_SESSION["user"][0]);
 
$twnCount=count($towns);
}
else {
header('Location: login.php'); die();}
?>
<html>
<?php echo "<link rel='stylesheet' type='text/css' href='".$imgs.$fimgs."default.css'>"?>

<head>
<title><?php echo $title?> - <?php echo $lang['towns'?></title>
</head>

<body class="q_body">

<link rel="stylesheet" type="text/css" href="layout/css/css/style.css"/>
<div align="left">



<table width="100%">
    <tr>

          <table class="q_table" style="border-collapse: collapse" width="600" border="1">
            <tr>
              <td class='head_table'><?php echo $lang['townName'?></td>
              <td class='head_table'><?php echo $lang['population'?></td>
              <td class='head_table'><?php echo $lang['coords'?></td>
              <td class='head_table'><?php echo $lang['abandon'?></td>
              <td class='head_table'><?php echo $lang['purge'?></td>
            </tr>
            <?php for ($i=0$i<$twnCount$i++)
            {
             
$town=town_xy($towns[$i][0]); 
             echo 
"<tr>
              <td><a class='q_link' href='town.php?town="
.$towns[$i][0]."'>".$towns[$i][2]."</a></td>
              <td>"
.$towns[$i][3]."</td>
              <td><a class='q_link' href='map.php?x="
.$town[0]."&y=".$town[1]."'>(".$town[0].", ".$town[1].")</a></td>
              <td>[<a class='q_link' href='abandon.php?town="
.$towns[$i][0]."'>".$lang['abandon']."</a>]</td>
              <td>[<a class='q_link' href='purge.php?town="
.$towns[$i][0]."'>".$lang['purge']."</a>]</td>
            </tr>"
;
            } 
?>
          </table>
          &nbsp;&nbsp;
          <?php if (!$twnCount) echo "[<a class='q_link' href='create.php'>".$lang['createTown']."</a>]"; else echo "[<a class='q_link' href='create.php'>".$lang['createTown']."</a>]"?>  
          
      [<a class='q_link' href='ch_capital.php'><?php echo $lang['changeCap'?></a>]
      </td>
    </tr>
</table>

<br><br>




<table width="100%">
    <tr>

          <table class="q_table" style="border-collapse: collapse" width="600" border="1">
            <tr>

              <td class='head_table'><font color="#FFFFFF"><?php echo $lang['selectnow'?></font></td>
              <td class='head_table'><font color="#FFFFFF"><?php echo $lang['population'?></td>
              <td class='head_table'><font color="#FFFFFF"><?php echo $lang['coords'?></td>

            </tr>
            <?php for ($i=0$i<$twnCount$i++)
            {
             
$town=town_xy($towns[$i][0]); 
             echo 
"<tr>
              <td><a class='q_link' href='vipcredits.php?town="
.$towns[$i][0]."'>".$towns[$i][2]."</a></td>
              <td>"
.$towns[$i][3]."</td>
              <td><a class='q_link' href='map.php?x="
.$town[0]."&y=".$town[1]."'>(".$town[0].", ".$town[1].")</a></td>
            </tr>"
;
            } 
?>
          </table>

      </td>
    </tr>
</table>


<br><br>


<table width="100%">
    <tr>

          <table class="q_table" style="border-collapse: collapse" width="600" border="1">
            <tr>
            <a href="vipbuy.php" target="main"><img src="images/buycredits.png" border="0"></a><br><br>


                                <?php
 
if ((isset($_SESSION["user"][4]))&&($_SESSION["user"][4]>3)) echo "<a href="apanel.php" style="ffffff"red"font-size11px;" target="main"><img src="images/admin.png" border="0"></a>";

?>

            </tr>

          </table>

      </td>
    </tr>
</table>

</div>

</body>

</html>
Онлайн: 0
Реклама