[art-web] [admin] add a list of resolutions to background edit pages



commit f5b65d127793407f7a6e5a8c7bed8156f8c8ed15
Author: Thomas Wood <thos gnome org>
Date:   Sun Jan 3 18:33:33 2010 +0000

    [admin] add a list of resolutions to background edit pages

 admin.php |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/admin.php b/admin.php
index 2c477fc..85ec745 100644
--- a/admin.php
+++ b/admin.php
@@ -209,6 +209,18 @@ if ($edit)
       print ("<input name='$key' value='".htmlspecialchars ($value, ENT_QUOTES)."' size=50>");
   }
   print ('</table><input type="submit" name="save" value="Save"></form>');
+
+  /* print background resolutions */
+  if ($section == 'background')
+  {
+    print ("<b>Resolutions</b><ul>");
+    $res = mysql_query ("SELECT * FROM background_resolution WHERE backgroundID=$edit");
+    while ($row = mysql_fetch_assoc ($res))
+    {
+      print ("<li><a href=http://download.gnome.org/teams/art.gnome.org/backgrounds/{$row['filename']}>{$row['resolution']}</a>");
+    }
+    print ("</ul>");
+  }
 }
 else
 {



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