Changeset 716 for trunk/Modules/Export/Page.php
- Timestamp:
- Jan 5, 2014, 5:10:40 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Export/Page.php
r697 r716 279 279 if(array_key_exists('WithDiacritic', $_POST)) $WithDiacritic = 1; 280 280 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']); 282 283 $Export['Title'] = $_POST['Title']; 283 284 $Export['Description'] = $_POST['Description']; … … 294 295 $Output .= '<input type="hidden" name="Operation" value="Save"/>'. 295 296 '<tr><td colspan="2">'; 296 $Output .= ' <a href="?Action=Clone&ExportId='.$Export['Id'].'" onclick="return confirmAction(\'Opravdu klonovat položku?\');">Klonovat</a>';297 297 if($Editable) $Output .= ' <input type="submit" value="Uložit" '.$DisabledInput[$Editable].'/>'; 298 $Output .= ' <a href="?Action=Clone&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ý '; 298 301 $Output .= '</td></tr>'; 299 302 }
Note:
See TracChangeset
for help on using the changeset viewer.