Usamos cookies para medir audiência e melhorar sua experiência. Você pode aceitar ou recusar a qualquer momento. Veja sobre o iMasters.
gente é o seguinte, to criando um site mas to com uns probleminha com o css.
olha o que ta acontecendo (firefox):
nao sei pq ta acontecendo isso
body{
margin:0px 0px 0px 0px;
padding:0px 0px 0px 0px;
background:#3C6;
} font-size:12px;
border:none;
} font-size:12px;
border:none;
} font-size:12px;
border:none;
} font-size:25px;
color:#F30;
margin:0px;
} font-size:20px;
color:#09F;
margin:0px;
} margin:0px;
}
.bordaBox{
bbackground: ttransparent;
width:740px;
}
.borda{
bbackground: ttransparent;
width:660px;
} display:block;
overflow:hidden;
font-size:1px;
} height:1px;
} background:#CECECE;
border-left:1px solid #999;
border-right:1px solid #999;
} margin:0 5px; background:#999;
} margin:0 3px; border-width:0 2px;
} margin:0 2px;
} height:2px; margin:0 1px;
} padding:5px;
display:block;
background:#CECECE;
border-left:1px solid #999;
border-right:1px solid #999;
}
.encima{
background:url(imagens/encima.gif) no-repeat;
height:15px;
width:680px;
}
.embaixo{
background:url(imagens/embaixo.gif) no-repeat;
height:15px;
width:680px;
}
.encima_menu{
background:url(imagens/encima_menu.gif) no-repeat;
height:15px;
width:300px;
}
.embaixo_menu{
background:url(imagens/embaixo_menu.gif) no-repeat;
height:15px;
width:300px;
}
.encima_logar{
margin:10px 10px 0px 10px;
padding:0px 0px 0px 0px;
width:980px;
}
.embaixo_alunos{
background:#006666;
margin:0px 10px 0px 10px;
padding:0px 0px 0px 0px;
width:980px;
height:20px;
}
.embaixo_pais{
background:#CC0033;
margin:0px 10px 0px 10px;
padding:0px 0px 0px 0px;
width:980px;
height:20px;
}
.embaixo_professor{
background:#663333;
margin:0px 10px 0px 10px;
padding:0px 0px 0px 0px;
width:980px;
height:20px;
}
.linha_alunos{
background:#006666;
margin:0px 10px 0px 10px;
padding:0px 0px 0px 0px;
width:980px;
height:20px;
}
.linha_pais{
background:#CC0033;
margin:0px 10px 0px 10px;
padding:0px 0px 0px 0px;
width:980px;
height:20px;
}
.linha_professor{
background:#663333;
margin:0px 10px 0px 10px;
padding:0px 0px 0px 0px;
width:980px;
height:20px;
}
.conteudo2{
padding:0px 8pt 0px 8pt;
width:300px;
}
.conteudo3{
padding:0px 14pt 0px 14pt;
width:680px;
}
.pais{
font-family:"Comic Sans MS", cursive;
font-size:14px;
color:#333;
}
.menu_membro{
font-family:"Comic Sans MS", cursive;
font-size:14px;
color:#993;
}
.titulos{
padding:0px 0px 0px 0px;
margin:0px 0px 0px 0px;
}
.avatar{
margin:5px 5px 5px 5px;
}
#estrutura_topo{
margin:0px 0px 0px 0px;
padding:0px 0px 0px 0px;
background:#3C6;
}
#topo{
padding:0px 0px 0px 0px;
width:1000px;
}
#cabecalho{
position:relative;
width:1000px;
height:200px;
}
#menu{
padding:0px 0px 0px 0px;
margin-bottom:10px;
}
#buscar{
display:block;
margin:15px 35px 0px 93px;
width:800px;
background:url(imagens/fundo_busca.gif) no-repeat;
padding:5px 15px 15px 15px;
text-align:center;
font:"Palatino Linotype", "Book Antiqua", Palatino, serif;
font-size:14px;
}
#opcoes{
display:none;
margin:15px 35px 0px 93px;
width:800px;
background:url(imagens/fundo_opcoes.gif) no-repeat;
padding:5px 15px 15px 15px;
text-align:center;
font:"Palatino Linotype", "Book Antiqua", Palatino, serif;
font-size:14px;
}
#propaganda{
margin:25px 25px 45px 120px;
width:740px;
height:95px;
}
#conteudo{
margin-right:5px;
float:right;
width:680px;
background:url(imagens/laterais.gif) repeat-y;
}
#menu_vertical{
margin-left:5px;
float:left;
width:300px;
background:url(imagens/laterais_menu.gif) repeat-y;
}
#logar_alunos{
margin:0px 10px 0px 10px;
padding:0px 0px 0px 0px;
border-left:#006666 solid 5px;
border-right:#006666 solid 5px;
width:970px;
background:#FFF;
font-family:"Comic Sans MS", cursive;
font-size:14px;
text-align:center;
}
#logar_pais{
margin:0px 10px 0px 10px;
padding:0px 0px 0px 0px;
border-left:#CC0033 solid 5px;
border-right:#CC0033 solid 5px;
width:970px;
background:#FFF;
font-family:"Comic Sans MS", cursive;
font-size:14px;
text-align:center;
}
#logar_professor{
margin:0px 10px 0px 10px;
padding:0px 0px 0px 0px;
border-left:#663333 solid 5px;
border-right:#663333 solid 5px;
width:970px;
background:#FFF;
font-family:"Comic Sans MS", cursive;
font-size:14px;
text-align:center;
}
#foto{
font-family:"Comic Sans MS", cursive;
font-size:14px;
color:#333;
}
ajuda aeeee
albuns.php (o da foto 2):
<?php require_once('../Connections/belucao.php'); ?>
<?php
if (!isset($_SESSION)) {
session_start();
}
$MM_authorizedUsers = "aluno";
$MM_donotCheckaccess = "false";
// *** Restrict Access To Page: Grant or deny access to this page
function isAuthorized($strUsers, $strGroups, $UserName, $UserGroup) {
// For security, start by assuming the visitor is NOT authorized.
$isValid = False;
// When a visitor has logged into this site, the Session variable MM_Username set equal to their username.
// Therefore, we know that a user is NOT logged in if that Session variable is blank.
if (!empty($UserName)) {
// Besides being logged in, you may restrict access to only certain users based on an ID established when they login.
// Parse the strings into arrays.
$arrUsers = Explode(",", $strUsers);
$arrGroups = Explode(",", $strGroups);
if (in_array($UserName, $arrUsers)) {
$isValid = true;
}
// Or, you may restrict access to only certain users based on their username.
if (in_array($UserGroup, $arrGroups)) {
$isValid = true;
}
if (($strUsers == "") && false) {
$isValid = true;
}
}
return $isValid;
}
$MM_restrictGoTo = "negado.php";
if (!((isset($_SESSION['MM_Username'])) && (isAuthorized("",$MM_authorizedUsers, $_SESSION['MM_Username'], $_SESSION['MM_UserGroup'])))) {
$MM_qsChar = "?";
$MM_referrer = $_SERVER['PHP_SELF'];
if (strpos($MM_restrictGoTo, "?")) $MM_qsChar = "&";
if (isset($QUERY_STRING) && strlen($QUERY_STRING) > 0)
$MM_referrer .= "?" . $QUERY_STRING;
$MM_restrictGoTo = $MM_restrictGoTo. $MM_qsChar . "accesscheck=" . urlencode($MM_referrer);
header("Location: ". $MM_restrictGoTo);
exit;
}
?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") if (PHP_VERSION < 6) {
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
}
$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}
$currentPage = $_SERVER["PHP_SELF"];
$colname_dados = "-1";
if (isset($_SESSION['MM_Username'])) {
$colname_dados = $_SESSION['MM_Username'];
}
mysql_select_db($database_belucao, $belucao);
$query_dados = sprintf("SELECT * FROM usuarios WHERE usuario = %s", GetSQLValueString($colname_dados, "text"));
$dados = mysql_query($query_dados, $belucao) or die(mysql_error());
$row_dados = mysql_fetch_assoc($dados);
$totalRows_dados = mysql_num_rows($dados);
$maxRows_recados = 5;
$pageNum_recados = 0;
if (isset($_GET['pageNum_recados'])) {
$pageNum_recados = $_GET['pageNum_recados'];
}
$startRow_recados = $pageNum_recados * $maxRows_recados;
$colname_recados = "-1";
if (isset($_SESSION['MM_Username'])) {
$colname_recados = $_SESSION['MM_Username'];
}
mysql_select_db($database_belucao, $belucao);
$query_recados = sprintf("SELECT * FROM recados WHERE para = %s", GetSQLValueString($colname_recados, "text"));
$query_limit_recados = sprintf("%s LIMIT %d, %d", $query_recados, $startRow_recados, $maxRows_recados);
$recados = mysql_query($query_limit_recados, $belucao) or die(mysql_error());
$row_recados = mysql_fetch_assoc($recados);
if (isset($_GET['totalRows_recados'])) {
$totalRows_recados = $_GET['totalRows_recados']; $all_recados = mysql_query($query_recados);
$totalRows_recados = mysql_num_rows($all_recados);
}
$totalPages_recados = ceil($totalRows_recados/$maxRows_recados)-1;
$colname_albuns = "-1";
if (isset($_SESSION['MM_Username'])) {
$colname_albuns = $_SESSION['MM_Username'];
}
mysql_select_db($database_belucao, $belucao);
$query_albuns = sprintf("SELECT * FROM albuns WHERE usuario = %s", GetSQLValueString($colname_albuns, "text"));
$albuns = mysql_query($query_albuns, $belucao) or die(mysql_error());
$row_albuns = mysql_fetch_assoc($albuns);
$totalRows_albuns = mysql_num_rows($albuns);
mysql_select_db($database_belucao, $belucao);
$query_comunicados = "SELECT * FROM comunicados WHERE para = ''$sala''";
$comunicados = mysql_query($query_comunicados, $belucao) or die(mysql_error());
$row_comunicados = mysql_fetch_assoc($comunicados);
$totalRows_comunicados = mysql_num_rows($comunicados);
mysql_select_db($database_belucao, $belucao);
$query_provas = "SELECT * FROM provas WHERE sala = ''$sala''";
$provas = mysql_query($query_provas, $belucao) or die(mysql_error());
$row_provas = mysql_fetch_assoc($provas);
$totalRows_provas = mysql_num_rows($provas);
mysql_select_db($database_belucao, $belucao);
$query_trabalhos = "SELECT * FROM trabalhos WHERE sala = ''$sala''";
$trabalhos = mysql_query($query_trabalhos, $belucao) or die(mysql_error());
$row_trabalhos = mysql_fetch_assoc($trabalhos);
$totalRows_trabalhos = mysql_num_rows($trabalhos);
$maxRows_albuns_fotos = 4;
$pageNum_albuns_fotos = 0;
if (isset($_GET['pageNum_albuns_fotos'])) {
$pageNum_albuns_fotos = $_GET['pageNum_albuns_fotos'];
}
$startRow_albuns_fotos = $pageNum_albuns_fotos * $maxRows_albuns_fotos;
$colname_albuns_fotos = "-1";
if (isset($_SESSION['MM_Username'])) {
$colname_albuns_fotos = $_SESSION['MM_Username'];
}
mysql_select_db($database_belucao, $belucao);
$query_albuns_fotos = sprintf("SELECT * FROM albuns WHERE usuario = %s && tipo = 'foto'", GetSQLValueString($colname_albuns_fotos, "text"));
$query_limit_albuns_fotos = sprintf("%s LIMIT %d, %d", $query_albuns_fotos, $startRow_albuns_fotos, $maxRows_albuns_fotos);
$albuns_fotos = mysql_query($query_limit_albuns_fotos, $belucao) or die(mysql_error());
$row_albuns_fotos = mysql_fetch_assoc($albuns_fotos);
if (isset($_GET['totalRows_albuns_fotos'])) {
$totalRows_albuns_fotos = $_GET['totalRows_albuns_fotos']; $all_albuns_fotos = mysql_query($query_albuns_fotos);
$totalRows_albuns_fotos = mysql_num_rows($all_albuns_fotos);
}
$totalPages_albuns_fotos = ceil($totalRows_albuns_fotos/$maxRows_albuns_fotos)-1;
$maxRows_albuns_videos = 4;
$pageNum_albuns_videos = 0;
if (isset($_GET['pageNum_albuns_videos'])) {
$pageNum_albuns_videos = $_GET['pageNum_albuns_videos'];
}
$startRow_albuns_videos = $pageNum_albuns_videos * $maxRows_albuns_videos;
$colname_albuns_videos = "-1";
if (isset($_SESSION['MM_Username'])) {
$colname_albuns_videos = $_SESSION['MM_Username'];
}
mysql_select_db($database_belucao, $belucao);
$query_albuns_videos = sprintf("SELECT * FROM albuns WHERE usuario = %s && tipo = 'video'", GetSQLValueString($colname_albuns_videos, "text"));
$query_limit_albuns_videos = sprintf("%s LIMIT %d, %d", $query_albuns_videos, $startRow_albuns_videos, $maxRows_albuns_videos);
$albuns_videos = mysql_query($query_limit_albuns_videos, $belucao) or die(mysql_error());
$row_albuns_videos = mysql_fetch_assoc($albuns_videos);
if (isset($_GET['totalRows_albuns_videos'])) {
$totalRows_albuns_videos = $_GET['totalRows_albuns_videos']; $all_albuns_videos = mysql_query($query_albuns_videos);
$totalRows_albuns_videos = mysql_num_rows($all_albuns_videos);
}
$totalPages_albuns_videos = ceil($totalRows_albuns_videos/$maxRows_albuns_videos)-1;
$queryString_albuns_videos = "";
if (!empty($_SERVER['QUERY_STRING'])) {
$params = explode("&", $_SERVER['QUERY_STRING']);
$newParams = array();
foreach ($params as $param) {
if (stristr($param, "pageNum_albuns_videos") == false &&
stristr($param, "totalRows_albuns_videos") == false) {
array_push($newParams, $param);
}
}
if (count($newParams) != 0) {
$queryString_albuns_videos = "&" . htmlentities(implode("&", $newParams));
}
}
$queryString_albuns_videos = sprintf("&totalRows_albuns_videos=%d%s", $totalRows_albuns_videos, $queryString_albuns_videos);
$queryString_albuns_fotos = "";
if (!empty($_SERVER['QUERY_STRING'])) {
$params = explode("&", $_SERVER['QUERY_STRING']);
$newParams = array();
foreach ($params as $param) {
if (stristr($param, "pageNum_albuns_fotos") == false &&
stristr($param, "totalRows_albuns_fotos") == false) {
array_push($newParams, $param);
}
}
if (count($newParams) != 0) {
$queryString_albuns_fotos = "&" . htmlentities(implode("&", $newParams));
}
}
$queryString_albuns_fotos = sprintf("&totalRows_albuns_fotos=%d%s", $totalRows_albuns_fotos, $queryString_albuns_fotos);
$queryString_recados = "";
if (!empty($_SERVER['QUERY_STRING'])) {
$params = explode("&", $_SERVER['QUERY_STRING']);
$newParams = array();
foreach ($params as $param) {
if (stristr($param, "pageNum_recados") == false &&
stristr($param, "totalRows_recados") == false) {
array_push($newParams, $param);
}
}
if (count($newParams) != 0) {
$queryString_recados = "&" . htmlentities(implode("&", $newParams));
}
}
$queryString_recados = sprintf("&totalRows_recados=%d%s", $totalRows_recados, $queryString_recados);
?>
<html xmlns="[http://www.w3.org/1999/xhtml">](http://www.w3.org/1999/xhtml)
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Teste</title>
<link rel="stylesheet" href="estilo.css" />
<script type="text/javascript" src="[http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js">](http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js)
</head>
<script type="text/javascript">
$(document).ready(function(){
$('#aparecer').click(function(){
$('#opcoes').slideDown('slow')
opcoes.style.display="block";
buscar.style.display="none";
});
});
function retirarMenu(){
buscar.style.display="block";
opcoes.style.display="none";
}
</script>
<body topmargin="0" leftmargin="0" rightmargin="0">
<div id="estrutura_topo">
<div id="topo">
<div id="cabecalho">
<img src="logo.jpg" width="1000" height="200"/>
</div>
<div id="menu">
<img src="imagens/menu.jpg" width="1000" height="78"/>
</div>
</div>
</div>
<div id="buscar">
<form name="pesquisar" method="post" action="">
<p>Pesquisar:
<input name="buscar" type="text" id="pesquisar" size="35">
<label>
<input type="submit" name="ok" id="ok" value="Buscar">
</label>
<a href="javascript:;" id="aparecer">Mais opções</a></p>
</form>
</div>
<div id="opcoes">
<form name="pesquisar" method="post" action="">
<p>Pesquisar:
<input name="buscar" type="text" id="pesquisar" size="35">
<label>
<input type="submit" name="ok" id="ok" value="Buscar">
</label>
<label>
<select name="onde" id="onde">
<option value="teste" selected>Teste</option>
<option value="teste">teste</option>
<option value="teste">teste</option>
<option value="teste">teste</option>
</select>
</label>
<a href="javascript:;" onClick="retirarMenu()">Menos opções</a>
<br>
<label>
<input name="site" type="radio" value="site" checked align="absbottom">
No site
<input name="google" type="radio" value="google" align="absbottom">
No google
</label>
</p>
</form>
</div>
<div id="propaganda">
<div class="bordaBox">
<b class="b1"></b><b class="b2"></b><b class="b3"></b><b class="b4"></b>
<div class="conteudo">
<script type="text/javascript"><!--
google_ad_client = "pub-3984000644076850";google_ad_slot = "3846042158";
google_ad_width = 728;
google_ad_height = 90;</script>
</div>
<b class="b4"></b><b class="b3"></b><b class="b2"></b><b class="b1"></b>
</div>
</div>
<div id="conteudo">
<div class="encima"></div>
<div class="conteudo3">
<h2 class="stilo1">Álbuns de <?php echo $row_dados['nome']; ?> (<?php echo $totalRows_albuns ?>)</h2>
<p></p>
<div class="encima_fotos" align="right">
<div class="nav">
<a href="<?php printf("%s?pageNum_albuns_fotos=%d%s", $currentPage, min($totalPages_albuns_fotos, $pageNum_albuns_fotos + 1), $queryString_albuns_fotos); ?>">Próximo</a></div>
</div>
<div id="albuns_fotos">
<?php if ($totalRows_albuns_fotos == 0) { // Show if recordset empty ?>
<div align="center">Você não possui albuns de fotos!!!</div>
<?php } // Show if recordset empty ?>
<?php if ($totalRows_albuns_fotos > 0) { // Show if recordset not empty ?>
<?php do { ?>
<div class="fotos" align="center">
<a href="album_mostrar.php?id=<?php echo $row_albuns_fotos['id']; ?>&tipo=<?php echo $row_albuns_fotos['tipo']; ?>">
<img src="<?php echo $row_albuns_fotos['capa']; ?>" width="117" height="110"><br>
<?php echo $row_albuns_fotos['titulo']; ?></a></div>
<?php } while ($row_albuns_fotos = mysql_fetch_assoc($albuns_fotos)); ?>
<?php } // Show if recordset not empty ?>
<div class="clear"></div>
</div>
<p></p>
<div class="encima_videos" align="right">
<div class="nav">
<a href="<?php printf("%s?pageNum_albuns_videos=%d%s", $currentPage, min($totalPages_albuns_videos, $pageNum_albuns_videos + 1), $queryString_albuns_videos); ?>">Próximo</a></div>
</div>
<div id="albuns_fotos">
<?php if ($totalRows_albuns_videos == 0) { // Show if recordset empty ?>
<div align="center">Você não possui albuns de vídeos!!!</div>
<?php } // Show if recordset empty ?>
<?php if ($totalRows_albuns_videos > 0) { // Show if recordset not empty ?>
<?php do { ?>
<div class="fotos" align="center">
<p> <a href="album_mostrar.php?id=<?php echo $row_albuns_videos['id']; ?>&tipo=<?php echo $row_albuns_videos['tipo']; ?>"> <img src="<?php echo $row_albuns_videos['capa']; ?>" width="117" height="110"><br>
<?php echo $row_albuns_videos['titulo']; ?></a></p>
</div>
<?php } while ($row_albuns_videos = mysql_fetch_assoc($albuns_videos)); ?>
<?php } // Show if recordset not empty ?>
<div class="clear"></div>
</div>
</div>
<div class="embaixo"></div>
</div>
<div id="menu_vertical">
<div class="encima_menu"></div>
<div class="conteudo2">
<div id="membro">
<div id="foto" align="center">
<div class="titulos" align="left"><img src="imagens/membros.gif" width="271" height="32" align="absbottom"/></div>
<p><img src="<?php echo $row_dados['avatar']; ?>" width="117" height="110" class="avatar"/>
<br>
<strong>Olá</strong> <?php echo $row_dados['nome']; ?><br>
<strong>Sala:</strong> <?php echo $row_dados['sala']; ?></p>
<p><a href="sair.php"><img src="imagens/logout.gif"/></a></p>
</div>
</div>
<div class="menu_membro" align="center">
<div class="titulos" align="left"><img src="imagens/pais.gif" width="277" height="32" align="absbottom"/></div>
<p>Pai: <?php echo $row_dados['pai']; ?><br>
Mâe: <?php echo $row_dados['mae']; ?></p>
</div>
</div>
<div class="menu_membro" align="center">
<div class="titulos" align="center"><img src="imagens/opcoes.gif" width="271" height="32" align="absbottom"/></div>
<p><a href="recados.php">Meus recados(<?php echo $totalRows_recados ?>)</a></p>
<p><a href="albuns.php">Meus albuns(<?php echo $totalRows_albuns ?>)</a></p>
<p><a href="comunicados.php">Comunicados(<?php echo $totalRows_comunicados ?>)</a></p>
<p><a href="provas.php">Provas(<?php echo $totalRows_provas ?>)</a></p>
<p><a href="trabalhos.php">Trabalhos(<?php echo $totalRows_trabalhos ?>)</a></p>
<p><a href="faltas.php">Faltas</a></p>
<p><a href="notas.php">Notas</a></p>
<p><a href="ocorrencias.php">Ocorrências</a></p>
<p><a href="pais.php">Pais</a></p>
</div>
<div class="embaixo_menu"></div>
</div>
</body>
</html>
<?php
mysql_free_result($dados);
mysql_free_result($recados);
mysql_free_result($albuns);
mysql_free_result($comunicados);
mysql_free_result($provas);
mysql_free_result($trabalhos);
mysql_free_result($albuns_fotos);
mysql_free_result($albuns_videos);
?>
login.php (o da foto 1):
<?php require_once('../Connections/belucao.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
if (PHP_VERSION < 6) {
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
}
$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}
?>
<?php
// *** Validate request to login to this site.
if (!isset($_SESSION)) {
session_start();
}
$loginFormAction = $_SERVER['PHP_SELF'];
if (isset($_GET['accesscheck'])) {
$_SESSION['PrevUrl'] = $_GET['accesscheck'];
}
if (isset($_POST['usuario'])) {
$loginUsername=$_POST['usuario'];
$password=$_POST['senha'];
$MM_fldUserAuthorization = "nivel";
$MM_redirectLoginSuccess = "index_alunos.php";
$MM_redirectLoginFailed = "erro.php";
$MM_redirecttoReferrer = false;
mysql_select_db($database_belucao, $belucao);
$LoginRS__query=sprintf("SELECT usuario, senha, nivel FROM usuarios WHERE usuario=%s AND senha=%s",
GetSQLValueString($loginUsername, "text"), GetSQLValueString($password, "text"));
$LoginRS = mysql_query($LoginRS__query, $belucao) or die(mysql_error());
$loginFoundUser = mysql_num_rows($LoginRS);
if ($loginFoundUser) {
$loginStrGroup = mysql_result($LoginRS,0,'nivel');
//declare two session variables and assign them
$_SESSION['MM_Username'] = $loginUsername;
$_SESSION['MM_UserGroup'] = $loginStrGroup;
if (isset($_SESSION['PrevUrl']) && false) {
$MM_redirectLoginSuccess = $_SESSION['PrevUrl'];
}
header("Location: " . $MM_redirectLoginSuccess );
}
else {
$erro = "Usuário e/ou senha incorretos!!!";
}
}
?>
<html xmlns="[http://www.w3.org/1999/xhtml">](http://www.w3.org/1999/xhtml)
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Teste</title>
<link rel="stylesheet" href="estilo.css" />
<link rel="stylesheet" href="css/lightbox.css" type="text/css" media="screen" />
<link rel="stylesheet" type="text/css" href="css/shadowbox.css">
<script type="text/javascript" src="[http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js">](http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js)
<script type="text/javascript" src="js/prototype.js"></script>
<script type="text/javascript" src="js/scriptaculous.js?load=effects,builder"></script>
<script type="text/javascript" src="js/lightbox.js"></script>
<script type="text/javascript" src="js/shadowbox-jquery.js"></script>
<script type="text/javascript" src="js/shadowbox.js"></script>
</head>
<script type="text/javascript">
$(document).ready(function(){
$('#aparecer').click(function(){
$('#opcoes').slideDown('slow')
opcoes.style.display="block";
buscar.style.display="none";
});
});
function retirarMenu(){
buscar.style.display="block";
opcoes.style.display="none";
}
Shadowbox.init({
players: ['img', 'html', 'iframe', 'qt', 'wmp', 'swf', 'flv']
});
</script>
<body topmargin="0" leftmargin="0" rightmargin="0">
<div id="estrutura_topo">
<div id="topo">
<div id="cabecalho">
<img src="logo.jpg" width="1000" height="200"/>
</div>
<div id="menu">
<img src="imagens/menu.jpg" width="1000" height="78"/>
</div>
</div>
</div>
<div id="buscar">
<form name="pesquisar" method="post" action="">
<p>Pesquisar:
<input name="buscar" type="text" id="pesquisar" size="35">
<label>
<input type="submit" name="ok" id="ok" value="Buscar">
</label>
<a href="javascript:;" id="aparecer">Mais opções</a></p>
</form>
</div>
<div id="opcoes">
<form name="pesquisar" method="post" action="">
<p>Pesquisar:
<input name="buscar" type="text" id="pesquisar" size="35">
<label>
<input type="submit" name="ok" id="ok" value="Buscar">
</label>
<label>
<select name="onde" id="onde">
<option value="teste" selected>Teste</option>
<option value="teste">teste</option>
<option value="teste">teste</option>
<option value="teste">teste</option>
</select>
</label>
<a href="javascript:;" onClick="retirarMenu()">Menos opções</a>
<br>
<label>
<input name="site" type="radio" value="site" checked align="absbottom">
No site
<input name="google" type="radio" value="google" align="absbottom">
No google
</label>
</p>
</form>
</div>
<div id="propaganda">
<div class="bordaBox">
<b class="b1"></b><b class="b2"></b><b class="b3"></b><b class="b4"></b>
<div class="conteudo">
<script type="text/javascript"><!--
google_ad_client = "pub-3984000644076850";
/ norma borges 2010 /
google_ad_slot = "3846042158";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript" src="[http://pagead2.googlesyndication.com/pagead/show_ads.js">](http://pagead2.googlesyndication.com/pagead/show_ads.js)
</script>
</div>
<b class="b4"></b><b class="b3"></b><b class="b2"></b><b class="b1"></b>
</div>
</div>
<div class="encima_logar" align="center"><img src="imagens/tabs_login.gif" border="0" usemap="#Map"/>
<map name="Map">
<area shape="rect" coords="3,3,174,42" href="login.php">
<area shape="rect" coords="178,3,352,41" href="pais/login_pais.php">
<area shape="rect" coords="355,4,527,42" href="professores/login_professor.php">
</map>
</div>
<div class="linha_alunos"></div>
<div id="logar_alunos">
<h1>Formulário de login para alunos</h1>
<form ACTION="<?php echo $loginFormAction; ?>" name="login_alunos" method="POST">
<p>Usuário:<br>
<input type="text" name="usuario" id="usuario"></p>
<p>Senha:<br>
<input name="senha" type="password" id="senha"><br>
<font color="#CC0000" size="-1"><?php echo $erro ;?></font>
</p>
<p>
<input type="submit" name="logar" id="login" value="Entrar">
</p>
<p><a href="esqueci.php">Esqueci minha senha</a></p>
</form>
</div>
<div class="embaixo_alunos"></div>
</body>
</html>A primeira coisa a se fazer é usar um CSS Reset. ;)
Posta o HTML gerado ou o link para o site.
http://forum.imasters.com.br/public/style_emoticons/default/thumbsup.gif
Olá,
É, seria preferível colocar somente o código HTML, o que o browser gera por exemplo. Ou até mesmo colocar seu site online.
Cumprimentos.
esse é o codigo de umas das paginas com problemas gerado pelo navegador:
<html xmlns="[http://www.w3.org/1999/xhtml">](http://www.w3.org/1999/xhtml)
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Teste</title>
<link rel="stylesheet" href="estilo.css" />
<link rel="stylesheet" href="css/lightbox.css" type="text/css" media="screen" />
<link rel="stylesheet" type="text/css" href="css/shadowbox.css">
<script type="text/javascript" src="[http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js">](http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js)
<script type="text/javascript" src="js/prototype.js"></script>
<script type="text/javascript" src="js/scriptaculous.js?load=effects,builder"></script>
<script type="text/javascript" src="js/lightbox.js"></script>
<script type="text/javascript" src="js/shadowbox-jquery.js"></script>
<script type="text/javascript" src="js/shadowbox.js"></script>
</head>
<script type="text/javascript">
$(document).ready(function(){
$('#aparecer').click(function(){
$('#opcoes').slideDown('slow')
opcoes.style.display="block";
buscar.style.display="none";
});
});
function retirarMenu(){
buscar.style.display="block";
opcoes.style.display="none";
}
Shadowbox.init({
players: ['img', 'html', 'iframe', 'qt', 'wmp', 'swf', 'flv']
});
</script>
<body topmargin="0" leftmargin="0" rightmargin="0">
<div id="estrutura_topo">
<div id="topo">
<div id="cabecalho">
<img src="logo.jpg" width="1000" height="200"/>
</div>
<div id="menu">
<img src="imagens/menu.jpg" width="1000" height="78"/>
</div>
</div>
</div>
<div id="buscar">
<form name="pesquisar" method="post" action="">
<p>Pesquisar:
<input name="buscar" type="text" id="pesquisar" size="35">
<label>
<input type="submit" name="ok" id="ok" value="Buscar">
</label>
<a href="javascript:;" id="aparecer">Mais opções</a></p>
</form>
</div>
<div id="opcoes">
<form name="pesquisar" method="post" action="">
<p>Pesquisar:
<input name="buscar" type="text" id="pesquisar" size="35">
<label>
<input type="submit" name="ok" id="ok" value="Buscar">
</label>
<label>
<select name="onde" id="onde">
<option value="teste" selected>Teste</option>
<option value="teste">teste</option>
<option value="teste">teste</option>
<option value="teste">teste</option>
</select>
</label>
<a href="javascript:;" onClick="retirarMenu()">Menos opções</a>
<br>
<label>
<input name="site" type="radio" value="site" checked align="absbottom">
No site
<input name="google" type="radio" value="google" align="absbottom">
No google
</label>
</p>
</form>
</div>
<div id="propaganda">
<div class="bordaBox">
<b class="b1"></b><b class="b2"></b><b class="b3"></b><b class="b4"></b>
<div class="conteudo">
<script type="text/javascript"><!--
google_ad_client = "pub-3984000644076850";
/ norma borges 2010 /
google_ad_slot = "3846042158";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript" src="[http://pagead2.googlesyndication.com/pagead/show_ads.js">](http://pagead2.googlesyndication.com/pagead/show_ads.js)
</script>
</div>
<b class="b4"></b><b class="b3"></b><b class="b2"></b><b class="b1"></b>
</div>
</div>
<div class="encima_logar" align="center"><img src="imagens/tabs_login.gif" border="0" usemap="#Map"/>
<map name="Map">
<area shape="rect" coords="3,3,174,42" href="login.php">
<area shape="rect" coords="178,3,352,41" href="pais/login_pais.php">
<area shape="rect" coords="355,4,527,42" href="professores/login_professor.php">
</map>
</div>
<div class="linha_alunos"></div>
<div id="logar_alunos">
<h1>Formulário de login para alunos</h1>
<form ACTION="/usuarios/login.php" name="login_alunos" method="POST">
<p>Usuário:<br>
<input type="text" name="usuario" id="usuario"></p>
<p>Senha:<br>
<input name="senha" type="password" id="senha"><br>
<font color="#CC0000" size="-1"></font>
</p>
<p>
<input type="submit" name="logar" id="login" value="Entrar">
</p>
<p><a href="esqueci.php">Esqueci minha senha</a></p>
</form>
</div>
<div class="embaixo_alunos"></div>
</body>
</html>
mas nao entendi esse trem de css reset algem pode me explicar melhor?
mas valeu pelas dicas
Já fez o teste com CSS Reset?
http://forum.imasters.com.br/public/style_emoticons/default/thumbsup.gif
acabei de fazer esse css reset, mas nao alterou nada
Tem um exemplo online para vermos o que está realmente acontecendo?
http://forum.imasters.com.br/public/style_emoticons/default/thumbsup.gif
Faltam-me as imagens e isso. Assim fica difícil de testar.
Cumprimentos
Olá,
Olhe não consegui visualizar as imagens. Seria possível postar um link? Se não, colocar também o código HTML.
Cumprimentos