Changeset 27 for global.php
- Timestamp:
- Aug 18, 2007, 1:45:56 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
global.php
r16 r27 111 111 <TR> 112 112 <TD id="BlankSpace"> </td> 113 <TD rowspan="2" class="TdSloupec" valign="top" align="center">113 <TD rowspan="2" id="TdSloupec" valign="top"> 114 114 <div class="Nadpis">Heroes of Fantasy</div> 115 115 <div class="DivText">'); … … 127 127 <a href="'.$BaseUrl.'guildy.php" onMouseOver="swtch("10","guildy")" onMouseOut="swtch("9","guildy")"><IMG SRC="'.$BaseUrl.'images/guilds.jpg" alt="guildy" name="guildy" border="0"></A> 128 128 <a href="'.$BaseUrl.'forum/" onMouseOver="swtch("8","Forum")" onMouseOut="swtch("7","Forum")"><IMG SRC="'.$BaseUrl.'images/forum.jpg" alt="Forum" name="Forum" border="0"></A> 129 <a href="'.$BaseUrl.' registrace/" onMouseOver="swtch("28","registrace")" onMouseOut="swtch("27","registrace")"><IMG SRC="'.$BaseUrl.'images/registrace.jpg" alt="registrace" name="registrace" border="0"></A>129 <a href="'.$BaseUrl.'minimanager/register.php" onMouseOver="swtch("28","registrace")" onMouseOut="swtch("27","registrace")"><IMG SRC="'.$BaseUrl.'images/registrace.jpg" alt="registrace" name="registrace" border="0"></A> 130 130 <a href="'.$BaseUrl.'online_player.php" onMouseOver="swtch("20","online_player")" onMouseOut="swtch("19","online_player")"><IMG SRC="'.$BaseUrl.'images/online_player.jpg" alt="online player" name="online_player" border="0"></A> 131 131 <a href="'.$BaseUrl.'honor.php" onMouseOver="swtch("12","honor")" onMouseOut="swtch("11","honor")"><IMG SRC="'.$BaseUrl.'images/honor.jpg" alt="honor" name="honor" border="0"></A> … … 151 151 </td> 152 152 </tr> 153 <tr><td> 154 <div class="pHlavni">'); 153 <tr><td id="LeftCell"><div class="pHlavni">'); 155 154 } 156 155 … … 160 159 echo('</div> 161 160 </td> 161 </tr> 162 162 <tr> 163 163 <td colspan="2"> … … 184 184 } 185 185 186 // Zobrazení èíselný seznamu stránek 187 function PagesList($URL,$Page,$TotalCount,$CountPerPage) 188 { 189 $Count = ceil($TotalCount/$CountPerPage); 190 $Around = 10; 191 $Result = ''; 192 if($Count>1) 193 { 194 if($Page>0) 195 { 196 $Result.= '<a href="'.$URL.'0"><<</a> '; 197 $Result.= '<a href="'.$URL.($Page-1).'"><</a> '; 198 } 199 $PagesMax = $Count-1; 200 $PagesMin = 0; 201 if($PagesMax>($Page+$Around)) $PagesMax = $Page+$Around; 202 if($PagesMin<($Page-$Around)) 203 { 204 $Result.= ' .. '; 205 $PagesMin = $Page-$Around; 206 } 207 for($i=$PagesMin;$i<=$PagesMax;$i++) 208 { 209 if($i==$Page) $Result.= '<strong>'; 210 $Result.= '<a href="'.$URL.$i.'">'.($i+1).'</a> '; 211 if($i==$Page) $Result.= '</strong>'; 212 } 213 if($PagesMax<($Count-1)) $Result .= ' .. '; 214 if($Page<($Count-1)) 215 { 216 $Result.= '<a href="'.$URL.($Page+1).'">></a> '; 217 $Result.= '<a href="'.$URL.($Count-1).'">>></a>'; 218 } 219 } 220 return($Result); 221 } 186 222 187 223 ?>
Note:
See TracChangeset
for help on using the changeset viewer.