:::

13-3 上課範例:function.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;
}
?>

:::

搜尋

QR Code 區塊

https%3A%2F%2Ftad0616.net%2Fmodules%2Ftad_book3%2Fpage.php%3Ftbdsn%3D568%26tbsn%3D20

書籍目錄

展開 | 闔起

線上使用者

54人線上 (17人在瀏覽線上書籍)

會員: 0

訪客: 54

更多…