Location: PHPKode > projects > PHP Mafia RP > phpmafia/robbery.php
<?
session_start();

if ( $_SESSION['log'] == "" ) {
header("Location: index.php?a=logerr"); }

$id=$_SESSION['id'];
$nik=$_SESSION['nik'];

include("func.php");
Conect();

Conect();
$uq = "SELECT * FROM ".TB_PREFIX."users WHERE id='$id' AND username = '$nik'";
$usrarray = mysql_fetch_array( mysql_query($uq) );
if ( mysql_num_rows( mysql_query($uq) )==0 ) { header("Location: index.php?a=logerr"); }

// data \\
$energy=$usrarray['energy'];
$money=$usrarray['money'];

// robbery \\
$agzones=mysql_query("SELECT * FROM zone");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US" xml:lang="en">
<head>
    <!--
    Created by Artisteer v2.3.0.23326
    Base template (without user's data) checked by http://validator.w3.org : "This page is valid XHTML 1.0 Transitional"
    -->
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
    <title>phpmafia - principale</title>

    <script type="text/javascript" src="script.js"></script>

    <link rel="stylesheet" href="style.css" type="text/css" media="screen" />
    <!--[if IE 6]><link rel="stylesheet" href="style.ie6.css" type="text/css" media="screen" /><![endif]-->
    <!--[if IE 7]><link rel="stylesheet" href="style.ie7.css" type="text/css" media="screen" /><![endif]-->
    <style type="text/css">
<!--
.Stile1 {
	color: #FF0000;
	font-weight: bold;
}
-->
    </style>
</head>
<body>
    <div id="art-page-background-gradient"></div>
    <div id="art-main">
        <div class="art-Sheet">
            <div class="art-Sheet-tl"></div>
            <div class="art-Sheet-tr"></div>
            <div class="art-Sheet-bl"></div>
            <div class="art-Sheet-br"></div>
            <div class="art-Sheet-tc"></div>
            <div class="art-Sheet-bc"></div>
            <div class="art-Sheet-cl"></div>
            <div class="art-Sheet-cr"></div>
            <div class="art-Sheet-cc"></div>
            <div class="art-Sheet-body">
                <div class="art-Header">
                    <div class="art-Header-jpeg"></div>
                    <div class="art-Logo">
                        <h1 id="name-text" class="art-Logo-name"><a href="#">Php Mafia</a></h1>
                        <div id="slogan-text" class="art-Logo-text">Un gioco di ruolo open source by Raffa50</div>
                  </div>
                </div>
                <div class="art-nav">
                	<div class="l"></div>
                	<div class="r"></div>
                	<ul class="art-menu">
                		<li>
                			<a href="#" class=" active"><span class="l"></span><span class="r"></span><span class="t">Home</span></a>
                		</li>
                		<li>
                			<a href="family.php"><span class="l"></span><span class="r"></span><span class="t">La famiglia</span></a>
                			<ul>
                				<li><a href="#">Menu Subitem 1</a>
                					<ul>
                						<li><a href="#">Menu Subitem 1.1</a></li>
                						<li><a href="#">Menu Subitem 1.2</a></li>
                						<li><a href="#">Menu Subitem 1.3</a></li>
                					</ul>
                				</li>
                				<li><a href="#">Menu Subitem 2</a></li>
                				<li><a href="#">Menu Subitem 3</a></li>
                			</ul>
                		</li>		
                		<li>
                			<a href="#"><span class="l"></span><span class="r"></span><span class="t">About</span></a>
                		</li>
                	</ul>
                </div>
                <div class="art-contentLayout">
                    <div class="art-content">
                        <div class="art-Post">
                            <div class="art-Post-body">
                        <div class="art-Post-inner">
                                        <div class="art-PostMetadataHeader">
                                            <h2 class="art-PostHeader">
                                                <img src="images/PostHeaderIcon.png" width="11" height="11" alt="PostHeaderIcon" />
                                                Benvenuto: <? echo $nik; ?>. &nbsp; Soldi: <? echo $money; ?> €. &nbsp; Energia: <? echo $energy; ?> %
                                            </h2>
                                        </div>
                                        <div class="art-PostContent">
                                            
                                            
                                            <p>&nbsp;</p>
                                            <p>Vai a rubare qualcosa...</p>
                                            <form id="form1" name="form1" method="post" action="">
                                            <p>Zona: 
                                                <select name="zone" id="zone">
                                                <? while($riga=mysql_fetch_array($agzones)) {
												echo "<option>".$riga['name'];
												} ?>
                                                </select></p>
                                            </form>
                              <p>
                                            	<span class="art-button-wrapper"><span class="r"> </span>                                            	</span>                                            </p>             
                                        </div>
                                        <div class="cleared"></div>
                        </div>
                        
                        		<div class="cleared"></div>
                            </div>
                        </div>
                        <div class="art-Post"></div>
                  </div>
                    <div class="art-sidebar1">
                        <div class="art-Block">
                            <div class="art-Block-tl"></div>
                            <div class="art-Block-tr"></div>
                            <div class="art-Block-bl"></div>
                            <div class="art-Block-br"></div>
                            <div class="art-Block-tc"></div>
                            <div class="art-Block-bc"></div>
                          <div class="art-Block-cl"></div>
                            <div class="art-Block-cr"></div>
                            <div class="art-Block-cc"></div>
                            <div class="art-Block-body">
                                        <div class="art-BlockHeader">
                                            <div class="l"></div>
                                            <div class="r"></div>
                                            <div class="art-header-tag-icon">
                                                <div class="t">Informazioni su phpmafia</div>
                                            </div>
                                        </div><div class="art-BlockContent">
                                            <div class="art-BlockContent-body">
                                                <div><br />
                                                <b>phpmafia.</b><br />
                                                <br />
                                                Site: <a href="https://sourceforge.net/projects/phpmafia/">phpmafia</a><br />
                                                <br />
                                                &copy; Raffa's 2010
                                                </div>
                                       		  <div class="cleared"></div>
                                            </div>
                                        </div>
                        		<div class="cleared"></div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="cleared"></div><div class="art-Footer">
                    <div class="art-Footer-inner">
                        <a href="#" class="art-rss-tag-icon" title="RSS"></a>
                        <div class="art-Footer-text">
                            <p>
                                Copyright &copy; Raffa's 2010 ---. All Rights Reserved.</p>
                        </div>
                    </div>
                    <div class="art-Footer-background"></div>
                </div>
        		<div class="cleared"></div>
            </div>
        </div>
        <div class="cleared"></div>
    </div>
    
</body>
</html>
Return current item: PHP Mafia RP