示例#1
0
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>
                </tr>
                <tr>
示例#2
0
require_once '../../Logica/Desti.php';
require_once '../../Logica/Promocio.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 
$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>
                </tr>
                <tr>
示例#3
0
                    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>
                    <td><b> Descripcion </b></td>
                    <td><b> Duracion </b></td>
                    <td><b> Precio </b></td>