function get_trialday(){
$taiken_day_pass = "/home/kyoto-eiyoiryo/kyoto-eiyoiryo.ac.jp/form/data/";
/*---------------------------------------------------------
イベント名一覧配列(taiken_name.php)を読み込む
---------------------------------------------------------*/
require_once($taiken_day_pass.'taiken_name.php');
//栄は日程がイベントごとに分かれているので、ファイル名をすべて取得して、日程を取得
//ディレクトリをオープンしてファイル名取得
if ($handle = opendir($taiken_day_pass)) {
/* ディレクトリをループ */
while (false !== ($file = readdir($handle))) {
if ($file != "." && $file != "..") $taiken_arr[] = $file;
}
closedir($handle);
}
//baitai_list.phpとend.txtとtaiken_name.phpは省く
$del_arr = array("baitai_list.php","end.txt","taiken_name.php");
foreach($taiken_arr as $key => $value){
if(in_array($value,$del_arr)) unset($taiken_arr[$key]);
}
//体験入学【締切】一覧
if (!($fp_end = fopen($taiken_day_pass.'end.txt', 'r')))
die('file open error');
while (!feof($fp_end)) {
$temp_end = str_replace("\n", '', fgets($fp_end, 4096)) ;
if ($temp_end != '')
$taiken_day_end[] = mb_convert_encoding($temp_end, 'UTF-8', 'SJIS-win');
}
fclose($fp_end);
/*---------------------------------------------------------
今後のイベントの開催日を$taiken_day配列にタイムスタンプで格納
---------------------------------------------------------*/
foreach($taiken_arr as $value){
//体験入学開催日
if (!($fp = fopen($taiken_day_pass.$value, 'r')))
die('file open error');
while (!feof($fp)) {
$temp = str_replace("\n", '', fgets($fp, 4096)) ;
if ($temp != ''){
$temp = mb_convert_encoding($temp, 'UTF-8', 'SJIS-win');
if(!in_array($temp,$taiken_day_end)){
$temp_value = strtotime(mb_substr($temp,0,mb_strpos($temp,'(')));//タイムスタンプ取得
if($temp_value > time()){//過去の日程は出さない
$taiken_day[] =$temp_value;
}
}
}
$i++;
}
fclose($fp);
}
//並べ替え
sort($taiken_day);
//重複トル
$taiken_day = array_unique($taiken_day);
//var_dump($taiken_day);
/*---------------------------------------------------------
今後2回の日程を$a_trial_dayに格納(月、日、曜日、月、日、曜日)
---------------------------------------------------------*/
$wday_name = array("日","月","火","水","木","金","土");
$i = 0;
foreach($taiken_day as $value){
$a_trial_day[] = date('n',$value);
$a_trial_day[] = date('j',$value);
$a_trial_day[] = $wday_name[date('w',$value)];
$i++;
if($i === 2) break;
}
return $a_trial_day;
}
?>
栄養士科
管理栄養士科3年次内部進学制度
- 毎年定員20名募集!!
※編入学含む
- プラス2年で管理栄養士の
資格を手に入れる!!
- 管理栄養士国家試験に
強い管理栄養士科で
学べる!!
内部進学の仕組み
京栄校な人京栄校栄養士科
卒業生・卒業見込者
- 栄養士科
- 管理栄養士科3年次 【内部進学試験】
- 3~4年次の通常カリキュラム
- 単位不足の授業を消化
- 京栄校管理栄養士科 卒業!管理栄養士国家試験
受験資格取得
- 管理栄養士国家試験受験
- 管理栄養士免許取得