Changeset 646 for trunk/Modules/Export/Page.php
- Timestamp:
- Dec 14, 2013, 12:51:59 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Export/Page.php
r645 r646 138 138 return($Output); 139 139 } 140 141 function SaveAllUsers() 142 { 143 global $System; 144 $Export = new Export($System); 145 $Export->Id = $_GET['ExportId']; 146 $Export->SaveAllUsers(); 147 148 } 140 149 141 150 function ExportViewTranslators() … … 176 185 } 177 186 187 if (array_key_exists('AllUsers', $_POST)) { 188 //add allusers to export 189 $this->System->Database->query('UPDATE `Export` SET `AllUsers`=1 WHERE `Id`='.$_GET['ExportId']); 190 191 //update export stat 192 $Export['AllUsers'] = 1; 193 $this->SaveAllUsers(); 194 } else { 195 //update export stat 196 $Export['AllUsers'] = 0; 197 $this->System->Database->query('UPDATE `Export` SET `AllUsers`=0 WHERE `Id`='.$_GET['ExportId']); 198 } 199 178 200 // Recalculate sequence number 179 201 $this->System->Database->query('SET @I = 0'); … … 208 230 { 209 231 $Output .= '<input type="submit" value="Uložit" '.$DisabledInput[$Editable].'/>'. 210 '<input type="hidden" name="Operation" value="Save"/>'. 211 ' <span onclick="CheckAllCheckbox();">'.CheckBox('CheckAll', False, 'CheckAll').' Zatrhnout vše</span> '. 232 '<input type="hidden" name="Operation" value="Save"/><br />'. 233 ' <span onclick="CheckAllCheckbox();">'.CheckBox('CheckAll', False, 'CheckAll').' Zatrhnout vše na stránce</span> <br />'. 234 ' <span>'.CheckBox('AllUsers', $Export['AllUsers']).' '.T('Export allways from all users').'</span> '. 212 235 '<br />'. 213 236 'Zvolte ze seznamu uživatele, od kterých chcete načítat překlady a upravte jejich pořadí.<br />'. … … 226 249 $XP = GetLevelMinMax($UserLine['XP']); 227 250 $Checked = $UserLine['Sequence'] != ''; 228 $Selection = CheckBox('sel'.$UserLine['ID'], $Checked, '', 'CheckBox', !$Editable);251 $Selection = CheckBox('sel'.$UserLine['ID'], $Checked, '', 'CheckBox', ((!$Editable) or ($Export['AllUsers']))); 229 252 $Sequence = '<input type="text" name="seq'.$UserLine['ID'].'" style="text-align: center; width: 40px;" value="'.$UserLine['Sequence2'].'"'.$DisabledInput[$Editable].'/>'; 230 253 $Output .= '<tr>'.
Note:
See TracChangeset
for help on using the changeset viewer.