1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-04 21:57:51 +02:00

Some updates to start making filter list code more generic

This commit is contained in:
bugrain
2009-08-15 01:00:38 +00:00
parent 397175c178
commit 708f5780e3
4 changed files with 35 additions and 24 deletions

View File

@@ -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.11 $
| $Date: 2009-08-14 23:22:37 $
| $Revision: 1.12 $
| $Date: 2009-08-15 01:00:38 $
| $Author: bugrain $
+----------------------------------------------------------------------------+
*/
@@ -88,7 +88,7 @@ require_once (e_HANDLER.'message_handler.php');
$emessage = &eMessage::getInstance();
if(isset($_POST['download_filter_list']))
if(isset($_POST['filter_list']))
{
echo $adminDownload->show_existing_items($action, $subAction, $id, 0, 10);
exit;

View File

@@ -11,8 +11,8 @@
| GNU General Public License (http://gnu.org).
|
| $Source: /cvs_backup/e107_0.8/e107_plugins/download/handlers/adminDownload_class.php,v $
| $Revision: 1.16 $
| $Date: 2009-08-14 23:22:37 $
| $Revision: 1.17 $
| $Date: 2009-08-15 01:00:38 $
| $Author: bugrain $
|
+----------------------------------------------------------------------------+
@@ -51,23 +51,20 @@ class adminDownload extends download
$frm = new e_form();
$filterColumns = ($user_pref['admin_download_disp'] ? $user_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";
$url = $e107->url->getUrl('forum', 'thread', array('func' => 'view', 'id' => 123));
$url = "admin_download.php";
// Search field
$text .= "
<script type='text/javascript'>
</script>
<form method='post' action='".e_SELF."' class='e-show-if-js'>
<form method='post' action='".e_SELF."' class='e-show-if-js e-filter-form' id='jstarget-downloads-list'>
<div id='download_search'>
<fieldset>
<legend class='e-hideme'>".DOWLAN_194."</legend>
<table class='adminlist'>
<tr>
<td>".DOWLAN_198." ".$frm->text('download-search-text', $this->searchField, 50, array('size'=>50, 'other' => "onkeyup=\"{$jsfunc}\""))."&nbsp;<a href='#download_search#download_advanced_search' class='e-swapit'>Switch to Advanced-Search</a></td>
<td>".DOWLAN_198." ".$frm->text('download-search-text', $this->searchField, 50, array('size'=>50, 'class' => 'someclass'))."&nbsp;<a href='#download_search#download_advanced_search' class='e-swapit'>Switch to Advanced-Search</a></td>
</tr>
</table>