Viewing file: recibo.php (24.06 KB) -rw-rw-rw- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
$con=0;
$fin="VOID";
////////////////////////////////////////////////////////////////////
// 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) {
//// Sector Explotación Minera
if ($lictipo1 == 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 ($lictipo1 == 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 ($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;
}}
//// Sector Ind. Quimica
if ($lictipo1 == 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 ($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 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;
}
////////////////////////////////////////////////////////////////////
// Sumatoria y comparación final
////////////////////////////////////////////////////////////////////
if ($radiobutton1 == "un") {
$fa = 1;
}
if ($radiobutton1 == "re") {
$fa = 0.5;
}
if ($radiobutton1 == "tv") {
$fa = 0.6;
}
if ($radiobutton1 == "tvc") {
$fa = 0.2;
}
if ($radiobutton1 == "mo") {
$fa = 1;
}
$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 = 515000; //Salario Mínimo Legal Vigente 2009
$smdlv = 17166;
////////////////////////////////////////////////////////////////////
$segsum = 0;
$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.02;
$tari = intval($tari);
$res[$con] = $tari;
$segsum = $segsum + $tari;
$nom[$con] = $checkbox16;
$con = $con + 1;
}
$chk = isset($checkbox17);
if ($chk == true) {
$tari = $smmlv * 0.03;
$tari = intval($tari);
$res[$con] = $tari;
$segsum = $segsum + $tari;
$nom[$con] = $checkbox17;
$con = $con + 1;
}
$chk = isset($checkbox18);
if ($chk == true) {
$tari = $smmlv * 0.097;
$tari = intval($tari);
$res[$con] = $tari;
$segsum = $segsum + $tari;
$nom[$con] = $checkbox18;
$con = $con + 1;
}
$chk = isset($checkbox19);
if ($chk == true) {
$tari = $smmlv * 0.04;
$tari = intval($tari);
$res[$con] = $tari;
$segsum = $segsum + $tari;
$nom[$con] = $checkbox19;
$con = $con + 1;
}
$chk = isset($checkbox20);
if ($chk == true) {
$tari = $smmlv * 0.06;
$tari = intval($tari);
$res[$con] = $tari;
$segsum = $segsum + $tari;
$nom[$con] = $checkbox20;
$con = $con + 1;
}
$chk = isset($checkbox21);
if ($chk == true) {
$tari = $smmlv * 0.07;
$tari = intval($tari);
$res[$con] = $tari;
$segsum = $segsum + $tari;
$nom[$con] = $checkbox21;
$con = $con + 1;
}
$chk = isset($checkbox22);
if ($chk == true) {
$tari = $smmlv * 0.08;
$tari = intval($tari);
$res[$con] = $tari;
$segsum = $segsum + $tari;
$nom[$con] = $checkbox22;
$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($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($checkbox25);
if ($chk == true) {
//$tari = $smmlv * 0.016;
$tari = $smmlv * 0.151;
//$tari = $smmlv * 0.032; 2008
$tari = intval($tari);
$res[$con] = $tari;
$segsum = $segsum + $tari;
$nom[$con] = $checkbox25;
$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">
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-1458662-7";
urchinTracker();
</script>
</head>
<body topmargin="0">
<table width="100%" border="0">
<tr>
<td><font color="#FFFFFF">aaaaaaaaa</font></td>
<td> <form name="form1" method="post" action="requireauto3.php">
<table width="100%" border="0" cellpadding="5">
<tr>
<td width="38%"> <div align="left"><img src="banner.gif" width="319" height="150"></div></td>
<td width="62%" valign="top"> <p><img src="banner1.gif" width="522" height="56"></p>
<table width="100%" border="0" cellpadding="5">
<tr>
<td><div align="right"><img src="bot1.gif" width="106" height="28"><img src="bot2.gif" width="129" height="28"><img src="bot3.gif" width="133" height="28"></div></td>
</tr>
</table></td>
</tr>
<tr bgcolor="#BEE2F8">
<td bgcolor="#F8E092"> <div align="left"><font size="5" face="Verdana, Arial, Helvetica, sans-serif"><img src="pun.gif" width="16" height="16">
Liquidación</font></div></td>
<td bgcolor="#F8E092"> <div align="right">
<p align="left"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong><font size="1">Revise
este reporte para verificar su liquidación, a continuación
cree su recibo, usando el botón "Crear recibo y
generar registro".</font></strong></font></p>
</div></td>
</tr>
<tr bgcolor="#F8F8EF">
<td colspan="2"><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 ($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">
<?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="ss" type="hidden" value="<?php echo $radiobutton; ?>">
<input type="submit" name="Submit" value="Crear recibo y generar registro.">
</font></p></td>
</tr>
</table>
</form>
<p align="center"><img src="lin.gif" width="640" height="25"><br>
<font size="1" face="Verdana, Arial, Helvetica, sans-serif">Desarrollado
por la Secretaría Distrital de Ambiente, Todos los Derechos Reservados,
2003 - 2007<br>
Bogotá, Colombia.</font></p>
<p> </p></td>
<td><font color="#FFFFFF">aaaaaaaaa</font></td>
</tr>
</table>
</body>
</html>
|