Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Dzielenie na strony galeri
przemol88
post
Post #1





Grupa: Zarejestrowani
Postów: 16
Pomógł: 0
Dołączył: 3.02.2006

Ostrzeżenie: (0%)
-----


Witam otoz masz modul do jportla galerie ktora pobiera z katalogu i wyswietla moglby mi ktos pomoc i napisac co mam dopisac i gdzie zeby mi dzielilo na stronki, bylbym bardzo wdzięczny. Dzięki
  1. <?
  2.  
  3. /*****************************************************/
  4. /* jPORTAL - internetowy system portalowy  */
  5. /*****************************************************/
  6. /* autor: Pawel 'jaco' Jaczewski  */
  7. /* email: info@websys.pl  */
  8. /*****************************************************/
  9.  
  10. include('config.php');
  11. #=====================================================#
  12.  
  13. function site_main() {
  14.  
  15. global $theme;
  16.  
  17.  
  18. main_title_open();
  19. echo 'galerie';
  20. main_title_close();
  21.  
  22. main_text_open();
  23. $dir = opendir('uploads/agalery/small');
  24. echo '<table align="center" border="0" cellpadding="1" cellspacing="0" width="100%">';
  25. while ($r = readdir($dir)) {
  26. if ($r != '.' && $r != '..' && !is_dir($r) && eregi(".jpg",$r) || eregi(".bmp",$r) || eregi(".png",$r) || eregi(".gif",$r)) {
  27. $s = getimagesize ('uploads/agalery/big/'.$r);
  28.  
  29. if($a==0) {
  30. echo '<tr>';
  31. }
  32. echo '<td><div align="center"><A href="java script:displayWindow('show_agalery.php?show='.$r.'','.$s[0].','.$s[1].')">
  33. <img src="uploads/agalery/small/'.$r.'" border="0" alt="Kliknij aby zobaczyć powiększenie"></a><br>
  34. <small>'.$r.' - '.$s[0].'x'.$s[1].'</small></div></td>';
  35.  
  36. $a++;
  37.  
  38. if($a==5) {
  39. echo '</tr>';
  40. $a = 0;
  41. }
  42. }
  43. }
  44.  
  45. echo '</table>';
  46.  
  47. main_text_close();
  48.  
  49.  
  50. }
  51.  
  52.  
  53. #=====================================================#
  54.  
  55. $site_title = 'galerie';
  56. $meta_info = '<script>
  57. <!--
  58. function displayWindow(url, width, height) {
  59. var Win = window.open(url,"displayWindow",'width=' + width + ',height=' + height + ',resizable=1,scrollbars=no,menubar=no' );
  60. }
  61. //-->
  62. </SCRIPT>
  63. ';
  64.  
  65. include("theme/$theme/normal.php");
  66. ?>
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 19.08.2025 - 10:50