diff --git a/e107_admin/image.php b/e107_admin/image.php
index 987bcdd50..c56bf027b 100644
--- a/e107_admin/image.php
+++ b/e107_admin/image.php
@@ -397,13 +397,12 @@ class media_admin_ui extends e_admin_ui
-
Filter:
-
";
+ ";
// This should really be replaced with the generic LIST function, but with it's own template for markup.
$text .= e107::getMedia()->mediaSelect($this->getQuery('for'),$this->getQuery('tagid')); // eg. news, news-thumbnail
- $text .= "
+ $text .= "
diff --git a/e107_handlers/media_class.php b/e107_handlers/media_class.php
index 04cf95760..12b301551 100644
--- a/e107_handlers/media_class.php
+++ b/e107_handlers/media_class.php
@@ -334,45 +334,58 @@ class e_media
public function mediaSelect($cat='',$tagid=null,$att=null)
{
- $onclick = null;
+ $onclick = null; // option to override onclick behavior. See ibrowser.php
- $cat = ($cat) ? $cat."+" : "";
- parse_str($att);
+ $cat = ($cat) ? $cat."+" : ""; // the '+' loads category '_common' as well as the chosen category.
- $images = $this->getImages($cat,0,30);
- $att = 'aw=120&ah=100';
+ parse_str($att); // grab 'onclick' .
+ // $total_images = $this->getImages($cat); // for use by next/prev in filter at some point.
+ $images = $this->getImages($cat,0,30);
+ $att = 'aw=120&ah=100';
+ $prevId = $tagid."_prev";
+
+ // EXAMPLE of FILTER GUI.
+ // This filter should run independently of admin_ui so that it can also be utilized by ibrowser.php
+ $text .= "
Filter: ";
+ $text .= " "; // Manual filter, if onkeyup ajax fails for some reason.
+ $text .= ""; // see previous page of images.
+ $text .= ""; // see next page of images.
+ $text .= " Displaying 0-30 of 150 images.