<%/******************************************************************************
 * Copyright (c) 2000-2005 e-Deal
 *
 * e-Deal S.A.
 * 55 rue Brillat Savarin
 * 75013 Paris
 * France
 *
 * T: +33 (0)1 53 80 80 30
 * F: +33 (0)1 73 01 69 77
 * http://www.e-deal.com
 * 
 * La diffusion de ce code source sous quelque forme que ce soit sans
 * l'autorisation de E-DEAL est interdite.
 *
 * Vous êtes autorisés à modifier ce code source uniquement pour votre usage
 * propre et sous réserve que les mentions de copyright demeurent intactes.
 *
 * Ce code est fourni en l'état. Aucune garantie d'aucune sorte, explicite ou
 * implicite n'est donnée. En aucun cas E-DEAL ne pourra être tenu pour
 * responsable des dommages pouvant résulter de l'utilisation de ce code
 * source.
 ******************************************************************************/
%>
<%@page session="true"%>
<%@ page import="com.edeal.frontline.navigation.FlRequest" %>
<%@ page import="com.edeal.frontline.FlContext" %>
<%@ page import="com.edeal.frontline.Utils" %>
<%@ page import="com.edeal.frontline.DataDictionary" %>
<%@ page import="com.edeal.frontline.FieldNotInitializedException" %>
<%@ page import="com.edeal.frontline.custom.Reservation_Bean"%>
<%@taglib uri="http://www.e-deal.com/taglib/fl" prefix="fl" %>
<jsp:useBean class="com.edeal.frontline.custom.Reservation_Bean" id="Reservation_" scope="request"/>
<link href="<fl:webapp/>/css/smalltabs_css.jsp" rel="stylesheet" type="text/css">
<link rel="stylesheet" type="text/css" href="<fl:webapp/>/css/common_css.jsp">

<%
	final org.apache.commons.logging.Log logger = org.apache.commons.logging.LogFactory.getLog(getClass());
	FlRequest flRequest = new FlRequest(request);
	FlContext context = flRequest.getContext();
	DataDictionary dico = context.getDataDictionary();
	String id = null;
	

	try {
	    id = Reservation_.getID();
	} catch (FieldNotInitializedException fnie) {}

	
%>
<script type="text/javascript" language="javascript">
	function doSubmit() {
		var f = document.forms[0];		
		return true;
	}
