1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-12 18:46:20 +02:00

* Search form labels moved to language file

* Refined basic/advanced search show/hide - now uses CSS and JavaScript
* Some layout modifications to download list table and advanced search form
This commit is contained in:
bugrain
2009-07-16 23:07:31 +00:00
parent 135f93dac0
commit 1c89ed5663
3 changed files with 147 additions and 81 deletions

View File

@ -11,8 +11,8 @@
| 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.5 $ | $Revision: 1.6 $
| $Date: 2009-07-15 23:28:46 $ | $Date: 2009-07-16 23:07:30 $
| $Author: bugrain $ | $Author: bugrain $
| |
+----------------------------------------------------------------------------+ +----------------------------------------------------------------------------+
@ -51,7 +51,6 @@ class adminDownload extends download
$eform = new e_form(); $eform = new e_form();
$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"));
print_r($this->advancedSearchFields);
if ($this->advancedSearchFields) if ($this->advancedSearchFields)
{ {
$showBasicSearch = " style='display:none'"; $showBasicSearch = " style='display:none'";
@ -65,7 +64,8 @@ class adminDownload extends download
// Search field // Search field
$text .= " $text .= "
<form method='post' action='".e_SELF."'> <form method='post' action='".e_SELF."'>
<fieldset id='download_search'{$showBasicSearch}> <div id='download_search'{$showBasicSearch}>
<fieldset>
<legend class='e-hideme'>".DOWLAN_194."</legend> <legend class='e-hideme'>".DOWLAN_194."</legend>
<table class='adminform'> <table class='adminform'>
<tr> <tr>
@ -77,32 +77,58 @@ class adminDownload extends download
<div class='buttons-bar center'> <div class='buttons-bar center'>
<button type='submit' class='update' name='download_search_submit' value='".DOWLAN_51."'><span>".DOWLAN_51."</span></button> <button type='submit' class='update' name='download_search_submit' value='".DOWLAN_51."'><span>".DOWLAN_51."</span></button>
<br/> <br/>
<a href='#' onclick='$(\"download_search\").hide();$(\"download_advanced_search\").show();return false;'>Advanced search</a> <a href='#download_search#download_advanced_search' class='e-swapit'>Advanced search</a>
</div> </div>
</fieldset> </fieldset>
</div>
</form> </form>
"; ";
// Advanced search fields // Advanced search fields
$text .= " $text .= "
<form method='post' action='".e_SELF."'> <form method='post' action='".e_SELF."'>
<fieldset id='download_advanced_search'{$showAdvancedSearch}> <div id='download_advanced_search'{$showAdvancedSearch}>
<fieldset>
<legend class='e-hideme'>".DOWLAN_183."</legend> <legend class='e-hideme'>".DOWLAN_183."</legend>
<table class='adminform'> <table class='adminform'>
<colgroup> <colgroup>
<col style='width:8%;'/> <col style='width:15%;'/>
<col style='width:20%;'/> <col style='width:35%;'/>
<col style='width:8%;'/> <col style='width:15%;'/>
<col style='width:36%;'/> <col style='width:35%;'/>
<col style='width:8%;'/>
<col style='width:20%;'/>
</colgroup> </colgroup>
<tr> <tr>
<td>Name</td><td><input class='tbox' type='text' name='download_advanced_search[name]' size='20' value='{$this->advancedSearchFields['name']}' maxlength='50'/></td> <td>".DOWLAN_12."</td>
<td>Category</td><td> <td><input class='tbox' type='text' name='download_advanced_search[name]' size='30' value='{$this->advancedSearchFields['name']}' maxlength='50'/></td>
<td>".DOWLAN_18."</td>
<td><input class='tbox' type='text' name='download_advanced_search[description]' size='50' value='{$this->advancedSearchFields['description']}' maxlength='50'/></td>
</tr>
<tr>
<td>".DOWLAN_11."</td>
<td>
"; ";
$text .= $this->getCategorySelectList($this->advancedSearchFields['category'], true, false, '&nbsp;', 'download_advanced_search[category]'); $text .= $this->getCategorySelectList($this->advancedSearchFields['category'], true, false, '&nbsp;', 'download_advanced_search[category]');
$text .= "</td> $text .= " </td>
<td>Filesize</td> <td>".DOWLAN_149."</td>
<td><input class='tbox' type='text' name='download_advanced_search[url]' size='50' value='{$this->advancedSearchFields['url']}' maxlength='50'/></td>
</tr>
<tr>
<td>".DOWLAN_182."</td>
<td>
";
$text .= $this->_getConditionList('download_advanced_search[date_condition]', $this->advancedSearchFields['date_condition']);
//TODO $text .= $eform->datepicker('download_advanced_search[date]', $this->advancedSearchFields['date']);
$text .= "//TODO";
$text .= "
</td>
<td>".DOWLAN_21."</td>
<td>
<select name='download_advanced_search[status]' class='tbox'>";
$text .= $this->_getStatusList('download_advanced_search[status]', $this->advancedSearchFields['status']);
$text .= " </select>
</td>
</tr>
<tr>
<td>".DOWLAN_66."</td>
<td> <td>
"; ";
$text .= $this->_getConditionList('download_advanced_search[filesize_condition]', $this->advancedSearchFields['filesize_condition']); $text .= $this->_getConditionList('download_advanced_search[filesize_condition]', $this->advancedSearchFields['filesize_condition']);
@ -114,48 +140,36 @@ class adminDownload extends download
<option value='1048576' ".($this->advancedSearchFields['filesize_units'] == '1048576' ? " selected='selected' " : "")." >Mb</option> <option value='1048576' ".($this->advancedSearchFields['filesize_units'] == '1048576' ? " selected='selected' " : "")." >Mb</option>
</select> </select>
</td> </td>
</tr> <td>".DOWLAN_43."</td>
<tr>
<td>Date</td>
<td> <td>
"; ";
$text .= $this->_getConditionList('download_advanced_search[date_condition]', $this->advancedSearchFields['date_condition']); $text .= $eform->uc_select('download_advanced_search[visible]', $this->advancedSearchFields['visible'], $this->userclassOptions);
//TODO $text .= $eform->datepicker('download_advanced_search[date]', $this->advancedSearchFields['date']);
$text .= "//TODO";
$text .= " $text .= "
</td> </td>
<td>Status</td> </tr>
<td> <tr>
<select name='download_advanced_search[status]' class='tbox'>"; <td>".DOWLAN_29."</td>
$text .= $this->_getStatusList('download_advanced_search[status]', $this->advancedSearchFields['status']);
$text .= " </select>
</td>
<td>Requested</td>
<td> <td>
"; ";
$text .= $this->_getConditionList('download_advanced_search[requested_condition]', $this->advancedSearchFields['requested_condition']); $text .= $this->_getConditionList('download_advanced_search[requested_condition]', $this->advancedSearchFields['requested_condition']);
$text .= " <input class='tbox' type='text' name='download_advanced_search[requested]' size='6' value='{$this->advancedSearchFields['requested']}' maxlength='6'/> times $text .= " <input class='tbox' type='text' name='download_advanced_search[requested]' size='6' value='{$this->advancedSearchFields['requested']}' maxlength='6'/> times
</td> </td>
</tr> <td>".DOWLAN_113."</td>
<tr>
<td>Visibility</td>
<td>
";
$text .= $eform->uc_select('download_advanced_search[visible]', $this->advancedSearchFields['visible'], $this->userclassOptions);
//TODO language file stuff
$text .= "
</td>
<td>URL</td><td><input class='tbox' type='text' name='download_advanced_search[url]' size='50' value='{$this->advancedSearchFields['url']}' maxlength='50'/></td>
<td>Author</td><td><input class='tbox' type='text' name='download_advanced_search[author]' size='20' value='{$this->advancedSearchFields['author']}' maxlength='50'/></td>
</tr>
<tr>
<td>Class</td>
<td> <td>
"; ";
$text .= $eform->uc_select('download_advanced_search[class]', $this->advancedSearchFields['class'], $this->userclassOptions); $text .= $eform->uc_select('download_advanced_search[class]', $this->advancedSearchFields['class'], $this->userclassOptions);
$text .= " $text .= "
</td> </td>
<td>Description</td><td><input class='tbox' type='text' name='download_advanced_search[description]' size='50' value='{$this->advancedSearchFields['description']}' maxlength='50'/></td> </tr>
<tr>
<td>".DOWLAN_15."</td>
<td><input class='tbox' type='text' name='download_advanced_search[author]' size='30' value='{$this->advancedSearchFields['author']}' maxlength='50'/></td>
<td>".DOWLAN_16."</td>
<td><input class='tbox' type='text' name='download_advanced_search[author_email]' size='30' value='{$this->advancedSearchFields['author']}' maxlength='50'/></td>
</tr>
<tr>
<td>".DOWLAN_17."</td>
<td><input class='tbox' type='text' name='download_advanced_search[author_website]' size='30' value='{$this->advancedSearchFields['author']}' maxlength='50'/></td>
<td>&nbsp;</td> <td>&nbsp;</td>
<td>&nbsp;</td> <td>&nbsp;</td>
</tr> </tr>
@ -163,9 +177,10 @@ class adminDownload extends download
<div class='buttons-bar center'> <div class='buttons-bar center'>
<button type='submit' class='update' name='download_advanced_search_submit' value='".DOWLAN_51."'><span>".DOWLAN_51."</span></button> <button type='submit' class='update' name='download_advanced_search_submit' value='".DOWLAN_51."'><span>".DOWLAN_51."</span></button>
<br/> <br/>
<a href='#' onclick='$(\"download_search\").show();$(\"download_advanced_search\").hide();return false;'>Basic search</a> <a href='#download_advanced_search#download_search' class='e-swapit'>Advanced search</a>
</div> </div>
</fieldset> </fieldset>
</div>
</form>"; </form>";
return $text; return $text;
@ -179,24 +194,24 @@ class adminDownload extends download
$sortdirection = $id=="asc" ? "asc" : "desc"; $sortdirection = $id=="asc" ? "asc" : "desc";
$sort_link = $sortdirection == 'asc' ? 'desc' : 'asc'; $sort_link = $sortdirection == 'asc' ? 'desc' : 'asc';
$columnInfo = array( $columnInfo = array(
"download_id" => array("title"=>DOWLAN_67, "type"=>"", "width"=>"auto", "thclass"=>"", "url"=>e_SELF."?main.download_id.{$sort_link}.{$from}", "forced"=>true), "download_id" => array("title"=>DOWLAN_67, "type"=>"", "width"=>"auto", "thclass"=>"center first", "url"=>e_SELF."?main.download_id.{$sort_link}.{$from}", "forced"=>true),
"download_name" => array("title"=>DOWLAN_12, "type"=>"", "width"=>"auto", "thclass"=>"", "url"=>e_SELF."?main.download_name.{$sort_link}.{$from}"), "download_name" => array("title"=>DOWLAN_12, "type"=>"", "width"=>"auto", "thclass"=>"", "url"=>e_SELF."?main.download_name.{$sort_link}.{$from}"),
"download_url" => array("title"=>DOWLAN_13, "type"=>"", "width"=>"auto", "thclass"=>"", "url"=>e_SELF."?main.download_url.{$sort_link}.{$from}"), "download_url" => array("title"=>DOWLAN_13, "type"=>"", "width"=>"auto", "thclass"=>"", "url"=>e_SELF."?main.download_url.{$sort_link}.{$from}"),
"download_author" => array("title"=>DOWLAN_15, "type"=>"", "width"=>"auto", "thclass"=>"", "url"=>e_SELF."?main.download_author.{$sort_link}.{$from}"), "download_author" => array("title"=>DOWLAN_15, "type"=>"", "width"=>"auto", "thclass"=>"", "url"=>e_SELF."?main.download_author.{$sort_link}.{$from}"),
"download_author_email" => array("title"=>DOWLAN_16, "type"=>"", "width"=>"auto", "thclass"=>"", "url"=>e_SELF."?main.download_author_email.{$sort_link}.{$from}"), "download_author_email" => array("title"=>DOWLAN_16, "type"=>"", "width"=>"auto", "thclass"=>"", "url"=>e_SELF."?main.download_author_email.{$sort_link}.{$from}"),
"download_author_website" => array("title"=>DOWLAN_17, "type"=>"", "width"=>"auto", "thclass"=>"", "url"=>e_SELF."?main.download_author_website.{$sort_link}.{$from}"), "download_author_website" => array("title"=>DOWLAN_17, "type"=>"", "width"=>"auto", "thclass"=>"", "url"=>e_SELF."?main.download_author_website.{$sort_link}.{$from}"),
"download_description" => array("title"=>DOWLAN_18, "type"=>"", "width"=>"auto", "thclass"=>"", "url"=>e_SELF."?main.download_description.{$sort_link}.{$from}"), "download_description" => array("title"=>DOWLAN_18, "type"=>"", "width"=>"auto", "thclass"=>"", "url"=>e_SELF."?main.download_description.{$sort_link}.{$from}"),
"download_filesize" => array("title"=>DOWLAN_66, "type"=>"", "width"=>"auto", "thclass"=>"", "url"=>e_SELF."?main.download_filesize.{$sort_link}.{$from}"), "download_filesize" => array("title"=>DOWLAN_66, "type"=>"", "width"=>"auto", "thclass"=>"right", "url"=>e_SELF."?main.download_filesize.{$sort_link}.{$from}"),
"download_requested" => array("title"=>DOWLAN_29, "type"=>"", "width"=>"auto", "thclass"=>"", "url"=>e_SELF."?main.download_requested.{$sort_link}.{$from}"), "download_requested" => array("title"=>DOWLAN_29, "type"=>"", "width"=>"auto", "thclass"=>"center", "url"=>e_SELF."?main.download_requested.{$sort_link}.{$from}"),
"download_category" => array("title"=>DOWLAN_11, "type"=>"", "width"=>"auto", "thclass"=>"", "url"=>e_SELF."?main.download_category.{$sort_link}.{$from}"), "download_category" => array("title"=>DOWLAN_11, "type"=>"", "width"=>"auto", "thclass"=>"", "url"=>e_SELF."?main.download_category.{$sort_link}.{$from}"),
"download_active" => array("title"=>DOWLAN_21, "type"=>"", "width"=>"auto", "thclass"=>"", "url"=>e_SELF."?main.download_active.{$sort_link}.{$from}"), "download_active" => array("title"=>DOWLAN_21, "type"=>"", "width"=>"auto", "thclass"=>"center", "url"=>e_SELF."?main.download_active.{$sort_link}.{$from}"),
"download_datestamp" => array("title"=>DOWLAN_182, "type"=>"", "width"=>"auto", "thclass"=>"", "url"=>e_SELF."?main.download_datestamp.{$sort_link}.{$from}"), "download_datestamp" => array("title"=>DOWLAN_182, "type"=>"", "width"=>"auto", "thclass"=>"", "url"=>e_SELF."?main.download_datestamp.{$sort_link}.{$from}"),
"download_thumb" => array("title"=>DOWLAN_20, "type"=>"", "width"=>"auto", "thclass"=>"", "url"=>e_SELF."?main.download_thumb.{$sort_link}.{$from}"), "download_thumb" => array("title"=>DOWLAN_20, "type"=>"", "width"=>"auto", "thclass"=>"center", "url"=>e_SELF."?main.download_thumb.{$sort_link}.{$from}"),
"download_image" => array("title"=>DOWLAN_19, "type"=>"", "width"=>"auto", "thclass"=>"", "url"=>e_SELF."?main.download_image.{$sort_link}.{$from}"), "download_image" => array("title"=>DOWLAN_19, "type"=>"", "width"=>"auto", "thclass"=>"", "url"=>e_SELF."?main.download_image.{$sort_link}.{$from}"),
"download_comment" => array("title"=>DOWLAN_, "type"=>"", "width"=>"auto", "thclass"=>"", "url"=>e_SELF."?main.download_comment.{$sort_link}.{$from}"), "download_comment" => array("title"=>DOWLAN_102, "type"=>"", "width"=>"auto", "thclass"=>"center", "url"=>e_SELF."?main.download_comment.{$sort_link}.{$from}"),
"download_class" => array("title"=>DOWLAN_113, "type"=>"", "width"=>"auto", "thclass"=>"", "url"=>e_SELF."?main.download_class.{$sort_link}.{$from}"), "download_class" => array("title"=>DOWLAN_113, "type"=>"", "width"=>"auto", "thclass"=>"", "url"=>e_SELF."?main.download_class.{$sort_link}.{$from}"),
"download_mirror" => array("title"=>DOWLAN_128, "type"=>"", "width"=>"auto", "thclass"=>"", "url"=>e_SELF."?main.download_mirror.{$sort_link}.{$from}"), "download_mirror" => array("title"=>DOWLAN_128, "type"=>"", "width"=>"auto", "thclass"=>"", "url"=>e_SELF."?main.download_mirror.{$sort_link}.{$from}"),
"download_mirror_type" => array("title"=>DOWLAN_, "type"=>"", "width"=>"auto", "thclass"=>"", "url"=>e_SELF."?main.download_mirror_type.{$sort_link}.{$from}"), "download_mirror_type" => array("title"=>DOWLAN_195, "type"=>"", "width"=>"auto", "thclass"=>"", "url"=>e_SELF."?main.download_mirror_type.{$sort_link}.{$from}"),
"download_visible" => array("title"=>DOWLAN_43, "type"=>"", "width"=>"auto", "thclass"=>"", "url"=>e_SELF."?main.download_visible.{$sort_link}.{$from}"), "download_visible" => array("title"=>DOWLAN_43, "type"=>"", "width"=>"auto", "thclass"=>"", "url"=>e_SELF."?main.download_visible.{$sort_link}.{$from}"),
"options" => array("title"=>LAN_OPTIONS, "width"=>"auto", "thclass"=>"center last", "url"=>"", "forced"=>true) "options" => array("title"=>LAN_OPTIONS, "width"=>"auto", "thclass"=>"center last", "url"=>"", "forced"=>true)
); );
@ -290,49 +305,59 @@ class adminDownload extends download
while ($row = $sql->db_Fetch()) while ($row = $sql->db_Fetch())
{ {
$mirror = strlen($row['download_mirror']) > 0;
$rowStyle = ($rowStyle == "odd") ? "even" : "odd"; $rowStyle = ($rowStyle == "odd") ? "even" : "odd";
$text .= "<tr class='{$rowStyle}'><td>".$row['download_id']."</td>"; $text .= "<tr class='{$rowStyle}'><td>".$row['download_id']."</td>";
// Display Chosen options // Display Chosen options
foreach($filterColumns as $disp) foreach($filterColumns as $disp)
{ {
$text .= "<td>";
switch ($disp) switch ($disp)
{ {
case "download_name" : case "download_name" :
$text .= "<td>";
$text .= "<a href='".e_PLUGIN."download/download.php?view.".$row['download_id']."'>".$tp->toHTML($row['download_name'])."</a>"; $text .= "<a href='".e_PLUGIN."download/download.php?view.".$row['download_id']."'>".$tp->toHTML($row['download_name'])."</a>";
break; break;
case "download_category" : case "download_category" :
$text .= "<td>";
$text .= $tp->toHTML($row['download_category_name']); $text .= $tp->toHTML($row['download_category_name']);
break; break;
case "download_datestamp" : case "download_datestamp" :
global $gen; global $gen;
$text .= "<td>";
$text .= ($row[$disp]) ? $gen->convert_date($row[$disp],'short') : ""; $text .= ($row[$disp]) ? $gen->convert_date($row[$disp],'short') : "";
break; break;
case "download_class" : case "download_class" :
case "download_visible" : case "download_visible" :
$text .= "<td>";
$text .= r_userclass_name($row[$disp])."&nbsp;"; $text .= r_userclass_name($row[$disp])."&nbsp;";
break; break;
case "download_filesize" : case "download_filesize" :
$text .= ($row[$disp]) ? $this->e107->parseMemorySize(($row[$disp])) : ""; $text .= "<td class='right'>";
//$text .= ($row[$disp]) ? $this->e107->parseMemorySize(($row[$disp])) : "";
$text .= ($row[$disp]) ? (intval($row[$disp])) : "";
break; break;
case "download_thumb" : case "download_thumb" :
$text .= "<td>";
$text .= ($row[$disp]) ? "<img src='".e_FILE."downloadthumbs/".$row[$disp]."' alt=''/>" : ""; $text .= ($row[$disp]) ? "<img src='".e_FILE."downloadthumbs/".$row[$disp]."' alt=''/>" : "";
break; break;
case "download_image" : case "download_image" :
$text .= "<td>";
$text .= "<a rel='external' href='".e_FILE."downloadimages/".$row[$disp]."' >".$row[$disp]."</a>"; $text .= "<a rel='external' href='".e_FILE."downloadimages/".$row[$disp]."' >".$row[$disp]."</a>";
break; break;
case "download_description" : case "download_description" :
$text .= "<td>";
$text .= $tp->toHTML($row[$disp],TRUE); $text .= $tp->toHTML($row[$disp],TRUE);
break; break;
case "download_active" : case "download_active" :
$text .= "<td class='center'>";
if ($row[$disp]== 1) if ($row[$disp]== 1)
{ {
$text .= "<img src='".ADMIN_TRUE_ICON_PATH."' title='".DOWLAN_123."' alt='' style='cursor:help'/>"; $text .= "<img src='".ADMIN_TRUE_ICON_PATH."' title='".DOWLAN_123."' alt='' style='cursor:help'/>";
} }
elseif ($row[$disp]== 2) elseif ($row[$disp]== 2)
{ {
$text .= "<img src='".ADMIN_TRUE_ICON_PATH."' title='".DOWLAN_124."' alt='' style='cursor:help'/><img src='".ADMIN_TRUE_ICON_PATH."' title='".DOWLAN_124."' alt='' style='cursor:help'/>"; $text .= "<img src='".ADMIN_WARNING_ICON_PATH."' title='".DOWLAN_124."' alt='' style='cursor:help'/>";
} }
else else
{ {
@ -340,9 +365,41 @@ class adminDownload extends download
} }
break; break;
case "download_comment" : case "download_comment" :
$text .= "<td class='center'>";
$text .= ($row[$disp]) ? ADMIN_TRUE_ICON : ""; $text .= ($row[$disp]) ? ADMIN_TRUE_ICON : "";
break; break;
case "download_mirror" :
$text .= "<td>";
$mirrorArray = $this->makeMirrorArray($row[$disp], TRUE);
foreach($mirrorArray as $mirror) {
$title = DOWLAN_66." ".$mirror['filesize']."; ".DOWLAN_29." ".$mirror['requests'];
$text .= "<img src='".ADMIN_INFO_ICON_PATH."' title='".$title."' alt='' style='cursor:help'/> ";
$text .= $tp->toHTML($mirror['url']).'<br/>';
}
break;
case "download_mirror_type" :
$text .= "<td class='center'>";
if ($mirror)
{
switch ($row[$disp])
{
case 1:
$text .= DOWLAN_196;
break;
default:
$text .= DOWLAN_197;
}
}
break;
case "download_requested" :
case "download_active" :
case "download_thumb" :
case "download_comment" :
$text .= "<td class='center'>";
$text .= $tp->toHTML($row[$disp]);
break;
default : default :
$text .= "<td>";
$text .= $tp->toHTML($row[$disp]); $text .= $tp->toHTML($row[$disp]);
} }
$text .= "</td>"; $text .= "</td>";
@ -355,7 +412,8 @@ class adminDownload extends download
</td> </td>
</tr>"; </tr>";
} }
$text .= "</tbody></table></form>"; $text .= "</tbody></table>";
$text .= "</form>";
} }
else else
{ // 'No downloads yet' { // 'No downloads yet'

View File

@ -11,8 +11,8 @@
| GNU General Public License (http://gnu.org). | GNU General Public License (http://gnu.org).
| |
| $Source: /cvs_backup/e107_0.8/e107_plugins/download/help.php,v $ | $Source: /cvs_backup/e107_0.8/e107_plugins/download/help.php,v $
| $Revision: 1.3 $ | $Revision: 1.4 $
| $Date: 2009-07-15 00:15:01 $ | $Date: 2009-07-16 23:07:31 $
| $Author: bugrain $ | $Author: bugrain $
+----------------------------------------------------------------------------+ +----------------------------------------------------------------------------+
*/ */
@ -51,9 +51,14 @@ switch($action) {
break; break;
} }
default : { default : {
$text = "Please upload your files into the ".e_DOWNLOAD." folder, your images into the ".e_FILE."downloadimages folder and thumbnail images into the ".e_FILE."downloadthumbs folder. $text = "<p>Please upload your files into the ".e_DOWNLOAD." folder, your images into the ".e_FILE."downloadimages folder and thumbnail images into the ".e_FILE."downloadthumbs folder.</p>
<br /><br /> <p>To submit a download, first create a parent, then create a category under that parent, you will then be able to make the download available.</p>";
To submit a download, first create a parent, then create a category under that parent, you will then be able to make the download available."; $text .= "<div>";
$text .= DOWLAN_21."<br/>";
$text .= " <img src='".ADMIN_TRUE_ICON_PATH."' title='".DOWLAN_123."' alt='' style='cursor:help'/> ".DOWLAN_123."<br/>";
$text .= " <img src='".ADMIN_WARNING_ICON_PATH."' title='".DOWLAN_124."' alt='' style='cursor:help'/> ".DOWLAN_124."<br/>";
$text .= " <img src='".ADMIN_FALSE_ICON_PATH."' title='".DOWLAN_122."' alt='' style='cursor:help'/> ".DOWLAN_122."<br/>";
$text .= "</div>";
} }
} }
$ns -> tablerender(DOWLAN_HELP_1, $text); $ns -> tablerender(DOWLAN_HELP_1, $text);

View File

@ -4,8 +4,8 @@
| e107 website system - Language File. | e107 website system - Language File.
| |
| $Source: /cvs_backup/e107_0.8/e107_plugins/download/languages/English/admin_download.php,v $ | $Source: /cvs_backup/e107_0.8/e107_plugins/download/languages/English/admin_download.php,v $
| $Revision: 1.4 $ | $Revision: 1.5 $
| $Date: 2009-07-15 23:28:46 $ | $Date: 2009-07-16 23:07:31 $
| $Author: bugrain $ | $Author: bugrain $
+----------------------------------------------------------------------------+ +----------------------------------------------------------------------------+
*/ */
@ -196,6 +196,9 @@ define("DOWLAN_191", "Downloads log entries");
define("DOWLAN_192", "Execute selected option"); define("DOWLAN_192", "Execute selected option");
define("DOWLAN_193", "Select option"); define("DOWLAN_193", "Select option");
define("DOWLAN_194", "Search"); define("DOWLAN_194", "Search");
define("DOWLAN_195", "Mirror type");
define("DOWLAN_196", "list");
define("DOWLAN_197", "random");
define("DOWLAN_HELP_1", "Download Help"); define("DOWLAN_HELP_1", "Download Help");
define("DOWLAN_HELP_2", "<p>Create/edit a download.</p><p>Enter only one of: File, URL or Mirror.</p><p>Ensure you select a category, otherwise your download will not be visible on the downloads page.</p>"); define("DOWLAN_HELP_2", "<p>Create/edit a download.</p><p>Enter only one of: File, URL or Mirror.</p><p>Ensure you select a category, otherwise your download will not be visible on the downloads page.</p>");