0
I am displaying the result of a query in panels, only that they are getting misaligned, I want to show as ta in the image below only 1 below the other, the way this, generating a pyramide effect, follows code and image example:
<div class="container">
<?php
while ($row = mysql_fetch_array($query_chamados)) {
$var_chamado = $row['CHAMADO'];
$var_problema = $row['PROBLEMA'];
$var_descricao = $row['DESCRICAO'];
$var_contato = $row['CONTATO'];
$var_telefone = $row['TELEFONE'];
$var_abertura = $row['DATA_DE_ABERTURA'];
$var_horasemab = $row['HORAS_EM_ABERTO'];
$var_numloja = $row['NUM_LOJA'];
$var_area = $row['AREA'];
$var_setor = $row['SETOR'];
$var_tecnico = $row['TECNICO'];
$var_abertopor = $row['ABERTO_POR'];
$var_status = $row['STATUS'];
$var_painel = $row['PAINEL'];
echo"
<div class='row'>
<div class='col-xs-4'>
<div class='panel panel-danger'>
<div class='panel-heading'>
<h3 class='panel-title'>
<h3>
<font color='#FFFFFF'>
<a class='Modal' data-toggle='modal' data-target='#myModal'><span class='glyphicon glyphicon-info-sign' aria-hidden='true'></span></a> $var_chamado
</font>";
if( $var_painel == 1){
echo"<a href='ciente.php?id=". $row['CHAMADO'] ."' class='EstouCiente'>CIENTE</a>";
}
echo"</h3>
</h3>
</div>
<div class='panel-body'>
<h5>
ABERTO A 0$var_horasemab HORAS <br />
TELEFONE : $var_telefone <br />
ABERTO POR: $var_abertopor <br />
LOJA: 0$var_numloja <br />
</h5>
</div>
</div>
</div>";
}
echo"</div>";
?>
@Gabriel Sousa
echo"
<div class='row'>
<div class='col-xs-4'>
<div class='panel panel-danger'>
<div class='panel-heading'>
<h3 class='panel-title'>
<a href='informacao.php?id=". $row['CHAMADO'] ."' class='left'>
<span class='glyphicon glyphicon-info-sign' aria-hidden='true'>
</span>
</a>";
if( $var_painel == 0){
echo"<a href='ciente.php?id=". $row['CHAMADO'] ."' class='right'>CIENTE
</a>";
}
echo"
</h3>
</div>
<div class='panel-body'>
<center>
$var_chamado
</center>
</div>
</div>
</div>";
}
echo"</div>";
?>
@Matheus Godoi
<?php while ($row = mysql_fetch_array($query_chamados)) : ?>
<div class="row">
<div class="col-xs-4">
<div class="panel panel-danger">
<div class="panel-heading">
<h3 class="panel-title"></h3>
</div>
<div class="panel-body">
</div>
</div>
</div>
<?php endwhile; ?>
</div>
Exactly that, perfect, thank you !
– Chefe Druida