![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 199 Pomógł: 0 Dołączył: 12.02.2004 Skąd: Czymiasto Ostrzeżenie: (0%) ![]() ![]() |
Witam mam pytanie i prośbe o to jak trzeba zmodyfikować ten skrypt żeby zdjęcia galeri były wyświetlane w dwóch kolumnach:
[php:1:3339acb7ca]<?php <? include('config.php'); #=====================================================# function site_main() { global $theme; main_title_open(); echo 'galerie'; main_title_close(); main_text_open(); $dir = opendir('uploads/agalery/small'); echo '<table align="center" border="0" cellpadding="1" cellspacing="0" width="100%">'; while ($r = readdir($dir)) { if ($r != '.' && $r != '..' && !is_dir($r) && eregi(".jpg",$r) || eregi(".bmp",$r) || eregi(".png",$r) || eregi(".gif",$r)) { $s = getimagesize ('uploads/agalery/big/'.$r); echo ' <tr> <td><div align="center"><A href="java script:displayWindow('show_agalery.php?show='.$r.'','.$s[0].','.$s[1].')"><img src="uploads/agalery/small/'.$r.'" border="0" alt="Kliknij aby zobaczyć powiększenie"></a><br><small>'.$r.' - '.$s[0].'x'.$s[1].'</small></div></td> </tr>'; } } echo '</table>'; main_text_close(); } #=====================================================# $site_title = 'galerie'; $meta_info = '<SCRIPT> <!-- function displayWindow(url, width, height) { var Win = window.open(url,"displayWindow",'width=' + width + ',height=' + height + ',resizable=2,scrollbars=no,menubar=no' ); } //--> </SCRIPT> '; include("theme/$theme/normal.php"); ?> ?>[/php:1:3339acb7ca] Pozdrawiam Karolski |
|
|
![]() ![]() |
![]() |
Aktualny czas: 23.08.2025 - 12:01 |