</script>
<fl:form action="save_reservation_.fl" bean="Reservation_">
<fl:bigTabs objectTitle="<%=Utils.getMessage(session, \"LF012\", \"Réservation\") %>" ou="<%= \"edit_reservation_.fl\" + (id != null ? \"?id=\" + id : \"\")%>" >
    <table class="container" cellpadding="0">
		<tr>
			<td colspan="5">
				<table class="container" cellpadding="0">
					<tr class="fieldline">	
						<td class="labelTitreFiche">
							<fl:label field="Rs_ResaNo" labelClassName="titreFiche"/>
						</td>
						<td class="fieldTitreFiche">
							<fl:input property="Rs_ResaNo" mandatoryMsgCode="MF04B"/>
						</td>				
					</tr>
				</table>
			</td>
		</tr>

		<tr class="ligne_separation"><td></td></tr>
		<tr>
			<td class="column2">
				<table class="container">
					<fl:fieldEdit property="Rs_HotelID" mandatoryMsgCode="MF049"/>
					<fl:fieldEdit property="Rs_Contact"/>
					<tr class="fieldline">
						<td id="detail_label" class="dataLabel"><span style="font-weight: bold; color:#0000;">&nbsp;</span></td>
						<td id="detail_value" class="dataValue">&nbsp;</td>
					</tr>
					<tr class="fieldline">
						<td id="detail_label" class="dataLabel"><span style="font-weight: bold; color:#0000;"><fl:getMessage code="FF0AD" alt="Détails Réservation"/></span></td>
						<td id="detail_value" class="dataValue">&nbsp;</td>
					</tr>
					<fl:fieldEdit property="Rs_ResaStatus" mandatoryMsgCode="MF04A"/>
					<fl:fieldEdit property="Rs_BillingStatus"/>
					<fl:fieldEdit property="Rs_ReplacedBy"/>
					<fl:fieldEdit property="Rs_ResaMontant" mandatoryMsgCode="MF04C"/>
					<fl:fieldEdit property="Rs_Currency1" mandatoryMsgCode="MF04D"/>
					<%-- <fl:fieldEdit property="Rs_CrDt" readOnly="true" type="date" format="dd/MM/yyyy"/> --%>
					<fl:fieldEdit property="Rs_BgDate" mandatoryMsgCode="MF04E"/>
					<fl:fieldEdit property="Rs_TotalClients" mandatoryMsgCode="MF051"/>
					<fl:fieldEdit property="Rs_nuiteroom" mandatoryMsgCode="MF050"/>
					<fl:fieldEdit property="Rs_nuiteclient" mandatoryMsgCode="MF04F"/>
					<fl:fieldEdit property="Rs_TotalRoom" />
					<fl:fieldEdit property="Rs_CatName"/>
					<fl:fieldEdit property="Rs_TypRoomName"/>
					<fl:fieldEdit property="Rs_WithOption"/>
					<tr class="fieldline">
						<td id="detail_label" class="dataLabel"><span style="font-weight: bold; color:#0000;">&nbsp;</span></td>
						<td id="detail_value" class="dataValue">&nbsp;</td>
					</tr>
					<tr class="fieldline">
						<td id="detail_label" class="dataLabel"><span style="font-weight: bold; color:#0000;"><fl:getMessage code="FF0B0" alt="Détails Client"/></span></td>
						<td id="detail_value" class="dataValue">&nbsp;</td>
					</tr>
					<fl:fieldEdit property="Rs_SeniorNumber"/>
					<fl:fieldEdit property="Rs_AdultNumber"/>
					<fl:fieldEdit property="Rs_AdoNumber"/>
					<fl:fieldEdit property="Rs_ChildrenNber"/>
					<fl:fieldEdit property="Rs_BabyNber"/>
					<fl:fieldEdit property="Rs_AdherentNum"/>
					<tr class="fieldline">
						<td id="detail_label" class="dataLabel"><span style="font-weight: bold; color:#0000;">&nbsp;</span></td>
						<td id="detail_value" class="dataValue">&nbsp;</td>
					</tr>
					<tr class="fieldline">
						<td id="detail_label" class="dataLabel"><span style="font-weight: bold; color:#0000;"><fl:getMessage code="FF0AF" alt="Fidélisation"/></span></td>
						<td id="detail_value" class="dataValue">&nbsp;</td>
					</tr>
					<fl:fieldEdit property="Rs_FidelityPg"/>
					
				</table>
			</td>
			<td class="separation"><div class="separation"></div></td>
			<td class="column2">
				<table class="data_column" cellpadding="0">
						<tr class="fieldLine">
							<tr class="fieldline">
							<td id="detail_label" class="dataLabel"><span style="font-weight: bold; color:#0000;"><fl:getMessage code="FF0B3" alt="Informations Partenaire"/></span></td>
							<td id="detail_value" class="dataValue">&nbsp;</td>
						</tr>
						<fl:fieldEdit property="Rs_Origine"/>
						<fl:fieldEdit property="Rs_Type"/>
						<fl:fieldEdit property="Rs_ProductID"/>
						<fl:fieldEdit property="Rs_PartenaireID"/>
						<fl:fieldEdit property="Rs_LoginType"/>
						<fl:fieldEdit property="Rs_Login"/>
						<fl:fieldEdit property="Rs_ProvenanceCtrID" alt=""/>
						<fl:fieldEdit property="Rs_Achat"/>
						<fl:fieldEdit property="Rs_Vente"/>
						<fl:fieldEdit property="Rs_Currency2"/>
						<fl:fieldEdit property="Rs_ResaStock"/>
						<fl:fieldEdit property="Rs_CusFourniName"/>
						<fl:fieldEdit property="Rs_ArchiveResa"/>
						<tr class="fieldline">
							<td id="detail_label" class="dataLabel"><span style="font-weight: bold; color:#0000;">&nbsp;</span></td>
							<td id="detail_value" class="dataValue">&nbsp;</td>
						</tr>
						<tr class="fieldline">
							<td id="detail_label" class="dataLabel"><span style="font-weight: bold; color:#0000;"><fl:getMessage code="FF0B2" alt="Promotion"/></span></td>
							<td id="detail_value" class="dataValue">&nbsp;</td>
						</tr>
						<fl:fieldEdit property="Rs_TarifSpeTyp"/>
						<fl:fieldEdit property="Rs_TarifSpeName"/>
						<tr class="fieldline">
							<td id="detail_label" class="dataLabel"><span style="font-weight: bold; color:#0000;">&nbsp;</span></td>
							<td id="detail_value" class="dataValue">&nbsp;</td>
						</tr>
						<tr class="fieldline">
							<td id="detail_label" class="dataLabel"><span style="font-weight: bold; color:#0000;"><fl:getMessage code="FF0B1" alt="Détails Facturation"/></span></td>
							<td id="detail_value" class="dataValue">&nbsp;</td>
						</tr>
						<fl:fieldEdit property="Rs_InHotelInvCmsNum"/>
						<fl:fieldEdit property="Rs_PartnerBilName"/>
						<fl:fieldEdit property="Rs_HotelRgltNum"/>
						<fl:fieldEdit property="Rs_TauxCmsPartner"/>
						<fl:fieldEdit property="Rs_BilTauxCmsHotel"/>
						<fl:fieldEdit property="Rs_MontantCmsTTC"/>
					</tr>
				</table>
			</td>
		</tr>
		<tr class="ligne_separation"><td></td></tr>
	</table>
	<table class="container" cellpadding="0">
		<tr class="ligne_separation"><td></td></tr>
		<tr>
			<td class="titrePartie"><fl:getMessage code="F6038" alt="Commentaire"/></td>
		</tr>
		<tr>
			<td class="dataValue noPaddingLeft">
				<fl:input property="Rs_Comments" style="width:100%" nodiv="false"/>
			</td>
		</tr>
		<tr class="ligne_separation"><td></td></tr>
		<tr class="ligne_separation_couleur"><td></td></tr>
		<tr class="ligne_separation"><td></td></tr>
	</table>
	<fl:smallTabs name="Reservation__Tabs">
		<fl:sTab id="ATTACHMENT" title="<%= Utils.getMessage(session, \"L201C\", \"Documents joints\") %>">
			<fl:attach name="Reservation_" colID="Rs_AttID" edit="true" />
		</fl:sTab>
	</fl:smallTabs>
</fl:bigTabs>
</fl:form>