<?php

	require_once('Connections/nosotros_connection.php');
	require_once('nosotros.php');

function formulario_alta_pasajero($hidden)
{
	$html='<form action="guardar_pasajero_con_reserva.php" id="add_form_persona_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.='<select name="id_tipo_doc" id="id_tipo_doc" class="editingSize">';
	//$html.='<option value="1">dni</option>';
	//$html.='<option value="4">pasaporte</option>';
	//$html.='</select>';
	$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.='<select name="id_ciudad" id="id_ciudad" class="editingSize">';
	//$html.='<option value="1">Rosario</option>';
	//$html.='<option value="2">Bahia blanca</option>';
	//$html.='<option value="3">Mar del Plata</option>';
	//$html.='<option value="4">Córdoba</option>';
	//$html.='<option value="5">Santa Fe</option>';
	//$html.='<option value="7">San Lorenzo</option>';
	//$html.='</select>'
	$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>';
	$html.='<th><font style="color:black">Observaciones</font></th><td><input onkeypress="" class="editingSize " id="observa" name="observa" size="" maxlength="150" value="" placeholder="" type="text"></td></tr>';
	$html.='<tr><td>';
	$html.='<input id="guardar" class="editingSize" type="button" onClick="validateAddForm(reservas);" value="Guardar Pasajero">';
	$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 id="id_persona" name="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;
}

?>
