Viewing file: template_.php (3.76 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php include_once("../global1.php"); //include_once("../global0.php"); include_once("../../class/clsConnection.php"); include_once("../../class/clsDB.php"); include_once("../../ums/clsUser.php"); session_start(); ob_start();
if (session_is_registered("oU")) { $oU->Lang = ($lang=="") ? "th" : $lang; //querystring when select language if ($StID<>"") $oU->StID = $StID; //querystring when selectmenu; if ($GpID<>"") $oU->GpID = $GpID; //querystring when selectmenu; if ($MnID<>"") $oU->MnID = $MnID; //querystring when selectmenu; if ($MmnID<>"") $oU->MmnID = $MmnID; //echo "$oU->StID, $oU->GpID, $oU->MnID"; $oU->GetRightsByMenu(); }else { $sessionID = session_id(); if ($oU->SessionID<>$sessionID){ if ($refFromLogoutPage==""){ echo "<meta http-equiv='refresh' content='0; URL=../logout.php'>"; exit(); } } }
/////////////////////////////////////////////////////// include_once("../global.php"); include_once("../link/function.php"); //include_once("../class/clsAcadYearConfig.php");
function showHeader() { global $oU; global $sysDate; global $mm; ?> <html> <head> <title><?php echo $GLOBALS["TITLE"];?></title> <meta http-equiv="Content-Type" content="text/html; charset=TIS-620"> <link href="../source/style.css" rel="stylesheet" type="text/css"> <SCRIPT language="JavaScript1.2" src="../source/mainmenu.js" type="text/javascript"></SCRIPT> <SCRIPT language="JavaScript1.2" src="../source/menuConfig.js" type="text/javascript"></SCRIPT> <script language="javascript" src="../source/calendarDateInput.js"></script> </head> <body leftmargin="0" topmargin="0" bgcolor="<?php echo $GLOBALS["COLOR_BG_PAGE"];?>"> <table width="1003" border="0" cellspacing="0" cellpadding="0"> <tr> <td colspan="2"><a name="#top"><img src="<?php echo "../".$GLOBALS["BANNER"];?>" align="absmiddle" border="0"></a></td> </tr> <tr> <td background="../picture/td1.gif" height="14"> </td> <td background="../picture/td2.gif" height="14" align="right"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_4"];?>"><img src="../picture/buddy.gif" alt="Online" width="18" height="17" border="0" align="absmiddle"><?php echo ' ภาคการศึกษาที่ '.$GLOBALS["SEMESTER"].'/'.$GLOBALS["ACADYEAR"].' ';?> </font></td> </tr> <tr valign="top"> <td width="201" valign="top" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_1"];?>" align="center"> <table width="179" border="0" cellpadding="1" cellspacing="0"> <tr valign="top"> <td width="177" height="21" align="center"> <?php $dd=fullDate(getNowDateFw()); include("../source/mainmenu.php"); //include("/home/eregis/public_html/eregisTest/source/menu.php"); ?> </td> </tr> </table></td> <td width="840" valign="top"> <?php if ($mm){ include("../source/submenu.php"); showFooter(); exit(); } }
function showFooter() { ?> </td> </tr> <tr> <td bgcolor=<?php echo $GLOBALS["COLOR_BG_TD_1"];?>><br><br><font size="1" color="<?php echo $GLOBALS["COLOR_FONT_5"];?>"><img src="../picture/info.gif" align="absmiddle" border="0"> การแสดงผลที่เหมาะสมแนะนำ<br> ให้ใช้ browser เป็น Internet<br> Explorer และขนาดความกว้าง<br> หน้าจอ (Screen Area) เป็น<br> 1024x768 pixels</font><br><br></td> <td align="right" width="840"><br><br><br><br><br><a href="#top"><img src="<?php echo $GLOBALS["TOPLOGIN"];?>" align="absbottom" border="0"></a></td> </tr> <tr bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_3"]; ?>"> <td height="22" colspan="2" align="center"><font size="1" color="<?php echo $GLOBALS["COLOR_FONT_1"];?>"><b>Copyright © Computer Center Burapha University, Chon Buri</b></font></td> </tr> </table> </body> </html> <?php ob_end_flush(); } ?>
|