<?php
/*
// Crea la connessione
$conn = new mysqli($servername, $username, $password, $database);

// Controlla la connessione
if ($conn->connect_error) {
    die("Connessione fallita: " . $conn->connect_error);
}

// Query SQL per estrarre le lingue
$sql = "SELECT languagename, languageflag, languageacronym FROM languagesdrop";
$result = $conn->query($sql);

$languages = [];
if ($result->num_rows > 0) {
    while($row = $result->fetch_assoc()) {
        $languages[] = $row;
    }
}

// Chiudi la connessione
$conn->close();
*/ ?>
<!-- Top Bar Start -->
<div class="topbar">

	<nav class="navbar-custom">

		<ul class="list-inline float-right mb-0">
			<!-- language-->
			<li class="list-inline-item dropdown notification-list hide-phone">
				<a class="nav-link dropdown-toggle arrow-none waves-effect text-white" data-toggle="dropdown" href="#" role="button"
					aria-haspopup="false" aria-expanded="false">
					English <img src="assets/images/flags/us_flag.jpg" class="ml-2" height="16" alt="" />
				</a>
				<div class="dropdown-menu dropdown-menu-right language-switch">

				</div>
			</li>




			<li class="list-inline-item dropdown notification-list">
				<a class="nav-link dropdown-toggle arrow-none waves-effect nav-user" data-toggle="dropdown" href="#" role="button"
					aria-haspopup="false" aria-expanded="false">
					<img src="assets/images/users/avatar-6.jpg" alt="user" class="rounded-circle">
				</a>
				<div class="dropdown-menu dropdown-menu-right profile-dropdown ">
					<!-- item-->
					<div class="dropdown-item noti-title">
						<h5>Welcome</h5>
					</div>
					<a class="dropdown-item" href="../"><i class="mdi mdi-account-circle m-r-5 text-muted"></i> Profile</a>
					<a class="dropdown-item" href="#"><i class="mdi mdi-settings m-r-5 text-muted"></i> Settings</a>

					<div class="dropdown-divider"></div>
					<a class="dropdown-item" href="#"><i class="mdi mdi-logout m-r-5 text-muted"></i> Logout</a>
				</div>
			</li>
		</ul>

		<ul class="list-inline menu-left mb-0">
			<li class="float-left">
				<button class="button-menu-mobile open-left waves-light waves-effect">
					<i class="mdi mdi-menu"></i>
				</button>
			</li>

		</ul>


		<div class="clearfix"></div>
	</nav>
</div>
<!-- Top Bar End -->