foreach 分页 php 的帮助我有这个代码:
/*loop trough folders and show images from each folder*/
foreach ($folders as $folderNames2) {
?>
<div class="sEditorEffectsSampleImages" id="<?php echo $folderNames2; ?>List">
<?php
//list images from each folder
/*search .png files in each folder andd create effect list form png names*/
$files = glob($settingsValue['effectsFolder'] . '/' . $folderNames2 . '/*.png');
/*if there is images in folder list them*/
if (count($files > 0)){
?>
<?php
/*loop trough each folder and outpu image names*/
foreach ($files as $name) {
$path = explode('/', $name);
$name = explode('.', $path[2]);
//echo '<li id="'.$name[0].'" idf="'.$folderNames.'"><a href="#">'.$name[0].'</a></li>';
//echo $name[0]."|";
?>
<div class="imageEffectSampleImageHodlder" sEffect="<?php echo $name[0]; ?>"
sEffectCategory="<?php echo $folderNames2; ?>"><img
src="<?php echo $settingsValue['effectsFolder'] . '/' . $folderNames2 . '/' . $name[0] . '.png'; ?>"/>
<p> <?php echo $name[0]; ?></p></div>
<?php
}/*for each image loop*/
?>
<?php
}/*if count $files is bigger then zero*/
?>
http://www.klick-bild.net/framegen/upload/images/Unbenannt.png
例如,红色框是我想象的(我用油漆添加的)谁可以帮助我
谢谢你