Viewing file: template.php (1.56 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
//
// Infomation System template.
//
include_once("../../info/template.php");
//
// Local Module utilities.
//
include_once("../global.php");
include_once("../link/function.php");
//
// Local JavaScript and CSS.
//
// Be careful about array-index if add this code in another page.
//$_EXTENDED_CSS = array("../source/style.css");
//$_EXTENDED_JS = array("../source/mainmenu.js", "../source/menuConfig.js", "../source/calendarDateInput.js");
// Safe add (bugs fixed).
// By default it will replace, but if you pass in FALSE as the second argument
// you can force multiple headers of the same content-type.
CSS_Header("../source/style.css");
JS_Header("../source/mainmenu.js");
JS_Header("../source/menuConfig.js", false);
JS_Header("../source/calendarDateInput.js", false);
/*
$GLOBALS["SYSTEM_DETAIL"] = "วันที่ " . EN2THDate($_SESSION["sysDate0"]) . " ภาคการศึกษาที่ " . $GLOBALS["SEMESTER"] . "/" . $GLOBALS["ACADYEAR"];
// 11/05/2549 => 11/05/2006
function TH2ENDate($datestr = "")
{
$retval = "";
if ($datestr != "" && preg_match("/\d{2}\/\d{2}\/\d{4}/", $datestr)) {
list($dd, $mm, $yy) = preg_split("/\//", $datestr);
$retval = $dd . "/" . $mm . "/" . ($yy - 543);
}
return $retval;
}
// 11/05/2006 => 11/05/2549
function EN2THDate($datestr = "")
{
$retval = "";
if ($datestr != "" && preg_match("/\d{2}\/\d{2}\/\d{4}/", $datestr)) {
list($dd, $mm, $yy) = preg_split("/\//", $datestr);
$retval = $dd . "/" . $mm . "/" . ($yy + 543);
}
return $retval;
}
*/
?>
|