<?php 
$sumfingIncl=true;
include '../config.thing.php';
$set = get_adm_opts();
include 'translate.php';

echo '<h3>'. $set->prize_page_title .'</h3>';

$prizes = array(
			'prize_1' => array(
				'amt' => (isset($set->prize1_amount) ? $set->prize1_amount : ""),
				'ttl' => (isset($set->prize1_title) ? $set->prize1_title : ""),
				'dsc' => (isset($set->prize1_description) ? $set->prize1_description : ""),
				'img' => (isset($set->prize1_img) ? $set->prize1_img : "")
			),
			
			'prize_2' => array(
				'amt' => (isset($set->prize2_amount) ? $set->prize2_amount : ""),
				'ttl' => (isset($set->prize2_title) ? $set->prize2_title : ""),
				'dsc' => (isset($set->prize2_description) ? $set->prize2_description : ""),
				'img' => (isset($set->prize2_img) ? $set->prize2_img : "")
			),
			
			'prize_3' => array(
				'amt' => (isset($set->prize3_amount) ? $set->prize3_amount : ""),
				'ttl' => (isset($set->prize3_title) ? $set->prize3_title : ""),
				'dsc' => (isset($set->prize3_description) ? $set->prize3_description : ""),
				'img' => (isset($set->prize3_img) ? $set->prize3_img : "")
			)
);
?>
<link href="../bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css" />

<?php
foreach($prizes as $val) { 
	if(($val['ttl'] != "") && ($val['amt'] != "") && ($val['amt'] != 0)) {
?>
        <div class="row-fluid">
        <hr>
          <div class="thumbnails">
            <ul class="thumbnails">
                 <!-- Picture -->
                 <?php if($val['img'] != "") {?>     
                 <li class="span3">
                     <div class="thumbnail">
                         <img src="uploads/<?php echo $val['img'];?>" alt="">
                     </div>
                 </li>
                 <?php }?>
                <!-- Picture -->
                
                <!-- Title & Description -->
                <li class="span7">
                    
                        <?php 
						$amt = ($val['amt'] > 1) ? $val['amt'] . " &times; " : "";
						echo "<h3>" . $amt . $val['ttl'] . "</h3>";
						if($val['dsc'] != "") {
							echo $val['dsc'];
						}?>
                    
                </li>
                <!-- Title & Description -->
                
            </ul>
        </div>
    <?php
	}
 }?>

