ニュース一覧

HTML; // MySQLÀܳ $con = pbof_mysql_connect(); //2017.11.07 IL Äɲà ¥µ¡¼¥аܹÔÂбþ // ¥«¥ƥ´¥ê¥ꥹ¥È $category_array = array(); $category_name_array = array(); $sql = "select mid, name from scj_category order by sid"; @mb_convert_variables($enc_db, $enc_in, $sql); $rst = mysqli_query($con, $sql); while ($col = mysqli_fetch_array($rst)) { @mb_convert_variables($enc_in, $enc_db, $col); $category_array[] = $col['mid']; $category_name_array[$col['mid']] = $col['name']; $category_rname_array[$col['name']] = $col['mid']; } mysqli_free_result($rst); // ¥¤¥ó¥ե©¥᡼¥·¥ç¥ó¥ꥹ¥È $news = ''; $cate = $category_rname_array['¥ץ쥹¥롼¥à']; $year = ''; //$sql = "select scj_blog.mid, scj_blog.cate, scj_blog.title, scj_blog.vdate, scj_category.sub, scj_category.mainid, date_format(from_unixtime(scj_blog.vdate), '%Y') as year from scj_blog inner join scj_category on scj_blog.cate = scj_category.mid where scj_blog.view = '1' and scj_blog.cate = '22' order by scj_blog.vdate desc"; $sql = "select scj_blog.mid, scj_blog.cate, scj_blog.title, scj_blog.vdate, scj_category.sub, scj_category.mainid, scj_category.grp, date_format(from_unixtime(scj_blog.vdate), '%Y') as year from scj_blog inner join scj_category on scj_blog.cate = scj_category.mid where scj_blog.view = '1' and scj_blog.vdate <= '{$now}' and ( scj_category.name != '¥ץ쥹¥롼¥à' and scj_category.name != '¥ץ쥹¥ê¥꡼¥¹' ) order by scj_blog.vdate desc"; @mb_convert_variables($enc_db, $enc_in, $sql); $rst = mysqli_query($con, $sql); $cnt = 0; $view = true; while ($col = mysqli_fetch_array($rst)) { if ($year=='') { $year = $col['year']; $cnt++; $news .= "
  • ¢£".$year."ǯÅÙ\n
      \n"; } elseif ($year != $col['year']) { $year = $col['year']; $cnt++; $news .= "
    \n
  • \n"; $news .= "
  • ¢£".$year."ǯÅÙ\n
      \n"; $view = false; } @mb_convert_variables($enc_in, $enc_db, $col); if ($view) { $news .= '
    • '; $item = $base_html; $path = './dat/img/blog/'.$col['mid'].'/index.jpg'; if (is_file($path)) { $img = '
      '.$title.'
      '; } else { $img = '
      Array
      '; } $item = str_replace('<-img->', $img, $item); $title = $col['title']; $title = html_entity_decode($title, ENT_QUOTES, $enc_in); $title = strip_tags($title); $item = str_replace('<-title->', $title, $item); $item = str_replace('<-date->', date('Y.m.d', $col['vdate']), $item); $item = str_replace('<-cate->', $category_name_array[$col['cate']], $item); if ($category_name_array[$col['cate']]=='EVERY ONE') { $page = 'everyone.php'; } elseif ($category_name_array[$col['cate']]=='¥ץ쥹¥롼¥à') { $page = 'press.php'; } elseif ($col['mainid']==5) { $page = 'press.php'; } else { $page = 'sc_activity.php'; } $item = str_replace('<-link->', '/scjcms/'.$page.'?d='.$col['mid'], $item); $news .= $item; $news .= "
    • \n"; } } if ($news) $news .= "
    \n
  • \n"; mysqli_free_result($rst); //$news .= ''; // 2010°ÊÁ° //$news .= '
  • ¢£2010ǯÅÙ
  • '; //$news .= '
  • ¢£2009ǯÅÙ
  • '; // HTMLɽ¼¨ header($html_header); header('Content-Language: ja'); $html = mb_convert_encoding($news, $enc_out, $enc_in); echo $html; // MySQLÀܳ²ò½ü $con = mysqli_close($con); exit; ?>

     

    アニュアルレポート/ニュースレター

    <-img->

    <-title->

    HTML; $url = '../news/publications/index.html'; $buff = ""; $fp = fopen($url,"r"); while ( !feof($fp) ) { $buff .= fgets($fp); } fclose($fp); $buff = preg_replace('/^.*?/s', '', $buff); $buff = preg_replace('/.*$/s', '', $buff); $buff = preg_replace('/^.*?.*$/s', '', $buff); $buff = str_replace(array("\r\n","\n","\r"), '', $buff); $buff_array = explode("", $buff); $info_publications_array = array(); foreach ($buff_array as $val) { preg_match('/href="(.*?)"/', $val, $link); preg_match('/>([^<]*?)<\/a>/', $val, $title); preg_match('/class="t12">([0-9\.]*?)MB'/news/publications/'.$link[1], 'title'=>$title[1], 'size'=>$size[1].'MB'); } } @mb_convert_variables($enc_in, 'SJIS', $info_publications_array); // Äê´üȯ¹Ôʪ¥»¥åÈ $cnt = 0; $html_all = '
    '; foreach ($info_publications_array as $val) { $cnt++; //¢­2021.03.24 IL ¥³¥á¥ó¥Ȳ½ SCJÍͤ´Í×˾¤ˤè¤êÁ´¤ƤÎȯ¹Ôʪ¤¬ɽ¼¨¤µ¤ì¤ë¤褦¤Ë15¸ÄÀ©¸¤òÇӽü // if ($cnt > 15) break; //¢¬2021.03.24 IL ¥³¥á¥ó¥Ȳ½ SCJÍͤ´Í×˾¤ˤè¤êÁ´¤ƤÎȯ¹Ôʪ¤¬ɽ¼¨¤µ¤ì¤ë¤褦¤Ë15¸ÄÀ©¸¤òÇӽü $html = $base_html; $html = str_replace('<-img->', '', $html); $title = $val['title'].'¡¡'.$val['size']; $html = str_replace('<-title->', $title, $html); $html = str_replace('<-cate->', 'Äê´üȯ¹Ôʪ', $html); $html = str_replace('<-link->', $val['link'].'" target="_blank', $html); $html = str_replace('', '', $html); $html_all .= $html; } $html_all .= '
    '; // HTMLɽ¼¨ header($html_header); header('Content-Language: ja'); $html = mb_convert_encoding($html_all, $enc_out, $enc_in); echo $html; ?>
    PAGE TOP

    〒101-0047 東京都千代田区内神田2-8-4 山田ビル4F