Example #1
0
            <div class="widget-header"> <i class="icon-th-list"></i>
              <h3>Categorias</h3>
            </div>
            <!-- /widget-header -->
            <div class="widget-content">
              <table class="table table-striped table-bordered">
                <thead>
                  <tr>
                    <th class="span1"> # </th>
                    <th class="span9    "> Nome da Categoria</th>
                    <th class="td-actions"> </th>
                  </tr>
                </thead>
                
                <?php 
foreach ($categoria->findAll() as $key => $value) {
    ?>
                
                <tbody>
                  <tr>
                    <td> <?php 
    echo $count++;
    ?>
 </td>
                    <td> <?php 
    echo $value->nome;
    ?>
 </td>
                    <td class="td-actions"><a href="home.php?pagina=categorias&acao=editar&id=<?php 
    echo $value->id;
    ?>
Example #2
0
<?php

session_start();
if (!isset($_SESSION["nome"])) {
    header("Location: inicio.php");
} else {
    include "boasvindas_autenticacao.php";
}
require_once "Categoria.class.php";
$listaCategoria = Categoria::findAll();
?>
<html>
<head>
	<meta charset="UTF-8" />
	<title>Bazar Tem Tudo</title>
</head>
<body>
	<?php 
require_once "cabecalho.inc";
?>
	<div id="corpo">
		<div>
			<?php 
exibe_usuario($saudacao);
?>
		</div>
		<div>
			<table border="1">
				<thead>
					<tr>
						<th>Código</th>
Example #3
0
<?php

require_once "./comum.php";
require_once BASE_DIR . "/classes/Categoria.php";
session_start();
if (!isset($_SESSION["usuario"])) {
    Header("location: inicio.php");
}
$categorias = Categoria::findAll();
?>
<html>
<head>
	<meta charset="UTF-8" />
	<title>Bazar Tem Tudo</title>
</head>
<body>

	<?php 
require_once "cabecalho.inc";
?>

	<div id="corpo">
		<table border="1">
			<thead>
				<tr>
					<th>Código</th>
					<th>Descrição</th>
					<th>Taxa</th>
				</tr>
			</thead>
			<tbody>