Esempio n. 1
0
            }
            table.hovertable td {
                    border-width: 1px;
                    padding: 8px;
                    border-style: solid;
                    border-color: #a9c6c9;
                    text-align: center;
                    max-width: 400px;
            }
        </style>
    </head>
    <body>
        <div id="contenedor">
        <?php 
$tAtrac = new TipusAtraccions();
$estat = new Estat();
if ($_GET['idEliminar']) {
    if ($tAtrac->delTipusAtraccions($_GET['idEliminar'])) {
        echo "<h2>Tipo de atracción eliminado!</h2>";
    } else {
        echo "<h2>Error! Tipo de atracción no eliminado!</h2>";
    }
}
?>
            <form id="form" method="POST">
            <table class="hovertable">
                <tr>
                    <td><b>Nombre</b></td>
                    <td><b>Descripción</b></td>
                    <td><b>Estado</b></td>
                    <td><b>Editar</b></td>
Esempio n. 2
0
require_once '../../Logica/Connexio.php';
require_once '../../Logica/Desti.php';
require_once '../../Logica/Estat.php';
$con = new Connexio();
if (!$_SESSION[usuari]) {
    header("Location: index.php");
}
?>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title></title>
    </head>
    <body>
        <?php 
$estat = new Estat();
?>
        <form method="POST">
        <table>
            <tr>
                <td><b>Nombre</b></td>
                <td><b>Ubicación</b></td>
                <td><b>Estado</b></td>
                <td></td>
            </tr>
            <tr>
                <td> <input type="text" name="nomDest"> </td>
                <td> <input type="text" name="ubicacio"> </td>
                <td> 
                    <select name="estat"> 
                        <?php 
Esempio n. 3
0
                    background-color:#d4e3e5;
            }
            table.hovertable td {
                    border-width: 1px;
                    padding: 8px;
                    border-style: solid;
                    border-color: #a9c6c9;
                    text-align: center;
            }
        </style>
    </head>
    <body>
        <div id="contenedor">
        <?php 
$atraccio = new Atraccions();
$estat = new Estat();
$tAtrac = new TipusAtraccions();
$desti = new Desti();
$promocio = new Promocio();
if ($_GET['idEliminar']) {
    if ($atraccio->delete($_GET['idEliminar'])) {
        echo "<h2>Atracción eliminada!</h2>";
    } else {
        echo "<h2>Error! Atracción no eliminada!</h2>";
    }
}
?>
            <form id="form" method="POST">
            <table class="hovertable">
                <tr>
                    <td><b> Nombre </b></td>
Esempio n. 4
0
require_once '../../Logica/Desti.php';
require_once '../../Logica/Promocio.php';
require_once '../../Logica/Atraccions.php';
$con = new Connexio();
if (!$_SESSION[usuari]) {
    header("Location: index.php");
}
?>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    </head>
    <body>
        <?php 
$atrac = new Atraccions();
$estat = new Estat();
$desti = new Desti();
$prom = new Promocio();
$tAtrac = new TipusAtraccions();
?>
        <form method="POST" enctype="multipart/form-data">
            <table>
                <tr>
                    <td><b> Nombre </b></td>
                    <td><b> Descripcion </b></td>
                    <td><b> Duracion </b></td>
                    <td><b> Precio </b></td>
                    <td><b> Estado </b></td>
                    <td><b> Destino </b></td>
                    <td><b> Promocion </b></td>
                    <td><b> Tipo </b></td>
Esempio n. 5
0
                    background-color:#d4e3e5;
            }
            table.hovertable td {
                    border-width: 1px;
                    padding: 8px;
                    border-style: solid;
                    border-color: #a9c6c9;
                    text-align: center;
            }
        </style>
    </head>
    <body>
        <div id="contenedor">
        <?php 
$desti = new Desti();
$estat = new Estat();
if ($_GET['idEliminar']) {
    if ($desti->delDesti($_GET['idEliminar'])) {
        echo "<h2>Destino eliminado!</h2>";
    } else {
        echo "<h2>Error! Destino no eliminado!</h2>";
    }
}
?>
        <form id="form" method="POST">
            <table class="hovertable">
                <tr>
                    <td><b>Nombre</b></td>
                    <td><b>Ubicación</b></td>
                    <td><b>Estado</b></td>
                    <td><b>Editar</b></td>