PHP:
скопировать код в буфер обмена
скопировать код в буфер обмена
- <head><title>архетиктура</title>
- <meta http-equiv=Content-Type content="text/html; charset=utf-8">
- </head>
- <body style="background-color:#FFF;">
- <div style="display: inherit;width:100%;">
- <?PHP
- $dir = '/images/galereya/';
- $count=0;
- {
- if(($file!='.')and($file!='..'))
- $files[]=$file;
- $count++;
- }
- }
- }
- $col_width[1] = '17%';
- $col_width[2] = '24%';
- $col_width[3] = '16%';
- $col_width[4] = '25%';
- $col_width[5] = '17%';
- //$b=count($files);
- for($i=1;$i<6 ;$i++){
- echo '<div style="width:'.$col_width[$i].';display:inline-block;vertical-align:top;margin:1px;">';
- for($pi=0;$pi<5;$pi++){
- echo '<img width="100%" src="images/galereya/'.$files[$pi].'"><br>';
- }
- echo '</div>';
- }
- ?>
- </div>
- </body>
- </html>