// echo '
include('inc/lineup.php');
include('inc/campaign.php');
include('inc/footer.php');
?>
';
$imgArr = array();
echo '';
?>
echo '
now position='.$GLOBALS['localnum']; */ ?>
echo '';
echo '';
//メイン画像
if ($handle = opendir('images/product/vol'.$GLOBALS["volume"].'/'.$GLOBALS["localnum"])) {
/* ディレクトリをループする際の正しい方法です */
while (false !== ($file = readdir($handle))) {
$fnames = explode(".",$file);
if(is_numeric($fnames[0])){
array_push($imgArr,intval($fnames[0]));
}
}
closedir($handle);
}
sort($imgArr);
for($t = 0;$t < count($imgArr);$t++){
echo '';
}
echo '
';
//サムネイル
echo '- ';
for($n = 0;$n < count($imgArr);$n++){
echo '
- '; } echo '
';
/*
echo 'volume=='.$GLOBALS['volume'];
echo '
now position='.$GLOBALS['localnum']; */ ?>