<?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>Themes Store</legend>
                      			
                      		</fieldset>
                      	</form>

                      	<?php

                        $query = "SELECT * FROM `app_store` WHERE `application` = 'Themes' 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 "<img src='{$row['source_link']}' />";
                          echo "<h4>{$row['App_Name']}</h4>";
                          echo "<p><strong>Description : </strong></p>";
                          echo "<p>{$row['App_Description']}</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 "<form action='Themes.php' method='post' onsubmit='return confirm(\"Are You Sure You Want Download ?\")'>";
  			  
                          echo "</form>";
                          */
                          echo "</article>";
                          echo "</li>";
                          echo "</ul>";
                        }


                        ?>


                       
                        


                      </div>

<?php
include 'includes/dash_footer.php';
?>
