Exemple #1
0
			function go_there(id){
		 		var where_to= confirm("Tem a certeza que pretende eliminar este registo?");
				if (where_to== true){
		   			window.location="post.php?action=delete&id="+id;
		 		}
		}
		</script>
	</head>
	<body>
	<div id="wrapper">
		<a href="admin.php" id="adminlogo">Back to Salsa Latina</a>
		<a href="session.php?logout=1" id="logout" class="button">Sair</a>
		<a href="pdf.php" id="export" class="button">Exportar para PDF</a>
		<a href="addnew.php" id="addguest" class="button">Adicionar novo Convidado</a>
		<br /><br /><div id="countGuests">Total de Convidados: <?php 
echo $gl->countGuests();
?>
</div>
		<hr />
		<h3>Últimos 30 Registos</h3>
		<p id="search">
			<form method="GET" action="admin.php">
				<input type="text" name="searchbox" id="searchbox" /><label for="searchbox" id="searchlbl">Pesquisar por Nome</label>
			</form>
		</p>
		<br />
		<table id="list">
			<tr>
 				<th width="20px">ID</th>
 				<th width="300px">Nome</th>
				<th width="230px">E-mail</th>
Exemple #2
0
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>Ecrã de Administração Guest List</title>
		<link href="style.css" media="screen" type="text/css" rel="stylesheet" />
	</head>
	<body>
	<div id="wrapper">
		<a href="admin.php" id="adminlogo">Back to Salsa Latina</a>
		<a href="session.php?logout=1" id="logout" class="button">Sair</a>
		<a href="pdf.php" id="export" class="button">Exportar para PDF</a>
		<a href="addnew.php" id="addguest" class="button">Adicionar novo Convidado</a>
		<br /><br /><div id="countGuests">Total de Convidados: <?php 
echo $gl->countGuests();
?>
</div>
		<hr />
	<form id="signup" method="POST" action="post.php">
	<h3>Editar <?php 
echo $guest["name"];
?>
</h3>
	<br /><br />
		<label for="id">ID</label><input type="text" name="id" id="id" value="<?php 
echo $guest["id"];
?>
" READONLY />
		<br />
		<label for="nome">Nome</label><input type="text" name="nome" id="nome" value="<?php