Changeset 469
- Timestamp:
- Apr 20, 2010, 7:16:40 AM (15 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/global.php
r468 r469 43 43 global $System, $Config, $User, $System; 44 44 45 echo('<strong><a href="'.$System->Link('/action.php?action=ShoutBoxView').'">Kecátko:</a></strong>');45 $Output = '<strong><a href="'.$System->Link('/action.php?action=ShoutBoxView').'">Kecátko:</a></strong>'; 46 46 if($User->Licence(LICENCE_USER)) 47 echo(' <a href="'.$System->Link('/action.php?action=shoutbox').'">Vložit</a>');48 echo('<div class="box"><table>');47 $Output .= ' <a href="'.$System->Link('/action.php?action=shoutbox').'">Vložit</a>'; 48 $Output .= '<div class="box"><table>'; 49 49 $DbResult = $System->Database->query('SELECT * FROM `ShoutBox` ORDER BY `ID` DESC LIMIT 30'); 50 50 while($Line = $DbResult->fetch_assoc()) 51 echo('<tr><td><strong>'.$Line['User'].'</strong>: '.MakeActiveLinks($Line['Text']).'</td></tr>'); 52 echo('</table></div>'); 51 $Output .= '<tr><td><strong>'.$Line['User'].'</strong>: '.MakeActiveLinks($Line['Text']).'</td></tr>'; 52 $Output .= '</table></div>'; 53 return($Output); 53 54 } 54 55 … … 295 296 echo('<td class="menu2">'); 296 297 ShowTranslatedMenu(); 297 echo('<br />');298 ShowShoutBox();298 //echo('<br />'); 299 //ShowShoutBox(); 299 300 echo('</td>'. 300 301 '</tr><tr>'. -
trunk/index.php
r464 r469 29 29 30 30 $Count = 40; 31 $Output = '<strong>Poslední překlady:</strong><div class="NewsBox">'; 31 $Output = '<strong>Poslední překlady:</strong>'; 32 //'<div class="NewsBox">'; 32 33 33 34 $GroupListQuery = 'SELECT `Group`.* FROM `Group`'; … … 47 48 //echo($System->Database->error); 48 49 //echo($Query); 50 $Output .= '<table class="MiniTable"><tr><th>Datum</th><th>Kdo</th><th>Nový</th><th>Zdroj</th><th>Skupina</th></tr>'; 49 51 while($DbRow = $DbResult->fetch_assoc()) 50 52 { 51 $Output .= '<strong>'.HumanDate($DbRow['ModifyTime']).' '.$DbRow['UserName'].'</strong> přeložil text <a href="form.php?group='.$DbRow['Group'].'&ID='.$DbRow['ID'].'">'.$DbRow['ID'].'</a> převzatý z textu <a href="form.php?group='.$DbRow['Group'].'&ID='.$DbRow['Take'].'">'.$DbRow['Take'].'</a> ve skupině <a href="TranslationList.php?group='.$DbRow['Group'].'&action=filter">'.$DbRow['GroupName'].'</a><br />'; 53 $Output .= '<tr><td>'.HumanDate($DbRow['ModifyTime']).'</td>'. 54 '<td>'.$DbRow['UserName'].'</td>'. 55 '<td><a href="form.php?group='.$DbRow['Group'].'&ID='.$DbRow['ID'].'">'.$DbRow['ID'].'</a></td>'. 56 '<td><a href="form.php?group='.$DbRow['Group'].'&ID='.$DbRow['Take'].'">'.$DbRow['Take'].'</a></td>'. 57 '<td><a href="TranslationList.php?group='.$DbRow['Group'].'&action=filter">'.$DbRow['GroupName'].'</a></td></tr>'; 52 58 } 59 $Output .= '</table>'; 53 60 return($Output); 54 61 } … … 175 182 176 183 echo('<br />'. 177 '<table class="Home"><tr><td colspan="2">'.$Welcome. 178 '</td></tr><tr><td>'.ShowLastTranslated().'</td><td class="news-box">'.ShowNews().'</td></tr></table>'); 184 '<table class="Home"><tr><td colspan="3">'.$Welcome. 185 '</td></tr>'. 186 '<tr><td>'.ShowLastTranslated().'</td>'. 187 '<td class="news-box">'.ShowNews().'</td>'. 188 '<td>'.ShowShoutBox().'</td>'. 189 '</tr></table>'); 179 190 180 191 ShowFooter(); -
trunk/style/style.css
r466 r469 198 198 background:#ffffff url('../images/content.jpg') no-repeat top right; 199 199 vertical-align: top; 200 padding: 5px ;200 padding: 5px 5px 5px 0px; 201 201 margin-left: 0px; 202 202 } … … 271 271 } 272 272 273 .BaseTable t d273 .BaseTable tr td 274 274 { 275 275 border-width: 1px; … … 280 280 } 281 281 282 .BaseTable t h282 .BaseTable tr th 283 283 { 284 284 border-width: 1px; … … 322 322 { 323 323 vertical-align: top; 324 padding- left: 10px;324 padding-right: 5px; 325 325 } 326 326 … … 471 471 padding-right: 5px; 472 472 } 473 474 .MiniTable 475 { 476 margin: 2px auto 2px auto; 477 border-width: 0px; 478 border-color: black; 479 border-style: solid; 480 border-collapse: collapse; 481 border-spacing: 0px 0px 0px 0px; 482 font-size: small; 483 background-color: #E8E8E8; 484 } 485 486 .MiniTable tr td 487 { 488 border-width: 1px; 489 border-color: #c43300; 490 border-style: solid; 491 padding: 1px 1px 1px 1px; 492 margin: 0px 0px 0px 0px; 493 text-align: center; 494 vertical-align: middle; 495 } 496 497 .MiniTable tr th 498 { 499 border-width: 1px; 500 border-color: #c43300; 501 border-style: solid; 502 margin: 0px 0px 0px 0px; 503 padding: 1px 1px 1px 1px; 504 text-align: center; 505 vertical-align: middle; 506 }
Note:
See TracChangeset
for help on using the changeset viewer.