Changeset 780 for trunk/Modules


Ignore:
Timestamp:
Feb 3, 2014, 10:23:10 AM (11 years ago)
Author:
maron
Message:
  • Added: order by version in download
  • Added: link to addon directly in download
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/Download/Download.php

    r766 r780  
    9494    $Output .= $PageList['Output'];
    9595    $TableColumns = array(
    96       array('Name' => 'Id', 'Title' => T('Download')),
    97       array('Name' => 'Title', 'Title' => T('Name2')),
     96      array('Name' => 'Version', 'Title' => T('Download')),
     97      array('Name' => 'Title', 'Title' => T('Name2'),),
    9898      array('Name' => 'TimeCreate', 'Title' => T('Creation date')),
    9999      array('Name' => 'Description', 'Title' => T('Description')),
     
    111111        $ExportId = $DbExport['Id'];
    112112                   
    113                     $filename = $this->System->Config['Web']['TempFolder'].'Export/'.$ExportId.'/'.'Instalace_CzechWoW_'.$DbExport['Version'].'.exe';
     113                          if ($DbExport['OutputType'] == 10)
     114                    $filename = $this->System->Config['Web']['TempFolder'].'Export/'.$ExportId.'/'.'Instalace_CzechWoW_'.$DbExport['Version'].'.exe';
     115                          if ($DbExport['OutputType'] == 7)
     116                    $filename = $this->System->Config['Web']['TempFolder'].'Export/'.$ExportId.'/'.'CzWoW_Addon-'.$DbExport['Version'].'.zip';
    114117                           
    115118                          if ($DbExport['OutputType'] == 10)
    116119          $Output .= '<tr><td><a href="'.$this->System->Link('/'.$filename).
    117120            '">CzechWoW_'.$DbExport['Version'].'.exe</a><br /> <a href="'.
     121            $this->System->Link('/export/?Action=View&amp;ExportId='.$ExportId).'">Export '.$ExportId.'</a></td>';
     122        else
     123                          if ($DbExport['OutputType'] == 7)
     124          $Output .= '<tr><td><a href="'.$this->System->Link('/'.$filename).
     125            '">CzWoW_Addon-'.$DbExport['Version'].'.zip</a><br /> <a href="'.
    118126            $this->System->Link('/export/?Action=View&amp;ExportId='.$ExportId).'">Export '.$ExportId.'</a></td>';
    119127        else
     
    124132        $Output .= '<td>'.$DbExport['Title'].'</td>'; //.'<td>'.$DbExport['ClientVersion'].'</td>';
    125133                               
    126                           if (($DbExport['OutputType'] == 10) and (file_exists($filename)))
     134                          if ((($DbExport['OutputType'] == 10) or ($DbExport['OutputType'] == 7)) and (file_exists($filename)))
    127135          $Output .= '<td>'.date('d.m.y H:i',filemtime($filename)).'</td>';
    128136        else
Note: See TracChangeset for help on using the changeset viewer.