Código PHP:
<?php session_start();
include "app/conexion.php";
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Tu Cuenta</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" href="css/reset.css" type="text/css" media="screen">
<link rel="stylesheet" href="css/style.css" type="text/css" media="screen">
<link rel="stylesheet" href="css/grid.css" type="text/css" media="screen">
<script src="js/jquery-1.7.1.min.js" type="text/javascript"></script>
<script src="js/cufon-yui.js" type="text/javascript"></script>
<script src="js/cufon-replace.js" type="text/javascript"></script>
<script src="js/Vegur_500.font.js" type="text/javascript"></script>
<script src="js/Ropa_Sans_400.font.js" type="text/javascript"></script>
<script src="js/FF-cash.js" type="text/javascript"></script>
<script src="js/script.js" type="text/javascript"></script>
<!--[if lt IE 8]>
<div style=' clear: both; text-align:center; position: relative;'>
<a href="http://windows.microsoft.com/en-US/internet-explorer/products/ie/home?ocid=ie6_countdown_bannercode">
<img src="http://storage.ie6countdown.com/assets/100/images/banners/warning_bar_0000_us.jpg" border="0" height="42" width="820" alt="You are using an outdated browser. For a faster, safer browsing experience, upgrade for free today." />
</a>
</div>
<![endif]-->
<!--[if lt IE 9]>
<script type="text/javascript" src="js/html5.js"></script>
<link rel="stylesheet" href="css/ie.css" type="text/css" media="screen">
<![endif]-->
</head>
<!-- Agregado Inicial -->
<!-- Agregado Final -->
<body id="page5">
<!--==============================header=================================-->
<header>
<div class="border-bot">
<div class="main">
<h1><a href="index.php">Farmacia Torres</a></h1>
<nav>
<ul class="menu">
<li><a href="index.php">Inicio</a></li>
<li><a href="premios.php">Premios</a></li>
<li><a class="active" href="dashboard.php">Tu Cuenta</a></li>
<li><a href="empresa.php">Empresa</a></li>
<li><a href="contacto.php">Contacto</a></li>
</ul>
</nav>
<div class="clear"></div>
</div>
</div>
</header>
<!--==============================content================================-->
<section id="content"><div class="ic">Creado el 07 de Septiembre de 2012!</div>
<div class="main">
<div class="container_12">
<div class="wrapper">
<article class="grid_8">
<h3>Estado de la Factura</h3>
<?php
$numver=$_REQUEST["numver"];
$numfac=$_REQUEST["numfac"];
$cedula=$_REQUEST["cedula"];
$result = mysql_query("SELECT n_verificacion,n_facturas FROM FT_FACTURAS WHERE n_verificacion='$numver' AND n_facturas='$numfac'");
if($row = mysql_fetch_array($result)){
if($numver = $row['n_verificacion'] && $numfac = $row['n_facturas']){
echo "El numero de factura ya se encuentra registrado.";
}else{
mysql_query("INSERT INTO FT_FACTURAS(f_n_cedula, n_verificacion, n_facturas) VALUES (".$cedula.", ".$numver.", ".$numfac.")");
echo "Factura registrada con exito.";
}
mysql_close();
}
?>
</article>
<article class="grid_4">
<div class="indent-top indent-left">
<div class="wrapper p3">
<h3>Bienvenido</h3>
<!-- <figure class="img-indent-r"><a href="#"><img src="images/page1-img1.png" alt=""></a></figure>
<div class="extra-wrap">
<strong class="title-1">Tell Your<strong>Friends</strong><em>About</em><em>Our Cafe</em></strong>
</div> -->
<?php
if (isset($_SESSION['k_username'])) {
echo '<b>'.$_SESSION['k_username'].'</b>.';
echo '<p><a href="logout.php">Logout</a></p>';
}else{
echo 'Anonimo';
echo '<p><a href="index.php">Login</a></p>
<p><a href="registro.html">Registrate</a></p>';
}
?>
</div>
<h3 class="p1">Latest News</h3>
<p class="prev-indent-bot">24 Hour Emergency Towing</p>
<p class="p0">Monday - Friday: 7:30 am - 6:00</p>
<p class="prev-indent-bot">Saturday: 7:30 am - Noon</p>
<p class="img-indent-bot">Night Drop Available</p>
<dl>
<dt class="prev-indent-bot">Demolink.org 8901 Marmora Road, Glasgow, D04 89GR.</dt>
<dd><span>Telephone:</span>+1 959 552 5963;</dd>
<dd><span>FAX:</span>+1 959 552 5963</dd>
<dd><span>E-mail:</span><a href="#">[email protected]</a></dd>
</dl>
</div>
</article>
</div>
</div>
</div>
</section>
<!--==============================footer=================================-->
<footer>
<div class="main">
<div class="container_12">
<div class="wrapper">
<div class="grid_3">
<div class="spacer-1">
<a href="index.php"><img src="images/footer-logo.png" alt="Farmacia Torres"></a>
</div>
</div>
<div class="grid_5">
<div class="indent-top2">
<p class="prev-indent-bot">© 2012 Farmacia Torres</p>
PBX: (5) 368 0323 Email: <a href="#">[email protected]</a>
</div>
</div>
<div class="grid_4">
<ul class="list-services">
<li><a class="item-1" href="#"></a></li>
<li><a class="item-2" href="#"></a></li>
<li><a class="item-3" href="#"></a></li>
<li><a class="item-4" href="#"></a></li>
</ul>
<span class="footer-text">© 2012 <a class="link color-2" href="#">Farmacia Torres</a></span>
</div>
</div>
</div>
</div>
</footer>
<script type="text/javascript"> Cufon.now(); </script>
</body>
</html>