| // +----------------------------------------------------------------------+ // | File Name : list.php - News list page | // +----------------------------------------------------------------------+ header("Content-Type: text/html;charset=UTF-8"); include_once("config.php"); $res_dir = opendir( './log/' ); $ee=1; while( $file_name = readdir( $res_dir ) ){ if($file_name != '.' and $file_name != '..'){ $setfile = file('log/'.$file_name); $idNo = basename($file_name,".txt"); if(preg_match('/^v[0-9]{3}::/u',$setfile[0])){ list($vjon,$stit,$syea,$smon,$sday) = explode("::",$setfile[0]); }else{ list($stit,$syea,$smon,$sday) = explode("::",$setfile[0]); $vjon = 0; } $eskey = strtotime(sprintf("%04d-%02d-%02d", $syea, $smon, $sday)) + $ee; $hairetu[$eskey] .= '
'.$syea.'/'.$smon.'/'.$sday.'
'.$stit.'
'; } $ee++; } closedir( $res_dir ); if($hairetu){ krsort ($hairetu); reset($hairetu); $page = 0; $max = count($hairetu); if(isset($_GET['pg'])){ $page = $_GET['pg']; } list($pgval,$mins,$maxs) = pageview($max,$max_value,$page); $pvkey = 1; foreach($hairetu as $pvval){ if($pvkey >= $mins and $pvkey <= $maxs){ $tabldat .= $pvval."\n"; } $pvkey++; } $tabldat = ''.$tabldat.'
'; } print << 京葉コンピューターサービス株式会社

社員の声

一覧

{$tabldat} {$pgval}
EOM; ?>