Path : /var/www/html/smart_kpp2_bk17 มีค 69/
File Upload :
Current File : /var/www/html/smart_kpp2_bk17 มีค 69/index_mobile.php

<table width="100%" border="0" cellspacing="0" cellpadding="0">
	<tr bgcolor="#26354A"><td height="40" colspan="6" class="logo" nowrap="nowrap">&nbsp;AMSS++</td></tr>
	<tr bgcolor="#26354A"><td colspan="6" align="right" class="user"><font color="#FFFFFF">
<?php 
if(isset($_SESSION['login_user_id'])){
echo "$_SESSION[login_name]&nbsp;";
		if(isset($_SESSION['login_surname'])){
		echo $_SESSION['login_surname'];
		}
		if($_SESSION['login_status']==5 or $_SESSION['login_status']==15){
		echo "<script>alert('การ Login ด้วยเลขประจำตัวประชาชน เพื่อไปกำหนด Username และ Password กรุณาไปที่หน้าเว็บปกติ [AMSS++ for Desktop]');</script>\n";
		}
		if(isset($_SESSION['system_school_name'])){
		echo "&nbsp;[";
		echo $_SESSION['system_school_name'];
		echo "]&nbsp";
		}
echo "&nbsp;";
echo "<a href=logout.php>[ออก]</a>";
}
?>
 	</font></td></tr>
	
<?php 	
if(isset($alert)){	
if($alert==1 and $_SESSION['login_status']!=5 and $_SESSION['login_status']!=15){
?>
	<link rel="stylesheet" href="./jquery/themes/ui-lightness/jquery.ui.all.css">
	<script src="./jquery/jquery-1.5.1.js"></script>
	<script src="./jquery/external/jquery.bgiframe-2.1.2.js"></script>
	<script src="./jquery/ui/jquery.ui.core.js"></script>
	<script src="./jquery/ui/jquery.ui.widget.js"></script>
	<script src="./jquery/ui/jquery.ui.mouse.js"></script>
	<script src="./jquery/ui/jquery.ui.draggable.js"></script>
	<script src="./jquery/ui/jquery.ui.position.js"></script>
	<script src="./jquery/ui/jquery.ui.resizable.js"></script>
	<script src="./jquery/ui/jquery.ui.dialog.js"></script>

	<script>
	// increase the default animation speed to exaggerate the effect
	$.fx.speeds._default = 300;
	$(function() {
		$( "#dialog" ).dialog({
			height: 400,
			width: 320,
			minHeight: 400,
			minWidth: 320,
			autoOpen: true,
			show: "blind",
			hide: "explode",
				modal: true,
				resizable: false});
		});

	</script>
<div id="dialog" title="การแจ้งเตือน">
<?php 
$arr_length=count($system_alert_ar);
if($arr_length>=1){
		$M=1;
		for($x=1;$x<=$arr_length;$x++){			
					if(($M%2) == 0)
					$color="#E5E5FF";
					else  	$color="#FFFFFF";
		echo "<font  size=2>$M. $system_alert_ar[$x]</font><br />";
		$M++;
		}		
}
else{
echo "<div align='center'>";
			echo "<font color='#006666' size='3'><strong>ไม่มีข้อความแจ้งเตือน</strong>";			
echo "</div>";
}
?>
</div>
<?php		
}
}

	if($_GET['option']!=""){
	echo "<tr bgcolor='#FFCC00'>";
	echo "<td colspan='6'>";
	echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'>";
	echo "<tr bgcolor='#6699FF'>";
	echo "<td align='left' nowrap='nowrap' class=stylemenu height='14'>&nbsp;&nbsp;&nbsp;";
		if(isset($_SESSION['module_name_'.$_GET['option']])){
		echo $_SESSION['module_name_'.$_GET['option']];
		}
	echo "</td><td align='right'>";
	echo "<span id='Aclock' ></span>";
	echo "&nbsp;&nbsp;&nbsp;";
date_default_timezone_set('Asia/Bangkok');
	echo "</td></tr>";
	echo "</table>";
	echo "</td></tr>";
	}
	else{
	require_once("menu_mobile.php");
	}
	  ?>
	<tr>
	<td colspan="6">
	<!-- Content -->
	
		<?php require_once("".$MODPATHFILE."") ?>
	<!-- End Content -->
	</td>
	</tr>
</table>