//基本情報設定値取得
//$setting_data=setting_data($conn);
$setting_data=10;
//文字コード変換
mb_convert_variables("UTF-8","EUC-JP",$_POST);
//mb_convert_variables("Shift_JIS","EUC-JP",$_POST);
extract($_POST);
//カテゴリ分類がされていた場合処理する。
$category=1;
if($category!=""){ $str_ty1="&ty1=".$category; }
//年月が指定されていない場合自動取得
if($_GET['st']==""){ $_GET['st']=date('Ym'); }
if($_GET['en']==""){ $_GET['en']=date('Ym'); }
//基幹システムよりデータ取得
$data=file_get_contents($get_https_path."oc100101.php?dom=".$dom."&st=".$_GET['st']."&en=".$_GET['en']."".$str_ty1);
//データが取得できたら処理を続ける
if($data!=""){
//取得したXML形式ファイルをXML形式XMLファイルで保存する
$rcd = copy($get_https_path."oc100101.php?dom=".$dom."&st=".$_GET['st']."&en=".$_GET['en']."".$str_ty1, "xml/".$_GET['st']."-".$_GET['en'].".xml");
preg_match_all("/<([^?\/>]+)>/x",$data,$match1);
foreach($match1[1] as $key => $val){
$match1_key[$val]=$val;
}
foreach($match1_key as $key => $val){
$data1=explode("<".$key.">",$data);
foreach($data1 as $key2 => $val2){
if(ereg("".$key.">",$val2)){
list($a,$b)=split("".$key.">",$data1[$key2]);
if($key!="informationList"){
$get_data[$key2][$key]=$a;
if($key=="start"){
$list_data[]=$a;
}
}
}
}
}
//データが取得できなかったら
}else{
//取得したXML形式ファイルが存在するかをチェックする
if(file_exists("xml/".$_GET['st']."-".$_GET['en'].".xml")===TRUE){
//XMLファイルが存在した場合データ取得し処理続行
$data=file_get_contents("xml/".$_GET['st']."-".$_GET['en'].".xml".$str_ty1);
if($data!=""){
preg_match_all("/<([^?\/>]+)>/x",$data,$match1);
foreach($match1[1] as $key => $val){
$match1_key[$val]=$val;
}
foreach($match1_key as $key => $val){
$data1=explode("<".$key.">",$data);
foreach($data1 as $key2 => $val2){
if(ereg("".$key.">",$val2)){
list($a,$b)=split("".$key.">",$data1[$key2]);
if($key!="informationList"){
$get_data[$key2][$key]=$a;
if($key=="start"){
$list_data[]=$a;
}
}
}
}
}
}
}
}
//文字コード変換
mb_convert_variables("UTF-8","Shift_JIS",$get_data);
//mb_convert_variables("UTF-8","auto",$info_category);
mb_convert_variables("UTF-8","auto",$keyword);
//mb_convert_variables("Shift_JIS","EUC-JP",$info_category);
$page_title=mb_convert_encoding($page_title,"Shift_JIS","EUC-JP");
//検索に該当しないものは配列より除外する
reset($get_data);
if($keyword!="" && count($get_data)>"0"){
while(list($id)=each($get_data)){
if(strstr($get_data[$id][title], $keyword)=="" and strstr($get_data[$id][body], $keyword)==""){
unset($get_data[$id]);
}
}
}
// 配列のソートを、ID順から公開開始日順に変更する。
// DATE .. 2009/12/04
// j-horita
// arsort($get_data);
foreach ($get_data as $key => $val) {
$arr[$key] = $val["start"];
}
array_multisort($arr,SORT_DESC,$get_data);
reset($get_data);
?>
if(count($get_data)=="0"){
if($search=="on"){
?>
インフォメーション一覧
過去の記事
if(count($list_data)>"0"){
ereg("([0-9]{4})([0-9]{8})",min($list_data),$min_ymd);
for($i=date('Y');$i>=$min_ymd[1];$i--){
?>
echo $i; ?>年
}
}
?>

該当するものがありません。
}else{ ?>障害、メンテナンス情報は現在ございません。
} }else{ while(list($id)=each($get_data)){ ereg("([0-9]{8})([0-9]{4})",$get_data[$id][start],$get_ymd); ?> } } ?>![]() |
▲このページの先頭へ |