Template
Código HTML:
Ver original
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="keywords" content="" /> <meta name="description" content="" /> <link href="default.css" rel="stylesheet" type="text/css" media="all" /> </head> <body> <div id="wrapper"> <div id="logo"> </div> <div id="page" class="round"> <div id="menu" class="round"> <ul> </ul> </div> <div id="splash"> <img src="images/splash.jpg" alt="" width="960" height="200" class="round" /> </div> <div id="wrapper2" class="round"> <div id="sidebar" class="round"> <ul> </ul> <ul> </ul> <ul> </ul> <!-- End Sidebar --> </div> <div id="content" class="round"> <h1><!-- End Content --> </h1> </div> <!-- End Wrapper 2 --> </div> <!-- End Page --> </div> <!-- End Wrapper --> </div> <div id="footer"> </div> </html>
Formulario:
Código PHP:
Ver original
<?php echo"<table border=1 bordercolor='Black' background='Images/9.jpg'><tr><td><table border=0><tr><td align='left'><img src='Images/8.jpg'></td></tr>"; echo"<form action='agregar.php' method='POST' name='add' id='add' target='_self'>"; echo"<tr align='center'><td><input type='submit' value='Agregar producto' class='botonsexy'><img src='Images/3.png'></td></tr></form>"; echo"<form action='modificar.php' method='POST' name='mod' id='mod' target='_self'>"; echo"<tr align='center'><td><input type='submit' value='Modificar informacion de producto' class='botonsexy'><img src='Images/4.png'></td></tr></form>"; echo"<form action='eliminar.php' method='POST' name='del' id='del' target='_self'>"; echo"<tr align='center'><td><input type='submit' value='Eliminar producto' class='botonsexy'><img src='Images/5.png'></td></tr></form>"; echo"<form action='reporte.php' method='POST' name='rep' id='rep' target='_self'>"; echo"<tr align='center'><td><input type='submit' value='Generar reporte' class='botonsexy'><img src='Images/6.png'></td></tr></form></table></table>"; echo"<div id='ajax'></div>"; ?> <script type="text/javascript"> $(function (e) { $('#add').submit(function (e) { e.preventDefault() $('#ajax').load('agregar.php?' + $('#add').serialize()) }) }) </script> <script type="text/javascript"> $(function (e) { $('#mod').submit(function (e) { e.preventDefault() $('#ajax').load('modificar.php?' + $('#mod').serialize()) }) }) </script> <script type="text/javascript"> $(function (e) { $('#del').submit(function (e) { e.preventDefault() $('#ajax').load('eliminar.php?' + $('#del').serialize()) }) }) </script> <script type="text/javascript"> $(function (e) { $('#rep').submit(function (e) { e.preventDefault() $('#ajax').load('reporte.php?' + $('#rep').serialize()) }) }) </script> </html>