
<?php
$loginSql = "
SELECT * 
FROM o_karyawan,o_ruangan,o_gedung
WHERE userid='".$_SESSION['SES_LOGIN']."'
AND o_karyawan.id_gd=o_gedung.id_gd
AND o_karyawan.id_r=o_ruangan.id_r";
$loginQry = mysql_query($loginSql, $koneksidb)  or die ("Query user salah : ".mysql_error());
$nomor  = 0; 
$loginRow = mysql_fetch_array($loginQry);

?>
<div><left><form name="logForm" method="post" action="?page=Ubah-Password" enctype="multipart/form-data">
<table width="100%" border="0" class="table-list">
  <tr>
    <td colspan="6"><font size="4">User Info</font></td>
    </tr>
  <tr>
    <td width="16%" align="right">Username</td>
    <td width="16%">: <b><?php echo $loginRow['userid']; ?></b></td>
    <td width="10%" align="right">Nama </td>
    <td width="16%">: <b><?php echo $loginRow['nama_karyawan']; ?></b></td>
    <td width="10%" align="right">Gedung</td>
    <td>: <b><?php echo $loginRow['gedung']; ?></b></td>
  </tr>
  <tr>
    <td align="right">Password </td>
    <td><input type="submit" name="btnUbah" value=" Ubah Password" /></td>
    <td align="right">Level  Akses</td>
    <td><b>: <?php echo $loginRow['level']; ?></b></td>
    <td align="right">Ruangan</td>
    <td>: <b><?php echo $loginRow['ruangan']; ?></b></td>
  </tr>
</table>
</form>

