<?php
include 'includes/dash_header.php';
include 'includes/dash_links.php';
include 'includes/db_connection.php';
?>


<div class="span8">
                    <div class="row-fluid">
                      <div class="span9">


                       



                        <form>
                      		<fieldset>
                      			<legend>Ringtones Store</legend>
                      			
                      		</fieldset>
                      	</form>

                      	
                        <?php
			$app_id = "app_id";
                        $query = "SELECT * FROM `app_store` WHERE `application` = 'ringtones' ORDER BY `app_id` DESC";
                        $result = mysql_query($query);
                        while ($row = mysql_fetch_array($result)) {
                          echo "<ul class='thumbnails'>";
                          echo "<li class='span7 offset2'>";
                          echo "<article class='thumbnail'>";
                          
				
                          echo "<source src='{$row['source_link']}' type='audio/mpeg'>";
                          echo "<embed height='50' width='50' src='{$row['source_link']}'>";
                          echo "</audio>";
			
			  echo "<source src='{$row['source_link']}' type='vedio/mpeg'>";
                          echo "<embed height='50' width='50' src='{$row['source_link']}'>";
                          echo "</vedio>";
                          

			  echo "<h4>{$row['App_Name']}</h4>";
                          echo "<p><strong>Description : </strong></p>";
                          echo "<p>{$row['App_Description']}</p>";
			echo "<p>Cost : {$row['App_Cost']} SDG</p>";
                                                 echo "<a href='download.php?id={$row['app_id']}&link={$row['download_Link']}' onclick='return confirm(\"Are sure you want do download\")'><button class='btn btn-primary'>Download</button></a>";
		        echo "<a href='{$row['download_Link']}'>    <button class='btn btn-danger'>Listen</button></a>";                        
			
			/*
			echo <a href= ""><img src="img/Listen.png" width=50 name="download"></a>	
                        
			  echo "<form action='ringtones.php' method='post' onsubmit='return confirm(\"Are You Sure You Want Download ?\")'>";
			
			echo "<input type='submit' name='Download' value='Download' class='btn btn-primary'>";
                          echo "</form>";
                          */
                          
                          echo "</article>";
                          echo "</li>";
                          echo "</ul>";
                        }


                        ?>
                      </div>

<?php
include 'includes/dash_footer.php';
?>
