Exemplo n.º 1
0
<?php

$titulo = 'Listado de tareas';
require 'Class/Conexion.php';
require 'Class/Planificador.php';
$tarea = new Planificador();
$listado = $tarea->listarTarea();
$cantidad = $tarea->getCantidad();
$tareaDetalle = new Planificador();
$fila_tarea = $tareaDetalle->detalleTarea();
$validar_fecha = new Planificador();
$fila_tarea['tra_id'];
$fecha = date('Y-m-d');
?>

<div class="container">
    <h1><?php 
echo $titulo;
?>
</h1>
<?php 
if ($cantidad == 0) {
    echo 'No hay tareas para realizar...';
} else {
    ?>
    <div class="table-responsive">
        <table class = "table table-striped">
            <thead>
            <tr class="active">
                <th class = "centrado">Titulo</th>
                <th class = "centrado">Descripcion</th>
Exemplo n.º 2
0
<?php

require "Class/Conexion.php";
require "Class/Planificador.php";
include 'plantillas/cabecera.php';
$titulo = "Historial";
$planificador = new Planificador();
$tareas = $planificador->mostrarTareas();
$cantidad = $planificador->getCantidad();
?>
<div class="container">

    <h1 class="centrado"><?php 
echo $titulo;
?>
</h1>
    <hr>
    <h3 class="centrado">Tareas Realizadas</h3>

    <table class="table">
        <thead>
        <tr>
            <th>titulo</th>
            <th>descripcion</th>
            <th>fecha</th>
        </tr>
        </thead>

        <?php 
foreach ($tareas as $fila) {
    ?>