Está en la página 1de 10

<html> <head> <title>BANCOUMB</title> <style type='text/css'> html,body{ padding:0; border:0; margin:0; background-image:url(./imagen/index.

gif); background-repeat:repeat-x; } h3{ background-color:#3b5998; color:#fff; font-family:arial ,helvetica, serif; } p{ color:#203360; font-family:arial black; font-size:12pt; } </style> <link type='text/css' rel='stylesheet' href='estilo2.css'> <link type='text/css' rel='stylesheet' href='estilo3.css'> <link type='text/css' rel='stylesheet' href='estilo4.css'> <link type='text/css' rel='stylesheet' href='estilo5.css'> </head> <body> <h3 style='padding:3;'><a href='./'><img src='./imagen/facebook.gif' title='Banc o Facebook UMB'></a> BANCOUMB</h3> <p style='border:5px; margin:15px;'>Realiza las operaciones que desees en nuestr o banco... </p> <BR> <center> <form action='consulta.php' method='POST'> <table> <tr> <td> <input type='submit' value='Consulta saldo' id='bt1' class='bt1' name='consulta' title='Consulte aqu&iacute; su sa ldo'> </td> </table> </form> <form action='deposito.php'> <table> <tr> <td> <input type='submit' value='Dep&oacute;sito' id='bt2' class='bt2' name='deposito' title='Haga un dep&oacute;sito'> </td> </tr> </table> </form>

<form action='retiro.php'> <table> <tr> <td> <input type='submit' value='Retiro' id='bt3' class='bt3' name='retiro' title='Retire su efectivo'> </td> </tr> </table> </form> <form action='estado_cuenta.php'> <table> <tr> <td> <input type='submit' value='Estado de Cuenta' id='bt4' class='b t4' name='edo_cuenta' title='Vea su Estado de Cuenta'> </td> </tr> </table> </form> </center> </body> <br> <br> <br> <br> <center> <i> <a style='color:#203360;'>Copyright 2012&reg; <b>EOR</b></a>&nbsp;-&nbsp; <a style='color:#203360;'>Universidad Mexiquense del Bicentenario</a>&nbsp;-&nbs p; <a style='color:#203360;'>Unidad de Estudios Superiores Temascalcingo</a></cente r></i> </html> This index.php <html> <head> <title>Consulta saldo</title> <style type='text/css'> input.consultarSaldo{ border:1px solid #000; margin:4; padding:4; background-color:#67a54b; color:#fff; font-family:arial black; } body,html{ padding:0; margin:0; border:0; background-image:url(./imagen/index.gif);

background-repeat:repeat-x; } h3{ background-color:#3b5998; color:#fff; font-family:arial black; } </style> </head> <body> <center> <h3>Consultar saldo</h3> <form action='consulta_saldo.php' method='POST'> <label style='color:#067;'>Ingrese Aqu&iacute; su N&uacute;mero de Cuenta: </l abel> <br> <input type='text' size='50' name='cuenta'> <br> <input type='submit' value='Consultar saldo' class='consultarSaldo' title='hag a click para ver su saldo'> </form> </center> </body> </html> this consulta.php <?php $conexion=mysql_connect("localhost","root","21474n"); mysql_select_db("operacion_bancaria",$conexion); $consultaCliente="select descripcion_total from cliente where no_cuenta = $cuent a"; $result=mysql_query($consultaCliente,$conexion) or die(mysql_error()); $registro=mysql_fetch_assoc($result); ?> <html> <head> <title>Saldos</title> <style type='text/css'> body,html{ padding:0; margin:0; border:0; background-image:url(./imagen/index.gif); background-repeat:repeat-x; } h1{ background-color:#3b5998; color:#fff; font-family:arial black; } a.regresar1, regresar2{ text-decoration:none; font-family:Arial black; size:14 pt; color:#654567;

} </style> <link type='text/css' rel='stylesheet' href='estilo2.css'> </head> <body> <center> <h1 style='padding:15;'></h1> <?php echo ("<table style='border:1px solid; margin:4; padding:4; background-color:#348134; color:#fff; font-family:arial black;'> <a style='color:#067;'>Su saldo total es:</a> <tr> <td> $registro[descripcion_total] </tr> </td> </table>" ); ?> </center> <br> <br> <center> <a href='./consulta.php' class='regresar1'>Regresa a la p&aacute;gina anterior</ a> <br> <a href='./' class='regresar2'>Vuelva para hacer otra transacci&oacute;n</a> </center> </body> </html> this conculta_saldo.php <html> <head> <title>Depositar saldo</title> <style type='text/css'> input.consultarSaldo{ border:1px solid #000; margin:4; padding:4; background-color:#67a54b; color:#fff; font-family:arial black; } body,html{ padding:0; margin:0; border:0; background-image:url(./imagen/index.gif); background-repeat:repeat-x; } h3{ background-color:#3b5998; color:#fff; font-family:arial black; } </style>

</head> <body> <center> <h3>Depositar saldo</h3> <form action='depositar_saldo.php' method='POST'> <label style='color:#067;'>Ingrese Aqu&iacute; el N&uacute;mero de Cuenta a de positar: </label> <br> <input type='text' size='50' name='cuenta'> <br> <label style='color:#067;'>Ingrese la cantidad que desea depositar:</label> <br> <input type='text' size='50' name='cuenta2'> <br> <input type='submit' value='Depositar saldo' class='consultarSaldo' title='hag a click para depositar saldo a esta cuenta'> </form> </center> </body> </html> this deposito.php <?php $conexion=mysql_connect("localhost","root","21474n"); mysql_select_db("operacion_bancaria",$conexion); $consultaCliente="update cliente set descripcion_total = descripcion_total + $cu enta2 where no_cuenta= $cuenta"; $result=mysql_query($consultaCliente,$conexion) or die(mysql_error()); ?> <html> <head> <title>Saldo depositado</title> <style type='text/css'> body,html{ padding:0; margin:0; border:0; background-image:url(./imagen/index.gif); background-repeat:repeat-x; } h1{ background-color:#3b5998; color:#fff; font-family:arial black; } a.regresar1, regresar2{ text-decoration:none; font-family:Arial black; size:14 pt; color:#654567; } </style> <link type='text/css' rel='stylesheet' href='estilo2.css'>

</head> <body> <center> <h1 style='padding:15;'></h1> <?php echo ("<table style='border:1px solid; margin:4; padding:4; background-color:#348134; color:#fff; font-family:arial black;'> <a style='color:#067;'>Usted ha depositado:</a> <tr> <td> $cuenta2 </tr> </td> </table>" ); echo ("<table style='border:1px solid; margin:4; padding:4; background-color:#348134; color:#fff; font-family:arial black;'> <a style='color:#067;'>a la cuenta:</a> <tr> <td> $cuenta </tr> </td> </table>" ); ?> </center> <br> <br> </body> <center> <a href='./consulta.php' class='regresar1'>Regresa a la p&aacute;gina anterior</ a> <br> <a href='./' class='regresar2'>Regresa a la p&aacute;gina principal</a> </center> </html> this depositar_saldo.php <html> <head> <title>Retirar saldo</title> <style type='text/css'> input.consultarSaldo{ border:1px solid #000; margin:4; padding:4; background-color:#67a54b; color:#fff; font-family:arial black; } body,html{ padding:0; margin:0; border:0; background-image:url(./imagen/index.gif);

background-repeat:repeat-x; } h3{ background-color:#3b5998; color:#fff; font-family:arial black; } </style> </head> <body> <center> <h3>Retirar saldo</h3> <form action='retirar_saldo.php' method='POST'> <label style='color:#067;'>Ingrese Aqu&iacute; su N&uacute;mero de Cuenta: </l abel> <br> <input type='text' size='50' name='cuenta'> <br> <label style='color:#067;'>Ingrese la cantidad que desea retirar:</label> <br> <input type='text' size='50' name='cuenta2'> <br> <input type='submit' value='Retirar saldo' class='consultarSaldo' title='haga click para retirar saldo de esta cuenta'> </form> </center> </body> </html> this retiro.php <?php $conexion=mysql_connect("localhost","root","21474n"); mysql_select_db("operacion_bancaria",$conexion); $consultaCliente="update cliente set descripcion_total = descripcion_total - $cu enta2 where no_cuenta= $cuenta"; $result=mysql_query($consultaCliente,$conexion) or die(mysql_error()); ?> <html> <head> <title>Retirar saldo</title> <style type='text/css'> body,html{ padding:0; margin:0; border:0; background-image:url(./imagen/index.gif); background-repeat:repeat-x; } h1{ background-color:#3b5998; color:#fff; font-family:arial black; } a.regresar1, regresar2{ text-decoration:none; font-family:Arial black;

size:14 pt; color:#67a54b; } </style> <link type='text/css' rel='stylesheet' href='estilo2.css'> </head> <body> <center> <h1 style='padding:15;'></h1> <?php echo ("<table style='border:1px solid; margin:4; padding:4; background-color:#348134; color:#fff; font-family:arial black;'> <a style='color:#067;'>Se ha retirado de su cuenta la cantidad:</a> <tr> <td> $cuenta2 </tr> </td> </table>" ); ?> </center> <br> <br> <center> <a href='./consulta.php' class='regresar1'>Regresa a la p&aacute;gina anterior</ a> <br> <a href='./' class='regresar2'>Regresa a la p&aacute;gina principal</a> </center> </body> </html> this retirar_saldo.php <html> <head> <title>Estado de cuenta</title> <style type='text/css'> input.consultarSaldo{ border:1px solid #000; margin:4; padding:4; background-color:#67a54b; color:#fff; font-family:arial black; } body,html{ padding:0; margin:0; border:0; background-image:url(./imagen/index.gif); background-repeat:repeat-x; } h3{ background-color:#3b5998; color:#fff;

font-family:arial black; } </style> </head> <body> <center> <h3>Estado de cuenta</h3> <form action='estado_de_cuenta.php' method='POST'> <label style='color:#067;'>Ingrese Aqu&iacute; su N&uacute;mero de Cuenta: </l abel> <br> <input type='text' size='50' name='cuenta'> <br> <input type='submit' value='ver estado de cuenta' class='consultarSaldo' title ='haga click para ver su estado de cuenta'> </form> </center> </body> </html> this estado_cuenta.php <?php $conexion=mysql_connect("localhost","root","21474n"); mysql_select_db("operacion_bancaria",$conexion); $consultaCliente="select * from cliente where no_cuenta = $cuenta"; $result=mysql_query($consultaCliente,$conexion) or die(mysql_error()); $registro=mysql_fetch_assoc($result); ?> <html> <head> <title>Estado de cuenta</title> <style type='text/css'> body,html{ padding:0; margin:0; border:0; background-image:url(./imagen/index.gif); background-repeat:repeat-x; } h1{ background-color:#3b5998; color:#fff; font-family:arial black; } a.regresar1, regresar2{ text-decoration:none; font-family:Arial black; size:14 pt; color:#67a54b; } </style> <link type='text/css' rel='stylesheet' href='estilo2.css'> </head> <body> <center> <h1 style='padding:15;'></h1>

<?php echo ("<table style='border:1px solid; margin:4; padding:4; background-color:#348134; color:#fff; font-family:arial black;'> <a style='color:#067;'>Su saldo total es:</a> <tr> <td> $registro[descripcion_total] </td> </tr> </table> " ); echo ("<table style='border:1px solid; margin:4; padding:4; background-color:#348134; color:#fff; font-family:arial black;'> <a style='color:#067;'>Su cuenta es:</a> <tr> <td> $registro[no_cuenta] </td> </tr> </table> " ); echo ("<table style='border:1px solid; margin:4; padding:4; background-color:#348134; color:#fff; font-family:arial black;'> <a style='color:#067;'>Su direccion es:</a> <tr> <td> $registro[direccion] </td> </tr> </table> " ); echo ("<table style='border:1px solid; margin:4; padding:4; background-color:#348134; color:#fff; font-family:arial black;'> <a style='color:#067;'>Su telefono es:</a> <tr> <td> $registro[telefono] </td> </tr> </table> " ); ?> </center> <br> <br> <center> <a href='./consulta.php' class='regresar1'>Regresa a la p&aacute;gina anterior</ a> <br> <a href='./' class='regresar2'>Regresa a la p&aacute;gina principal</a> </center> </body> </html> this estado_de_cuenta.php

También podría gustarte