<?php 
include "include/header_admin.php";
include 'include/admin_menu.php';
$id = $_SESSION['ID'];
$res = admindetail($id);
$rows = mysql_num_rows($res);
if ($rows == 1) {
    while ($row = mysql_fetch_array($res)) {
        $username = $row['Admin_loginid'];
        $email = $row['Admin_login_email'];
        $pass = $row['Admin_login_password'];
        $h_name = $row['Hotel_name'];
        $desc = $row['Hotel_description'];
        $logo = $row['Hotel_logo'];
    }
}
?>
<br/><div id="image7"></div><br/><div id="login8">
<form method="post" action="" enctype="multipart/form-data">
<table>
<tr>
<td>Username:</td>
<td><input type="text" placeholder="UserName" id="username1" name="username1" value="<?php 
echo $username;
?>
"/><?php 
echo "\t" . $username;
?>
<input type="button" value="Edit" id="usere0"/></td>
</tr>
 <script src="include/jquery.js" type="text/javascript"></script>
  <script src="include/ext.js" type="text/javascript"></script>

<script>
  var RecaptchaOptions = { theme : 'clean' };
</script>
  
	</head>
<body id="body2">
<div id="content">

<div class="header2">
<?php 
echo $_SESSION['Hotel_name'];
$logo1 = $_SESSION['ID'];
$arr = admindetail($logo1);
while ($row = mysql_fetch_array($arr)) {
    $dp = $row['Hotel_logo'];
}
if ($dp != "") {
    $logo = $dp;
} else {
    $logo = "default_profile.png";
}
?>
<span style="float:right; margin-top:5px;"><a href="logout.php"><img src="images/logout-button-md.png" style="width:2cm; height:2cm;"/></a></span>
</div>
<div>
<br/>
<?php 
print "<img src=\"upload/{$logo}\" id=\"thumb\"/><br/>";