<?php

function formulario_alta_reservas($hidden)
{
	$html='<form action="guardar_reserva_con_persona.php" id="add_form_reserva" method="POST" enctype="multipart/form-data" style="">';
	$html.='<table name="form" align="center">';
	$html.='<tbody><tr>';
	$html.='<th><font style="color:black">Tipo Doc</font></th><td>';

	$html.=ObtenerSelectTipoDocumento();

	$html.='</td></tr>';
	$html.='<tr>';
	$html.='<th><font style="color:black">Documento</font></th><td><input onkeypress="" class="editingSize " id="documento" name="documento" size="" maxlength="150" value="" placeholder="" type="text"></td></tr>';
	$html.='<tr>';
	$html.='<th><font style="color:black">Nombre</font></th><td><input onkeypress="" class="editingSize " id="nombre" name="nombre" size="" maxlength="150" value="" placeholder="" type="text"></td></tr>';
	$html.='<tr>';
	$html.='<th><font style="color:black">Apellido</font></th><td><input onkeypress="" class="editingSize " id="apellido" name="apellido" size="" maxlength="150" value="" placeholder="" type="text"></td></tr>';
	$html.='<tr>';
	$html.='<th><font style="color:black">Domicilio</font></th><td><input onkeypress="" class="editingSize " id="domicilio" name="domicilio" size="" maxlength="150" value="" placeholder="" type="text"></td></tr>';
	$html.='<tr>';
	$html.='<th><font style="color:black">Ciudad</font></th><td>';

	$html.= ObtenerSelectCiudad();

	$html.='</td></tr>';
	$html.='<tr>';
	$html.='<th><font style="color:black">Teléfonos</font></th><td><input onkeypress="" class="editingSize " id="tel" name="tel" size="" maxlength="150" value="" placeholder="" type="text"></td></tr>';
	$html.='<tr>';
	$html.='<th><font style="color:black">Celular</font></th><td><input onkeypress="" class="editingSize " id="celu" name="celu" size="" maxlength="150" value="" placeholder="" type="text"></td></tr>';
	$html.='<tr>';
	$html.='<th><font style="color:black">e-mail</font></th><td><input onkeypress="" class="editingSize " id="mail" name="mail" size="" maxlength="150" value="" placeholder="" type="text"></td></tr>';

	$html.='<tr>';
	$fecha=date("Y-m-d");
	$html.='<th><font style="color:black">Fecha</font></th><td><input onkeypress="" class="editingSize datepicker" id="fecha_reserva" name="fecha_reserva" size="" maxlength="150" value="" placeholder="' . $fecha . '" type="text">';
	$html.='</td></tr>';
	$html.='<tr><td>';
	$html.='<input id="guardar" class="editingSize" type="button" onClick="validateAddForm(reservas);" value="Guardar Reservas">';
	$html.='</td><td><input style="float: right;" id="cancelar"  class="btn editingSize" type="button" value="Cancelar"></td></tr></table>';
	$html.='</tbody></table>';
	$html.='<input name="action" value="add" type="hidden">';
	$html.='<input name="table" value="persona" type="hidden">';
	$html.='<input name="id_persona" id="id_persona" value="-1" type="hidden">';

	if( isset( $hidden ) && is_array( $hidden ) )
	{
		foreach($hidden as $campo => $valor)
			$html.="<input name=\"$campo\" value=\"$valor\" type=\"hidden\">";
	}

	$html.='</form>';

	return $html;
}

?>
