<?php
include('other_header.php');
?>
	  <div class="container">

    <div class="text-center">
      <h1><?php echo $title; ?> <small>/ <?php echo $a193;?></small></h1>
    </div>

    <!-- BASE CSS   =========================================================== -->

    <!-- Tables -->

    <div class="row">
      <div class="col-md-8 col-md-offset-2">
		<div class="row">
			<div class="col-md-8 col-md-offset-2">
				<div id='text'>
					<?php echo $a194; ?></br>
					<?php echo $a196; ?>
				</div>
				<p>&nbsp;</p>
				<center>
			<table style="width:100%;max-width:100%" class="table table-bordered" data-effect="fade">
              <thead>
                <tr>
                  <th><?php echo $a060; ?></th>
                  <th><?php echo $a022; ?></th>
                  <th><?php echo $a062; ?></th>
                  <th><?php echo $a023; ?></th>
                </tr>
              </thead>
              <tbody>
				  <?php
$query = "SELECT * FROM Web_Countries";
$result = mysql_query($query) or die('Error, query failed');
$color="1";
// print the random numbers
while($row = mysql_fetch_array($result))
{
$ppvpub = $row['ppv'] * 1000;
$ppvbpub = $row['ppvb'] * 1000;
$ppvvideo = $row['ppvvideo'] * 1000;

if($color==1){
echo "<tr style='color: #FFF; background-color: #DF691A;'>
				<td>".$row['country']."</td>
				<td>
					<center>$ $ppvpub</center>
				</td>
				<td>
					<center>$ $ppvbpub</center>
				</td>
				<td>
					<center>$ $ppvvideo</center>
				</td>
			</tr>";
// Set $color==2, for switching to other color
$color="2";
}

// When $color not equal 1, use this table row color
else {
echo "<tr style='color: #FFF; background-color: #2B3E50;'>
				<td>".$row['country']."</td>
				<td>
					<center>$ $ppvpub</center>
				</td>
				<td>
					<center>$ $ppvbpub</center>
				</td>
				<td>
					<center>$ $ppvvideo</center>
				</td>
			</tr>";
// Set $color back to 1
$color="1";
}
}
?>
						</tbody>
					</table>
					</center>
					</div>
				</div>
			</div>
        </div>
      </div>
    </div>
</div>
<?php
// FOOTER FOR HOMEPGAGE
include('other_footer.php');
?>
 