<strong> <label type="text" id="total" name="total" size="8"><?php echo $total; ?> </label> </strong> </td> </tr> <br> <tr> <td rowspan="3" style="text-align: left"> <strong> Son: <?php require_once '../nueva_venta/factura/conversor.php'; echo @convertir($total); ?> </strong> </td> </tr> </tfoot> </table> </div> <div style="border: 1px solid black; width: 40%; height: 12%; margin-top: 2%; " > <br> <strong><br> _______________________<br> ENTREGADO POR:</strong> </div> </div> <form action="ficheroExcel.php" method="post" id="FormularioExportacion">
* intègre dans SPIP. */ $options = getopt('vf:hl'); if (isset($options['h'])) { affichage_aide(); exit(0); } if (!isset($options['f']) && !isset($options['l'])) { affichage_aide(); exit(1); } binlog_creation(); if ($options['f']) { try { pre_verifications(); $articles = convertir($options['f']); spip_importer_articles($articles); } catch (Exception $e) { print "[ERREUR] " . $e->getMessage() . "\n"; } } if (isset($options['l'])) { binlog_afficher(); } /* ------------ Fin de la boucle principale ------------ */ function pre_verifications() { global $tables_conversion; $erreurs = 0; journaliser("Pré-vérifications"); foreach ($tables_conversion['campagnes'] as $campagne) {
</form> <?php function convertir($numero) { $numero2 = number_format($numero, 3, ''); return $numero2; } if (isset($_POST['enviar'])) { $millas = $_POST['numero']; $km = $millas / 0.6214; $metros = $km * 1000; $cm = $metros * 100; $mm = $cm * 10; $yarda = $millas / 1760; $pulgada = $yarda * 36; $pie = $yarda * 3; $km2 = convertir($km); $metros2 = convertir($metros); $cm2 = convertir($cm); $mm2 = convertir($mm); $yarda2 = convertir($yarda); $pulgada2 = convertir($pulgada); $pie2 = convertir($pie); echo "se tiene en millas {$millas} millas: <br>\n <br>"; echo "Kilometros " . $km2 . "<br>Metros " . $metros2 . "<br>Centimetros " . $cm2 . "<br>Milimetros " . $mm2 . "<br>Yardas " . $yarda2 . "<br>Pulgadas " . $pulgada2 . "<br>Pies " . $pie2; } ?> </body> </html>
$dodv->setShowErrorMessage(true); $dodv->setErrorTitle($idioma['ErrorNotaTitulo']); $dodv->setError($notaminmax); $dodv->setPromptTitle($idioma['Nota']); $dodv->setPrompt($notaminmax); $dodv->setFormula1($notamin); $dodv->setFormula2($notamax); //Desprotejer if (!$restringir) { if (!$protegidodimension) { $doc->getActiveSheet()->getStyle($col . $x)->getProtection()->setLocked('unprotected'); } } } $colorfondo = $i % 2 == 0 ? 'FFE699' : 'FFFFFF'; $resultadoformula = "=ROUND(" . convertir($formula, "E", $x) . ",0)"; //NotaResultado $col = adicionar($col, 1); $nry = $col; $doc->getActiveSheet()->setCellValue($col . $x, $resultadoformula)->getStyle($col . $x)->applyFromArray(estilo(11, "000000", "B", $colorfondo, "center", "center", 'thin', '000000')); //Dps if ($dps) { $nrxy = $col . $x; $formuladps = "=IF({$nrxy}<={$n1dps},5,IF({$nrxy}<={$n2dps},6,IF({$nrxy}<={$n3dps},7,IF({$nrxy}<={$n4dps},8,IF({$nrxy}<={$n5dps},9,IF({$nrxy}<={$n6dps},10,0))))))"; } else { $formuladps = "0"; } $col = adicionar($col, 1); $ndps = $col; $doc->getActiveSheet()->setCellValue($col . $x, $formuladps)->getStyle($col . $x)->applyFromArray(estilo(11, "000000", "B", $colorfondo, "right", "center", 'thin', '000000')); //Nota Final
$rconsu = mysql_query($consulta) or die("No se puede ejecutar consulta"); while ($fila = mysql_fetch_array($rconsu)) { $monto_pago = $fila['monto_pago']; !@($total = $total + $monto_pago); } $consulta_matricula = "SELECT * FROM formulario_cat WHERE matricula='{$matricula}'"; $compara_matricula = mysql_query($consulta_matricula) or die("no se pudo"); $cons = mysql_num_rows($compara_matricula); $filaformul = mysql_fetch_array($compara_matricula); $monto = $filaformul['montotot']; $sinodal = 400; $falta = $monto + $sinodal - $total; $numero = $importe; require "conversor.php"; if ($numero) { $resultado = convertir($numero); } if ($importe < $falta || $importe == $falta) { $consulta = "INSERT INTO pagos(matricula,fecha,tipo_pago,monto_pago,concepto)\n VALUES\n ('{$matricula}','{$fecha}','{$tipo_pago}','{$importe}','{$concepto}')"; $con = mysql_query($consulta) or die("No se pudo realizar la consulta" . mysql_error()); if ($con) { ?> <h4 align="center" style="color:#339900">SE GUARDO CORRECTAMENTE EL PAGO<br>PROCEDA A IMPRIMIR EL RECIBO</h4> <?php } ?> </p> <fieldset> <table width="359" height="194" border="0" align="center">
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Procesa Monto</title> </head> <body> <?php function convertir($cotizacion, $monto_calcular) { return round($monto_calcular / $cotizacion, 2); } $dolar = 14.35; $euro = 16.22; $real = 4.06; $monto = $_POST['monto']; echo "El monto en u\$s es: ", convertir($dolar, $monto), "<br>\n"; echo "El monto en € es: ", convertir($euro, $monto), "<br>\n"; echo "El monto en R\$ es: ", convertir($real, $monto), "<br>\n"; ?> </body> </html>
return $num_letradmm; } function millon($nummiero) { if ($nummiero >= 1000000 && $nummiero < 2000000) { $num_letramm = "UN MILLON " . cienmiles($nummiero % 1000000); } if ($nummiero >= 2000000 && $nummiero < 10000000) { $num_letramm = unidad(Floor($nummiero / 1000000)) . " MILLONES " . cienmiles($nummiero % 1000000); } if ($nummiero < 1000000) { $num_letramm = cienmiles($nummiero); } return $num_letramm; } echo convertir($rs["total"]); ?> </td> </tr> </table></td> </tr> <tr> <td><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="81%"> </td> <td width="19%"><?php echo $rs["neto"]; ?> </td> </tr> </table></td>