<?php include_once "../controller/cAsistencias.php"; include_once "../controller/cUtilerias.php"; $asist = new cAsistencias(); $util = new cUtilerias(); if (!isset($_POST['inicio']) && !isset($_POST['fin'])) { $now = date("Y-m-d"); $ini = date('Y-m-d', strtotime($now . ' - 14 days')); $fin = date('Y-m-d', strtotime($now . ' + 16 days')); $lista = $asist->listaAsistenciasIntervalo($ini, $fin); } else { $now = date("Y-m-d"); $ini = date('Y-m-d', strtotime($_POST[inicio] . ' - 1 days')); $fin = date('Y-m-d', strtotime($_POST['fin'] . ' + 1 days')); $lista = $asist->listaAsistenciasIntervalo($ini, $fin); } ?> <!--tabla con las asistencias--> <div class="row"> <div class="col-md-12"> <hr /> <div class="table-responsive"> <table class="table" id="tablaAsistencias" data-length="50"> <thead> <tr> <th>#</th> <th>Empleado</th> <th>Puesto</th> <th>Entrada</th> <th>Salida</th>
<?php include_once "../controller/cAsistencias.php"; include_once "../controller/cUtilerias.php"; $asisten = new cAsistencias(); $util = new cUtilerias(); $now = date("Y-m-d"); ?> <!-- head--> <div class="row"> <div class="col-md-3"> <div class="form-group"> <input id="clveEmpleado" class="form-control" placeholder="CLAVE DEL EMPLEADO" /> </div> </div> <div id="dibBtnEmp" class="col-md-1"> <button class="btn-success btn-block" onclick="checkClave()">OK</button> </div> </div> <!--body--> <div class="row"> <div class="col-md-12"> <div class="table-responsive"> <!--tabla--> <table class="table"> <thead> <tr> <th style="width: 10%">#</th> <th style="width: 30%">Empleado</th> <th style="width: 20%">Puesto</th> <th style="width: 20%">Entrada</th>
<?php require '../fpdf/fpdf.php'; include_once "../controller/cUtilerias.php"; include_once "../controller/cEmpleados.php"; include_once "../controller/cAsistencias.php"; $asistencia = new cAsistencias(); $emp = new cEmpleados(); $util = new cUtilerias(); $emple = $emp->devuelveEmpleado($_GET['id']); $lista = $asistencia->listaAsistenciasEmpleado($util->cambiaFFecha($_GET['inicio'], "Y-m-d"), $util->cambiaFFecha($_GET['fin'], "Y-m-d"), $_GET['id']); class PDF extends FPDF { //header function Header() { $this->Image('../img/logo.png', 37, 6, 130); $this->Ln(20); } //footer function Footer() { $this->SetY(-15); $this->SetFont('Arial', 'I', 8); $this->Cell(0, 10, 'Page ' . $this->PageNo() . '/{nb}', 0, 0, 'C'); } } $pdf = new PDF(); $pdf->AliasNbPages(); $pdf->AddPage(); $pdf->SetFont('Arial', 'B', 14);
<?php include_once "../controller/cUtilerias.php"; include_once "../controller/cAsistencias.php"; $util = new cUtilerias(); $asit = new cAsistencias(); $asit->modificaAsistencia($util->cambiaFFecha($_POST['fecha'], "Y-m-d H:i"), $_POST['tipo'], $_POST['asiento']);
<?php include_once "../controller/cAsistencias.php"; include_once "../controller/cUtilerias.php"; $asis = new cAsistencias(); $util = new cUtilerias(); $asis->justificaD($util->cambiaFFecha($_POST['dia'], "Y-m-d"), $_POST['idemp']); echo "SE HA JUSTIFICADO EL DIA " . $_POST['dia'];