相关代码 |
|
require('../config.php'); require('images.inc.php'); $folder_list=""; if (count($subdirs)>0){ $folder_list='"'.implode('","',$subdirs).'"'; } $json='{ folders:['.$folder_list.'], count:'.count($imgs).'}'; header('X-JSON: '.$json); ?> if (count($imgs)>0){ foreach ($imgs as $i => $value){ $full_img=implode('/',array($path,$value)); ?> src=".thumb.jpg" onclick="showCloseup('.jpg')"/> } } ?>