Esempio n. 1
0
<?php
//設定ファイルインクルード
include_once("config.php");
if(!$copyright){echo $warningMesse; exit;}else{
	if(!empty($_GET['id'])){
		$id=h($_GET['id']);
	}else{
		exit('パラメータがありません');	
	}
	$lines = newsListSortUser(file($file_path),$copyright);
	foreach($lines as $key => $val){
	$lines_array = explode(",",$val);
	  if($lines_array[0] == $id){
		  $end_flag = 1;
		  break;
	  }
	}
	if($end_flag != 1) exit('データ取得エラー');
$lines_array[3] = rtrim($lines_array[3]);
$lines_array[1] = ymd2format($lines_array[1]);//日付フォーマットの適用
$title = str_replace("<br />","",$lines_array[2]);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php	echo $title;?></title>
<meta http-equiv="Content-Style-Type" content="text/css" />
<link href="style.css" rel="stylesheet" type="text/css" media="all" />
</head>
<body id="popup">
Esempio n. 2
0
          <h2 class="type1">診療科目</h2>
          <div class="img-box mb30">
          <a href="http://datumou.ueno-biyou.com/" target="_blank"><img src="images/index_banner_datsumou.jpg" width="335" height="150" alt="" class="fleft over1 mb_indexbanner" /></a>
          <a href="./tattoo2/" target="_blank"><img src="images/index_banner_tattoo.jpg" width="335" height="150" alt="" class="fright over1" /></a><div class="aclear"></div>
          <a href="http://www.ueno-biyou.com/fraxel/" target="_blank"><img src="images/index_banner_fraxel.jpg" width="335" height="150" class="fleft over1 mb_indexbanner" /></a>
          <a href="http://www.ueno-aga.com/" target="_blank"><img src="images/index_banner_aga.jpg" width="335" height="150" class="fright over1" /></a><div class="aclear"></div>
          <a href="./skin-photorf/index.html#photosilkplus"><img src="images/index_banner_photosilk.jpg" width="335" height="150" alt="" class="fleft over1" /></a>
          <a href="./mole-kanpan/"><img src="images/index_banner_kanpan.jpg" width="335" height="150" alt="" class="fright over1" /></a><div class="aclear"></div>
          </div>
   
          <h2 class="type1"><a href="./news/">&gt;&gt; 新着情報の一覧を見る</a>新着情報</h2>
<div id="news">
            <dl>
<?php 
//ファイルの内容を取得 表示
$lines = newsListSortUser(file($file_path), $encodingType);
foreach ($lines as $key => $val) {
    if ($key >= '5') {
        break;
    }
    $lines_array = explode(",", $val);
    $upymd = ymd2format($lines_array[1], $encodingType);
    //日付フォーマットの適用
    $lines_array[3] = rtrim($lines_array[3]);
    $title = title_format($lines_array[3], $lines_array[2], $lines_array[0], $post_path);
    //タイトルのフォーマットの適用
    //ブラウザ出力
    echo <<<EOF
<dt>{$upymd}</dt>
<dd>{$lines_array[3]}</dd>
EOF;