@session_start();
if($_GET["lg"] == "en")
{
$_SESSION['lg'] = "en";
}
if($_GET["lg"] == "th")
{
$_SESSION['lg'] = "th";
}
require_once("include/db_pages.php");
if($_SESSION['lg'] == "en")
{
$txt_Id = "9";
$galleryId = "1";
}
else
{
$txt_Id = "10";
$galleryId = "2";
}
$call = new clsPages();
$result=$call->get_pages_row($txt_Id);
if(mysql_num_rows($result)){
if($result){
$row = mysql_fetch_array($result);
$txt_pagesTitle = $row['pagesTitle'];
$txt_pagesDescription = $row['pagesDescription'];
$txt_pagesKeyword = $row['pagesKeyword'];
$txt_pagesDetail = $row['pagesDetail'];
}
}
?>
if($_SESSION['lg'] == "th")
{ ?>
}
else
{ ?>
}
?>
include "header.php"; ?>
require_once("include/db_bannerhome.php");
$call = new clsBannerHome();
$result = $call->get_bannerhome_list_categoryId(2);
if(mysql_num_rows($result)){
if($result){
$i=0;
while($row = mysql_fetch_array($result))
{
$txt_fileId = $row['fileId'];
$txt_fileTitle = $row['fileTitle'];
$txt_fileDesc = $row['fileDesc'];
$txt_fileActive = $row['fileActive'];
$txt_fileName = $row['fileName'];
$txt_galleryId = $row['galleryId'];
if($row['linkto'] <> "")
{
$txt_linkto = $row['linkto'];
}
else
{
$txt_linkto="#";
}?>
}
}
}
?>
require_once("include/db_gallery.php");
$call = new clsGallery();
$result = $call->get_gallery_list_galleryId($galleryId);
if(mysql_num_rows($result)){
if($result){
$i=0;
while($row = mysql_fetch_array($result))
{
$txt_fileId = $row['fileId'];
$txt_fileTitle = $row['fileTitle'];
$txt_fileDesc = $row['fileDesc'];
$txt_fileActive = $row['fileActive'];
$txt_fileName = $row['fileName'];
$txt_galleryId = $row['galleryId'];
$txt_fileLink = $row['fileLink'];
$upddateBy = $row['upddateBy'];
$updateDate = $row['updateDate']; ?>
-
}
}
}
?>
include "footer.php"; ?>