} ?> <?php $count++; } ?> </div> <input type="hidden" value="1" id="categoria"> <input type="hidden" value="grey" id="colorActual"> </div> </div> </div> </div> <div id="listaNotasActivas"class="row"> <?php $listaNotas = $notaBLL->selectByEstado(1); foreach ($listaNotas as $objNota) { $objCategoria = $categoriaBLL->selectById($objNota->getIdCategoria()); $color = $objCategoria->getColor(); $darkerColor = $objCategoria->getColor(); $date = date_create($objNota->getFecha()); $breaks = array("<br />","<br>","<br/>","<br />","<br />","<br/>","<br>"); $nota = str_ireplace($breaks, "\r\n", $objNota->getNota()); if ($color == 'grey') { $color = 'white'; } ?> <div id = "editar-nota-<?php echo $objNota->getId(); ?>" class="col s12 m6 l3"> <div id="nota-activa-<?php echo $objNota->getId(); ?>" class="card <?php echo $color; ?> z-depth-1 nota editar-nota"> <div class="card-content"> <h5 id="display-titulo-<?php echo $objNota->getId(); ?>" class="grey-text text-darken-4" onclick="javascript:mostrarInputTitulo(<?php echo $objNota->getId(); ?>)"><?php echo $objNota->getTitulo(); ?></h5>