sábado, 27 de julio de 2013

programacion en php

<?php
$nombre=$_GET["nombre"];
$mes=$_GET["año"];
$ano=$_GET["mes"];
$sueldo=$_GET["sueldo"];
$iess=$_GET["horas"];
$horas=$_GET["iess"];

$subtotal=$sueldo-$iess;
$totalhoras=$horas*4;
$total=$subtotal+$totalhoras;

echo "<br>";
echo "<br>";
echo "<br>";
echo "<font size=15><center><b> ROL DE PAGO: </b></center></font>";
echo "<br>";
echo "<br>";
echo "<br>";
echo "<table border=5 width=100%>";
echo "<tr><td width=20%>";
echo "<center><b> NOMBRE </b> </center>";
echo "</td><td width=10%>";
echo "<center><b>A&NtildeO</b></center>";
echo "</td><td width=10%>";
echo "<center><b>MES</b></center>";
echo "</td><td width=10%>";
echo "<center><b>SUELDO</b></center>";
echo "</td><td width=10%>";
echo "<center><b>H. EXTRAS</b></center>";
echo "</td><td width=10%>";
echo "<center><b>DES. IESS</b> <br> USD 4.00 C/H</b></center>";
echo "</td><td width=10%>";
echo "<center><H2><b>TOTAL</b><H2></center>";
echo "</td></tr>";
echo "<tr height=80><td style=text-align:left <>";
echo $nombre;
echo "</td><td style=text-align:center>";
echo $mes;
echo "</td><td style=text-align:center>";
echo $ano;
echo "</td><td style=text-align:center>";
echo $sueldo;
echo "</td><td style=text-align:center>";
echo $iess;
echo "</td><td style=text-align:center>";
echo $totalhoras;
echo "</td><td style=text-align:center>";
echo $total;
echo "</td></tr>
</table>";
?>

No hay comentarios:

Publicar un comentario