Ejemplo n.º 1
0
 function show()
 {
     include "view/autores/search_menu.php";
     $autores = new Autores();
     if (isset($_GET['autor'])) {
         $data = $autores->getAutor($_GET['autor']);
         include 'view/autores/autor.php';
         $books = $autores->getAutorBooks($_GET['autor']);
         include 'view/libro/lista_libros.php';
     } else {
         $results = $autores->getAutores();
         include 'view/autores/autores.php';
     }
 }
Ejemplo n.º 2
0
<?php

include_once 'servicio.php';
include_once 'Autores.php';
switch ($_GET['op']) {
    case 'mo':
        $Autores = new Autores();
        echo $Autores->modificar($_POST['nombre'], $_POST['id']);
        break;
    case 'in':
        $Autores = new Autores();
        echo $Autores->insertar($_POST['nombre']);
        break;
}
<?php

include '../php/Autores.php';
$datos = new Autores();
$datosautores = $datos->traerAutor($_GET['id']);
?>
<html>
<head>
<title>Administrar al autor <?php 
echo $datosautores;
?>
</title>
<meta http-equiv='Content-Type' content='text/html' charset="utf-8" />
<script type="text/javascript" src="../js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="../js/admin.js"></script>
<link href="../css/cuerpo.css" type="text/css"  rel="stylesheet"/>
<link href="../css/encabezado.css" type="text/css"  rel="stylesheet"/>

<style>
div.contenedor_reg{float:left;width:400px;clear:Both;margin-top:20px;}
div.contenedor_reg span{width:100px;float:left;}
input{width:300px;float:left;}
</style>
</head>
<body style="font-family:Arial;width:600px;margin:0px auto;">
<div id="columna_centro" style="width:650px;height:auto;">
<a id="btn" style="cursor:pointer;float:right;width:auto;clear:both;color:red;margin-top:20px;text-decoration:none;text-align:right;margin-bottom:20px;margin-right:20px;" href="autores.php">Volver a la lista de autores</a>

<input type="hidden" id="id" value="<?php 
echo $_GET['id'];
?>
Ejemplo n.º 4
0
<html>
<head>
<title>Admin</title>
<meta http-equiv='Content-Type' content='text/html' charset="utf-8" />
<script type="text/javascript" src="../js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="../js/admin.js"></script>
<link href="../css/cuerpo.css" type="text/css"  rel="stylesheet"/>
<link href="../css/encabezado.css" type="text/css"  rel="stylesheet"/>

</head>
<body style="font-family:Arial;width:600px;margin:0px auto;">
<?php 
@session_start();
include '../php/Autores.php';
$autores = new Autores();
$auts = $autores->traerAutores();
?>
<div id="columna_centro" style="width:650px;height:auto;">
<a id="btn" style="cursor:pointer;float:right;width:auto;height:auto;clear:both;color:red;margin-top:20px;text-decoration:none;text-align:right;margin-bottom:20px;margin-right:20px;" href="autores_insertar.php">Insertar autores</a>
</br>
</br>
</br>
</br>
<table id="tabla" style="float:left;margin-left:20px;">
	<tr>
    	<td style="color:#520C06;width:300px;">
        Nombre
        </td>
        
                
        <td style="color:#520C06;width:300px;">