コード例 #1
0
 function updateNotificacionManualAutomatica()
 {
     include_once '../controller/cUtilerias.php';
     $cUtilerias = new cUtilerias();
     $fecha = $cUtilerias->getDate();
     $fecha_inicio = strtotime('-1 month', strtotime($fecha));
     $fecha_inicio = date('Y-m-d', $fecha_inicio);
     $fecha_fin = strtotime('-7 day', strtotime($fecha));
     $fecha_fin = date('Y-m-d', $fecha_fin);
     $sql = "update notificacionpersonalizada set estatus=-1 where fecha_fin BETWEEN '{$fecha_inicio}' and '{$fecha_fin}';";
     //actualizamos las notificaciones que se encuentren en su fecha limite o ya la pasaron las desactivamos
     // echo $sql;
     $this->con->Query($sql);
     //recuperamos las notificaciones que se encuentren con repeticion y ya pasaron
     $sql = "select n.id_notificacion,n.repeticion,n.fecha_cambio,n.tiempo_repetir from notificacionpersonalizada as n where n.repeticion!=-1 and n.fecha_cambio BETWEEN '{$fecha_inicio}' and '{$fecha_fin}';";
     // echo $sql;
     $this->con->Query($sql);
     $datos = $this->con;
     include_once "../model/mConexion.php";
     $DB = new Database();
     while ($row = $datos->NextRow()) {
         $tipo_repeticion = $row['repeticion'];
         $fecha_cambio = $row['fecha_cambio'];
         $tiempo_repetir = $row['tiempo_repetir'];
         $id_notificacion = $row['id_notificacion'];
         $nueva_fecha_cambio = $this->getRepeticion($tipo_repeticion, $fecha_cambio, $tiempo_repetir);
         $sql = "update notificacionpersonalizada set fecha_cambio='{$nueva_fecha_cambio}' where id_notificacion={$id_notificacion};";
         $DB->Query($sql);
         // echo $sql;
     }
 }
コード例 #2
0
 function Footer()
 {
     // Position at 1.5 cm from bottom
     $this->SetY(-15);
     // Arial italic 8
     $this->SetFont('Arial', 'I', 8);
     // Page number
     $utilerias = new cUtilerias();
     $this->Cell(30, 5, utf8_decode("FECHA DE IMPRESIÓN: ") . $utilerias->getDateMexico(), 0, 0, "L");
     $this->Cell(0, 10, 'P' . utf8_decode("á") . 'gina ' . $this->PageNo() . '/{nb}', 0, 0, 'C');
 }
コード例 #3
0
 function Footer()
 {
     // Position at 1.5 cm from bottom
     $this->SetY(-15);
     // Arial italic 8
     $this->SetFont('Arial', 'I', 8);
     // Page number
     // $this->Cell(100,10,date("Y-m-d H:i:s"),0,0,'L');
     $util = new cUtilerias();
     $this->Cell(10, 10, utf8_decode("FECHA DE IMPRESIÓN: ") . $util->getDateMexico(), 0, 0, 'L');
     $this->Cell(0, 10, utf8_decode('Página ') . $this->PageNo() . '/{nb}', 0, 0, 'C');
 }
コード例 #4
0
 function Header()
 {
     $this->Image("../logo.png", 10, 6, 30);
     // Arial bold 15
     $this->SetFont('Arial', 'B', 10);
     // Move to the right
     $this->Cell(80);
     // Title
     $this->Cell(30, 5, 'TABLA DE AMORTIZACION', 0, 0, 'C');
     $this->Ln();
     $this->Cell(80);
     $this->SetFont('Arial', 'i', 10);
     $this->Cell(30, 5, "CLIENTE: " . $_GET['cliente'], 0, 0, "C");
     $this->Ln();
     $this->Cell(80);
     $utilerias = new cUtilerias();
     // $this->Cell(30,5,"FECHA DE IMPRESION: ".date("Y-m-d H:i:s"),0,0,"C");
     $this->Cell(30, 5, "FECHA DE IMPRESION: " . $utilerias->getDateMexico(), 0, 0, "C");
     // Line break
     $this->Ln(20);
 }
