|
Server : Apache/2.2.2 (Fedora) System : Linux App1.pathumtani.go.th 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686 User : apache ( 48) PHP Version : 5.2.9 Disable Function : NONE Directory : /var/www/html/pathumthani_vc/ |
Upload File : |
<?
session_start();
if ($session_id =="" ){
header ("Location: ../");
}
$frame_right_name = "usr_detail.php" ;
$frame_right_name = "usr_right.php" ;
?>
<? include ("../inc/conndb.inc.php") ; ?>
<?
$sql1 = " SELECT * , office_detail.id as office_id ";
$sql1 = $sql1 . " FROM login ";
$sql1 = $sql1 . " INNER JOIN `office_detail` ON (`login`.`office_refid` = `office_detail`.`id`) ";
$sql1 = $sql1 . " where login.id like '$session_id' ";
$query_result1=mysql_db_query($dbname,$sql1);
if (mysql_errno() != 0 ) { echo "<hr> <b> " .mysql_error() . "<b><hr> " ; }
// echo " <hr> $sql1 <hr> ";
$result1= mysql_fetch_array($query_result1) ;
$db_officeid = $result1[office_id] ;
$db_name = $result1[th_name] ;
$db_username = $result1[username] ;
$pri1 = $result1[pri1] ;
if ($pri1 == 20 ){ $frame_right_name = "approve/" ; }
// echo $frame_right_name = usr_detail.php ;
// die;
?>
<html>
<head>
<title> ระบบปรับปรุงข้อมูล - <?=$db_name?> </title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874">
</head>
<frameset rows="*" cols="170,*" framespacing="0" frameborder="no" border="0" bordercolor="#A5B2CE">
<frame src="usr_left.php?pri1=<?=$pri1?>" name="frame_left" id="frame_left">
<frame src="<?=$frame_right_name?>" name="frame_right" id="frame_right">
</frameset>
<noframes><body>
</body></noframes>
</html>