Está en la página 1de 10

<!

DOCTYPE html>

<html lang="es-ES">

<head>

<meta charset="UTF-8" />

<title>Faustino</title>

</head>

<body>

<style>

background-color:#33FFE6;

fieldset

width: 30%;

height: 85%;

background-color:yellow;

h2{
text color:red;

</style>

<center>

<fieldset>

<H2>SUELDO DE LOS EMPLEADOS</H2>

<form action="index.php" method="POST">

<table>

<tr>

<td>NOMBRE DE EMPLEADO: </td>

<td><input type="text" name="nombre"> <td>

</tr>

<tr>

<td>SUELDO DE EMPLEADO: </td>

<td><input type="text" name="sueldo"></td>

</tr>

<tr>

<td> <td> <input type="submit" value="nuevo" name="btnnuevo"> </td></td>

</tr>

</table>

<td> <td> <input type="submit" value="Calcular" name="btncalcular"> </td></td>

</tr>

</table>

<?php

$sueldo=0;$neto=0;

if(isset($_POST['btncalcular']))

$sueldo=(float)$_POST['sueldo'];

if($sueldo<=1400) {

$neto=$sueldo+($sueldo*0.025);
}

elseif($sueldo>1400 and $sueldo<2000){

$neto=$sueldo+($sueldo*0.017);;

elseif($sueldo>=2000){

$neto="procesar el aumento";

echo "el sueldo es".$neto;

?>

</center>

</form>

</body>

</html>
<!DOCTYPE html>

<html lang="es-ES">

<head>

<meta charset="UTF-8" />

<title>Faustino</title>

</head>

<body>

<style>

body

background-color:#33FFE6;

fieldset

width: 30%;

height: 85%;

background-color:yellow;

h2{

text color:red;

</style>

<center>
<fieldset >

<H2 ;>Pago de Examen de Admision </H2>

<form action="index.php" method="POST" ;>

<table>

<label for="colegio ">COLEGIO:</label>

<select name="operaciones"id="opr">

<option value="particular">PARTICULAR</option>

<option value="nacional">NACIONAL</option>

</select>

</table>

<table>

<label for="nivel social ">NIVEL SOCIAL</label>

<select name="operaciones"id="opr">

<option value="A">A</option>

<option value="B">B</option>

<option value="C">C</option>

</select>

</table>

</table>

<table>

<input type="submit"value=" CALCULAR " name="btncalcular">

<input type="submit"value=" NUEVO" name="btnnuevo">

<tr>

<?php

$A="";$B="";$c="";

$particular="";

if (isset($_POST['btncalcular']))

if(($particular==$A))

$resultado="400";
}

else if (($particular==$B))

$resultado="200";

else if (($particular==$C))

$resultado="300";

?>

<td>IMPORTE A PAGAR </td>

<td><input type="text" value="<?= $resultado?>" disabled >

</tr>

</table>

</fieldset>

</center>

</form>

</body>

</html>
<!DOCTYPE html>

<html lang="es-ES">

<head>

<meta charset="UTF-8" />

<title>Faustino</title>

</head>

<body>

<style>

body

background-color:#33FFE6;

fieldset

width: 30%;

height: 85%;

background-color:yellow;

h2{
text color:red;

</style>

<center>

<fieldset >

<H2 style=" color:red";>DETERMINAR EL MONTO QUE RECIBIRA UN TRABAJADOR POR


UTILIDAD</H2>

<form action="index.php" method="POST" style="color:#3368FF";>

<table>

<label for="Tipo de Servicio">Tipo de Servicio</label>

<select name="operaciones"id="opr">

<option value="dos">Entre 0 A 2 Años </option>

<option value="cuatro">Entre 3 A 4 Años </option>

<option value="ocho">Entre 6 A 8 Años </option>

<option value="mas">Mayores a 8 Años </option>

</select>

</table>

<table>

<label for="Cargo ">Cargo</label>

<select name="operaciones"id="opr">

<option value="docentes">Docentes</option>

<option value="administradores">Administradores</option>

<option value="empleados">Empleados</option>

</select>

</table>

</table>

<table>

<input type="submit"value=" Calcular " name="btncalcular">

<input type="submit"value=" Nuevo" name="btnnuevo">

<tr>
<?php

$Cargo="";$tiempo_servicio="";$resultado="";

$particular="";

if (isset($_POST['btncalcular']))

$tiempo_servicio=(string)$_POST['sueldo'];

?>

<td>El Cargo es: </td>

<td><input type="text" value="" disabled >

</tr>

<tr>

<tr>

<td>Tiempo de servicio es: </td>

<td><input type="text" value="" disabled >

</tr>

<td>El sueldo es </td>

<td><input type="text" value="" disabled >

</tr>

</table>

</fieldset>

</center>

</form>
</body>

</html>

También podría gustarte