<?php
// INCLUDE HEADER IN PAGE
include('other_header.php');
// GET CURRENT DATE AND TIME
$date = date('Y-m-d H:i:s');
if(isset($_POST['success'])) {
	if($_POST['success'] == 'loggedin') {
	?>
	<div style="margin-top: -80px;" class="alert alert-success" role="alert">
		<strong>Well done!</strong> Successfully logged in.
	</div>
	<?php
	}
}
if($sa['firstrun'] == '1') {
	?>
	<form action='admin.Firstrun' method='post' name='frm'>
		<input type='hidden' name='firstrun' value='1'>
	</form>
	<script language="JavaScript">
		document.frm.submit();
	</script>
	<?php
	}
?>
  <div class="container">
    <div class="text-center">
      <h1><?php echo $title; ?>
      	<small>/Active is: Admin Account
			</small>
		</h1>
 	 </div>
		</br>
	<div class="text-center">
      <h1><small>Publisher's account</small></h1>
 	</div>
		<div class="col-sm-4">
          <div class="panel panel-default">
            <div class="panel-heading">
              <h3 class="panel-title">Admins</h3>
            </div>
            <div class="panel-body">
            	<?php echo $stats3;?>
            </div>
          </div>
          <div class="panel panel-default">
            <div class="panel-heading">
              <h3 class="panel-title">Publishers</h3>
            </div>
            <div class="panel-body">
            	<?php echo $stats2;?>
            </div>
          </div>
          <div class="panel panel-default">
            <div class="panel-heading">
              <h3 class="panel-title">Advertisers</h3>
            </div>
            <div class="panel-body">
            	<?php echo $stats1;?>
            </div>
          </div>
          <div class="panel panel-default">
            <div class="panel-heading">
              <h3 class="panel-title">Payment managers</h3>
            </div>
            <div class="panel-body">
            	<?php echo $stats4;?>
            </div>
          </div>
          <div class="panel panel-default">
            <div class="panel-heading">
              <h3 class="panel-title">Supporters</h3>
            </div>
            <div class="panel-body">
            	<?php echo $stats5;?>
            </div>
          </div>
          <div class="panel panel-default">
            <div class="panel-heading">
              <h3 class="panel-title">Interstitial Ads</h3>
            </div>
            <div class="panel-body">
            	<?php echo $stats13;?>
            </div>
          </div>
        </div>
        <div class="col-sm-4">
          <div class="panel panel-default">
            <div class="panel-heading">
              <h3 class="panel-title">Unprocessed withdrawals</h3>
            </div>
            <div class="panel-body">
            	<?php echo $stats18;?>
            </div>
          </div>
          <div class="panel panel-default">
            <div class="panel-heading">
              <h3 class="panel-title">Processed withdrawals</h3>
            </div>
            <div class="panel-body">
            	<?php echo $stats17;?>
            </div>
          </div>
          <div class="panel panel-default">
            <div class="panel-heading">
              <h3 class="panel-title">Themes</h3>
            </div>
            <div class="panel-body">
            	<?php echo $stats20;?>
            </div>
          </div>
          <div class="panel panel-default">
            <div class="panel-heading">
              <h3 class="panel-title">Registered Advertisers Today</h3>
            </div>
            <div class="panel-body">
            	<?php echo $stats22;?>
            </div>
          </div>
          <div class="panel panel-default">
            <div class="panel-heading">
              <h3 class="panel-title">Registered Publishers Today</h3>
            </div>
            <div class="panel-body">
            	<?php echo $stats21;?>
            </div>
          </div>
          <div class="panel panel-default">
            <div class="panel-heading">
              <h3 class="panel-title">Video Ads</h3>
            </div>
            <div class="panel-body">
            	<?php echo $stats14;?>
            </div>
          </div>
        </div>
        <div class="col-sm-4">
          <div class="panel panel-default">
            <div class="panel-heading">
              <h3 class="panel-title">Links</h3>
            </div>
            <div class="panel-body">
            	<?php echo $stats6;?>
            </div>
          </div>
          <div class="panel panel-default">
            <div class="panel-heading">
              <h3 class="panel-title">Advertisements</h3>
            </div>
            <div class="panel-body">
            	<?php echo $stats10;?>
            </div>
          </div>
          <div class="panel panel-default">
            <div class="panel-heading">
              <h3 class="panel-title">Unprocessed ads</h3>
            </div>
            <div class="panel-body">
            	<?php echo $stats12;?>
            </div>
          </div>
          <div class="panel panel-default">
            <div class="panel-heading">
              <h3 class="panel-title">Approved ads</h3>
            </div>
            <div class="panel-body">
            	<?php echo $stats11;?>
            </div>
          </div>
          <div class="panel panel-default">
            <div class="panel-heading">
              <h3 class="panel-title">Front Pages</h3>
            </div>
            <div class="panel-body">
            	<?php echo $stats19;?>
            </div>
          </div>
          <div class="panel panel-default">
            <div class="panel-heading">
              <h3 class="panel-title">Banner Ads</h3>
            </div>
            <div class="panel-body">
            	<?php echo $stats9;?>
            </div>
          </div>
        </div>
       
</div>

<?php
include('other_footer.php');
?>
