"; } $LEFT_TAGS.=LAYOUT($Filedata_arr[0],$MEMO[$i]); } }else{ $NEW_FILE=$arr_essay_num[0].".txt"; $Filedata=File_no_yomikomi("./weekly/".$NEW_FILE); $Filedata_arr=split("\n",$Filedata); $MEMO=""; for($q=1;$q"; } $LEFT_TAGS.=LAYOUT($Filedata_arr[0],$MEMO); } // ==================== echo HTML_HEADER(); $RIGHT_TAGS=BACKNUM($arr_essay_num); echo LAYOUT_TOP($LEFT_TAGS,$RIGHT_TAGS); echo HTML_FOOTER(); // ==================== function BACKNUM($arr_essay_num){ for($i=0;$i0){ if($YM[$i-1] != $YM[$i]){$V_YM[]=$YM[$i];$V_Year[]=$year[$i];} }else{ $V_YM[]=$YM[$i];$V_Year[]=$year[$i]; } } $TAGS="\n"; $YYY=-1;$rows=1; for($i=0;$i".substr($V_YM[$i],4,2)."ŒŽ"; $rows=1; }else{ $rows++; $TAGS_td[$YYY].=""; } if($i==(count($V_YM)-1)){$rowsp[$YYY]=$rows;} } for($i=0;$i".$V_V_Year[$i]."”N".$TAGS_td[$i]; } $TAGS.="
Back Number
".substr($V_YM[$i],4,2)."ŒŽ
\n"; return $TAGS; } // ==================== function LAYOUT($DATE,$MEMO){ $TAGS="

".$DATE."

".$MEMO."
"; return $TAGS; } // ==================== function LAYOUT_TOP($LEFT_TAGS,$RIGHT_TAGS){ $TAGS="
".$LEFT_TAGS."".$RIGHT_TAGS."
"; return $TAGS; } // ==================== function HTML_HEADER(){ $TAGS=" "; return $TAGS; } // ==================== function HTML_FOOTER(){ $TAGS=""; return $TAGS; } // ==================== function File_no_yomikomi($FILE){ $MyLine=""; if(!($fp=fopen($FILE,"r"))) { $msg_err="error"; return $msg_err; }else{ while(!feof($fp)) { $MyLine.=fgets($fp,4096); } return $MyLine; } fclose($fp); } // ==================== ?>