1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-02 20:57:26 +02: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). | GNU General Public License (http://gnu.org).
| |
| $Source: /cvs_backup/e107_0.8/e107_plugins/download/handlers/adminDownload_class.php,v $ | $Source: /cvs_backup/e107_0.8/e107_plugins/download/handlers/adminDownload_class.php,v $
| $Revision: 1.1 $ | $Revision: 1.2 $
| $Date: 2009-05-03 21:16:15 $ | $Date: 2009-06-24 22:04:37 $
| $Author: bugrain $ | $Author: e107coders $
| |
+----------------------------------------------------------------------------+ +----------------------------------------------------------------------------+
*/ */
@@ -64,6 +64,15 @@ class adminDownload extends download
global $mySQLdefaultdb, $pref; global $mySQLdefaultdb, $pref;
$eform = new e_form(); $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")); $filterColumns = ($pref['admin_download_disp'] ? explode("|",$pref['admin_download_disp']) : array("download_name","download_class"));
// Filter fields // Filter fields
@@ -102,7 +111,7 @@ class adminDownload extends download
<td> <td>
"; ";
$text .= $this->_getConditionList('download_filter[date_condition]', $this->filterFields['date_condition']); $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 .= " $text .= "
</td> </td>
<td>Status</td> <td>Status</td>
@@ -250,8 +259,10 @@ class adminDownload extends download
if ($dl_count = $sql->db_Select_gen($query)) if ($dl_count = $sql->db_Select_gen($query))
{ {
$text .= $rs->form_open("post", e_SELF."?".e_QUERY, "myform")." $text .= $rs->form_open("post", e_SELF."?".e_QUERY, "myform")."
<table style='width:100%'> <table class='adminlist' style='width:100%'>
<tr> <thead>
<tr class='first last'>
<th>".DOWLAN_67."</th> <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()) 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 // Display Chosen options
foreach($filterColumns as $disp) foreach($filterColumns as $disp)
@@ -331,13 +347,13 @@ class adminDownload extends download
} }
$text .= " $text .= "
<td> <td class='center'>
<a href='".e_SELF."?create.edit.".$row['download_id']."'>".ADMIN_EDIT_ICON."</a> <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']." ]")."') \"/> <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> </td>
</tr>"; </tr>";
} }
$text .= "</table></form>"; $text .= "</tbody></table></form>";
} }
else else
{ // 'No downloads yet' { // 'No downloads yet'

View File

@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?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"> <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> <description>DOWLAN_DESCRIPTION</description>
<folder>download</folder> <folder>download</folder>
<installLanguageFile filename="languages/--LAN--/admin_download.php" /> <installLanguageFile filename="languages/--LAN--/admin_download.php" />
@@ -17,6 +17,7 @@
<iconSmall>images/downloads_16.png</iconSmall> <iconSmall>images/downloads_16.png</iconSmall>
<caption>DOWLAN_CAPTION</caption> <caption>DOWLAN_CAPTION</caption>
<installDone>DOWLAN_INSTALL_DONE</installDone> <installDone>DOWLAN_INSTALL_DONE</installDone>
<category>content</category>
</administration> </administration>
<menuLink name="DOWLAN_29" url="download/download.php" perm="everyone"/> <menuLink name="DOWLAN_29" url="download/download.php" perm="everyone"/>
<mainPrefs> <mainPrefs>