os dejo le header. la pagina donde esta el input y el footer por si acaso.
gracias por vuestra ayuda.
HEADER.PHP
Código PHP:
<?php ob_start(); ?>
<?php if (!isset($_SESSION)) session_start(); ?>
<?php include_once(dirname(dirname(__FILE__)) . '/classes/translate.class.php'); ?>
<?php include_once(dirname(__FILE__) . '/classes/functions.php'); ?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Panel administracion - Dconcierto.com</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Dconcierto.com - Administracion">
<meta name="author" content="Flymedia.es">
<!-- Le HTML5 shim, for IE6-8 support of HTML elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!-- Le styles -->
<link href="../assets/css/bootstrap.min.css" rel="stylesheet">
<link href="../assets/css/vnadium.css" rel="stylesheet">
<link href="../assets/css/bootstrap-responsive.min.css" rel="stylesheet">
<link href="../assets/css/jigowatt.css" rel="stylesheet">
<link href="assets/css/datepicker.css" rel="stylesheet">
<link href="assets/js/chosen/chosen.css" rel="stylesheet">
<link href="assets/css/prettify.css" rel="stylesheet">
<link rel="shortcut icon" href="../favicon.ico">
<link rel="apple-touch-icon-precomposed" href="../apple_touch_icon.png" />
<!-- Added library to header in order to load reports -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
<script>
$(document).ready(function() {
$("#fecha").datepicker();
$.datepicker.formatDate('yy-mm-dd', new Date(2007, 1 - 1, 26));
});
</script>
</head>
<body>
<!-- Navigation
================================================== -->
<div class="navbar navbar-fixed-top">
<div class="navbar">
<div class="navbar-inner">
<div class="container">
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<h3><a class="brand" href="home.php"><img src="/images/logo.png" width="176" height="31"></a></h3>
<div class="nav-collapse">
<ul class="nav" id="findme">
<li><a href="../home.php"><?php _e('Home'); ?></a></li>
<li><a href="./eventos.php"><?php _e('Events'); ?></a></li>
<li><a href="index.php"><?php _e('Admin panel'); ?></a></li>
</ul>
<?php if(isset($_SESSION['jigowatt']['username'])) { ?>
<ul class="nav pull-right">
<li class="dropdown">
<p class="navbar-text dropdown-toggle" data-toggle="dropdown" id="userDrop"><?php echo $_SESSION['jigowatt']['gravatar']; ?> <a href="#"><?php echo $_SESSION['jigowatt']['username']; ?></a><b class="caret"></b></p>
<ul class="dropdown-menu">
<?php if(in_array(1, $_SESSION['jigowatt']['user_level'])) { ?>
<li><a href="index.php"><i class="icon-home"></i> <?php _e('Control Panel'); ?></a></li>
<li><a href="settings.php"><i class="icon-cog"></i> <?php _e('Settings'); ?></a></li> <?php } ?>
<li><a href="../profile.php"><i class="icon-user"></i> <?php _e('My Account'); ?></a></li>
<li><a href="http://jigowatt.co.uk/themeforest/login/install.php"><i class="icon-info-sign"></i> <?php _e('Help'); ?></a></li>
<li class="divider"></li>
<li><a href="../logout.php"><?php _e('Sign out'); ?></a></li>
</ul>
</li>
</ul>
<?php } else { ?>
<ul class="nav pull-right">
<li><a href="../login.php" class="signup-link"><em><?php _e('Have an account?'); ?></em> <strong><?php _e('Sign in!'); ?></strong></a></li>
</ul>
<?php } ?>
</div>
</div>
</div><!-- /navbar-inner -->
</div><!-- /navbar -->
</div><!-- /navbar-wrapper -->
<!-- Main content
================================================== -->
<div class="container">
<div class="row">
<div class="span12">
ADD.PHP
Código PHP:
<?php
include_once( dirname(dirname(__FILE__)) . '/classes/check.class.php');
protect("1");
if(empty($_POST))
include_once('header.php');
if(empty($_POST))
include_once('conect.php');
?>
<div class="container-fluid">
<div class="row-fluid">
<div class="span2">
<?php include('sidebarevent.php'); ?>
</div>
<div class="span10">
<h1> Añadir Nuevo Concierto</h1>
<form action="./add2.php" method="post" name="NewEvent" id="NewEvent" enctype="multipart/form-data">
<p>
<input name="username" type="hidden" id="username" value="<?php echo $_SESSION['jigowatt']['username']; ?>" />
</p>
<p>
<label for="artista">Artista <a href="#" data-rel="tooltip" tabindex="99" title="<?php _e('Incluya el nombre del artista'); ?>"><i class="icon-question-sign"></i></a></label>
<input type="text" name="artista" id="artista" class=":required" />
<br />
<label for="fecha">Fecha<a href="#" data-rel="tooltip" tabindex="99" title="<?php _e('Introduzca una fecha con formato YYYY-MM-DD ejemplo: 2012-03-29'); ?>"><i class="icon-question-sign"></i></a></label>
<input name="fecha" type="text" class=":required" id="fecha" readonly="readonly"/>
<br />
<label for="hora">Hora<a href="#" data-rel="tooltip" tabindex="99" title="<?php _e('Incluya una hora en formato HH:MM:SS ejemplo: 02:50:59'); ?>"><i class="icon-question-sign"></i></a></label>
<select name="hora" class=":required" id="hora">
<option value="00:00:00">00:00</option>
<option value="00:15:00">00:15</option>
</select>
<br />
<label for="sala">Sala<a href="#" data-rel="tooltip" tabindex="99" title="<?php _e('Incluya el nombre de la sala'); ?>"><i class="icon-question-sign"></i></a></label>
<input type="text" name="sala" id="sala" class=":required" />
<br />
<label for="direccion">Direccion<a href="#" data-rel="tooltip" tabindex="99" title="<?php _e('Incluya la direccion de la sala'); ?>"><i class="icon-question-sign"></i></a></label>
<input type="text" name="direccion" id="direccion" class=":required" />
<br />
<label for="localidad">Localidad<a href="#" data-rel="tooltip" tabindex="99" title="<?php _e('Incluya una localidad'); ?>"><i class="icon-question-sign"></i></a></label>
<input type="text" name="localidad" id="localidad" class=":required" />
<br />
<label for="provincia">Provincia<a href="#" data-rel="tooltip" tabindex="99" title="<?php _e('Incluya una provincia'); ?>"><i class="icon-question-sign"></i></a></label>
<input type="text" name="provincia" class=":required" style="margin: 0 auto;" data-provide="typeahead" data-items="4" data-source='["Madrid","Barcelona","Álava","Albacete","Alicante","Almería","Ávila","Badajoz","Baleares (Illes)","Barcelona","Burgos","Cáceres","Cádiz","Castellón","Ciudad Real","Córdoba","A Coruña","Cuenca","Girona","Granada","Guadalajara","Guipúzcoa","Huelva","Huesca","Jaén","León","Lleida","La Rioja","Lugo","Madrid","Málaga","Murcia","Navarra","Ourense","Asturias","Palencia","Las Palmas","Pontevedra","Salamanca","Santa Cruz de Tenerife","Cantabria","Segovia","Sevilla","Soria","Tarragona","Teruel","Toledo","Valencia","Valladolid","Vizcaya","Zamora","Zaragoza","Ceuta","Melilla"]'>
<br />
<label for="pais">Pais<a href="#" data-rel="tooltip" tabindex="99" title="<?php _e('Seleccione un pais.'); ?>"><i class="icon-question-sign"></i></a></label>
<select name="pais" id="pais">
<option value="España" selected="selected">España</option>
</select>
<br />
<label for="userfile">Cartel<a href="#" data-rel="tooltip" tabindex="99" title="<?php _e('Selecione el cartel del evento, preferentemente en un tamaño de 400px X 600px o proporcional'); ?>"><i class="icon-question-sign"></i></a></label>
<input type="file" name="userfile" id="userfile" class=":required" >
<br />
<input name="valor" type="hidden" id="valor" value="0" />
</p>
<p>
<input type="submit" name="enviar" id="enviar" value="Enviar" class="btn btn-primary" />
<input type="reset" name="button" id="button" value="Restablecer" class="btn" />
</p>
</form>
</div>
</div>
</div>
<?php include_once('footer.php'); ?>