art-web r565 - branches/art-hub/views



Author: thos
Date: Sun Dec  7 18:34:20 2008
New Revision: 565
URL: http://svn.gnome.org/viewvc/art-web?rev=565&view=rev

Log:
Use a combo box to list background resolutions


Modified:
   branches/art-hub/views/backgrounds.php

Modified: branches/art-hub/views/backgrounds.php
==============================================================================
--- branches/art-hub/views/backgrounds.php	(original)
+++ branches/art-hub/views/backgrounds.php	Sun Dec  7 18:34:20 2008
@@ -80,10 +80,16 @@
     <br>
     <img width="96" alt="Preview" src='/images/thumbnails/backgrounds/<?php echo $row['thumbnail_filename']?>'>
     <br>
+    <form method="get" action="/download">
+    <select name="d">
      <?php foreach ($bg_res[$row['backgroundID']] as $res):?>
-       <a href="/download/backgrounds/<?php printf ("%s/%s/%s", $row['category'], $res['background_resolutionID'], $res['filename'])?>">
-       <?php echo $res['resolution']?></a><br>
+       <option value="/backgrounds/<?php printf ("%s/%s/%s", $row['category'], $res['background_resolutionID'], $res['filename'])?>">
+     <?php echo $res['resolution']?>
+       </option>
      <?php endforeach ?>
+    </select>
+    <input type="submit" value="Go">
+    </form>
 </div>
 <?php endforeach ?>
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]