Exemplo n.º 1
0
require_once '../../Logica/Estat.php';
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>
Exemplo n.º 2
0
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>
                </tr>
Exemplo n.º 3
0
<?php

session_start();
require_once '../Logica/Connexio.php';
require_once '../Logica/Usuaris.php';
require_once '../Logica/Atraccions.php';
require_once '../Logica/LiniaPedido.php';
require_once '../Logica/Desti.php';
require_once '../Logica/TipusAtraccions.php';
$Connexio = new Connexio();
$Connexio->connectar();
$Connexio->selectdb("socialtravel");
$atraccions = new Atraccions();
$desti = new Desti();
$tipusAtraccio = new TipusAtraccions();
if (@$_GET[logout]) {
    session_unset();
}
if ($_GET["idcompra"]) {
    $num = sizeof($_SESSION["carro"]);
    if ($num != 0) {
        $carro = $_SESSION["carro"];
    }
    $nuevaCompra = true;
    for ($i = 0; $i < $num; $i++) {
        if ($_SESSION["carro"][$i]["idAtraccio"] == $_GET["idcompra"]) {
            $_SESSION["carro"][$i]["quantitat"] = $_SESSION["carro"][$i]["quantitat"] + 1;
            $nuevaCompra = false;
        }
    }
    if ($nuevaCompra) {
Exemplo n.º 4
0
<?php

session_start();
require_once '../Logica/Connexio.php';
require_once '../Logica/Usuaris.php';
require_once '../Logica/Atraccions.php';
require_once '../Logica/LiniaPedido.php';
require_once '../Logica/SolicitudAmistat.php';
require_once '../Logica/Desti.php';
require_once '../Logica/Preferencies.php';
$Connexio = new Connexio();
$Connexio->connectar();
$atraccions = new Atraccions();
$amistat = new SolicitudAmistat();
$desti = new Desti();
$preferencies = new Preferencies();
?>
<!DOCTYPE html>
<html>
    <head>

       
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title></title>
        
        <script type="text/javascript">
	$(document).ready(function() {
            $(".iframes").fancybox({
		maxWidth	: 800,
		maxHeight	: 600,
		fitToView	: false,
Exemplo n.º 5
0
            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>
                    <td><b> Descripcion </b></td>
                    <td><b> Duracion </b></td>
Exemplo n.º 6
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 
$desti = new Desti();
$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>
                <input type="hidden" name="idDest" value="<? echo $desti->getIdDesti($_GET[id]); ?>">
                <td> <input type="text" name="nomDest" value="<? echo $desti->getNomDesti($_GET[id]); ?>"> </td>
                <td> <input type="text" name="ubicacio" value="<? echo $desti->getUbicacio($_GET[id]); ?>"> </td>
                <td> 
Exemplo n.º 7
0
            table.hovertable tr {
                    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>
Exemplo n.º 8
0
 <div id='contenedorAdmin'>
     <?php 
     if($_POST){
         // ************* Alta Destino ******************
         if($_POST[anadirDesti]){ 
             $desti = new Desti();
             if($desti->setDesti($_POST[nomDest], $_POST[ubicacio], $_POST[estat])){
                 echo "<h2>Destino insertado!</h2>";
             }
             else{
                 echo "<h2>Error! Destino no insertado!</h2>";
             }
         }
         // ************* Modificar Destino *****************
         else if($_POST[modifDesti]){ 
             $desti = new Desti();
             if($desti->modifDesti($_POST[idDest],$_POST[nomDest], $_POST[ubicacio], $_POST[estat])){
                 echo "<h2>Destino modificado!</h2>";
             }
             else{
                 echo "<h2>Error! Destino no modificado!</h2>";
             }
         }
         // ************* Alta Tipus Atraccion *************
         else if($_POST[anadirTAtrac]){ 
             $tAtrac = new TipusAtraccions();
             if($tAtrac->setTipusAtraccions($_POST[nomTAtrac], $_POST[descripcioTAtrac], $_POST[estatTAtrac]))
                   echo "<h2>Tipo de atraccion insertado!</h2>";
             else
                 echo "<h2>Error! Tipo de atraccion no insertado!</h2>";
         }