   <style>
   .button {
    background-color:#04B173; 
    border: none;
    color: white;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
}
</style>

<?php include "../datacon.php"; ?>
<?php  include('session.php'); ?>
<?php
if (isset($_POST['club'])){
//$pnumber =$_SESSION['username'];
$phone=$username;


$query = @mysql_query("select distinct  club.*,gold.*,platinum.* from club,platinum,gold where club.phonenumber='$phone' OR gold.phonenumber='$phone' OR platinum.phonenumber='$phone'  ")or die(mysql_error());
$count = mysql_num_rows($query);

if ($count > 0){ 
?>
<script>

window.location = "status?id=$Wealthclubmarketing";
</script>
<?php
}else{?>
<script>
window.location = "join?id=$Wealthclubmarketing";
</script>
<?php
}
}
?>
<?php
if (isset($_POST['earning'])){
//$pnumber =$_SESSION['username'];
$phone=$username;



$query = @mysql_query("select distinct  club.*,gold.*,platinum.* from club,platinum,gold where club.phonenumber='$phone' OR gold.phonenumber='$phone' OR platinum.phonenumber='$phone'  ")or die(mysql_error());
$count = mysql_num_rows($query);
if ($count > 0){ 
?>
<script>

window.location = "wallet?id=$Wealthclubmarketing";
</script>
<?php
}else{?>
<script>
window.location = "join?id=$Wealthclubmarketing";
</script>
<?php
}
}
?>
<?php
if (isset($_POST['tree'])){
//$pnumber =$_SESSION['username'];
$phone=$username;


$query = @mysql_query("select distinct  club.*,gold.*,platinum.* from club,platinum,gold where club.phonenumber='$phone' OR gold.phonenumber='$phone' OR platinum.phonenumber='$phone'  ")or die(mysql_error());
$count = mysql_num_rows($query);
if ($count > 0){ 
?>
<script>

window.location = "t?id=$Wealthclubmarketing";
</script>
<?php
}else{?>
<script>
window.location = "join?id=$Wealthclubmarketing";
</script>
<?php
}
}
?>


<ul class="nav" id="side-menu">
                    <li>
                        <!-- user image section-->
                        <div class="user-section">
                                                        <div class="user-info">
							  <?php $query= mysql_query("select * from operators WHERE Userid = '$session_id'")or die(mysql_error());
			         $row = mysql_fetch_array($query);			
			         ?>
                                <div><?php echo $row['fname']." ".$row['lname']." ".$row['sname'];  ?></div>
                                <div class="user-text-online">
                                    <span class="user-circle-online btn btn-success btn-circle "></span>&nbsp;Online
                                </div>
                            </div>
                        </div>
                        <!--end user image section-->
                    </li>
                    <li class="sidebar-search">
                        <!-- search section-->
                        <div class="input-group custom-search-form">
                            <input type="text" class="form-control" placeholder="Search...">
                            <span class="input-group-btn">
                                <button class="btn btn-default" type="button">
                                    <i class="fa fa-search"></i>
                                </button>
                            </span>
                        </div>
                        <!--end search section-->
                    </li>
                                     
                     <li>
                         <form action="" method="post">
                         <button name="club" type="submit" align="center" class="button">My Club Status</button>
                        </form>
                    </li>
                    <li><form action="" method="post">
                         <button name="tree" type="submit" align="center" class="button">Downline</button>
                        </form>
                    </li>
                    <li>
                       <form action="" method="post">
                         <button name="earning" type="submit" align="center" class="button">My Ewallet</button>
                        </form>
                    </li>
                      <li>
                        <a href="tut?id=$Wealthclubmarketing"><i class="fa fa-edit fa-fw"></i>Tutorial</a>
                    </li> 
                   <li>
                        <a href="userprofile?id=$Wealthclubmarketing"><i class="fa fa-edit fa-fw"></i>My Profile</a>
                    </li> 
                    <li>
                        <a href="passchange?id=$Wealthclubmarketing"><i class="fa fa-edit fa-fw"></i>Change Password</a>
                    </li>       
                    <li>
                        <a href="logout"><i class="fa fa-edit fa-fw"></i>Logout</a>
                    </li> 
                                
                </ul>