Mini Shell
<?php
include("adm/banco.php");
if($_GET[pagina]==""){
$pagina="agenda.php";
}
else{$pagina=$_GET[pagina].".php";
}
if($_GET[pagina1]==""){
$pagina1="home_resp.php";
}
else{$pagina1=$_GET[pagina1].".php";
}
$conexao= mysql_connect($servidor,$usuario_db,$senha_db) or die($msg[0]);
mysql_select_db($banco,$conexao) or die($msg[1]);
$query3="insert into contador(valor)values('1')";
mysql_query($query3);
?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Bora Dançar</title>
<style type="text/css">
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
h1{font:Comic Sans ms; color: #000000; font-size: 35px;}
a{color: #fff; text-decoration: none;}
a:hover{color: red;}
</style>
<link href="img/icone.png" rel="shortcut icon" type="image/x-icon"/>
<link href="img/icones.png" rel="shortcut icon" type="image/x-icon"/>
<style type="text/css">
a:link {
color: #070707;
}
</style>
</head>
<body>
<p>
<?
$sql="select * from car_prin WHERE id='$_GET[pagina]' order by tipo";
$query=@mysql_query($sql);
$total=@mysql_num_rows($query);
for($i=0;$i<$total;$i++){
$id=@mysql_result($query,$i,id);
$img=@mysql_result($query,$i,img);
$nome=@mysql_result($query,$i,nome);
$estilo=@mysql_result($query,$i,estilo);
$fone=@mysql_result($query,$i,fone);
$insta=@mysql_result($query,$i,insta);
$face=@mysql_result($query,$i,face);
$youtube=@mysql_result($query,$i,youtube);
$texto=@mysql_result($query,$i,texto);
$mapa=@mysql_result($query,$i,mapa);
$fixo=@mysql_result($query,$i,fixo);
$site=@mysql_result($query,$i,site);
$som=@mysql_result($query,$i,som);
?>
</p>
<p> </p>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td align="center"><table width="1200" border="0" align="center" cellpadding="4" cellspacing="4">
<tbody>
<tr>
<td align="center"><a href="index_novo.php"></a> <h1 style="font-size:65px; color: #010066;">
<?= $nome;?>
</h1>
<h1>
<?= $estilo;?>
</h1>
<p></p></td>
</tr>
</tbody>
</table></td>
</tr>
<tr>
<td align="center"><table width="1200" border="0" align="center" cellpadding="4" cellspacing="4">
<tbody>
<tr>
<td height="300" align="center"><p>
<?
$sq="select * from car_prin1 WHERE id_produto='$_GET[pagina]' order by tipo";
$qu=@mysql_query($sq);
$tot=@mysql_num_rows($qu);
for($i1=0;$i1<$tot;$i1++){
$id=@mysql_result($qu,$i1,id);
$img=@mysql_result($qu,$i1,imagem);
?>
<img src="../car_prin1/<?= $img;?>" style="border-radius:20px; margin:15px;" />
<? } ?>
</p>
<br>
<p>
<?php if($fone!=''){?>
<a href="https://api.whatsapp.com/send?phone=55<?= $fone;?>" target="_blank"><img src="img_n/zap.jpg" width="152" height="143" alt=""/></a>
<? } ?>
<?php if($face!=''){?>
<a href="<?= $face;?>" target="_blank"><img src="img_n/face.jpg" width="152" height="143" alt=""/></a>
<? } ?>
<?php if($insta!=''){?>
<a href="<?= $insta;?>" target="_blank"><img src="img_n/insta.jpg" width="152" height="143" alt=""/></a>
<? } ?>
<?php if($youtube!=''){?>
<a href="<?= $youtube;?>" target="_blank"><img src="img_n/youtube1.jpg" width="152" height="143" alt=""/></a>
<? } ?>
<?php if($site!=''){?>
<a href="<?= $site;?>" target="_blank"><img src="img_n/site.jpg" width="142" height="133" alt=""/></a>
<? } ?>
<?php if($fixo!=''){?>
<a href="tel:<?= $fixo;?>" target="_blank"><img src="img_n/fixo.jpg" width="152" height="143" alt=""/></a>
<? } ?>
<?php if($mapa!=''){?>
<a href="<?= $mapa;?>" target="_blank"><img src="img_n/mapa.jpg" width="140" height="132" alt=""/></a>
<? } ?>
<br>
<br>
</p>
<p> </p>
<h1>
<?= $texto;?>
</h1>
<p> </p>
<? if($som!=''){?>
<audio autoplay="autoplay" controls="controls">
<source src="../car_som/<?= $som; ?>" type="audio/mp3"/>
seu navegador não suporta HTML5
</audio><? } ?>
</td>
</tr>
<tr>
<td height="300" align="center"><p><a href="index.php#videos" style="font-size:40px; font-family: arial; color: black"><img src="img_n/logo.jpg" width="253" alt=""/><br>
Voltar </a></p></td>
</tr>
</tbody>
</table></td>
</tr>
</tbody>
</table>
<? } ?>
<script>
$(document).ready(function() {
$('.carousel').carousel({
interval: 8000,
pause : false
})
});
</script>
</body>
</html>
Zerion Mini Shell 1.0