예제 #1
0
function menuHeader($logged, $nick, $role)
{
    $header = '<div class="Header"> 
					<table class="Cabecera">
						<tr>
							<td class="Title">
								<h1>Bigou</h1>
							</td>
							<td>';
    if (!$logged) {
        $header = $header . notLogged();
    } else {
        $header = $header . logged($nick);
    }
    $header = $header . '</td>
						</tr>
						<tr>
							<td class="Menu" colspan="2">
								<a href="main.php"><button class="Basic Menu" name="main">Inicio</button></a><!--';
    if ($logged) {
        $header = $header . '--><a href="new_album.php"><button class="Basic Menu" name="newAlbum">Crear Álbum</button></a><!--
							   --><a href="new_photo.php"><button class="Basic Menu" name="newPhoto">Subir Foto</button></a><!--';
    }
    $header = $header . '--><a href=".html"><button class="Basic Menu" name="credits.php">Créditos</button></a>
						</td>
					</tr>
				</table>
			</div>';
    return $header;
}
예제 #2
0
function menuHeader($logged, $nick, $role)
{
    $header = '<div class="Header"> 
					<table class="Cabecera">
						<tr>
							<td class="Title">
								<h1>Bigou</h1>
							</td>
							<td>';
    if (!$logged) {
        $header = $header . notLogged();
    } else {
        $header = $header . logged($nick);
    }
    $header = $header . '</td>
						</tr>
						<tr>
							<td class="Menu" colspan="2">
								<a href="main.php"><button class="Basic Menu" name="main">Inicio</button></a><!--';
    if ($logged) {
        if ($role == "partner") {
            $header = $header . '--><a href="albums.php"><button class="Basic Menu" name="albums">Mis Álbumes</button></a><!--
								   --><a href="albums.php"><button class="Basic Menu" name="albums">Otros Álbumes</button></a><!--
								   --><a href="albums.php"><button class="Basic Menu" name="albums">Etiquetas</button></a><!--
								   --><a href="albums.php"><button class="Basic Menu" name="albums">Usuarios Registrados</button></a><!--';
        } else {
            $header = $header . '--><a href="albums.php"><button class="Basic Menu" name="albums">Administrar Álbumes</button></a><!--
								   --><a href="administrate_users.php"><button class="Basic Menu" name="administrate_users">Administrar Usuarios</button></a><!--
								   --><a href="users.php"><button class="Basic Menu" name="view_users">Usuarios Registrados</button></a><!--';
        }
    }
    $header = $header . '--><a href="credits.php"><button class="Basic Menu" name="credits">Créditos</button></a>
						</td>
					</tr>
				</table>
			</div>';
    return $header;
}
예제 #3
0
	<header class='main' id='h1'>
		<?php 
if (isset($user)) {
    echo '<a href="logOut.php">Logout</a>';
} else {
    echo '<a href="registro.html">Registrarse</a>
					  <a href="login.html">Login</a>';
}
?>
		<h2>Quiz: el juego de las preguntas</h2>
    </header>
		<?php 
if (isset($user)) {
    echo logged($tipo);
} else {
    echo notLogged();
}
?>
    <section class="main" id="s1">  
		<div>
		Aqui se visualizan las preguntas y los creditos ...
		</div>
    </section>
	<footer class='main' id='f1'>
		<p><a href="http://es.wikipedia.org/wiki/Quiz" target="_blank">Que es un Quiz?</a></p>
		<a href='https://github.com/mafonso001'>Git Hub</a>
		<?php 
if (!isset($_SESSION['user'])) {
    echo "<a href='logOut.php'>Log Out</a>";
}
?>