Changeset 507 for trunk/team.php
- Timestamp:
- Feb 15, 2013, 10:12:08 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/team.php
r504 r507 97 97 if(($Count == 0) and ($_POST['Name'] != '')) 98 98 { 99 $System->Database->query('INSERT INTO `Team` (`Name` ,`Description`, `URL`, `TimeCreate`,`Leader`) VALUES ("'.trim($_POST['Name']).'", "'.trim($_POST['Description']).'", "'.$_POST['URL'].'", NOW(), '.$User->Id.')'); 99 $System->Database->query('INSERT INTO `Team` (`Name` ,`Description`, `URL`, `TimeCreate`, `Leader`)'. 100 ' VALUES ("'.trim($_POST['Name']).'", "'.trim($_POST['Description']).'", "'. 101 $_POST['URL'].'", NOW(), '.$User->Id.')'); 100 102 $System->Database->query('UPDATE `User` SET `Team` = '.$System->Database->insert_id.' WHERE `ID` = '.$User->Id); 101 103 $Output .= ShowMessage('Překladatelský tým vytvořen.'); … … 220 222 $Query = ''; 221 223 $DbResult = $System->Database->query($GroupListQuery); 224 if($DbResult->num_rows > 0) 225 { 222 226 while($DbRow = $DbResult->fetch_assoc()) 223 227 { … … 247 251 248 252 $Order = GetOrderTableHeader($TableColumns, 'Name', 0); 249 $Output .= $Order['Output'];253 $Output .= $Order['Output']; 250 254 251 255 $Translated = 0; … … 260 264 $Output .='<tr><td><strong>Celkem</strong></td><td><strong>'.$Translated.'</strong></td><td><strong>'.$Total.'</strong></td><td><strong>'.ProgressBar(150, round($Translated / $Total * 100, 2)).'</strong></td></tr>'; 261 265 $Output .='</table>'; 262 266 } 263 267 $Output .='</fieldset>'; 264 268 } else $Output .=ShowMessage('Tým nenalezen', MESSAGE_CRITICAL);
Note:
See TracChangeset
for help on using the changeset viewer.