" );
$scale = 15;
if( $start <= 0 | $start >= $total ) $start = 0;
else $start = intval( $start / $scale ) * $scale;
for( $i = $start; $i < $start + $scale && $i < $total; $i++ ) {
mysql_data_seek( $result, $i );
$rec = mysql_fetch_array( $result );
$no = $rec[no];
$regdate = $rec[regdate];
$writer = stripslashes( $rec[writer] );
$contents = stripslashes( $rec[contents] );
$weekarray = array( "ÀÏ", "¿ù", "È", "¼ö", "¸ñ", "±Ý", "Åä" );
$year = substr( $regdate, 0, 4 );
$month = substr( $regdate, 4, 2 );
$day = substr( $regdate, 6, 2 );
$hour = substr( $regdate, 8, 2 );
$minute = substr( $regdate, 10, 2 );
$weekday = $weekarray[date( "w", mktime( 0, 0, 0, $month, $day, $year ) )];
if( $i % 2 ) $bgcolor = $bglightcolor[$weekorder];
else $bgcolor = $bgdarkcolor[$weekorder];
echo( "
$month"."/"."$day [$weekday] $hour:$minute
|
$writer |
$contents |
" );
}
echo( "
|