1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 03:40:37 +02:00

Added keyword tags to downloads.

This commit is contained in:
Cameron
2014-02-04 09:22:15 -08:00
parent e4c15a5646
commit 47c546c2fb
3 changed files with 51 additions and 33 deletions

View File

@@ -10,6 +10,7 @@ CREATE TABLE download (
download_author_email varchar(200) NOT NULL default '',
download_author_website varchar(200) NOT NULL default '',
download_description text NOT NULL,
download_keywords text NOT NULL,
download_filesize varchar(20) NOT NULL default '',
download_requested int(10) unsigned NOT NULL default '0',
download_category int(10) unsigned NOT NULL default '0',

View File

@@ -218,6 +218,7 @@ class download_main_admin_ui extends e_admin_ui
'download_name' => array('title'=> LAN_TITLE, 'type' => 'text', 'data' => 'str', 'inline'=>true, 'width' => 'auto', 'thclass' => ''),
'download_url' => array('title'=> DOWLAN_13, 'type' => 'url', 'data' => 'str', 'width'=>'auto', 'thclass' => '', 'batch' => TRUE, 'filter'=>TRUE),
'download_sef' => array('title'=> LAN_SEFURL, 'type' => 'text', 'inline'=>true, 'data' => 'str', 'width'=>'auto', 'thclass' => '', 'batch' => TRUE, 'filter'=>TRUE),
'download_keywords' => array('title'=> LAN_KEYWORDS, 'type' => 'tags', 'inline'=>true, 'data' => 'str', 'width'=>'auto', 'thclass' => ''),
'download_author' => array('title'=> LAN_AUTHOR, 'type' => 'user', 'data' => 'str', 'width' => 'auto', 'thclass' => 'left'),
'download_author_email' => array('title'=> DOWLAN_16, 'type' => 'email', 'data' => 'str', 'width' => 'auto', 'thclass' => 'left'),
@@ -1328,14 +1329,7 @@ $columnInfo = array(
$text .= " </td>
</tr>
<tr>
<td>
Activation between
</td>
<td>
// TODO
</td>
</tr>
<tr>
<td style='width:20%'>".DOWLAN_19."</td>
<td style='width:80%'>";
@@ -1359,7 +1353,14 @@ $columnInfo = array(
<input type='hidden' name='move_image' value='1'/>\n";
}
$text .= " </td>
</tr>
</tr>";
if(is_dir(e_FILE."downloadthumbs")) // Legacy
{
$text .= "
<tr>
<td style='width:20%'>".DOWLAN_20."</td>
<td style='width:80%'>";
@@ -1380,7 +1381,12 @@ $columnInfo = array(
$text .= "
</td>
</tr>
</tr>";
}
$text .= "
<tr>
<td style='width:20%'>".LAN_DATESTAMP."</td>
<td style='width:80%'>";
@@ -1404,6 +1410,16 @@ $columnInfo = array(
</td>
</tr>
<tr>
<td >".LAN_KEYWORDS."</td>
<td style='width:80%'>".$frm->tags('download_keywords',$download_keywords)."
</td>
</tr>
<tr>
<td style='width:20%'>".DOWLAN_21."</td>
<td style='width:80%'>
@@ -1608,6 +1624,7 @@ $columnInfo = array(
$dlInfo['download_description'] = $tp->toDB($_POST['download_description']);
$dlInfo['download_name'] = $tp->toDB($_POST['download_name']);
$dlInfo['download_sef'] = vartrue($_POST['download_sef']) ? eHelper::secureSef($_POST['download_sef']) : eHelper::title2sef($_POST['download_name']);
$dlInfo['download_keywords'] = $tp->toDB($_POST['download_keywords']);
$dlInfo['download_author'] = $tp->toDB($_POST['download_author']);
$dlInfo['download_author_email'] = $tp->toDB($_POST['download_author_email']);
$dlInfo['download_author_website'] = $tp->toDB($_POST['download_author_website']);

View File

@@ -376,7 +376,7 @@ $DOWNLOAD_TEMPLATE['categories']['parent'] = "
</td>
<td colspan='4'>
{DOWNLOAD_CAT_MAIN_NAME}<br/>
<span class='smalltext'>{DOWNLOAD_CAT_MAIN_DESCRIPTION}</span>
<small class='muted text-muted'>{DOWNLOAD_CAT_MAIN_DESCRIPTION}</small>
</td>
</tr>";