コード例 #5
0
 function Header()
 {
     $util = new cUtilerias();
     $expe = new cExpediente();
     $det = $expe->getDatosClienteImprimir($_GET['id']);
     // print_r($det);
     $this->Image("../logo.png", 10, 6, 30);
     // Arial bold 15
     $this->SetFont('Arial', 'B', 10);
     // Move to the right
     $this->Cell(80);
     // Title
     $this->Cell(30, 5, 'DETALLES DEL EXPEDIENTE DE ' . strtoupper($det['razon'] . " " . $det['nombre'] . " " . $det['a_pat'] . " " . $det['a_mat']), 0, 0, 'C');
     $this->Ln();
     $this->Cell(80);
     $this->Cell(30, 5, 'CLAVE DEL CLIENTE: ' . strtoupper($det['clave_agrupadora']), 0, 0, 'C');
     $this->Ln();
     $this->Cell(80);
     $this->Cell(30, 5, "FECHA DE IMPRESION: " . $util->convierteFechaTiempo(date("Y-m-d H:i:s")), 0, 0, "C");
     // Line break
     $this->Ln(20);
 }
コード例 #6
0
						Widget settings form goes here
					</div>
				</div>
				<div class="clearfix"></div>
				<div class="content">
					<div class="page-title">
						<i class="fa fa-home"></i>
						<h3>Bienvenido</h3>
					</div>
					<div class="row">
						<div class="col-lg-12">
							<?php 
