:: 初始化 Base 類別
include_once("base.php"); // 載入函式庫
$BaseCtr = new BaseCtr(); // 初始化 Base 類別
include_once("base.php"); // 載入函式庫
$BaseCtr = new BaseCtr(); // 初始化 Base 類別
$BaseCtr -> transLocation("http://localhost/","1000"); // 一秒後自動轉址至 localhost 網頁
$BaseCtr -> transLocation("-1"); // -1 回上一頁 ; -2 回上二頁
//transFormLocation("網址","方式","資料[陣列]")
$BaseCtr -> transFormLocation("http://localhost/","POST","array(name=>'Jimmy')");
// 取得使用者IP
$BaseCtr -> alert("新增成功");
// Comfirm 視窗
$jsfn1 = 'alert("你按了YES");';
$jsfn2 = 'alert("你按了No");';
$DBCtr -> confirm("這是Confirm範例!",$jsfn1,$jsfn2);
$BaseCtr -> getIP(); // 取得使用者IP
$BaseCtr -> getBrowser(); // 取得客戶端上網設備資訊
$BaseCtr -> SiteUrl(); // 取得目前頁面路徑 ( http://jqnets.com:80/JQlib/index.php )
$BaseCtr -> CurrentPage(); // 取得目前頁面全部網址路徑 ( /JQlib/index.php )
$BaseCtr -> GetProtocol(); // 取得網域通訊協定 ( http / https )
$BaseCtr -> GetServerName(); // 取得主機網址名稱 ( jqnets.com )
$BaseCtr -> GetPort(); // 取得主機連接埠 ( 80 )
$BaseCtr -> GetUri(); // 取得此程式路徑 ( /JQlib/index.php )
$BaseCtr -> Redirect(); // 使用PHP轉址
$BaseCtr -> Previous(); // PHP 方式回上一頁
$BaseCtr -> SegmentUrl(); // 將網址分段成陣列 ( [0] => JQlib [1] => test.php )
$BaseCtr -> GetFirstSegment(); // 將網址分段成陣列 ( JQlib )
$BaseCtr -> GetLastSegment(); // 將網址分段成陣列 ( test.php )
$BaseCtr -> Salts(8,"mixed") // 判斷輸入的格式 ( number:數字 / letter:字母 / mix:混合)