1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 20:58:30 +01:00

Minor visual interface changes. Comments added and plugin-category added to xml.

This commit is contained in:
CaMer0n 2009-06-24 22:04:38 +00:00
parent cd8d4b46b3
commit cfbd2d6ac0
2 changed files with 29 additions and 12 deletions

View File

@ -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.1 $
| $Date: 2009-05-03 21:16:15 $
| $Author: bugrain $
| $Revision: 1.2 $
| $Date: 2009-06-24 22:04:37 $
| $Author: e107coders $
|
+----------------------------------------------------------------------------+
*/
@ -64,6 +64,15 @@ class adminDownload extends download
global $mySQLdefaultdb, $pref;
$eform = new e_form();
/* ************************************************************
This whole form needs a rework. We need to incorporate ajax usage extensively.
Displaying all filter fields at once should be avoided.
******************************************************************* */
$filterColumns = ($pref['admin_download_disp'] ? explode("|",$pref['admin_download_disp']) : array("download_name","download_class"));
// Filter fields
@ -102,7 +111,7 @@ class adminDownload extends download
<td>
";
$text .= $this->_getConditionList('download_filter[date_condition]', $this->filterFields['date_condition']);
$text .= $eform->datepicker('download_filter[date]', $this->filterFields['date']);
// $text .= $eform->datepicker('download_filter[date]', $this->filterFields['date']);
$text .= "
</td>
<td>Status</td>
@ -250,8 +259,10 @@ class adminDownload extends download
if ($dl_count = $sql->db_Select_gen($query))
{
$text .= $rs->form_open("post", e_SELF."?".e_QUERY, "myform")."
<table style='width:100%'>
<tr>
<table class='adminlist' style='width:100%'>
<thead>
<tr class='first last'>
<th>".DOWLAN_67."</th>
";
@ -269,11 +280,16 @@ class adminDownload extends download
}
}
$text .="<th>".LAN_OPTIONS."</th></tr>";
$text .="<th class='center'>".LAN_OPTIONS."</th></tr>
</thead>
<tbody>";
$rowStyle = "even";
while ($row = $sql->db_Fetch())
{
$text .= "<tr><td>".$row['download_id']."</td>";
$rowStyle = ($rowStyle == "odd") ? "even" : "odd";
$text .= "<tr class='{$rowStyle}'><td>".$row['download_id']."</td>";
// Display Chosen options
foreach($filterColumns as $disp)
@ -331,13 +347,13 @@ class adminDownload extends download
}
$text .= "
<td>
<td class='center'>
<a href='".e_SELF."?create.edit.".$row['download_id']."'>".ADMIN_EDIT_ICON."</a>
<input type='image' title='".LAN_DELETE."' name='delete[main_".$row['download_id']."]' src='".ADMIN_DELETE_ICON_PATH."' onclick=\"return jsconfirm('".$tp->toJS(DOWLAN_33." [ID: ".$row['download_id']." ]")."') \"/>
</td>
</tr>";
}
$text .= "</table></form>";
$text .= "</tbody></table></form>";
}
else
{ // 'No downloads yet'

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Id: plugin.xml,v 1.5 2009-05-04 20:09:45 bugrain Exp $ -->
<!-- $Id: plugin.xml,v 1.6 2009-06-24 22:04:38 e107coders Exp $ -->
<e107Plugin name="Download" version="1.0" compatibility="0.8" installRequired="true">
<author name="bugrain" url="http://e107.org"/>
<author name="e107devs" url="http://e107.org"/>
<description>DOWLAN_DESCRIPTION</description>
<folder>download</folder>
<installLanguageFile filename="languages/--LAN--/admin_download.php" />
@ -17,6 +17,7 @@
<iconSmall>images/downloads_16.png</iconSmall>
<caption>DOWLAN_CAPTION</caption>
<installDone>DOWLAN_INSTALL_DONE</installDone>
<category>content</category>
</administration>
<menuLink name="DOWLAN_29" url="download/download.php" perm="everyone"/>
<mainPrefs>