assign("date", $date); $smarty->assign("date2", YmdHis2($lag_hour)); // if(empty($_GET[schday])){ $smarty->assign("nodata", "出勤データがありません。" ); }else{ $sch_regist_day = $_GET[schday]; $today_sch = "sch/".$sch_regist_day.".csv"; // $cast_int = GetCsv2("../".LOGDIR, CAST_LOG, $today_sch, SORT_ASC, 1); // if(isset($cast_int)){ while(list($key,$value) = each($cast_int)){ $ckey[] = $value; } } // $ID = 0; $Data = file("../".LOGDIR."/".CAST_LOG); for($i = 0; $i= $ID) $ID = $line[0]+1; } // for($u=0; $u<$ID; $u++){ if($cast_int[$u][2] != 1){ unset($cast_int[$u]); } } // if(isset($cast_int)){ $cast_int2 = array_values($cast_int); } $cast_int2_2 = recursive_mb_convert_encoding($cast_int2,"SJIS"); $smarty->assign("prof",$cast_int2_2); } // $smarty->assign("tel", TEL ); $smarty->assign("tel2", TEL2 ); $smarty->assign("cast_cols", CAST_COLS ); // $smarty->display(basename($_SERVER['SCRIPT_NAME'],".php").".tpl"); ?>