Changeset 199
- Timestamp:
- Jun 5, 2009, 7:08:55 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dictionary.php
r198 r199 211 211 } 212 212 echo('</td></tr>'); 213 echo('<tr><td> 214 <div style="overflow: auto; width: 100%; height: 100%;">');213 echo('<tr><td>'); 214 //<div style="overflow: auto; width: 100%; height: 100%;">'); 215 215 216 216 if($Search <> '') … … 218 218 $sql = 'SELECT `user`.`user` AS `UserName`, `user`. `ID` AS `UserID`, `T3`.`Entry`, `T3`.`Original`, `T3`.`Translated`, `T3`.`Description` FROM (SELECT T2.User, `T1`.Language, `T1`.`Text` AS Original, `T2`.`Text` AS `Translated`, `T2`.`Description`, `T1`.`Entry` AS `Entry` FROM `dictionary` AS `T1` JOIN `dictionary` AS `T2` ON `T2`.`Entry` = `T1`.`Entry` AND `T2`.`Language` = '.$_SESSION['language'].' WHERE LOWER(T1.Text) LIKE LOWER("%'.$Search.'%") OR LOWER(T1.Description) LIKE LOWER("%'.$Search.'%") ) AS T3 JOIN `user` ON `user`.`ID` = `T3`.`User` WHERE `T3`.`Language` = 0'; 219 219 } else $sql = 'SELECT `user`.`user` AS `UserName`, `ID` AS `UserID`, `T3`.`Entry`, `T3`.`Original`, `T3`.`Translated`, `T3`.`Description` FROM (SELECT T2.User, `T1`.Language, `T1`.`Text` AS Original, `T2`.`Text` AS `Translated`, `T2`.`Description`, `T1`.`Entry` AS `Entry` FROM `dictionary` AS `T1` JOIN `dictionary` AS `T2` ON `T2`.`Entry` = `T1`.`Entry` AND `T2`.`Language` = '.$_SESSION['language'].') AS T3 JOIN `user` ON `user`.`ID` = `T3`.`User` WHERE `T3`.`Language` = 0'; 220 $sql .=' LIMIT '.($_SESSION['Page'] - 1) * $Config['Web']['ItemsPerPage'].','.$Config['Web']['ItemsPerPage'];220 $sql_page = $sql.' LIMIT '.($_SESSION['Page'] - 1) * $Config['Web']['ItemsPerPage'].','.$Config['Web']['ItemsPerPage']; 221 221 222 222 ListPaging('?Page=', '('.$sql.') AS T1', '', $Config['Web']['ItemsPerPage'], $_SESSION['Page']); … … 227 227 if(Licence(LICENCE_USER)) echo('<th>Akce</th>'); 228 228 echo('</tr>'); 229 $ID = $Database->SQLCommand($sql );229 $ID = $Database->SQLCommand($sql_page); 230 230 while ($Line = mysql_fetch_assoc($ID)) 231 231 { … … 245 245 echo('</table>'); 246 246 ListPaging('?Page=', '('.$sql.') AS T1', '', $Config['Web']['ItemsPerPage'], $_SESSION['Page']); 247 echo('</ div></td></tr>');247 echo('</td></tr>'); 248 248 echo('</table></form>'); 249 249 } -
trunk/includes/global.php
r198 r199 93 93 $Config['Web']['BaseURL'].'index.php' => array(LICENCE_ANONYMOUS, 'Hlavní stránka', 'Domů'), 94 94 'http://wow.zdechov.net/forum/viewforum.php?f=22' => array(LICENCE_ANONYMOUS, 'Diskuze na téma překládání', 'Fórum projektu'), 95 $Config['Web']['BaseURL'].'dictionary.php' => array(LICENCE_ANONYMOUS, 'Slovník WoW výrazů', 'Slovní ček'),95 $Config['Web']['BaseURL'].'dictionary.php' => array(LICENCE_ANONYMOUS, 'Slovník WoW výrazů', 'Slovník'), 96 96 $Config['Web']['BaseURL'].'banners.php' => array(LICENCE_ANONYMOUS, 'Weby odkazující na tento projekt bennerem', 'Odkazují na nás'), 97 97 $Config['Web']['BaseURL'].'statistic.php' => array(LICENCE_ANONYMOUS, 'Stav dokončení překládů', 'Stav dokončení'), 98 $Config['Web']['BaseURL'].'userlist.php' => array(LICENCE_ANONYMOUS, 'Seznam registrovaných uživatelů', ' Uživatelé'),98 $Config['Web']['BaseURL'].'userlist.php' => array(LICENCE_ANONYMOUS, 'Seznam registrovaných uživatelů', 'Překladatelé'), 99 99 $Config['Web']['BaseURL'].'team.php' => array(LICENCE_ANONYMOUS, 'Seznam překladatelských týmů', 'Týmy'), 100 100 $Config['Web']['BaseURL'].'download.php' => array(LICENCE_ANONYMOUS, 'Zde si můžete stáhnout přeložené texty', 'Stahování'), -
trunk/includes/global_function.php
r198 r199 33 33 echo('<div style="text-align: center">'); 34 34 $Line = mysql_fetch_row($Database->SQLCommand('SELECT count(*) FROM '.$Table.' '.$Where)); 35 $ItemCount = floor($Line[0] / $ItemsPerPage); 35 $ItemCount = $Line[0]; 36 $PageCount = floor($ItemCount / $ItemsPerPage) + 1; 36 37 37 echo('Počet položek: <strong>'.$ Line[0].'</strong> Zobrazit stránku: ');38 39 if($CurrentPage > $ItemCount) $CurrentPage = ($ItemCount / $ItemsPerPage) - 1;40 for($Page = 1; $Page <= $ ItemCount+1; $Page++)38 echo('Počet položek: <strong>'.$ItemCount.'</strong> Zobrazit stránku: '); 39 40 //if($CurrentPage > $PageCount) $CurrentPage = $PageCount; 41 for($Page = 1; $Page <= $PageCount; $Page++) 41 42 { 42 43 if($CurrentPage == $Page) echo('<strong>'.$Page.'</strong> '); -
trunk/userlist.php
r198 r199 66 66 <td><img src="tmp/'.$Line['user'].'/level.png" alt="Úroveň uživatele" /></td> 67 67 <td>'.$Moderators[$Line['GM']].'</td> 68 <td>'. $Line['LastLogin'].'</td></tr>');68 <td>'.HumanDate($Line['LastLogin']).'</td></tr>'); 69 69 } 70 70 echo('</table>');
Note:
See TracChangeset
for help on using the changeset viewer.