Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php $_F=__FILE__;$_C60465765='Pz48P2hpaA0KTFBvN1RuaigiLi4vLi4vN0xEOWo5THMvalBHTFBqLmhpaC..
Decoded Output download
?><?php
include("../../libreria/engine.php");
if(isset($_GET['borrarSuplidor'])){
$sups = $_GET['borrarSuplidor'];
$sups = explode(',',$sups);
foreach($sups as $sup){
$sql = "delete from am_cotizasup where csup = '{$sup}'";
mysql_query($sql);
$sql = "delete from am_cotizamresp where csup = '{$sup}'";
mysql_query($sql);
$sql = "delete from am_dcotizaresp where csup = '{$sup}'";
mysql_query($sql);
echo mensajeDeAlerta("Se elimino el suplidor");
}
echo "
<script>
\$('#divSolCotizacion').tabs('load',1);
</script>
";
exit();
}
if(isset($_GET['cod']) && strlen($_GET['cod']) > 5)
{
$cod = $_GET['cod'];
$sql = "SELECT s.cod as ckb, s.cod, s.cod as codsup, d.ccotiza as ccotiza, s.nombre, d.envio, concat(s.tel1, ' / ', tel2) as tel,
(select sum(cant *(precio-descuento+itbis)) from am_dcotizaresp where ccotiza = '{$cod}' and csup = s.cod group by ccotiza) as oferta,
ifnull((select count(*) from am_cotizamresp where ccotiza = '{$cod}' and csup = s.cod group by ccotiza),0) as resp,
ifnull((select count(*) from am_cotizamresp where ccotiza = '{$cod}' and csup = s.cod group by ccotiza),0) as bandera
FROM am_cotizasup d , am_sup s
WHERE s.cod = d.csup AND d.ccotiza = '{$cod}'
";
$dtSup = new dataTable($sql);
if ($dtSup->numRows > 0)
{
foreach($dtSup->data["ckb"] as &$celda1)
{
$celda1 = "<label style='white-space:nowrap; '><input name='chkboxSupCotiza[]' type='checkbox' value='$celda1'></label>";
}
foreach($dtSup->data["oferta"] as $pos=>&$valor)
{
$dtSup->data["oferta"][$pos] = "<div align='right'>".number_format($dtSup->data["oferta"][$pos],2)."</div>";
switch ($dtSup->data["bandera"][$pos])
{
case 0: $dtSup->data["bandera"][$pos] = "<div align='center'><img title='PENDIENTE' src='images/pendiente_icon.png' /></div>";
break;
case 1: $dtSup->data["bandera"][$pos] = "<div align='center'><img title='COTIZADO' src='images/money.jpg' /></div>";
break;
}
}
}
$gridSup = new dataGrid($dtSup);
$gridSup->setRowAction("ondblclick", "oferta",array("ccotiza", "codsup", "resp"));
$gridSup->cambiarLabel("ckb" ,"<input type='checkbox' name='chkboxSupCotiza[]' onclick='seleccionarChecks(this);' />");
$gridSup->noVisibles = array("codsup", "ccotiza", "resp");
$gridSup->cambiarLabel("cod" , "# Suplidor");
$gridSup->cambiarLabel("bandera" , "");
$gridSup->cambiarLabel("nombre" , "Nombre del Suplidor");
$gridSup->cambiarLabel("tel" , "Telefonos de Contacto");
}
?>
<style>
#divBotonesSolSuplidor button
{
margin-left:50px;
}
</style>
<div id="divResultadoSolSuplidores"></div>
<table>
<tr>
<td>Se Muestran <?php echo $dtSup->numRows; ?> Suplidores
</td>
<td>
<table>
<tr>
<td>
<div id="divBotonesSolSuplidor">
<button type="button" class = "btnCancel" title = "Eliminar Suplidor" onclick="EliminarSuplid();" ></button>
<button type="button" class = "btnPrintdoc" title = "Imprimir Solicitudes(s)" onclick="ImprimirSolCoti('<?php echo $cod; ?>');" ></button>
<button type="button" title = "Enviar Solicitudes" class="btnMail" onClick="MailSolicitud() ;" ></button>
<button type="button" title = "Generar Ofertas de los Suplidores" class="btnGenera" onClick="generarOferta('<?php echo $cod; ?>') ;" ></button>
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
<div style="overflow:auto; height:200px;">
<?php
$gridSup->display();
?>
</div>
<script language="javascript">
function oferta (ccotiza, codsup, resp)
{
if (resp == 0)
{
alert("Este Suplidor aun no ha dado respuesta a la Solicitud de Cotizacion.");
return 0;
}
else
{
abrirOpcion("registroOfertaCotiza","CYT-MUNICIPIA: Administración Local / Registro de Ofertas", "modulos/compraley/ofertacotiza.php?ccotiza="+ccotiza+"&codsup="+codsup,true,750, 650);
}
}
function OfertaSalir()
{
actualizarPestana();
$("#registroOfertaCotiza").dialog('close');
}
function generarOferta(cotiza)
{
sel = checkSeleccionados('chkboxSupCotiza[]');
if (sel == "")
{
alert("Debe seleccionar al menos un Suplidor.");
return 0;
}
if (confirm("Desea Generar las Ofertas para esta Solicitud de los Suplidores Seleccionados?"))
{
cargarEn("divResultadoSolSuplidores","modulos/compraley/generarOfertaSup.php?cods="+sel+"&cotiza="+cotiza);
}
}
function EliminarSuplid(){
sel = checkSeleccionados('chkboxSupCotiza[]');
if (sel == "")
{
alert("Debe seleccionar al menos un Suplidor.");
return 0;
}
if(confirm("Seguro que desea remover los suplidores seleccionados")){
cargarEn("divResultadoSolSuplidores","modulos/compraley/SolSuplidores.php?borrarSuplidor="+sel);
}
}
</script>
Did this file decode correctly?
Original Code
<?php $_F=__FILE__;$_C60465765='Pz48P2hpaA0KTFBvN1RuaigiLi4vLi4vN0xEOWo5THMvalBHTFBqLmhpaCIpOw0KDQoNCkxOKEw1NWo4KCRfdFc0WydEUjk5czlYVGg3TG5SOSddKSl7DQoJDQoJJDVUaDUgPSAgJF90VzRbJ0RSOTlzOVhUaDdMblI5J107DQoJJDVUaDUgPSBqSWg3Um5qKCcsJywkNVRoNSk7DQoJTlI5anNvaSgkNVRoNSBzNSAkNVRoKXsNCgkJJDViNyA9ICJuajdqOGogTjlSeCBzeF9vUjhMMXM1VGgga2lqOWogbzVUaCA9ICd7JDVUaH0nIjsNCgkJeDA1YjdfYlRqOTAoJDViNyk7DQoJCSQ1YjcgPSAibmo3ajhqIE45Unggc3hfb1I4TDFzeDlqNWgga2lqOWogbzVUaCA9ICd7JDVUaH0nIjsNCgkJeDA1YjdfYlRqOTAoJDViNyk7DQoJCSQ1YjcgPSAibmo3ajhqIE45Unggc3hfbm9SOEwxczlqNWgga2lqOWogbzVUaCA9ICd7JDVUaH0nIjsNCgkJeDA1YjdfYlRqOTAoJDViNyk7DQoJCWpvaVIgeGpQNXNRakhqQTdqOThzKCJYaiBqN0x4TFBSIGo3IDVUaDdMblI5Iik7DQo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| 2 |
Stats
MD5 | 6c89f7d9a80b5625d06536f51980d578 |
Eval Count | 2 |
Decode Time | 76 ms |