Viewing file: favoritos.php (2.03 KB) -rw-rw-r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<link rel="stylesheet" type="text/css" href="../frames/nuevo.css"> <link rel="STYLESHEET" type="text/css" href="../frames/estilo.css"> <?php include("../frames/conn.php"); include "../frames/classes/class.log.php"; include("../frames/zebraforms/class.htmlform.php"); $control= new control();
$anonimo=true; if ($control->usuario<>"anonimo")$anonimo=false; if ($anonimo){ echo "USUARIO AN�NIMO NO AUTORIZADO A GESTION DE FAVORITOS"; DIE(); } $forma = new HTMLForm('form', 'post','favoritos2.php'); @$sql="select * from libros where id={$_REQUEST['id']}"; $res=mysql_query($sql,$conn); @$row=mysql_fetch_array($res); $forma->add('label', 'label_titulo','','<b>T�tulo</b>'); $obj = $forma->add('label', 'control_titulo','',$row['titulo']); //$obj->setAttributes(array('size' => strlen(trim($row['titulo'])),'readonly' => 'readonly')); $forma->add('label', 'label_autor','','<b>Autor</b>'); $obj = $forma->add('label', 'control_autor','',$row['autor']); //$obj->setAttributes(array('size' => strlen(trim($row['autor'])),'readonly' => 'readonly')); $forma->add('label', 'label_genero','','<b>Genero</b> '); $obj=$forma->add('label', 'control_genero','',$row['genero']."/".$row['subgenero']); // $obj->setAttributes(array('size' => strlen(trim($row['genero']."/".$row['subgenero'])),'readonly' => 'readonly')); $obj=$forma->add('hidden', "control_id",$_REQUEST['id']); $obj =$forma->add('submit', 'submit', 'A�adir a favoritos');
$forma->add('submit', 'submit', 'Agregar a favoritos');
// $forma->add('reset', 'reset', 'Borrar campo'); $obj=$forma->add('button', 'control_atras', 'Volver atr�s'); $obj->setAttributes(array('onclick' =>'history.back()')); $obj=$forma->add('button', 'control_misfavoritos', 'Ver mis Favoritos'); $obj->setAttributes(array('onclick' =>"document.location ='./favoritos_listado.php'"));
$forma->render("./favoritos.xtpl"); ?>
|