diff --git a/e107_plugins/download/admin_download.php b/e107_plugins/download/admin_download.php index 31238ee94..3ef8144f6 100644 --- a/e107_plugins/download/admin_download.php +++ b/e107_plugins/download/admin_download.php @@ -11,8 +11,8 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/e107_plugins/download/admin_download.php,v $ -| $Revision: 1.4 $ -| $Date: 2009-07-15 23:28:46 $ +| $Revision: 1.5 $ +| $Date: 2009-07-18 19:04:04 $ | $Author: bugrain $ +----------------------------------------------------------------------------+ */ @@ -82,7 +82,13 @@ if (e_QUERY) unset($tmp); } - $adminDownload->observer(); +$adminDownload->observer(); + +if(isset($_POST['download_filter_list'])) +{ + echo $adminDownload->show_existing_items($action, $subAction, $id, 0, 10); + exit; +} if (isset($_POST['delete'])) { diff --git a/e107_plugins/download/handlers/adminDownload_class.php b/e107_plugins/download/handlers/adminDownload_class.php index fe5a29a69..40c76a33a 100644 --- a/e107_plugins/download/handlers/adminDownload_class.php +++ b/e107_plugins/download/handlers/adminDownload_class.php @@ -11,9 +11,9 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/e107_plugins/download/handlers/adminDownload_class.php,v $ -| $Revision: 1.8 $ -| $Date: 2009-07-17 07:53:13 $ -| $Author: e107coders $ +| $Revision: 1.9 $ +| $Date: 2009-07-18 19:04:04 $ +| $Author: bugrain $ | +----------------------------------------------------------------------------+ */ @@ -34,9 +34,9 @@ class adminDownload extends download $this->userclassOptions = 'blank,nobody,guest,public,main,admin,member,classes'; // Save basic search string - if (isset($_POST['download_search_submit'])) + if (isset($_POST['download-search-text'])) { - $this->searchField = $_POST['download_search']; + $this->searchField = $_POST['download-search-text']; } // Save advanced search criteria @@ -47,24 +47,57 @@ class adminDownload extends download } function show_filter_form($action, $subAction, $id, $from, $amount) { - global $mySQLdefaultdb, $pref; - $eform = new e_form(); + global $e107, $mySQLdefaultdb, $pref; + $frm = new e_form(); $filterColumns = ($pref['admin_download_disp'] ? explode("|",$pref['admin_download_disp']) : array("download_name","download_class")); + $jsfunc = $ajax + ? "e107Ajax.toggleUpdate('{$id}-iconpicker', '{$id}-iconpicker-cn', 'sc:iconpicker=".urlencode($sc_parameters)."', '{$id}-iconpicker-ajax', { overlayElement: '{$id}-iconpicker-button' })" + : "e107Helper.toggle('{$id}-iconpicker')"; + $url = $e107->url->getUrl('forum', 'thread', array('func' => 'view', 'id' => 123)); + $url = "admin_download.php"; // Search field $text .= " +
"; - // Advanced search fields {$showAdvancedSearch} + // Advanced search fields $text .= "
- @@ -1580,7 +1611,7 @@ class adminDownload extends download global $sql, $ns, $tp, $subAction, $id, $delete, $del_id, $admin_log; require_once(e_HANDLER."form_handler.php"); - $eform = new e_form(); + $frm = new e_form(); if ($delete == "mirror") { admin_update($sql -> db_Delete("download_mirror", "mirror_id=".$del_id), delete, DOWLAN_135); @@ -1694,7 +1725,7 @@ class adminDownload extends download ".DOWLAN_18." "; - $text .= $eform->bbarea('mirror_description',$mirror_description); + $text .= $frm->bbarea('mirror_description',$mirror_description); $text .= " diff --git a/e107_plugins/download/languages/English/admin_download.php b/e107_plugins/download/languages/English/admin_download.php index 518d436cf..2bcf7a660 100644 --- a/e107_plugins/download/languages/English/admin_download.php +++ b/e107_plugins/download/languages/English/admin_download.php @@ -4,8 +4,8 @@ | e107 website system - Language File. | | $Source: /cvs_backup/e107_0.8/e107_plugins/download/languages/English/admin_download.php,v $ -| $Revision: 1.5 $ -| $Date: 2009-07-16 23:07:31 $ +| $Revision: 1.6 $ +| $Date: 2009-07-18 19:04:04 $ | $Author: bugrain $ +----------------------------------------------------------------------------+ */ @@ -199,6 +199,7 @@ define("DOWLAN_194", "Search"); define("DOWLAN_195", "Mirror type"); define("DOWLAN_196", "list"); define("DOWLAN_197", "random"); +define("DOWLAN_198", "Filter"); define("DOWLAN_HELP_1", "Download Help"); define("DOWLAN_HELP_2", "

Create/edit a download.

Enter only one of: File, URL or Mirror.

Ensure you select a category, otherwise your download will not be visible on the downloads page.

");