Usamos cookies para medir audiência e melhorar sua experiência. Você pode aceitar ou recusar a qualquer momento. Veja sobre o iMasters.
<?php
include "inc/conecta.php";
$sql = "SELECT * FROM pontoatend WHERE tipo_telefone='1' AND categoria='6' AND status='sim' ORDER BY local ASC";
$consulta = mysql_query($sql);
?>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link href="css/inicial.css" rel="stylesheet" type="text/css" media="all" />
<style type="text/css">
<!--
a:link {
color: #000;
text-decoration: none;
}
a:visited {
text-decoration: none;
color: #000;
}
a:hover {
text-decoration: underline;
color: #000;
}
a:active {
text-decoration: none;
color: #000;
}
-->
</style>
**<div id="fundo">**
<h2>Telefones Úteis</h2><br />
<?php
while($telefones = mysql_fetch_array($consulta)){
?>
<?php
echo "<p><b>";
echo $telefones['local'];
echo "</b><br />";
echo $telefones['endereco'];
echo " ";
if($telefones['bairro'] == ""){
echo "";
}else{
echo "- ";
echo $telefones['bairro'];
}
echo " ";
if($telefones['telefone'] == ""){
echo "";
}else{
echo "- ";
echo $telefones['telefone'];
}
echo "<br /><br />";
}
?>
**</div><!-- Fecha FUNDO -->**
Esse SCRIPT ajusta o tamanho do IFRAME
<script language=JavaScript type=text/javascript>
parent.document.getElementById("alvo").height = 100;
if (document.getElementById("fundo").scrollHeight>100)
{
parent.document.getElementById("alvo").height = document.getElementById("fundo").scrollHeight + 10;
} else {
parent.document.getElementById("alvo").height = 100;
}
</script>Carregando comentários...