$follist = FolList("./news_data",1);
for ($i=0; $i<= count($follist)-1; $i++) {
$show = 0;
if ($pcnt==1) {
if ($i<=9) {
$show=1;
}
} else {
if ($i>=(($pcnt-1)*10) and $i<=(($pcnt-1)*10)+9) {
$show = 1;
}
}
if ($show==1) {
$newsAry = NewsDataGet( DataFolPath() . $follist[$i] . "/newsdata.ini.php");
$subj = $emoji->convertCarrier(htmlspecialchars($newsAry["subject"]));
if ($subj=="") { $subj="No Subject"; }
$maildate = date("Y.m.d.", strtotime($newsAry["maildate"]) ) ;
$body = htmlspecialchars($newsAry["body"]);
//本文空白、画像有無を確認
//フォルダ配下の画像
$fpath = DataFolPath() . $follist[$i] . "/w230";
$ImageS = ImgSGet($fpath);
$ImgCnt = count($ImageS);
?>
if($body!="" or $ImgCnt>0) {
?>
} else {
?>
} ?>
}
}
?>
if ($pcnt>1 and count($follist)>0){
?>
←前
}
?>
if (count($follist) -1 >=$pcnt*10 ) {
?>
次→
}
?>
if ($pcnt>1 and count($follist)>0){ ?>< 前 } ?> |
if (count($follist) -1 >=$pcnt*10 ) { ?>次> } ?> |