Viewing file: recibo1.php (26.66 KB) -rw-rw-rw- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
$con=0;
$fin="VOID";
if ($radiobutton == "eval") {
$tipo_usu = "E";
}else{
$tipo_usu = "S";
}
////////////////////////////////////////////////////////////////////
// Este Licencias Ambientales
////////////////////////////////////////////////////////////////////
$chk = isset($checkbox);
if ($chk == true) {
//// Sector Explotación Minera
if ($lictipo == 1) {
if ($radiobutton == "eval") {
$na = 1;
$nb = 1;
$nc = 1;
$a = 0.38;
$b = 0.63;
$c = 0.88;
$aa = 0.03;
$bb = 0.13;
$cc = 0.25;
$aaa = 0;
$bbb = 0.03;
$ccc = 0.05;
}else{
$na = 1;
$nb = 1;
$nc = 1;
$a = 0.09;
$b = 0.13;
$c = 0.28;
$aa = 0.01;
$bb = 0.06;
$cc = 0.1;
$aaa = 0;
$bbb = 0;
$ccc = 0;
}}
//// Sector Infraestructura
if ($lictipo == 2) {
if ($radiobutton == "eval") {
$na = 1;
$nb = 1;
$nc = 2;
$a = 0.5;
$b = 1;
$c = 2.25;
$aa = 0.13;
$bb = 0.25;
$cc = 0.63;
$aaa = 0;
$bbb = 0.13;
$ccc = 0.25;
}else{
$na = 1;
$nb = 2;
$nc = 2;
$a = 0.11;
$b = 0.28;
$c = 0.55;
$aa = 0.02;
$bb = 0.06;
$cc = 0.17;
$aaa = 0;
$bbb = 0;
$ccc = 0;
}}
//// Sector Residuos y Sus. peligrosas
if ($lictipo == 3) {
if ($radiobutton == "eval") {
$na = 1;
$nb = 1;
$nc = 1;
$a = 0.4;
$b = 0.75;
$c = 1;
$aa = 0.03;
$bb = 0.08;
$cc = 0.38;
$aaa = 0;
$bbb = 0.03;
$ccc = 0.05;
}else{
$na = 1;
$nb = 1;
$nc = 1;
$a = 0.1;
$b = 0.17;
$c = 0.33;
$aa = 0.01;
$bb = 0.03;
$cc = 0.06;
$aaa = 0;
$bbb = 0;
$ccc = 0;
}}
//// Sector Ind. Quimica
if ($lictipo == 4) {
if ($radiobutton == "eval") {
$na = 1;
$nb = 1;
$nc = 1;
$a = 0.38;
$b = 0.63;
$c = 0.88;
$aa = 0;
$bb = 0.13;
$cc = 0.38;
$aaa = 0;
$bbb = 0;
$ccc = 0.03;
}else{
$na = 1;
$nb = 1;
$nc = 1;
$a = 0.08;
$b = 0.15;
$c = 0.22;
$aa = 0.02;
$bb = 0.03;
$cc = 0.06;
$aaa = 0;
$bbb = 0;
$ccc = 0;
}}
//// Sector Zoocriaderos
if ($lictipo == 5) {
if ($radiobutton == "eval") {
$na = 1;
$nb = 1;
$nc = 1;
$a = 0.35;
$b = 0.63;
$c = 0.88;
$aa = 0.03;
$bb = 0.10;
$cc = 0.30;
$aaa = 0;
$bbb = 0;
$ccc = 0.03;
}else{
$na = 1;
$nb = 1;
$nc = 1;
$a = 0.07;
$b = 0.11;
$c = 0.18;
$aa = 0.03;
$bb = 0.06;
$cc = 0.09;
$aaa = 0;
$bbb = 0;
$ccc = 0;
}}
require('liquida.php');
$sieto = intval($sieto);
$res[$con] = $sieto;
$nom[$con] = $checkbox;
$con = $con + 1;
}
////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////
// Este es el de Plan de Manejo, recuperación o restaura ambiental
////////////////////////////////////////////////////////////////////
$chk = isset($checkbox3);
if ($chk == true) {
//// Seguimiento Plan de manejo ambiental
if ($lictipo1 == 1) {
if ($radiobutton == "eval") {
$na = 1;
$nb = 1;
$nc = 1;
$a = 0;
$b = 0;
$c = 0;
$aa = 0;
$bb = 0;
$cc = 0;
$aaa = 0;
$bbb = 0;
$ccc = 0;
}else{
$na = 1;
$nb = 1;
$nc = 1;
$a = 0.11;
$b = 0.28;
$c = 0.55;
$aa = 0.02;
$bb = 0.06;
$cc = 0.17;
$aaa = 0;
$bbb = 0;
$ccc = 0;
}}
//// PMA Restauracion y PMA Escombreras
if ($lictipo1 == 2) {
if ($radiobutton == "eval") {
$na = 1;
$nb = 1;
$nc = 1;
$a = 0.38;
$b = 0.63;
$c = 0.88;
$aa = 0.03;
$bb = 0.13;
$cc = 0.25;
$aaa = 0;
$bbb = 0.03;
$ccc = 0.05;
}else{
$na = 1;
$nb = 1;
$nc = 1;
$a = 0.09;
$b = 0.13;
$c = 0.28;
$aa = 0.01;
$bb = 0.06;
$cc = 0.1;
$aaa = 0;
$bbb = 0;
$ccc = 0;
}}
//// PMA Ecologicos y REcreacionales
if ($lictipo1 == 3) {
if ($radiobutton == "eval") {
$na = 1;
$nb = 1;
$nc = 1;
$a = 0.4;
$b = 0.75;
$c = 1;
$aa = 0.03;
$bb = 0.08;
$cc = 0.38;
$aaa = 0;
$bbb = 0.03;
$ccc = 0.05;
}else{
$na = 1;
$nb = 1;
$nc = 1;
$a = 0.1;
$b = 0.17;
$c = 0.33;
$aa = 0.01;
$bb = 0.03;
$cc = 0.06;
$aaa = 0;
$bbb = 0;
$ccc = 0;
}}
//// Guias minero ambientales
if ($lictipo1 == 4) {
if ($radiobutton == "eval") {
$na = 1;
$nb = 1;
$nc = 1;
$a = 0;
$b = 0;
$c = 0;
$aa = 0;
$bb = 0;
$cc = 0;
$aaa = 0;
$bbb = 0;
$ccc = 0;
}else{
$na = 1;
$nb = 1;
$nc = 1;
$a = 0.08;
$b = 0.13;
$c = 0.21;
$aa = 0.01;
$bb = 0.05;
$cc = 0.09;
$aaa = 0;
$bbb = 0;
$ccc = 0;
}}
//// Sector Zoocriaderos TEMPORALMENTE OUT
if ($lictipo1 == 5) {
if ($radiobutton == "eval") {
$na = 1;
$nb = 1;
$nc = 1;
$a = 0.35;
$b = 0.63;
$c = 0.88;
$aa = 0.03;
$bb = 0.10;
$cc = 0.30;
$aaa = 0;
$bbb = 0;
$ccc = 0.03;
}else{
$na = 1;
$nb = 1;
$nc = 1;
$a = 0.07;
$b = 0.11;
$c = 0.18;
$aa = 0.03;
$bb = 0.06;
$cc = 0.09;
$aaa = 0;
$bbb = 0;
$ccc = 0;
}}
require('liquida.php');
$sieto = intval($sieto);
$res[$con] = $sieto;
$nom[$con] = $checkbox3;
$con = $con + 1;
}
////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////
// Este liquida SEGUIMIENTO a PMA
////////////////////////////////////////////////////////////////////
$chk = isset($checkbox2);
if ($chk == true) {
/// Sector Explotación Minera
if ($segutipo == 1) {
if ($radiobutton != "eval") {
$na = 1;
$nb = 1;
$nc = 1;
$a = 0.08;
$b = 0.13;
$c = 0.21;
$aa = 0.01;
$bb = 0.05;
$cc = 0.09;
$aaa = 0;
$bbb = 0;
$ccc = 0;
}}
/// Sector Transporte, saneamiento y urbanismo
if ($segutipo == 2) {
if ($radiobutton != "eval") {
$na = 1;
$nb = 2;
$nc = 2;
$a = 0.11;
$b = 0.26;
$c = 0.53;
$aa = 0.02;
$bb = 0.05;
$cc = 0.16;
$aaa = 0;
$bbb = 0;
$ccc = 0;
}}
/// Sector Hidrocarburos
if ($segutipo == 3) {
if ($radiobutton != "eval") {
$na = 1;
$nb = 1;
$nc = 1;
$a = 0.09;
$b = 0.16;
$c = 0.32;
$aa = 0.01;
$bb = 0.03;
$cc = 0.05;
$aaa = 0;
$bbb = 0;
$ccc = 0;
}}
/// Sector Ind. Metalurgica, apara y equi.
if ($segutipo == 4) {
if ($radiobutton != "eval") {
$na = 1;
$nb = 1;
$nc = 1;
$a = 0.07;
$b = 0.16;
$c = 0.32;
$aa = 0.03;
$bb = 0.02;
$cc = 0.04;
$aaa = 0;
$bbb = 0;
$ccc = 0;
}}
/// Sector Ind. Manufacturera
if ($segutipo == 5) {
if ($radiobutton != "eval") {
$na = 1;
$nb = 1;
$nc = 1;
$a = 0.07;
$b = 0.11;
$c = 0.16;
$aa = 0.01;
$bb = 0.03;
$cc = 0.05;
$aaa = 0;
$bbb = 0;
$ccc = 0;
}}
/// Sector Refinación de plasticos, edicion e impresion
if ($segutipo == 6) {
if ($radiobutton != "eval") {
$na = 1;
$nb = 1;
$nc = 1;
$a = 0.07;
$b = 0.15;
$c = 0.21;
$aa = 0.02;
$bb = 0.03;
$cc = 0.05;
$aaa = 0;
$bbb = 0;
$ccc = 0;
}}
/// Sector Servicios
if ($segutipo == 7) {
if ($radiobutton != "eval") {
$na = 1;
$nb = 1;
$nc = 1;
$a = 0.06;
$b = 0.11;
$c = 0.17;
$aa = 0.03;
$bb = 0.05;
$cc = 0.08;
$aaa = 0;
$bbb = 0;
$ccc = 0;
}}
if ($radiobutton != "eval") {
require('liquida.php');
$sieto = intval($sieto);
$res[$con] = $sieto;
$nom[$con] = $checkbox2;
$con = $con + 1;
}
}
////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////
// Este liquida Permiso de exploracion de aguas subterraneas
////////////////////////////////////////////////////////////////////
$chk = isset($checkbox7);
if ($chk == true) {
if ($radiobutton == "eval") {
$na = 1;
$nb = 1;
$nc = 1;
$a = 0.08;
$b = 0.11;
$c = 0.15;
$aa = 0;
$bb = 0;
$cc = 0;
$aaa = 0;
$bbb = 0;
$ccc = 0;
}else{
$na = 4;
$nb = 5;
$nc = 6;
$a = 0.06;
$b = 0.11;
$c = 0.17;
$aa = 0;
$bb = 0;
$cc = 0;
$aaa = 0;
$bbb = 0;
$ccc = 0;
}
require('liquida.php');
$sieto = intval($sieto);
$res[$con] = $sieto;
$nom[$con] = $checkbox7;
$con = $con + 1;
}
////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////
// Este liquida concesión aguas subterraneas
////////////////////////////////////////////////////////////////////
$chk = isset($checkbox4);
if ($chk == true) {
if ($radiobutton == "eval") {
$na = 1;
$nb = 1;
$nc = 1;
$a = 0.14;
$b = 0.20;
$c = 0.33;
$aa = 0;
$bb = 0;
$cc = 0;
$aaa = 0;
$bbb = 0;
$ccc = 0;
}else{
$na = 1;
$nb = 1;
$nc = 1;
$a = 0.04;
$b = 0.05;
$c = 0.08;
$aa = 0;
$bb = 0;
$cc = 0;
$aaa = 0;
$bbb = 0;
$ccc = 0;
}
require('liquida.php');
$sieto = intval($sieto);
$res[$con] = $sieto;
$nom[$con] = $checkbox4;
$con = $con + 1;
}
////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////
// Este liquida concesión aguas superficiales
////////////////////////////////////////////////////////////////////
$chk = isset($checkbox5);
if ($chk == true) {
if ($radiobutton == "eval") {
$na = 1;
$nb = 1;
$nc = 1;
$a = 0.14;
$b = 0.20;
$c = 0.33;
$aa = 0;
$bb = 0;
$cc = 0;
$aaa = 0;
$bbb = 0;
$ccc = 0;
}else{
$na = 1;
$nb = 1;
$nc = 1;
$a = 0.04;
$b = 0.05;
$c = 0.08;
$aa = 0;
$bb = 0;
$cc = 0;
$aaa = 0;
$bbb = 0;
$ccc = 0;
}
require('liquida.php');
$sieto = intval($sieto);
$res[$con] = $sieto;
$nom[$con] = $checkbox5;
$con = $con + 1;
}
////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////
// Este liquida permiso de vertimientos
////////////////////////////////////////////////////////////////////
$chk = isset($checkbox8);
if ($chk == true) {
if ($radiobutton == "eval") {
$na = 1;
$nb = 1;
$nc = 1;
$a = 0.09;
$b = 0.18;
$c = 0.30;
$aa = 0;
$bb = 0;
$cc = 0;
$aaa = 0;
$bbb = 0;
$ccc = 0;
}else{
$na = 1;
$nb = 1;
$nc = 1;
$a = 0.04;
$b = 0.05;
$c = 0.08;
$aa = 0;
$bb = 0;
$cc = 0;
$aaa = 0;
$bbb = 0;
$ccc = 0;
}
require('liquida.php');
$sieto = intval($sieto);
$res[$con] = $sieto;
$nom[$con] = $checkbox8;
$con = $con + 1;
}
////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////
// Este liquida permiso de ocupación de cauces
////////////////////////////////////////////////////////////////////
$chk = isset($checkbox6);
if ($chk == true) {
if ($radiobutton == "eval") {
$na = 1;
$nb = 1;
$nc = 1;
$a = 0.09;
$b = 0.18;
$c = 0.30;
$aa = 0;
$bb = 0;
$cc = 0;
$aaa = 0;
$bbb = 0;
$ccc = 0;
}else{
$na = 1;
$nb = 1;
$nc = 1;
$a = 0.04;
$b = 0.05;
$c = 0.08;
$aa = 0;
$bb = 0;
$cc = 0;
$aaa = 0;
$bbb = 0;
$ccc = 0;
}
require('liquida.php');
$sieto = intval($sieto);
$res[$con] = $sieto;
$nom[$con] = $checkbox6;
$con = $con + 1;
}
////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////
// Este liquida permiso de cuando no hay alcantarillado
////////////////////////////////////////////////////////////////////
$chk = isset($checkbox6a);
if ($chk == true) {
if ($radiobutton == "eval") {
$na = 1;
$nb = 1;
$nc = 1;
$a = 0.09;
$b = 0.18;
$c = 0.30;
$aa = 0;
$bb = 0;
$cc = 0;
$aaa = 0;
$bbb = 0;
$ccc = 0;
}else{
$na = 1;
$nb = 1;
$nc = 1;
$a = 0.04;
$b = 0.05;
$c = 0.08;
$aa = 0;
$bb = 0;
$cc = 0;
$aaa = 0;
$bbb = 0;
$ccc = 0;
}
require('liquida.php');
$sieto = intval($sieto);
$res[$con] = $sieto;
$nom[$con] = $checkbox6a;
$con = $con + 1;
}
////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////
// Este liquida permiso de emisión para fuentes fijas
////////////////////////////////////////////////////////////////////
$chk = isset($checkbox9);
if ($chk == true) {
if ($radiobutton == "eval") {
$na = 1;
$nb = 1;
$nc = 1;
$a = 0.15;
$b = 0.24;
$c = 0.38;
$aa = 0;
$bb = 0;
$cc = 0;
$aaa = 0;
$bbb = 0;
$ccc = 0;
}else{
$na = 1;
$nb = 1;
$nc = 1;
$a = 0.05;
$b = 0.06;
$c = 0.08;
$aa = 0;
$bb = 0;
$cc = 0;
$aaa = 0;
$bbb = 0;
$ccc = 0;
}
require('liquida.php');
$sieto = intval($sieto);
$res[$con] = $sieto;
$nom[$con] = $checkbox9;
$con = $con + 1;
}
////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////
// Este liquida aprobacion de CDRS para la eval de fuentes moviles
////////////////////////////////////////////////////////////////////
$chk = isset($checkbox10);
if ($chk == true) {
if ($radiobutton == "eval") {
$na = 1;
$nb = 1;
$nc = 1;
$a = 0.12;
$b = 0.18;
$c = 0.27;
$aa = 0;
$bb = 0;
$cc = 0;
$aaa = 0;
$bbb = 0;
$ccc = 0;
}else{
$na = 1;
$nb = 1;
$nc = 1;
$a = 0.02;
$b = 0.03;
$c = 0.04;
$aa = 0.07;
$bb = 0.07;
$cc = 0.07;
$aaa = 0;
$bbb = 0;
$ccc = 0;
}
require('liquida.php');
$sieto = intval($sieto);
$res[$con] = $sieto;
$nom[$con] = $checkbox10;
$con = $con + 1;
}
////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////
// Este liquida tal, transplante o poda de más de 20 árboles
////////////////////////////////////////////////////////////////////
$chk = isset($checkbox11);
if ($chk == true) {
if ($radiobutton == "eval") {
$na = 1;
$nb = 1;
$nc = 1;
$a = 0.08;
$b = 0.11;
$c = 0.14;
$aa = 0.02;
$bb = 0.08;
$cc = 0.15;
$aaa = 0;
$bbb = 0;
$ccc = 0;
}else{
$na = 1;
$nb = 1;
$nc = 1;
$a = 0.03;
$b = 0.06;
$c = 0.11;
$aa = 0.01;
$bb = 0.03;
$cc = 0.04;
$aaa = 0;
$bbb = 0;
$ccc = 0;
}
require('liquida.php');
$sieto = intval($sieto);
$res[$con] = $sieto;
$nom[$con] = $checkbox11;
$con = $con + 1;
}
////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////
// Este liquida aprovechamiento forestal
////////////////////////////////////////////////////////////////////
$chk = isset($checkbox12);
if ($chk == true) {
if ($radiobutton == "eval") {
$na = 1;
$nb = 1;
$nc = 1;
$a = 0.08;
$b = 0.11;
$c = 0.14;
$aa = 0.02;
$bb = 0.08;
$cc = 0.15;
$aaa = 0;
$bbb = 0;
$ccc = 0;
}else{
$na = 1;
$nb = 1;
$nc = 1;
$a = 0.03;
$b = 0.06;
$c = 0.11;
$aa = 0.01;
$bb = 0.03;
$cc = 0.04;
$aaa = 0;
$bbb = 0;
$ccc = 0;
}
require('liquida.php');
$sieto = intval($sieto);
$res[$con] = $sieto;
$nom[$con] = $checkbox12;
$con = $con + 1;
}
////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////
// Este liquida registro de libros de operacion de empresas forestales
////////////////////////////////////////////////////////////////////
$chk = isset($checkbox13);
if ($chk == true) {
if ($radiobutton == "eval") {
$na = 1;
$nb = 1;
$nc = 1;
$a = 0.05;
$b = 0.08;
$c = 0.12;
$aa = 0;
$bb = 0;
$cc = 0;
$aaa = 0;
$bbb = 0;
$ccc = 0;
}else{
$na = 1;
$nb = 1;
$nc = 1;
$a = 0.04;
$b = 0.05;
$c = 0.06;
$aa = 0;
$bb = 0;
$cc = 0;
$aaa = 0;
$bbb = 0;
$ccc = 0;
}
require('liquida.php');
$sieto = intval($sieto);
$res[$con] = $sieto;
$nom[$con] = $checkbox13;
$con = $con + 1;
}
////////////////////////////////////////////////////////////////////
// Este liquida permiso de comericalizacion de fauna silvestre
////////////////////////////////////////////////////////////////////
$chk = isset($checkbox13b);
if ($chk == true) {
if ($radiobutton == "eval") {
$na = 1;
$nb = 1;
$nc = 1;
$a = 0.05;
$b = 0.08;
$c = 0.12;
$aa = 0;
$bb = 0;
$cc = 0;
$aaa = 0;
$bbb = 0;
$ccc = 0;
}else{
$na = 1;
$nb = 1;
$nc = 1;
$a = 0.04;
$b = 0.05;
$c = 0.06;
$aa = 0;
$bb = 0;
$cc = 0;
$aaa = 0;
$bbb = 0;
$ccc = 0;
}
require('liquida.php');
$sieto = intval($sieto);
$res[$con] = $sieto;
$nom[$con] = $checkbox13b;
$con = $con + 1;
}
////////////////////////////////////////////////////////////////////
// Este liquida reg de plantaciones o cercas vivas
////////////////////////////////////////////////////////////////////
$chk = isset($checkbox13a);
if ($chk == true) {
if ($radiobutton == "eval") {
$na = 1;
$nb = 1;
$nc = 1;
$a = 0.03;
$b = 0.06;
$c = 0.10;
$aa = 0.02;
$bb = 0.04;
$cc = 0.06;
$aaa = 0;
$bbb = 0;
$ccc = 0;
}else{
$na = 1;
$nb = 1;
$nc = 1;
$a = 0.02;
$b = 0.04;
$c = 0.06;
$aa = 0.01;
$bb = 0.02;
$cc = 0.03;
$aaa = 0;
$bbb = 0;
$ccc = 0;
}
require('liquida.php');
$sieto = intval($sieto);
$res[$con] = $sieto;
$nom[$con] = $checkbox13a;
$con = $con + 1;
}
////////////////////////////////////////////////////////////////////
// Sumatoria y comparación final
////////////////////////////////////////////////////////////////////
if ($radiobutton1 == "un") {
$fa_det = "Nuevo";
$fa = 1;
}
if ($radiobutton1 == "re") {
$fa = 0.5;
$fa_det = "Renovacion";
}
if ($radiobutton1 == "tv") {
$fa = 0.6;
$fa_det = "Tran+Visita";
}
if ($radiobutton1 == "tvc") {
$fa = 0.2;
$fa_det = "Tran+Visita+Conce";
}
if ($radiobutton1 == "ce") {
$fa = 0.2;
$fa_det = "Cesion";
}
if ($radiobutton1 == "mo") {
$fa = 1;
$fa_det = "Modificacion";
}
$sx=0;
if ($con >= 1) {
foreach($res as $v) {
$sx = $sx + $v;
}
if ($radiobutton == "eval") {
$sx = $sx * $fa;
}
}
if ($sx != 0) {
if ($sx < $max) {
$fin = $sx;
$kiu = 0;
}
if ($max < $sx) {
$fin = $max;
$kiu = 1;
}}else{
$kiu = 0;
}
////////////////////////////////////////////////////////////////////
// Todos los sometidos a regimen especial
////////////////////////////////////////////////////////////////////
$smmlv = 535600; //Salario Mínimo Legal Vigente 2011
$smdlv = 17853;
////////////////////////////////////////////////////////////////////
$segsum = 0;
$chk = isset($checkbox15);
$chk = isset($checkbox15);
if ($chk == true) {
$tari = $smmlv * 0.048;
$tari = intval($tari);
$res[$con] = $tari;
$segsum = $segsum + $tari;
$nom[$con] = $checkbox15;
$con = $con + 1;
}
$chk = isset($checkbox16);
if ($chk == true) {
$tari = $smmlv * 0.097;
$tari = intval($tari);
$res[$con] = $tari;
$segsum = $segsum + $tari;
$nom[$con] = $checkbox16;
$con = $con + 1;
}
$chk = isset($checkbox17);
if ($chk == true) {
$tari = $smmlv * 0.194;
$tari = intval($tari);
$res[$con] = $tari;
$segsum = $segsum + $tari;
$nom[$con] = $checkbox17;
$con = $con + 1;
}
$chk = isset($checkbox18);
if ($chk == true) {
$tari = $smmlv * 0.388;
$tari = intval($tari);
$res[$con] = $tari;
$segsum = $segsum + $tari;
$nom[$con] = $checkbox18;
$con = $con + 1;
}
$chk = isset($checkbox19);
if ($chk == true) {
$tari = $smmlv * 0.776;
$tari = intval($tari);
$res[$con] = $tari;
$segsum = $segsum + $tari;
$nom[$con] = $checkbox19;
$con = $con + 1;
}
$chk = isset($checkbox20);
if ($chk == true) {
$tari = $smmlv * 1;
$tari = intval($tari);
$res[$con] = $tari;
$segsum = $segsum + $tari;
$nom[$con] = $checkbox20;
$con = $con + 1;
}
$chk = isset($checkbox21);
if ($chk == true) {
$tari = $smmlv * 0.032;
$tari = intval($tari);
$res[$con] = $tari;
$segsum = $segsum + $tari;
$nom[$con] = $checkbox21;
$con = $con + 1;
}
$chk = isset($checkbox22);
if ($chk == true) {
$tari = $smmlv * 0.28;
$tari = intval($tari);
$res[$con] = $tari;
$segsum = $segsum + $tari;
$nom[$con] = $checkbox22;
$con = $con + 1;
}
$chk = isset($checkbox22a);
if ($chk == true) {
$tari = $smmlv * 0.28;
$tari = intval($tari);
$res[$con] = $tari;
$segsum = $segsum + $tari;
$nom[$con] = $checkbox22a;
$con = $con + 1;
}
$chk = isset($checkbox22b);
if ($chk == true) {
$tari = $smmlv * 0.28;
$tari = intval($tari);
$res[$con] = $tari;
$segsum = $segsum + $tari;
$nom[$con] = $checkbox22b;
$con = $con + 1;
}
$chk = isset($checkbox23);
if ($chk == true) {
$tari = $smmlv * 3;
//$tari = $smmlv * 0.097;
$tari = intval($tari);
$res[$con] = $tari;
$segsum = $segsum + $tari;
$nom[$con] = $checkbox23;
$con = $con + 1;
}
$chk = isset($checkbox24);
if ($chk == true) {
//$tari = $smmlv * 0.064;
$tari = $smmlv * 0.0625;
$tari = intval($tari);
$res[$con] = $tari;
$segsum = $segsum + $tari;
$nom[$con] = $checkbox24;
$con = $con + 1;
}
$chk = isset($checkbox25);
if ($chk == true) {
$tari = $smmlv * 0.151;
//$tari = $smmlv * 0.032;
$tari = intval($tari);
$res[$con] = $tari;
$segsum = $segsum + $tari;
$nom[$con] = $checkbox25;
$con = $con + 1;
}
$chk = isset($checkbox31a);
if ($chk == true) {
//$tari = $smmlv * 0.064;
$tari = $smmlv * 0.0625;
$tari = intval($tari);
$res[$con] = $tari;
$segsum = $segsum + $tari;
$nom[$con] = $checkbox31a;
$con = $con + 1;
}
$chk = isset($checkbox26);
if ($chk == true) {
$tari = $smdlv * 1.46;
$tari = intval($tari);
$res[$con] = $tari;
$segsum = $segsum + $tari;
$nom[$con] = $checkbox26;
$con = $con + 1;
}
$chk = isset($checkbox27);
if ($chk == true) {
$tari = $smdlv * 0.1509;
$tari = intval($tari);
$res[$con] = $tari;
$segsum = $segsum + $tari;
$nom[$con] = $checkbox27;
$con = $con + 1;
}
$chk = isset($checkbox28);
if ($chk == true) {
$tari = $smmlv * 0.20;
$tari = intval($tari);
$res[$con] = $tari;
$segsum = $segsum + $tari;
$nom[$con] = $checkbox28;
$con = $con + 1;
}
////////////////////////////////////////////////////////////////////
// Sumatoria y comparación final
////////////////////////////////////////////////////////////////////
$fin = $fin + $segsum;
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Formulario de Autoliquidación de Servicios de Evaluación o Seguimiento Ambiental</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="estilos.css" rel="stylesheet" type="text/css">
</head>
<body topmargin="0">
<table width="900" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><img src="tope.jpg" width="900" height="120"></td>
</tr>
<tr>
<td> <form name="form1" method="post" action="reciboval.php">
<table width="100%" border="0" cellpadding="5">
<tr bgcolor="#BEE2F8">
<td bgcolor="#E9F3EB">
<div align="left"><font size="5" face="Verdana, Arial, Helvetica, sans-serif"><img src="pun.gif" width="16" height="16">
<strong>Liquidación</strong></font></div>
<div align="right">
<p align="left"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>Revise
este reporte para verificar su liquidación, a continuación
cree su recibo, usando el botón "Crear recibo y
generar registro".</strong></font></p>
</div></td>
</tr>
<tr bgcolor="#F8F8EF">
<td><p><strong><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Comparación:
<br>
</font></strong><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Valor
máximo inicalmente calculado<strong> = $
<?php
$efn = number_format($max);
echo $efn; ?>
<br>
</strong>Valor calculado por trámite<strong> = $
<?php
/*if (isset($checkbox8)){
echo number_format(($_POST['vpro']*0.09) / 100);
}
else{
*/
if ($con >= 1) {
$efn = number_format($sx);
echo $efn;
}else{
echo "No hay trámites para calcular, esto significa que no hay suficientes parámetros para generar un recibo válido";
//VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID,</strong> ";
}
//}
?>
</strong></font></p>
<table width="100%" border="1" cellpadding="10" cellspacing="0">
<?php
$noms = "";
$inio = 0;
if ($con >= 1) {
foreach($res as $v) {
?>
<tr>
<td width="80%"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><?php echo $nom[$inio]; ?></font></td>
<td width="20%"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">$
<?php
if ($kiu == 1) {
$printo = "--N/A--";
}else{
$printo = $v;
$printo = number_format($printo);
}
echo $printo; ?>
</font> </td>
</tr>
<?php
$noms = $noms . "/" . $nom[$inio];
$inio++;
}}
?>
<tr>
<td width="80%"> <div align="right"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Total:</font></div></td>
<td width="20%" bgcolor="#FECDE9"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>$
<?php
$efn = number_format($fin);
echo $efn; ?>
</strong></font></td>
</tr>
</table>
<p align="center"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong><font color="#FF3300">Nota:</font></strong>
Crear el recibo y generar registro, crea un registro de control
en la entidad, el cual se utiliza para hacer un seguimiento a
los servicios de liquidación y pago, haga clic en el siguiente
botón, sólo si usted va efectivamente iniciar un
trámite ante la entidad.</font></p>
<p align="center"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
<input name="name" type="hidden" value="<?php echo $name; ?>">
<input name="ubi" type="hidden" value="<?php echo $ubi; ?>">
<input name="pro" type="hidden" value="<?php echo $pro; ?>">
<input name="ubiuno" type="hidden" value="<?php echo $ubiuno; ?>">
<input name="tel" type="hidden" value="<?php echo $tel; ?>">
<input name="fax" type="hidden" value="<?php echo $fax; ?>">
<input name="typedoc" type="hidden" value="<?php echo $typedoc; ?>">
<input name="num" type="hidden" value="<?php echo $num; ?>">
<input name="mail" type="hidden" value="<?php echo $mail; ?>">
<input name="fin" type="hidden" value="<?php echo $fin; ?>">
<input name="con" type="hidden" value="<?php echo $con; ?>">
<input name="noms" type="hidden" value="<?php echo $noms; ?>">
<input name="vpro" type="hidden" value="<?php echo $vpro; ?>">
<input name="tt" type="hidden" value="<?php echo $radiobutton1; ?>">
<input name="factor" type="hidden" value="<?php echo $fa; ?>">
<input name="factor_detalle" type="hidden" value="<?php echo $fa_det; ?>">
<input name="tipo_usu" type="hidden" value="<?php echo $tipo_usu; ?>">
<input name="ss" type="hidden" value="<?php echo $radiobutton; ?>">
<br>
<br>
<input type="submit" name="Submit" value="Crear recibo y generar registro" class="boton">
</font></p></td>
</tr>
</table>
</form>
<p align="center"> <font size="1" face="Verdana, Arial, Helvetica, sans-serif">
Secretaría Distrital de Ambiente<br>
Bogotá, Colombia.<br>
<br>
<br>
</font></p></td>
</tr>
</table>
</body>
</html>
|