<?
error_reporting(E_ALL ^ (E_NOTICE | E_WARNING));
//***************************************************
// http://www.scriptindonesia.com
// Solusi Hemat Script Bisnis Online Anda
// Menerima Jasa Pembuatan Website & Template Website
//***************************************************
?>

<!-- MITRA AKTIF AWAL -->
<!-- Info WebPro -->
<? include "infowebpro.php"; ?>

<h6><font color="#549423">Home / Mitra & Calon Mitra</font><br />
Anda telah login sebanyak : <font color="#0000FF"><?= $a[counter];?></font> kali</h6>
<hr />
<h3><font color="#FF0000">Mitra & Calon Mitra Anda</font></h3>
<h5><strong><?= $panggil ?> <font color="#0000FF"><?= $a[nama];?></font></strong> Yth,<br>
    Halaman ini untuk melihat data mitra aktif atau calon mitra bisnis Anda di <font color="#0000FF"><?= $_SESSION[user_domain] ?></font></h5>
<hr />

                    <div class="progress">
                        <div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100" style="width: 100%;">
                            <span><?= $a[nama];?> - <?= $a[kota];?> - <?= $a[propinsi];?></span>
                        </div>
                    </div>

<a  href="?m=tree"><input name="submit" type="submit" class="btn btn-danger" value="Semua"></a>&nbsp;&nbsp;&nbsp;<a  href="?m=treememberaktif"><input name="submit" type="submit" class="btn btn-danger" value="Mitra Aktif"></a>&nbsp;&nbsp;&nbsp;<a  href="?m=treememberfree"><input name="submit" type="submit" class="btn btn-danger" value="Calon Mitra"></a>
<br /><br />
<!-- /. ROW  -->
<?php
function anti_injection($data){
  $filter = mysql_real_escape_string(stripslashes(strip_tags(htmlspecialchars($data,ENT_QUOTES))));
  return $filter;
}

$sql  = mysql_query("select a.username, a.nama, a.status, a.blokir, a.hp, a.phone, a.email, a.tglaktif, a.upline, a.kota, b.sponsor from member as a inner join upline as b on a.username=b.username and b.upline0='$_SESSION[user_session]' and a.status='1' and a.blokir='0'");
?>

<? //AW1
switch ($page) {
	default :
?>

               <div class="row">
                <div class="col-md-12">
                    <!-- Form Elements -->
                    <div class="panel panel-default">
                        <div class="panel-heading">
                            <strong><font color="#ff6700">List Mitra Aktif :</font></strong>
                        </div>

                        <div class="panel-body">
                            <div class="table-responsive">
                                <table class="table table-striped table-bordered table-hover" id="dataTables-example">
                                    <thead>
                                        <tr>
                                            <th width="10">No.</th>
                                            <th>Username</th>
                                            <th>Nama</th>
                                            <th>Email</th>
                                            <th>HP</th>
                                            <th>Kota</th>
                                        </tr>
                                    </thead>



                                    <tbody>

<?
   		$n=1;
		while($r = mysql_fetch_array($sql)) {

?>
                                        <tr class="odd gradeX">
                                            <td><?= $n; ?></td>
                                            <td><?= $r[0]; ?></td>
                                            <td><?= $r[1]; ?></td>
                                            <td><?= $r[6]; ?></td>
                                            <td><?= $r[4]; ?></td>
                                            <td><?= $r[9]; ?></td>
                                        </tr>


<?
	$n++;
 }
?>

                                    </tbody>
                                </table>


                                </div>
                            </div>
                        </div>

                     <font color="#0000FF">Keterangan</font> : <br>
                     Untuk mengurutkan, silahkan klik judul kolom tabel diatas. silahkan klik <font color="#0000FF">No, Username, Nama, Email, HP, Kota</font>.<br>

                     <hr>
                     Terima Kasih<br />

                     <div class="bingkai-foto-8lg">
                          <center>
                              <img src="../images/logo.png" alt="<?= $_SESSION[user_domain] ?>" title="<?= $_SESSION[user_domain] ?> - <?= $_SESSION[user_caption] ?>">
                          </center>
                     </div>

                     <!--<img src="../images/logo.png" border="1"><br />-->
                     <a href="http://<?= $_SESSION[user_domain] ?>/<?= $_SESSION[user_session] ?>" target="_blank"><font color="#0000FF"><?= $_SESSION[user_domain] ?></font></a><br>
                     Email : <a href="mailto:<?= $_SESSION[admin_email] ?>"><font color="#0000FF"><?= $_SESSION[admin_email] ?></font></a><br><br>
                     Web Support Bisnis Team <font color=#0000ff><?= $_SESSION[user_title1] ?> <?= $_SESSION[user_title2] ?></font><br />
                     <?= $_SESSION[user_caption] ?><br />
                     design website by <a href="http://www.<?= $set_develop ?>/" target="_blank"><font color="#ff6700">www.<?= $set_develop ?></font></a><br /><br />

                    </div>
                     <!-- End Form Elements -->
                </div>

<? // AW3
	break;
}
?>