[1002] PHP入門班
<?php
//套用樣板
function theme($them_file=null){
include_once('tbs_class.php');
$TBS =new clsTinyButStrong ;
$TBS->LoadTemplate($them_file,False) ;
$TBS->Show() ;
}
//自動抓出目前學期
function get_seme(){
$year=date("Y")-1911;
$mon=date("n");
if($mon<=2){
$year=$year-1;
$seme="{$year}2";
}elseif($mon>=3 and $mon<=8){
$seme="{$year}1";
}else{
$seme="{$year}2";
}
return $seme;
}
?>