Ignore:
Timestamp:
Jan 5, 2014, 5:10:40 PM (11 years ago)
Author:
maron
Message:
  • Added: Featured export by Database
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/Export/Page.php

    r697 r716  
    279279                                if(array_key_exists('WithDiacritic', $_POST)) $WithDiacritic = 1;
    280280                                else $WithDiacritic = 0;
    281                                 $this->System->Database->query('UPDATE `Export` SET `Title`="'.$_POST['Title'].'", `Description`="'.$_POST['Description'].'", `WithDiacritic`='.$WithDiacritic.' WHERE Id='.$Export['Id']);
     281                                if (array_key_exists('Featured', $_POST)) $Export['Featured'] = 1;
     282                                $this->System->Database->query('UPDATE `Export` SET `Title`="'.$_POST['Title'].'", `Featured`='.$Export['Featured'].', `Description`="'.$_POST['Description'].'", `WithDiacritic`='.$WithDiacritic.' WHERE Id='.$Export['Id']);
    282283                                $Export['Title'] = $_POST['Title'];
    283284                                $Export['Description'] = $_POST['Description'];
     
    294295                                $Output .= '<input type="hidden" name="Operation" value="Save"/>'.
    295296                                                '<tr><td colspan="2">';
    296         $Output .= ' <a href="?Action=Clone&amp;ExportId='.$Export['Id'].'" onclick="return confirmAction(\'Opravdu klonovat položku?\');">Klonovat</a>';
    297297        if($Editable) $Output .= ' <input type="submit" value="Uložit" '.$DisabledInput[$Editable].'/>';
     298        $Output .= ' <a href="?Action=Clone&amp;ExportId='.$Export['Id'].'" onclick="return confirmAction(\'Opravdu klonovat položku?\');">Klonovat</a> ';
     299        if($this->System->User->Licence(LICENCE_ADMIN))
     300          $Output .= CheckBox('Featured', $Export['Featured'], '', 'CheckBox', !$Editable). ' Doporučený ';
    298301        $Output .= '</td></tr>';
    299302                        }
Note: See TracChangeset for help on using the changeset viewer.