include_once "../model/mCatalogos.php";
include_once "../controller/cUtilerias.php";
$mudi = new mCatalogos();
$util = new cUtilerias();
$vudi = $mudi->getUdi();
if ($_SESSION["usuario"]["idUsuario"] == 4) {
    ?>
							<div class="row">
								<!-- cambio del valor de las udis-->
								<div class="col-md-4 col-md-offset-1">
							<div class="tiles green m-b-10">
								<div class="tiles-body">
									<div class="controller">
										<a href="javascript:;" class="reload"></a><a href="javascript:;" class="remove"></a>
									</div>
									<div class="tiles-title text-black">
										<h4><strong style="color:white">VALOR ACTUAL DE UDI
											</strong></h4>
									</div>
コード例 #7
0
                <th>Folio Contrato</th>
                <th>Cliente</th>
                <th>Referencia de Pago</th>
                <th>Fecha de Pago</th>
                <th>Estatus del Contrato</th>
                <th>Monto</th>
                <th>Acciones</th>
            </tr>
        </thead>

        <tbody style="text-transform: uppercase;">
        	<?php 
include_once '../controller/cPagos.php';
include_once '../controller/cUtilerias.php';
$pagos = new cPagos();
$util = new cUtilerias();
$con = $pagos->showPagos($inicio, $fin, "true");
while ($l = $con->NextRow()) {
    ?>
        	<tr>
        		<!-- <td><?php 
    //echo $l['clave_agrupadora']
    ?>
</td>-->
                <td class="text-center"><?php 
    echo $l['id_persona'];
    ?>
</td>
        		<td class=""><?php 
    echo $l['id_contrato'];
    ?>
コード例 #8
0
<?php

include_once "../controller/cUtilerias.php";
include_once "../controller/cAlertasManuales.php";
$util = new cUtilerias();
$males = new cAlertasManuales();
$lista = $males->listaAlertasAprobadas($_POST['id']);
?>
<table class="table" id="example" aria-describedby="empleados_info">
	<thead>
		<tr role="row">
			<th class="sorting" role="columnheader" tabindex="0" aria-controls="empleados" rowspan="1" colspan="1" aria-label="Tipo: activate to sort column ascending" style="width: 59px;">#</th>
			<th class="sorting" role="columnheader" tabindex="0" aria-controls="empleados" rowspan="1" colspan="1" aria-label="prioridad: activate to sort column ascending" style="width: 75px;">prioridad</th>
			<th class="sorting" role="columnheader" tabindex="0" aria-controls="empleados" rowspan="1" colspan="1" aria-label="nombre alerta: activate to sort column ascending" style="width: 116px;">nombre de alerta</th>
			<th class="sorting" role="columnheader" tabindex="0" aria-controls="empleados" rowspan="1" colspan="1" aria-label="status: activate to sort column ascending" style="width: 132px;">Fecha de Registro</th>
			<th class="sorting" role="columnheader" tabindex="0" aria-controls="empleados" rowspan="1" colspan="1" aria-label="fecha registro: activate to sort column ascending" style="width: 118px;">fecha del Reporte</th>
			<th class="sorting" role="columnheader" tabindex="0" aria-controls="empleados" rowspan="1" colspan="1" aria-label="fecha analisis: activate to sort column ascending" style="width: 111px;">fecha de aprobación</th>
			<th class="sorting" role="columnheader" tabindex="0" aria-controls="empleados" rowspan="1" colspan="1" aria-label="Analizar: activate to sort column ascending" style="width: 100px;">Acciones</th>
		</tr>
	</thead>

	<tbody role="alert" aria-live="polite" aria-relevant="all" style="text-transform: uppercase;">
	<?php 
while ($l = $lista->NextRow()) {
    ?>
	 <tr>
	 	<td><?php 
    echo $l['asiento'];
    ?>
</td>
	 	<td><?php 
コード例 #9
0
ファイル: loadAsistencia.php プロジェクト: sulyhc/mec_admin
<?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>
コード例 #10
0
            	<th>Clave de cliente</th>
            	<th>Clave de Expediente</th>
                <th>Nombre/Raz&oacute;n</th>
                <th>Fecha de Registro</th>
                <th>Ciudad</th>
                <!--th>Estado</th-->
                <th>Tipo de Expediente</th>
                <th>Acciones</th>
            </tr>
        </thead>

        <tbody style="text-transform: uppercase;">
        <?php 
include_once '../controller/cExpediente.php';
include_once '../controller/cUtilerias.php';
$util = new cUtilerias();
$exp = new cExpediente();
$con = $exp->listarExpedientesP($_POST['tipo'], $_POST['inicio'], $_POST['fin'], $_POST['activo']);
$nmain = $exp->getNExpeMain($_POST['tipo']);
while ($l = $con->NextRow()) {
    if ($l['idmain'] == 5) {
        //comparacion si el expediente es de obligado solidario y cambiar el color
        $tcolor = "#FFFF99";
    } else {
        //mostrams todos los expedientes que no sean obligado solidario
        $tcolor = "#BBDAFD";
    }
    if ($l['idmain'] != 5) {
        //mostrar los expedientes que no sean obligados solidarios
        ?>
				<tr>
コード例 #11
0
 function getTablaAmortizacion($total, $tasa, $tipop, $nabon, $abono, $fecha)
 {
     $util = new cUtilerias();
     $datos = $this->getTis($tipop, $tasa);
     $tabla = array();
     $i = 1;
     // $tabla[$i]=Array(
     // 		"#"=>'1',
     // 		'saldo_insoluto'=>number_format($total,2),
     // 		"capital_pagado"=>number_format(($abono - ($total * ($tasa / $tipop))),2),
     // 		"interes_tiempo"=>($tasa/$tipop) * 100,
     // 		"interes"=>number_format(($total * ($tasa / $tipop)),2),
     // 		"pago"=>number_format($abono,2),
     // 		"fecha_corte"=>
     // 		$util->convierteFecha(date('Y-m-d',strtotime($fecha.' '.$datos['intervalo'])))
     // 	);
     $tabla[$i] = array("#" => '1', 'saldo_insoluto' => round($total, 2), "capital_pagado" => $abono - $total * ($tasa / $tipop), "interes_tiempo" => $tasa / $tipop * 100, "interes" => $total * ($tasa / $tipop), "pago" => $abono, "fecha_corte" => $util->convierteFecha(date('Y-m-d', strtotime($fecha . ' ' . $datos['intervalo']))));
     $tota = $total;
     $cpagado = $abono - $tota * ($tasa / $tipop);
     $ffcorte = $util->convierteFecha(date('Y-m-d', strtotime($fecha . ' ' . $datos['intervalo'])));
     for ($i = 2; $i <= $nabon + 1; $i++) {
         $ffcorte = date('Y-m-d', strtotime($ffcorte . ' ' . $datos['intervalo']));
         $tota -= $cpagado;
         // $tota = round($tota,2);
         $tota = $tota;
         $cpagado = round($abono - $tota * ($tasa / $tipop), 2);
         if ($tota > 0) {
             $tabla[$i] = array("#" => $i, "saldo_insoluto" => round($tota, 2), "capital_pagado" => $cpagado, "interes_tiempo" => $tasa / $tipop * 100, "interes" => round($tota * ($tasa / $tipop), 2), "pago" => round($cpagado + $tota * ($tasa / $tipop), 2), "fecha_corte" => $util->convierteFecha($ffcorte));
             if (round($cpagado + $tota * ($tasa / $tipop), 2) > $tota) {
                 $i = $nabon + 1;
             }
         } else {
             break;
         }
         //fin else
     }
     //fin for
     return $tabla;
 }
コード例 #12
0
<?php

include_once "../controller/cContratos.php";
include_once "../controller/cUtilerias.php";
$contra = new cContratos();
$tabla = $contra->showTablaAmortizacion($_POST['contrato']);
// print_r($tabla);
$det = $contra->getDetallesContrato($_POST['contrato']);
$util = new cUtilerias();
?>
 <!--mensaje de aviso de ubicacion-->
                <div class="row no-print">
                	<div class="col-lg-12">
                		<div class="alert alert-info">
                			USTED SE ENCUENTRA LISTANDO TABLA DE AMORTIZACION(ORIGINAL)
                		</div>
                	</div>
                </div>
 <div class="row">
 	<div class="col-lg-6">
 		<!-- <a href="../view/listaPrestamo.php" class="btn btn-danger">Regresar</a> -->
 		<?php 
if (isset($_POST['convenio'])) {
    echo "<a href='../view/listarConvenios.php' class='btn btn-danger'>Regresar</a>";
} else {
    echo "<a href='../view/listaPrestamo.php' class='btn btn-danger'>Regresar</a>";
}
?>
 		<a href="#" class="btn btn-success" onclick="imprimirTabla()">Imprimir</a>
 		<!-- <a href="#" class="btn btn-success" onclick="window.print()">Imprimir</a> -->
 	</div>
コード例 #13
0
              <td>Clave Cliente</td>
              <th>Folio de Contrato</th>
                <th>Nombre/Raz&oacute;n</th>
                <th>Fecha del Contrato</th>
                <th>Monto</th>
                <th>Plazo(meses)</th>
                <th>Acciones</th>
            </tr>
        </thead>

        <tbody style="text-transform: uppercase;">
          <?php 
include_once '../controller/cContratos.php';
include_once '../controller/cUtilerias.php';
$contr = new cContratos();
$util = new cUtilerias();
$contratos = $contr->getContratosVig($inicio, $fin, "true");
while ($l = $contratos->NextRow()) {
    ?>
          <tr>
            <td><?php 
    echo $l['id_persona'];
    ?>
</td>
            <td><?php 
    echo $l['id_contrato'];
    ?>
</td>
            <td class="odd"><?php 
    echo $l['razon'] . $l['cliente'];
    ?>
コード例 #14
0
 function alertaPrepago($id_contrato, $id_usuario, $formaPago)
 {
     include_once "../controller/cUtilerias.php";
     $cUtilerias = new cUtilerias();
     $con = new Database();
     $sql = "select c.fecha_inicio,c.fecha_fin,c.id_clte from contratos as c where c.id_contrato='{$id_contrato}';";
     $con->Query($sql);
     while ($row = $con->NextRow()) {
         $fecha_inicio = $row['fecha_inicio'];
         $fecha_fin = $row['fecha_fin'];
         $id_clte = $row['id_clte'];
     }
     $date1 = date_create($fecha_inicio);
     $date2 = date_create($fecha_fin);
     $diff = date_diff($date1, $date2);
     $mitad_dias = intval($diff->format("%a days") / 2);
     //saco el 50% del tiempo en días
     $date3 = date_create($cUtilerias->getDateMexico());
     $diff2 = date_diff($date1, $date3);
     $dias = intval($diff2->format("%a days"));
     //saco los dias que hay entre el inicio con el actual
     if ($dias <= $mitad_dias) {
         $this->regAlertaAutoExpe("PREPAGO", "", "", "", "", $id_clte, $id_contrato, $id_usuario, 3, 1, "EL CLIENTE CUBRIO EL 100% DE SU DEUDA Y AÚN NO SE CUMPLE EL 50% DEL PLAZO QUE TENÍA PARA CUBRIRLA", "SISTEMA", 9, $formaPago);
         return "EL CLIENTE CUBRIO EL 100% DE SU DEUDA Y AÚN NO SE CUMPLE EL 50% DEL PLAZO QUE TENÍA PARA CUBRIRLA";
     } else {
         return "0";
     }
 }
コード例 #15
0
<?php

include_once "../controller/cUtilerias.php";
$util = new cUtilerias();
$total = $_POST['total'];
$tasa = $_POST['tasa'];
$tipop = $_POST['tipop'];
$nabon = $_POST['nabon'];
$abono = $_POST['abono'];
$ti = "Semanal";
$tis = $tasa / 4;
$interval = '+ 7 days';
if ($tipop == 1) {
    $ti = "Mensual";
    $interval = '+ 1 months';
    $tis = $tasa;
} elseif ($tipop == 2) {
    $ti = "Quincenal";
    $tis = $tasa / 2;
    $interval = '+ 15 days';
}
$totalpagar = round($abono * $nabon, 2);
?>
<div class="row">
	<div class="col-lg-8 col-lg-offset-2">
		<table class="table table-striped" style="background-color: white" id="cabeceraTablaAmort">
			<tr>
				<th>MONTO DEL CR&Eacute;DITO</th>
				<td>$<?php 
echo number_format($total, 2);
?>
コード例 #16
0
																			<th>Nombre/Razon</th>
																			<th>Telefono</th>
																			<th>Correo</th>
																			<th>Contrato</th>
																			<th>Fecha de Contrato</th>
																			<th>Monto de Cr&eacute;dito</th>
																			<th>Acciones</th>
																		</tr>
																	</thead>
																	<!--cuerpo de la tabla empleados-->
																	<tbody style="text-transform: uppercase;">
																		<?php 
include '../controller/cExpediente.php';
include '../controller/cUtilerias.php';
$exped = new cExpediente();
$util = new cUtilerias();
$lexpes = $exped->listarExpedientesTodos();
while ($ex = $lexpes->NextRow()) {
    ?>
																		<tr>
																			<td><?php 
    echo $ex['razon'] . " " . $ex['nombre'] . " " . $ex['a_pat'] . " " . $ex['a_mat'];
    ?>
</td>
																			<td><?php 
    echo $ex['telefono_p'];
    ?>
</td>
																			<td><?php 
    echo $ex['email'];
    ?>
コード例 #17
0
<?php

include_once "../controller/cExpediente.php";
include_once "../controller/cContratos.php";
include_once "../controller/cAlertasManuales.php";
include_once "../controller/cUtilerias.php";
include_once "../controller/cPagos.php";
include_once "../controller/cPerfilTransaccional.php";
$alert = new cAlertasManuales();
$dalerta = $alert->devuelveAlerta($_POST['id']);
// print_r($dalerta);
$alert->cambiaEstatusAlerta($_POST['id'], 1);
$util = new cUtilerias();
$expen = new cExpediente();
$pfclte = new cPerfilTransaccional();
$alert->fechaL($_POST['id']);
?>
<div class="modal-dialog" role="document" style="width: 85%">
	<div class="modal-content">
		<div class="modal-header">
			<button type="button" class="close" data-dismiss="modal" aria-label="Close">
				<span aria-hidden="true">&times;</span>
			</button>
			<h4 class="modal-title" id="myModalLabel">ANALIZAR ALERTA</h4>
		</div>
		<div class="modal-body">
			<ul class="nav nav-tabs" id="myTab">
				<li class="active">
					<a href="#informacion">Información</a>
				</li>
				<li>
コード例 #18
0
<?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);
コード例 #19
0
ファイル: justifica.php プロジェクト: sulyhc/mec_admin
<?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'];
																				<th class="sorting" role="columnheader" tabindex="0" aria-controls="empleados" rowspan="1" colspan="1" aria-label="Tipo: activate to sort column ascending" style="width: 59px;">Tipo</th>
																				<th class="sorting" role="columnheader" tabindex="0" aria-controls="empleados" rowspan="1" colspan="1" aria-label="prioridad: activate to sort column ascending" style="width: 75px;">prioridad</th>
																				<th class="sorting" role="columnheader" tabindex="0" aria-controls="empleados" rowspan="1" colspan="1" aria-label="nombre alerta: activate to sort column ascending" style="width: 116px;">nombre alerta</th>
																			<!-	<th class="sorting" role="columnheader" tabindex="0" aria-controls="empleados" rowspan="1" colspan="1" aria-label="cliente: activate to sort column ascending" style="width: 157px;">cliente</th> ->
																				th class="sorting" role="columnheader" tabindex="0" aria-controls="empleados" rowspan="1" colspan="1" aria-label="fecha registro: activate to sort column ascending" style="width: 118px;">fecha registro</th><th class="sorting" role="columnheader" tabindex="0" aria-controls="empleados" rowspan="1" colspan="1" aria-label="fecha analisis: activate to sort column ascending" style="width: 111px;">fecha analisis</th><th class="sorting" role="columnheader" tabindex="0" aria-controls="empleados" rowspan="1" colspan="1" aria-label="status: activate to sort column ascending" style="width: 132px;">status</th><th class="sorting" role="columnheader" tabindex="0" aria-controls="empleados" rowspan="1" colspan="1" aria-label="Analizar: activate to sort column ascending" style="width: 70px;">Analizar</th>-->
																			</tr>
																		</thead>

																		<tbody role="alert" aria-live="polite" aria-relevant="all" style="text-transform: uppercase;">

											<?php 
include_once '../controller/cAlertasManuales.php';
include_once '../controller/cUtilerias.php';
$alertas = new cAlertasManuales();
$todas = $alertas->getTodasAlertas();
$util = new cUtilerias();
$i = 1;
echo "reporte";
while ($t = $todas->NextRow()) {
    ?>
											<tr class="gradeX odd">
												<td><?php 
    echo $t['clave'];
    ?>
</td>
												<td class=" "><?php 
    echo $t['origen'];
    ?>
</td>
												<td class=" "><?php 
    echo $t['tipo_alertas_manuales'];
コード例 #21
0
<div class="page-container row-fluid">
	<!-- BEGIN PAGE CONTAINER-->
	<div class="page-content">
	<?php 
include_once "../controller/cContratos.php";
include_once "../controller/cUtilerias.php";
$expe = new cContratos();
$util = new cUtilerias();
$clte = $expe->getDetallesContrato($_POST['contrato']);
//print_r($clte);
?>
<div class="row">
	<input type="hidden" name="" id="id_cliente" value="<?php 
echo $clte['id_cliente'];
?>
">
		<!-- Modal para registrar un convenio-->
		<div class="modal fade" id="modalContratoConvenioNvo" tabindex="-1" role="modal" aria-labelledby="myModalLabel" aria-hidden="true">
			<div class="modal-dialog">
				<div class="modal-content">
					<div class="modal-header">
						<h4 class="modal-title" id="myModalLabel">PAR&Aacute;METROS DEL CONVENIO PARA EL CLIENTE:
							<strong style="text-transform: uppercase"><?php 
echo $clte['razon'] . " " . $clte['nombres'] . " " . $clte['a_pat'] . " " . $clte['a_mat'];
?>
</strong> </h4>
					</div>
					<div class="modal-body">
						<!-- parametros de prestamo -->
	<form id="formConveExpe" name="formContratoExp" >
		<!-- id del clte-->
<?php

header('Content-Type: text/html; charset=utf-8');
session_start();
if (empty($_SESSION["sqPLD"])) {
    header("Location: ../");
}
include_once '../controller/cUtilerias.php';
$cUtilerias = new cUtilerias();
// $inicio=date('Y-m-d');
$inicio = $cUtilerias->getDateMexico();
$fin = strtotime('+1 month', strtotime($inicio));
$fin = date('Y-m-d', $fin);
$inicio = $cUtilerias->convierteFecha($inicio);
$fin = $cUtilerias->convierteFecha($fin);
?>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
        <meta charset="utf-8" />
        <title>Sistema de Cartera - PLD | Emprever</title>
        <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
        <meta content="" name="description" />
        <meta content="" name="author" />
        <!-- BEGIN PLUGIN CSS -->
        <link rel="icon" type="image/png" href="../logo.png" />
        <link href="../assets/plugins/pace/pace-theme-flash.css" rel="stylesheet" type="text/css" media="screen"/>
        <link href="../assets/plugins/jquery-notifications/css/messenger.css" rel="stylesheet" type="text/css" media="screen"/>
        <link href="../assets/plugins/jquery-notifications/css/messenger-theme-future.css" rel="stylesheet" type="text/css" media="screen"/>
        <!-- BELOW CSS FILE IS NOT REQUIRED -->
コード例 #23
0
ファイル: updAsistencia.php プロジェクト: sulyhc/mec_admin
<?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']);
コード例 #24
0
ファイル: creaNomina.php プロジェクト: sulyhc/mec_admin
<?php

include_once "../controller/cNominas.php";
include_once "../controller/cUtilerias.php";
$nomina = new cNominas();
$util = new cUtilerias();
?>
<input id="dia" type="hidden" value="<?php 
echo $_POST['dias'];
?>
" />
<input id="inicio" type="hidden" value="<?php 
echo $_POST['inicio'];
?>
" />
<input id="fin" type="hidden" value="<?php 
echo $_POST['fin'];
?>
" />
<!--tabla -->
<table class="table" style="text-transform: uppercase">
	<thead>
		<tr>
			<th>#</th>
			<th>Empleado</th>
			<th><center>hrs</center></th>
			<th>Sueldo</th>
			<th>Reporte</th>
		</tr>
	</thead>
	<tbody>
コード例 #25
0
<?php

include_once "../controller/cPuestos.php";
include_once "../controller/cEmpleados.php";
include_once "../controller/cUtilerias.php";
$util = new cUtilerias();
$puestos = new cPuestos();
$lpuest = $puestos->listaPuesto();
$emple = new cEmpleados();
$em = $emple->devuelveEmpleado($_POST['id']);
?>
<div class="modal-dialog modal-lg" role="document">
	<div class="modal-content">
		<div class="modal-header">
			<button type="button" class="close" data-dismiss="modal" aria-label="Close">
				<span aria-hidden="true">&times;</span>
			</button>
			<h4 class="modal-title" id="myModalLabel">Editando Datos de: <?php 
echo $em['nombres'] . " " . $em['a_mat'] . " " . $em['a_pat'];
?>
</h4>
		</div>
		<div class="modal-body">
			<form id="formEditEmp">
				<input type="hidden" name="idEmple" value="<?php 
echo $_POST['id'];
?>
" />
				<div class="row">
					<div class="form-group">
						<div class="col-md-4">
コード例 #26
0
    function Footer()
    {
        // Position at 1.5 cm from bottom
        $this->SetY(-15);
        // Arial italic 8
        $this->SetFont('Arial', 'I', 8);
        // Page number
        $this->Cell(0, 10, 'Pagina ' . $this->PageNo() . '/{nb}', 0, 0, 'C');
    }
}
$pdf = new PDF();
$pdf->AddPage();
$pdf->SetFont('Arial', 'B', 9);
$pdf->Cell(80);
$pdf->Cell(30, 10, 'ARTICULOS VENDIDOS', 0, 0, 'C');
$util = new cUtilerias();
$pdf->Ln();
$con = new Conexion();
$ventas = new VentasR($con->conexionDB(), $_SESSION['tienda'], $_SESSION['id_emp']);
$lista = $ventas->listaVentasRep();
// Color and font restoration
$pdf->SetFillColor(224, 235, 255);
$pdf->SetTextColor(0);
$pdf->SetFont('');
// Data
$fill = false;
$i = 1;
//cabeceras del reporte
$pdf->SetFont('Arial', 'B', 9);
$pdf->Cell(10, 5, "#", 1, 0, 'L', $fill);
$pdf->Cell(12, 5, "FOLIO", 1, 0, 'L', $fill);
コード例 #27
0
 function getTextContrato($idContrato)
 {
     $con = new Database();
     $cifra = new CifraLetra();
     $util = new cUtilerias();
     //selecciona los gastos de investigacion del producto
     $sql = "select productos.gastos_investigacion from productos, contratos where\n                 id_contrato = '{$idContrato}' and contratos.id_pdt = productos.id_pdt;";
     $gastos_investigacion = $con->Fetch($sql);
     //selecciona el texto del contrato
     $query = "select productos.contrato_txt from productos, contratos where\n                 id_contrato = '{$idContrato}' and contratos.id_pdt = productos.id_pdt";
     $texto = $con->Fetch($query);
     //selecciona el nombre del cliente, el producto de prestamo, tasa de interes, monto del prestamo y demas parametros
     $query = "select c.razon, c.a_pat, c.a_mat, c.nombre,ct.monto,ct.plazo,p.nombre as producto,p.tasa_interes,DAY(ct.fecha_fin) as dia, MONTH(ct.fecha_fin) as mes,\n                  YEAR(ct.fecha_fin) as anio,ct.fecha_generacion,p.comision_apertura,p.comision_manejo_cta from clientes_todos as c, contratos as ct,productos as p\n                    where p.id_pdt = ct.id_pdt and c.id_cliente = ct.id_clte and ct.id_contrato = '{$idContrato}' ";
     $clte = $con->Fetch($query);
     $texto = str_replace("%cliente%", strtoupper($clte['razon'] . " " . $clte['nombre'] . " " . $clte['a_pat'] . " " . $clte['a_mat']), $texto);
     $os = $this->__textOS($idContrato);
     $tos = "";
     $ncifra = $cifra->numtoletras($clte['monto']);
     $cabeceras = "";
     $garantes = "";
     $textoGarante = "";
     while ($o = $os->NextRow()) {
         if ($clte['nombre'] == $o['nombre'] && $clte['a_pat'] == $o['a_pat'] && $clte['a_mat'] == $o['a_mat']) {
         } else {
             $tos = $tos . " " . $o['razon'] . $o['nombre'] . " " . $o['a_pat'] . " " . $o['a_mat'] . ",";
             $cabeceras = $cabeceras . "El GARANTE SOLIDARIO Y AVAL                                         ";
             $garantes = $garantes . $o['razon'] . $o['nombre'] . " " . $o['a_pat'] . " " . $o['a_mat'] . "                                                        ";
         }
     }
     // $textoGarante=$cabeceras."\n".$garantes;
     $texto = str_replace('%obsol%', strtoupper($tos), $texto);
     $cat = $this->__getCat($idContrato);
     $texto = str_replace('%cat%', $cat, $texto);
     $texto = str_replace('%monto%', $clte['monto'], $texto);
     $texto = str_replace('%montop%', $ncifra, $texto);
     $texto = str_replace('%tinteres%', $clte['tasa_interes'] / 2 . "%", $texto);
     $texto = str_replace('%fecha%', $util->convierteFecha($clte['fecha_generacion']), $texto);
     $texto = str_replace('%fesha%', $this->__fechaContrato($clte['dia'], $clte['mes'], $clte['anio']), $texto);
     $texto = str_replace('%plazo%', $clte['plazo'], $texto);
     $texto = str_replace('%mnjcta%', $clte['comision_manejo_cta'], $texto);
     $texto = str_replace("%gastos_investigacion%", $gastos_investigacion, $texto);
     $texto = str_replace("%cabeceras%", $cabeceras, $texto);
     $texto = str_replace("%garantes%", $garantes, $texto);
     return $texto;
 }
<?php

session_start();
include "../controller/cPagos.php";
include "../controller/cCatalogos.php";
include "../controller/cUtilerias.php";
include_once "../model/mBitacora.php";
$bit = new mBitacora();
$util = new cUtilerias();
$bit->entradaBitacoraExp($_SESSION["usuario"]["idUsuario"], "Registrar Pago", "el usuario ha ingresado a la seccion registrar un pago para el contrato " . $_POST['idContrato'], $_POST['idClte']);
$pagos = new cPagos();
// $pagos->setPagoAbono_inicial();
//$pagos->relPagoMayor();
$det = $pagos->detClteContrato($_POST['idClte'], $_POST['idContrato']);
$detPag = $pagos->getLastPago($_POST['idContrato']);
// print_r($detPag);
$esultimo = $pagos->ultimoPago($_POST['idContrato']);
$cata = new cCatalogos();
$tasaInt = $det['tasa_interes'];
$bncs = $cata->devuelveBancos();
//calculos para mostrar las comisiones cobradas
//verifica si se pasó de la fecha de corte
$fecha = strtotime('+1 day', strtotime($detPag['fecha_corte']));
$fecha = date('d-m-Y', $fecha);
$fcorte = strtotime($fecha);
//fecha de corte
$now = strtotime("now");
$gstcobr = 0.0;
$itmor = 0.0;
$morins = 0.0;
$mcta = round($detPag['comision_manejo_cta'], 2);
コード例 #29
0
<div class="row-fluid">

<!--cabecera de la tabla (visible solo a la hora de imprimir)-->
<div id="cabeceraDocto" class="row">
	<div id="logoempresa" class="col-lg-3 col-lg-offset-1">
		<img src="../logo.png"  class="img-responsive" style="width:50%;height: 50%"/>
	</div>
	<div class="col-lg-4">
		<br />
		<center>
		<h3><strong> TABLA DE AMORTIZACI&Oacute;N</strong></h3>
		</center>
		<?php 
include_once "../controller/cExpediente.php";
include_once "../controller/cUtilerias.php";
$utilerias = new cUtilerias();
$expend = new cExpediente();
$clieng = $expend->getExpediente($_POST['idClte']);
?>
		<h4 style="text-transform: uppercase">CLIENTE: <strong> <?php 
echo $clieng['razon'] . ' ' . $clieng['nombre'] . ' ' . $clieng['a_pat'] . ' ' . $clieng['a_mat'];
?>
</strong></h4>
		<h5 style="text-transform: uppercase">Fecha de generaci&oacute;n: <strong><?php 
echo $utilerias->getDateMexico();
?>
</strong</h5>
		<!-- <h5 style="text-transform: uppercase">Fecha de Generaci&oacute;n: <?php 
//echo(date("Y-m-d H:i:s"))
?>
</h5> -->