<?php 
$sumfingIncl=true;
include '../../config.thing.php';
include '../../incl/translate.php';

$adm = get_adm_opts();

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

$prizes = array(
			'prize_1' => array(
				'amt' => (isset($adm->prize1_amount) ? $adm->prize1_amount : ""),
				'ttl' => (isset($adm->prize1_title) ? $adm->prize1_title : ""),
				'dsc' => (isset($adm->prize1_description) ? $adm->prize1_description : ""),
				'img' => (isset($adm->prize1_img) ? $adm->prize1_img : "")
			),
			
			'prize_2' => array(
				'amt' => (isset($adm->prize2_amount) ? $adm->prize2_amount : ""),
				'ttl' => (isset($adm->prize2_title) ? $adm->prize2_title : ""),
				'dsc' => (isset($adm->prize2_description) ? $adm->prize2_description : ""),
				'img' => (isset($adm->prize2_img) ? $adm->prize2_img : "")
			),
			
			'prize_3' => array(
				'amt' => (isset($adm->prize3_amount) ? $adm->prize3_amount : ""),
				'ttl' => (isset($adm->prize3_title) ? $adm->prize3_title : ""),
				'dsc' => (isset($adm->prize3_description) ? $adm->prize3_description : ""),
				'img' => (isset($adm->prize3_img) ? $adm->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
	}
 }?>

