-
-
Save matheusgimenez/8177422 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @author Taynam Benichio | |
* @design Matheus Gimenez | |
* @copyright 2013 | |
*/ | |
require_once ( "inc/mysql.classe.php" ); | |
// Conexão | |
$MySQL = new MysqlConnect(); | |
$MySQL->connect(); | |
$PEGARNOT = $MySQL->Executar("SELECT * FROM noticias ORDER BY id DESC"); | |
<!doctype html> | |
<html class="no-js" lang="pt-br"> | |
<head> | |
<meta charset="ISO-8859-1" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<title>Painel ADM</title> | |
<link rel="stylesheet" href="foundation.min.css" /> | |
<script src="js/modernizr.js"></script> | |
</head> | |
<body> | |
<div class="large-12 columns top-bar"> | |
<ul class="title-area"> | |
<li class="name"><h1><a href="#">PAINEL ADMINISTRATIVO</a></h1></li> | |
</ul> | |
<section class="top-bar-section"> | |
<ul class="right"> | |
<li><a class="button radius" href="#">NOTÍCIAS</a></li> | |
</ul> | |
</section> | |
</div> | |
<div class="row"> | |
<div class="large-12 medium-12 columns"> | |
<h5>Ultimas Noticias</h5> | |
<div class="row panel"> | |
while ($ARRAY = mysql_fetch_array( $PEGARNOT ) ) { | |
$id = $ARRAY['id']; | |
$titulo = $ARRAY['titulo']; | |
$descricao = $ARRAY['descricao']; | |
$imagem = $ARRAY['imagem']; | |
?> <div class="large-3 medium-3 columns"> | |
<div class="row"> | |
<a href="#editar"<h6><b><?php echo $titulo ?></b></h6></a> | |
<div class="large-12 medium-12 columns"> | |
<img class="th radius" src="<?php echo $imagem ?>"> | |
<?php echo "<a class='large-12 columns button alert tiny radius' href=\"paginas/deletar.php?id=$id\">Deletar Noticia</a>"; ?> | |
</div> | |
</div> | |
</div> | |
<?php } ?> | |
<div> | |
</div> | |
<script src="js/jquery.js"></script> | |
<script src="js/foundation.min.js"></script> | |
<script> | |
$(document).foundation(); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment