<?php
session_start();
include('../db.php');

if (!session_is_registered("clave_audio")) {
	include("../login.php");
	if (!$continuar) exit;
}
?>
<html>
<head>
<title>articulos</title>
<link href="../sformi.css" rel="stylesheet" type="text/css">
</head>
<body>
<?php 
/*
if (!session_is_registered("sintogeo")) {
	include("../login.php");
	if (!$continuar) exit;
}
*/

	if(isset($_REQUEST['id'])) {
		$id = $_REQUEST['id'];
	} else {
		exit;
	}
?>
<table border="0" cellspacing="0" cellpadding="0">
<?php
	$conn = db_connect();
	if($conn) {
		$query = "SELECT articulo_id, articulo_id, articulo_tipo, articulo_padre, articulo_seccion, articulo_titular, articulo_entradilla, articulo_texto, articulo_enlace, articulo_fecha_pub, articulo_embargado, articulo_views FROM edito_articulos WHERE articulo_id = " . $id;
		$result = mysql_query($query, $conn);
		if (mysql_num_rows($result)) {
			$row = mysql_fetch_array($result);
			$articulo_id = $row['articulo_id'];
$articulo_id = $row['articulo_id'];
$articulo_tipo = $row['articulo_tipo'];
$articulo_padre = $row['articulo_padre'];
$articulo_seccion = $row['articulo_seccion'];
$articulo_titular = $row['articulo_titular'];
$articulo_entradilla = $row['articulo_entradilla'];
$articulo_texto = $row['articulo_texto'];
$articulo_enlace = $row['articulo_enlace'];
$articulo_fecha_pub = $row['articulo_fecha_pub'];
$articulo_embargado = $row['articulo_embargado'];
$articulo_views = $row['articulo_views'];

?>
			<tr><td width="150" class= "lbl">Id</td></tr>
<tr><td width="450" class="data"><?php echo $articulo_id; ?></td></tr>
<tr><td><img src="_imgs/d.gif" width="100" height="10"></td></tr>
<tr><td width="150" class= "lbl">Tipo</td></tr>
<tr><td width="450" class="data"><?php echo $articulo_tipo; ?></td></tr>
<tr><td><img src="_imgs/d.gif" width="100" height="10"></td></tr>
<tr><td width="150" class= "lbl">Padre</td></tr>
<tr><td width="450" class="data"><?php echo $articulo_padre; ?></td></tr>
<tr><td><img src="_imgs/d.gif" width="100" height="10"></td></tr>
<tr><td width="150" class= "lbl">Sección</td></tr>
<tr><td width="450" class="data"><?php echo $articulo_seccion; ?></td></tr>
<tr><td><img src="_imgs/d.gif" width="100" height="10"></td></tr>
<tr><td width="150" class= "lbl">Titular</td></tr>
<tr><td width="450" class="data"><?php echo $articulo_titular; ?></td></tr>
<tr><td><img src="_imgs/d.gif" width="100" height="10"></td></tr>
<tr><td width="150" class= "lbl">Entradilla</td></tr>
<tr><td width="450" class="data"><?php echo $articulo_entradilla; ?></td></tr>
<tr><td><img src="_imgs/d.gif" width="100" height="10"></td></tr>
<tr><td width="150" class= "lbl">Texto</td></tr>
<tr><td width="450" class="data"><?php echo $articulo_texto; ?></td></tr>
<tr><td><img src="_imgs/d.gif" width="100" height="10"></td></tr>
<tr><td width="150" class= "lbl">Enlace</td></tr>
<tr><td width="450" class="data"><?php echo $articulo_enlace; ?></td></tr>
<tr><td><img src="_imgs/d.gif" width="100" height="10"></td></tr>
<tr><td width="150" class= "lbl">Fecha</td></tr>
<tr><td width="450" class="data"><?php echo $articulo_fecha_pub; ?></td></tr>
<tr><td><img src="_imgs/d.gif" width="100" height="10"></td></tr>
<tr><td width="150" class= "lbl">Embargado</td></tr>
<tr><td width="450" class="data"><?php echo $articulo_embargado; ?></td></tr>
<tr><td><img src="_imgs/d.gif" width="100" height="10"></td></tr>
<tr><td width="150" class= "lbl">Views</td></tr>
<tr><td width="450" class="data"><?php echo $articulo_views; ?></td></tr>
<tr><td><img src="_imgs/d.gif" width="100" height="10"></td></tr>
<tr><td><a href="articulos_edit.php?op=edit&id=<?php echo $articulo_id; ?>" class="button">[ edit ]</a>&nbsp;&nbsp;<a href="articulos_db.php?op=del&id=<?php echo $articulo_id; ?>" class="button">[ delete ]</a></td></tr>


<?php
		}
	}
?>
</table>
</body>
</html>