Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <link href="styles.css" rel="stylesheet" type="text/css">
- <cfinclude template="tooltip.cfm">
- <style type="text/css">
- body {
- background-color: #FFF;
- }
- </style>
- <link href="cal/calendar.css" rel="stylesheet" type="text/css" />
- <script type="text/javascript" src="cal/jquery-1.3.2.min.js"></script>
- <script type="text/javascript" src="cal/calscript.js"></script>
- <script type="text/javascript">
- jQuery(document).ready(function () {
- $('input.one').simpleDatepicker();
- $('input.two').simpleDatepicker({ startdate: 2011, enddate: 2015 });
- $('input.three').simpleDatepicker({ chosendate: '9/9/2010', startdate: '6/10/2008', enddate: '7/20/2011' });
- $('input.four').simpleDatepicker({ x: 45, y: 3 });
- });
- </script>
- <cfoutput>
- <cfparam name="reskey" default="#RAND()*100000000#">
- <CFIF IsDefined("Modify") AND Modify EQ "FINALIZE RENTAL">
- <CFIF NOT IsDefined("location_state") OR Len(location_state) EQ 0>
- <CFSET message = "You have not selected a state. Please choose a state for your rental.">
- <CFSET skip = "yes">
- <CFELSEIF NOT IsDefined("locationid") OR Len(locationid) EQ 0>
- <CFSET message = "You have not selected a lake location. Please choose a lake location for your rental.">
- <CFSET skip = "yes">
- <CFELSEIF NOT IsDefined("rental_reservedate") OR Len(rental_reservedate) EQ 0>
- <CFSET message = "You have not selected a rental date. Please choose a date for your rental.">
- <CFSET skip = "yes">
- <CFELSEIF NOT IsDefined("craftid") OR Len(craftid) EQ 0>
- <CFSET message = "You have not selected a watercraft. Please choose an available watercraft from one of the time slots.">
- <CFSET skip = "yes">
- <CFELSEIF NOT IsDefined("rental_endtime") OR Len(rental_endtime) EQ 0>
- <CFSET message = "You have not selected an END-TIME for your reservation. Please choose an available END-TIME.">
- <CFSET skip = "yes">
- <CFELSEIF (IsDefined("rental_starttime") AND IsDefined("rental_endtime") AND IsDefined("var.tframe")) AND (var.tframe EQ 4 AND (rental_starttime NEQ "2:00 PM" AND rental_starttime NEQ "9:00 AM"))>
- <CFSET message = "Half-Day Rentals (4 hr. rentals) may only start at 9am or 2pm. Please revise your rental time.">
- <CFSET skip = "yes">
- <CFELSEIF NOT IsDefined("rental_renter_first") OR Len(rental_renter_first) EQ 0 OR Len(rental_renter_last) EQ 0 OR Len(rental_renter_address) EQ 0 OR Len(rental_renter_state) EQ 0 OR Len(rental_renter_city) EQ 0 OR Len(rental_renter_zip) EQ 0 OR Len(rental_renter_email) EQ 0 OR Len(rental_renter_phone) EQ 0>
- <CFSET message = "You missed a field marked with a RED Astrick (*) in the Customer Section. Please complete the Customer Section ENTIRELY.">
- <CFSET skip = "yes">
- <CFELSEIF Len(renterid) EQ 0 AND (Len(rental_renter_login) EQ 0 OR Len(rental_renter_password) EQ 0)>
- <CFSET message = "You did not enter a username or password in the Customer Section. Please complete this information.">
- <CFSET skip = "yes">
- <CFELSEIF IsDefined("cardid") AND Len(cardid) EQ 0 AND Len(card_number) EQ 0>
- <CFSET message = "Please enter your credit card number, or, if available, select a credit card from the list.">
- <CFSET skip = "yes">
- <CFELSEIF NOT IsDefined("cardid") AND Len(card_number) EQ 0>
- <CFSET message = "Please enter your credit card number.">
- <CFSET skip = "yes">
- <CFELSEIF NOT IsDefined("cardid") AND Len(card_exp) EQ 0>
- <CFSET message = "Please enter your credit card expiration date.">
- <CFSET skip = "yes">
- <CFELSEIF NOT IsDefined("cardid") AND Len(card_cvv) EQ 0>
- <CFSET message = "Please enter your credit card security code.">
- <CFSET skip = "yes">
- </CFIF>
- <CFIF Len(renterid) EQ 0 AND NOT IsDefined("skip")>
- <cfquery name="finddup" datasource="#dsn#" >
- SELECT *
- FROM renter
- WHERE renter_login = '#rental_renter_login#'
- </cfquery>
- <CFIF finddup.recordcount GT 0>
- <CFSET message = "Unfortunately, this username is already in use. Please choose another username.">
- <CFSET skip = "yes">
- </CFIF>
- </CFIF>
- <CFIF NOT IsDefined("skip")>
- <cfquery name="setcoid" datasource="#dsn#" >
- SELECT *
- FROM Craft
- WHERE craftid = '#craftid#' AND (craft_status = 'Active' OR craft_status IS NULL)
- </cfquery>
- <cfquery name="chksched" datasource="#dsn#" >
- SELECT *
- FROM Rental
- WHERE craftid = '#craftid#' AND rental_reservedate <= '#rental_reservedate#' AND rental_reservedate >= '#rental_reservedate#' AND rental_canceldate IS NULL AND rental_starttime = '#rental_starttime#'
- </cfquery>
- <CFIF chksched.recordcount GT 0>
- <CFSET message = "Unfortunately, this craft was reserved by another customer before you were able to complete your reservation. Please choose another time available.">
- <CFSET availcraft = "View Other Times">
- <CFELSE>
- <CFIF (IsDefined("cardid") AND Len(cardid) GT 0 AND trans_amount GT 0)>
- <cfinclude template="office/payment.cfm">
- <CFELSEIF Len(card_number) GT 0>
- <CFSET ccencrypt = "#Encrypt(card_number,variable.ekey)#">
- <cfquery name="dupcc" datasource="#DSN#" >
- SELECT *
- FROM RenterCC
- WHERE card_number = '#ccencrypt#'
- </cfquery>
- <CFIF dupcc.recordcount EQ 1>
- <CFSET form.cardid = "#dupcc.cardid#">
- <CFIF dupcc.card_exp NEQ form.card_exp>
- <cfupdate tablename="RenterCC" datasource="#DSN#" formfields="cardid,card_exp">
- </CFIF>
- <CFIF dupcc.card_cvv NEQ form.card_cvv>
- <CFSET form.card_cvv = "#Encrypt(card_cvv,variable.ekey)#">
- <cfupdate tablename="RenterCC" datasource="#DSN#" formfields="cardid,card_cvv">
- </CFIF>
- <cfinclude template="office/payment.cfm">
- <CFELSE>
- <CFIF Left(card_number,1) EQ 3>
- <CFSET form.card_type = "AmEx">
- <CFELSEIF Left(card_number,1) EQ 4>
- <CFSET form.card_type = "Visa">
- <CFELSEIF Left(card_number,1) EQ 5>
- <CFSET form.card_type = "MC">
- <CFELSEIF Left(card_number,1) EQ 6>
- <CFSET form.card_type = "Disc">
- </CFIF>
- <CFSET form.card_number = "#Encrypt(card_number,variable.ekey)#">
- <CFSET form.card_cvv = "#Encrypt(card_cvv,variable.ekey)#">
- <cfinsert tablename="RenterCC" datasource="#DSN#" formfields="renterid,card_number,card_exp,card_cvv,card_bill_address,card_bill_zip,card_type,reskey">
- <cfinsert tablename="RenterCCold" datasource="#DSN#" formfields="renterid,card_number,card_exp,card_cvv,card_bill_address,card_bill_zip,card_type,reskey">
- <cfquery name="lastccid" datasource="#DSN#" >
- SELECT @@identity AS CardID
- FROM RenterCC
- </cfquery>
- <CFSET cardid = "#lastccid.cardid#">
- <cfinclude template="office/payment.cfm">
- </CFIF>
- </CFIF>
- <CFIF (IsDefined("cardid") AND Len(cardid) GT 0 AND trans_amount GT 0) AND (IsDefined("trans_status") AND (trans_status EQ "Declined" OR trans_status EQ "Error"))>
- <CFELSE>
- <CFIF Len(renterid) EQ 0>
- <CFSET form.renter_first = "#rental_renter_first#">
- <CFSET form.renter_last = "#rental_renter_last#">
- <CFSET form.renter_email = "#rental_renter_email#">
- <CFSET form.renter_phone = "#rental_renter_phone#">
- <CFSET form.renter_address = "#rental_renter_address#">
- <CFSET form.renter_city = "#rental_renter_city#">
- <CFSET form.renter_state = "#rental_renter_state#">
- <CFSET form.renter_zip = "#rental_renter_zip#">
- <CFSET form.companyid = "#setcoid.companyid#">
- <CFSET form.renter_login = "#rental_renter_login#">
- <CFSET form.renter_password = "#rental_renter_password#">
- <cfinsert tablename="Renter" datasource="#DSN#" formfields="companyid,renter_first,renter_last,renter_email,renter_phone,renter_address,renter_city,renter_state,renter_zip,renter_login,renter_password">
- <cfquery name="lastrenterid" datasource="#DSN#" >
- SELECT @@identity AS RenterID
- FROM Renter
- </cfquery>
- <CFSET form.renterid = "#lastrenterid.renterid#">
- <CFSET sendlogin = "">
- <cfquery name="updatecard" datasource="#DSN#" >
- UPDATE RenterCC
- SET renterid = '#form.renterid#', reskey = ''
- WHERE reskey = '#reskey#'
- </cfquery>
- </CFIF>
- <CFSET form.companyid = "#setcoid.companyid#">
- <cfinsert tablename="Rental" datasource="#DSN#" formfields="companyid,renterid,craftid,locationid,rental_bookdate,rental_reservedate,rental_starttime,rental_endtime,rental_notes,rental_last_mod,rental_renter_first,rental_renter_last,rental_renter_email,rental_renter_phone,rental_renter_address,rental_renter_city,rental_renter_state,rental_renter_zip,rental_rate,rental_tframe">
- <cfquery name="lastid" datasource="#DSN#" >
- SELECT @@identity AS Rentalid
- FROM Rental
- </cfquery>
- <CFIF IsDefined("transid") AND Len(transid) GT 0>
- <CFSET form.transid = "#transid#">
- <CFSET form.rentalid = "#lastid.rentalid#">
- <cfupdate tablename="trans" datasource="#dsn#"
- formfields="transid,rentalid">
- </CFIF>
- <CFSET Rentalid = "#lastid.Rentalid#">
- <CFSET search = "">
- <CFSET modtype = "Update">
- <CFSET message = "Reservation has been added.">
- <CFSET sendconfirmation = "">
- <cfinclude template="email.cfm">
- >
- <cflocation url="confirmation.cfm?rentalid=#rentalid#&rental_reservedate=#rental_reservedate#&renterid=#renterid#&location_state=#location_state#&locationid=#locationid#">
- </CFIF>
- </CFIF>
- </CFIF>
- </CFIF>
- <cfform name="modify" method="post" action="#cgi.SCRIPT_NAME#?page=Reserve##reservetop" onsubmit="return ray.ajax()">
- <table width="750" border="0" align="center" cellspacing="0">
- <CFSET colname = "renterid,locationid,craftid,craft_type,location_state,rental_starttime,rental_endtime,rental_reservedate_opt,prevrenterid,rental_comp">
- <CFLOOP list="#colname#" index="c">
- <cfparam name="form.#c#" default="">
- </CFLOOP>
- <cfparam name="form.rental_reservedate" default="#DateFormat(Now(),"mm/dd/yyyy")#">
- <cfparam name="watercraftcount" default="">
- <CFIF DateFormat(form.rental_reservedate,"m/d/yy") LT DateFormat(Now(),"m/d/yy")>
- <CFSET message="The rental date can not be prior to today's date.">
- <CFSET form.rental_reservedate = "#DateFormat(Now(),"m/d/yy")#">
- </CFIF>
- <cfquery name="states" datasource="#dsn#" >
- SELECT DISTINCT location_state
- FROM Location
- WHERE companyid = '#session.companyid#'
- </cfquery>
- <cfquery name="selco" datasource="#dsn#" >
- SELECT *
- FROM Company
- WHERE companyid = '#session.companyid#'
- </cfquery>
- <cfquery name="locs" datasource="#dsn#" >
- SELECT *
- FROM Location
- WHERE locationid > 0 AND (location_status = 'Active' OR location_status IS NULL) AND companyid = '#session.companyid#' AND location_state = '#location_state#'
- </cfquery>
- <cfquery name="loc" datasource="#dsn#" >
- SELECT *
- FROM Location
- </cfquery>
- <cfquery name="ctypes" datasource="#dsn#" >
- SELECT DISTINCT craft_type
- FROM Craft
- WHERE companyid = '#session.companyid#' AND (craft_status = 'Active' OR craft_status IS NULL)
- </cfquery>
- <cfquery name="othercrafts" datasource="#dsn#" >
- SELECT *
- FROM Craft
- WHERE companyid = '#session.companyid#' AND (craft_status = 'Active' OR craft_status IS NULL)
- ORDER BY craft_type,craft_name
- </cfquery>
- <cfquery name="craft" datasource="#dsn#" >
- SELECT *
- FROM Craft
- WHERE <CFIF IsDefined("othercraftid")>craftid = '#othercraftid#'<CFELSE>craftid = '#craftid#'</CFIF> AND (craft_status = 'Active' OR craft_status IS NULL)
- </cfquery>
- <CFSET var.companyid = "#craft.companyid#">
- <CFLOOP from="9" to="16" index="t">
- <cfparam name="craftid#t#" default="">
- </CFLOOP>
- <CFIF Len(craftid) EQ 0>
- <CFLOOP from="9" to="16" index="t">
- <CFSET selcraftid = "#Evaluate("craftid" & t)#">
- <CFIF Len(selcraftid) GT 0>
- <CFSET craftid = "#selcraftid#">
- <CFSET rental_starttime = "#TimeFormat(CreateTime(t,00,00),"h:mm tt")#">
- </CFIF>
- </CFLOOP>
- <CFELSEIF IsDefined("availcraft")>
- <CFSET form.craftid = "">
- <CFSET form.rental_starttime = "">
- </CFIF>
- <!---
- EXCEED DIGITAL ADDED THIS ON 6-27-11
- Find out if the date is a premium date or not --->
- <cfquery name="holiday" datasource="#dsn#" >
- SELECT *
- FROM holiday
- WHERE companyid = '#session.companyid#'
- </cfquery>
- <CFSET dateIsAHoliday = "no">
- <CFSET holidaydates = "">
- <CFLOOP query="holiday">
- <CFLOOP list="#holiday_dates#" index="d">
- <CFSET holidaydates = ListAppend(holidaydates,d)>
- </CFLOOP>
- </CFLOOP>
- <CFIF ListContains(holidaydates,DateFormat(rental_reservedate,"mm/dd/yyyy"))>
- <CFSET dateIsAHoliday = "yes">
- </CFIF>
- <CFSET dateIsAWeekend = "no">
- <CFIF dayofweek(rental_reservedate) eq 7 or dayofweek(rental_reservedate) eq 1>
- <CFSET dateIsAWeekend = "yes">
- </CFIF>
- <CFIF dateIsAHoliday eq "yes" OR dateIsAWeekend eq "yes">
- <CFSET dateIsPremium = "yes">
- <CFELSE>
- <CFSET dateIsPremium = "no">
- </CFIF>
- <!--- End Find out if the date is a premium date or not --->
- <tr>
- <td valign="top">
- <table width="750" border="0" align="center" cellpadding="0" cellspacing="4" class="style3">
- <tr>
- <td align="center" class="style7">
- <a name="reservetop"></a>
- <b>
- <u>Make A Reservation with <cfoutput>#selco.company#</cfoutput></u>
- </b></td>
- </tr>
- <CFIF IsDefined("message")>
- <tr>
- <td align="center" valign="top" style="padding:6px; border:thin solid red; background-color:yellow" class="style2" colspan="2"><strong>#message#</strong></td>
- </tr>
- </CFIF>
- <CFIF IsDefined("trans_message")>
- <tr>
- <td align="center" valign="top" style="padding:6px; border:thin solid #trans_bg#" class="style2" colspan="2"><strong>#trans_message#</strong>
- <br>
- #trans_response#</td>
- </tr>
- </CFIF>
- <!--- start step 1 --->
- <cfquery name="getenabletoggle" datasource="#dsn#">
- select co_enable_reservations
- from company
- where companyid = 2
- </cfquery>
- <cfif cgi.remote_addr eq "100.37.136.208">
- <cfset getenabletoggle.co_enable_reservations = 1>
- </cfif>
- <cfif getenabletoggle.co_enable_reservations eq 1>
- <tr>
- <td align="left" class="style2">
- <table width="100%" border="0" cellpadding="4" cellspacing="0" class="style2" style="border:thin solid green">
- <tr>
- <td colspan="2" valign="top">
- <div align="left"><a href="##" data-tooltip="step1">How To Use This Section?</a></div>
- <strong><u><img src="/images/steps-01.jpg" width="44" height="46" align="absmiddle" />FIND YOUR WATERCRAFT</u></strong>
- </td>
- <td width="47%" align="right" valign="top">
- <CFIF locationid neq "">
- <!--- <strong><u><a href="##" data-tooltip="sticky" onclick="window.open('rentalrates.cfm?locationid=#locationid#','add element','width=500,height=600,location=no,menubar=no,status=no,titlebar=no,toolbar=no,scrollbars=yes')">Watercraft Rental Prices<img src="images/icon_price.png" alt="" border="0" align="absmiddle" /></a></u></strong>--->
- <strong><u><a href="##" data-tooltip="sticky">Watercraft Rental Prices<img src="images/icon_price.png" alt="" border="0" align="absmiddle" /></a></u></strong>
- </CFIF>
- </td>
- </tr>
- <tr>
- <td width="13%" valign="top"><strong>State:</strong></td>
- <td colspan="2" valign="top"><strong>
- <cfselect name="location_state" class="style3" id="location_state" onChange="javascript: submit();return ray.ajax()">
- <CFIF Len(location_state) GT 0>
- <option value="#location_state#">#ListGetAt(statename,ListFind(statecode,location_state))#</option>
- <CFELSE>
- <option value="">Select State...</option>
- </CFIF>
- <CFLOOP query="states">
- <CFIF location_state NEQ form.location_state>
- <option value="#location_state#">#ListGetAt(statename,ListFind(statecode,location_state))#</option>
- </CFIF>
- </CFLOOP>
- </cfselect>
- </strong></td>
- </tr>
- <tr>
- <td valign="top"><strong>Lake Location:</strong></td>
- <td colspan="2" valign="top"><strong>
- <cfselect name="locationid" class="style3" id="locationid" onChange="javascript: submit();return ray.ajax()">
- <CFIF Len(locationid) EQ 0>
- <option value="">Select Location...</option>
- </CFIF>
- <CFLOOP query="locs">
- <CFIF locationid NEQ form.locationid>
- <option value="#locationid#">#location_name#</option>
- <CFELSE>
- <option value="#locationid#" SELECTED>#loc.location_name#</option>
- </CFIF>
- </CFLOOP>
- </cfselect>
- </strong></td>
- </tr>
- <tr>
- <td valign="top"><strong>Rental Date:</strong></td>
- <td colspan="2" valign="top">
- <cfinput type="text" name="rental_reservedate" class="one" style="font-size:14px" id="rental_reservedate" value="#form.rental_reservedate#" size="15" onChange="javascript: submit();return ray.ajax()">
- <cfinput type="submit" name="seldate" class="style3" value="Select">
- <span style="padding:4px; color:red"><--- BE SURE TO CLICK "SELECT" AFTER CHOOSING A DATE.</span></td>
- </tr>
- <CFIF DateFormat(CreateODBCDate(form.rental_reservedate),"m/d/yy") GTE DateFormat(CreateODBCDate(Now()),"m/d/yy")>
- <tr>
- <td valign="top"><strong>Want To Rent:</strong></td>
- <td colspan="2" style="color:red"><strong>
- <cfselect name="craft_type" class="style3" id="craft_type" onChange="javascript: submit();return ray.ajax()">
- <CFIF Len(craft_type) GT 0>
- <option value="">ANY</option>
- <option value="#craft_type#" selected>#craft_type#</option>
- <CFELSE>
- <option value="">Select Type of Craft...</option>
- </CFIF>
- <CFLOOP query="ctypes">
- <CFIF craft_type NEQ form.craft_type>
- <option value="#craft_type#">#craft_type#</option>
- </CFIF>
- </CFLOOP>
- </cfselect>
- </strong>
- <strong> Pontoon boats and Ski boats are not available for 2-hour rentals on weekends and holidays.</strong>
- </td>
- </tr>
- <CFIF Len(location_state) EQ 0 OR Len(locationid) EQ 0>
- <tr>
- <td valign="top"> </td>
- <td colspan="2" valign="top" style="color:red">State, Location, and Date ABOVE must Be selected prior to viewing available watercraft.</td>
- </tr>
- <CFSET statetime = "#curtime#">
- <CFELSE>
- <cfquery name="state" datasource="#dsn#" >
- SELECT *
- FROM state
- WHERE state_abrev = '#location_state#'
- </cfquery>
- <CFIF state.state_timezone EQ "HST">
- <CFSET statetime = TimeFormat(DateAdd("h",-5,curtime),"h:mm tt")>
- <CFELSEIF state.state_timezone EQ "AST">
- <CFSET statetime = TimeFormat(DateAdd("h",-4,curtime),"h:mm tt")>
- <CFELSEIF state.state_timezone EQ "PST">
- <CFSET statetime = TimeFormat(DateAdd("h",-3,curtime),"h:mm tt")>
- <CFELSEIF state.state_timezone EQ "MST">
- <CFSET statetime = TimeFormat(DateAdd("h",-2,curtime),"h:mm tt")>
- <CFELSEIF state.state_timezone EQ "CST">
- <CFSET statetime = TimeFormat(DateAdd("h",-1,curtime),"h:mm tt")>
- <CFELSEIF state.state_timezone EQ "EST">
- <CFSET statetime = "#curtime#">
- </CFIF>
- <tr>
- <td valign="top"><strong>Watercraft: </strong>
- <br></td>
- <td colspan="2" valign="top">
- <CFIF Len(craftid) GT 0>
- <cfquery name="craft" datasource="#dsn#" >
- SELECT *
- FROM Craft
- WHERE companyid = '#session.companyid#' AND craftid = '#craftid#' AND (craft_status = 'Active' OR craft_status IS NULL)
- </cfquery>
- <CFSET var.companyid = "#craft.companyid#">
- #UCase(craft.craft_type)#: #craft.craft_name#
- <cfinput type="hidden" name="craftid" id="craftid" value="#craftid#" />
- <cfinput type="hidden" name="rental_starttime" id="rental_starttime" value="#rental_starttime#" />
- <cfquery name="sched" datasource="#dsn#" >
- SELECT *
- FROM Rental r
- LEFT JOIN craft c
- ON r.craftid = c.craftid
- WHERE r.companyid = '#session.companyid#' AND r.craftid = '#craft.craftid#' AND (r.rental_reservedate >= #CreateODBCDateTime(rental_reservedate)# AND r.rental_reservedate <= #CreateODBCDateTime(rental_reservedate)#) AND rental_canceldate IS NULL
- ORDER BY r.rental_starttime
- </cfquery>
- <CFSET startschedtime = "">
- <CFSET endschedtime = "">
- <CFLOOP query="sched">
- <CFLOOP from="#TimeFormat(rental_starttime,"H")#" to="#TimeFormat(DateAdd("H",-1,rental_endtime),"H")#" index="tt">
- <CFSET startschedtime = ListAppend(startschedtime,tt)>
- </CFLOOP>
- <CFLOOP from="#TimeFormat(DateAdd("H",1,rental_starttime),"H")#" to="#TimeFormat(rental_endtime,"H")#" index="ttt">
- <CFSET endschedtime = ListAppend(endschedtime,ttt)>
- </CFLOOP>
- </CFLOOP>
- <CFSET notavail = "">
- <CFIF Len(rental_reservedate_opt) GT 0>
- <CFSET form.rental_reservedate = "#rental_reservedate_opt#">
- </CFIF>
- <CFIF ListContains(startschedtime,t)>
- <CFSET startslotavail = "Reserved">
- <CFELSE>
- <CFSET startslotavail = "Open">
- </CFIF>
- <CFSET endtimeslot = "#TimeFormat(CreateTime(t,00,00),"h:mm tt")#">
- <CFIF ListContains(endschedtime,t)>
- <CFSET endslotavail = "Reserved">
- <CFELSE>
- <CFSET endslotavail = "Open">
- </CFIF>
- <cfinput type="submit" name="availcraft" class="style3" id="availcraft" value="View Other Times">
- <CFELSE>
- <table width="100%" border="0" cellpadding="2" cellspacing="0" class="style2">
- <tr>
- <td width="10%"><strong>Start Time</strong></td>
- <td width="90%"><strong>Watercraft Available</strong></td>
- </tr>
- <CFSET watercraftcount = 0>
- <CFLOOP from="9" to="16" index="t">
- <CFSET starttimeslot = "#TimeFormat(CreateTime(t,00,00),"h:mm tt")#">
- <!--- ---><CFIF (CreateODBCDate(Now()) LT CreateODBCDate(rental_reservedate)) OR (DateFormat(Now(),"yymmdd") EQ DateFormat(rental_reservedate,"yymmdd") AND TimeFormat(statetime) LTE TimeFormat(starttimeslot))>
- <tr>
- <td valign="top">#starttimeslot#</td>
- <td valign="top">
- <cfquery name="crafts" datasource="#dsn#" >
- SELECT *
- FROM Craft
- WHERE companyid = '#session.companyid#' AND locationid = '#locationid#' <CFIF Len(craft_type) GT 0>AND craft_type = '#craft_type#'</CFIF> AND (craft_status = 'Active' OR craft_status IS NULL)
- ORDER BY craft_type,craft_name
- </cfquery>
- <cfselect name="craftid#t#" class="style2" id="craftid-#t#" onChange="javascript: submit();return ray.ajax()">
- <option value="">Choose...</option>
- <CFLOOP query="crafts">
- <cfquery name="sched" datasource="#dsn#" >
- SELECT *
- FROM Rental r
- LEFT JOIN craft c
- ON r.craftid = c.craftid
- WHERE r.companyid = '#session.companyid#' AND r.craftid = '#craftid#' AND (r.rental_reservedate >= #CreateODBCDateTime(rental_reservedate)# AND r.rental_reservedate <= #CreateODBCDateTime(rental_reservedate)#) AND rental_canceldate IS NULL
- ORDER BY r.rental_starttime
- </cfquery>
- <CFSET startschedtime = "">
- <CFSET endschedtime = "">
- <CFLOOP query="sched">
- <CFLOOP from="#TimeFormat(rental_starttime,"H")#" to="#TimeFormat(DateAdd("H",-1,rental_endtime),"H")#" index="tt">
- <CFSET startschedtime = ListAppend(startschedtime,tt)>
- </CFLOOP>
- <CFLOOP from="#TimeFormat(DateAdd("H",1,rental_starttime),"H")#" to="#TimeFormat(rental_endtime,"H")#" index="ttt">
- <CFSET endschedtime = ListAppend(endschedtime,ttt)>
- </CFLOOP>
- </CFLOOP>
- <CFSET notavail = "">
- <CFIF Len(rental_reservedate_opt) GT 0>
- <CFSET form.rental_reservedate = "#rental_reservedate_opt#">
- </CFIF>
- <CFIF ListContains(startschedtime,t)>
- <CFSET startslotavail = "Reserved">
- <CFELSE>
- <CFSET startslotavail = "Open">
- </CFIF>
- <CFSET endtimeslot = "#TimeFormat(CreateTime(t,00,00),"h:mm tt")#">
- <CFIF ListContains(endschedtime,t)>
- <CFSET endslotavail = "Reserved">
- <CFELSE>
- <CFSET endslotavail = "Open">
- </CFIF>
- <!--- This extra code is to fix the double bookings on all day rentals overlapping with 2 hour rentals --->
- <!---
- EXCEED DIGITAL ADDED THIS ON 6-27-11
- START HARD CODED EXCEPTION FOR PONTOON RENTAL TIMES MINIMUM 4 HOURS ON WEEKENDS AND HOLIDAYS --->
- <!--- This was added to hard code the pontoons to not be available after 2:00 PM since the feature doesn't exist in the backend --->
- <CFIF crafts.craft_type does not contain "Pontoon Boat">
- <CFIF startslotavail NEQ "Reserved" AND starttimeslot NEQ "5:00 pm" AND starttimeslot NEQ "6:00 pm" AND NOT ListContains(endschedtime,TimeFormat(starttimeslot,"H")+2)>
- <CFSET watercraftcount = watercraftcount + 1>
- <option value="#crafts.craftid#">#UCase(crafts.craft_type)#: #crafts.craft_name# (###crafts.craft_reg#)</option>
- </CFIF>
- <CFELSE>
- <CFIF dateIsPremium eq "yes" AND t LTE 14>
- <!--- This is where the "4" is hard coded for pontoon timeslots on the weekend or holidays so that they don't show up in the start times--->
- <CFIF startslotavail NEQ "Reserved" AND starttimeslot NEQ "5:00 pm" AND starttimeslot NEQ "6:00 pm" AND NOT ListContains(endschedtime,TimeFormat(starttimeslot,"H")+4)>
- <CFSET watercraftcount = watercraftcount + 1>
- <option value="#crafts.craftid#">#UCase(crafts.craft_type)#: #crafts.craft_name# (###crafts.craft_reg#)</option>
- </CFIF>
- <CFELSEIF dateIsPremium eq "no">
- <CFIF startslotavail NEQ "Reserved" AND starttimeslot NEQ "5:00 pm" AND starttimeslot NEQ "6:00 pm" AND NOT ListContains(endschedtime,TimeFormat(starttimeslot,"H")+2)>
- <CFSET watercraftcount = watercraftcount + 1>
- <option value="#crafts.craftid#">#UCase(crafts.craft_type)#: #crafts.craft_name# (###crafts.craft_reg#)</option>
- </CFIF>
- </CFIF>
- </CFIF>
- <!--- END HARD CODED EXCEPTION FOR PONTOON RENTAL TIMES MINIMUM 4 HOURS ON WEEKENDS AND HOLIDAYS --->
- </CFLOOP>
- </cfselect>
- </td>
- </tr>
- <!------> </CFIF>
- </CFLOOP>
- </table>
- </CFIF>
- </td>
- </tr>
- </CFIF>
- <CFIF watercraftcount EQ 0 AND Len(craftid) EQ 0>
- <tr>
- <td valign="top"> </td>
- <td colspan="2" valign="top" style="color:red">No watercraft is available. Try changing your date.</td>
- </tr>
- </CFIF>
- <CFIF Len(craftid) GT 0>
- <tr>
- <td valign="top"><span style="padding:4px"><strong>Available Times:</strong></span></td>
- <td width="40%" valign="top"><table width="94%" border="0" align="center" class="style2">
- <tr>
- <td align="center"><strong>Start Time</strong></td>
- <td align="center"><strong style="color:RED">End Time</strong></td>
- </tr>
- <tr>
- <td align="center">#rental_starttime#
- </td>
- <td align="center">
- <CFIF Len(rental_starttime) GT 0>
- <cfselect name="rental_endtime" class="style3" id="rental_endtime" onChange="javascript: submit();return ray.ajax()">
- <CFIF Len(rental_endtime) EQ 0>
- <option value="" selected>Select...</option>
- </CFIF>
- <CFLOOP from="9" to="18" index="t">
- <CFSET starttimeslot = "#TimeFormat(CreateTime(t,00,00),"h:mm tt")#">
- <CFIF ListContains(startschedtime,t)>
- <CFSET startslotavail = "Reserved">
- <CFELSE>
- <CFSET startslotavail = "Open">
- </CFIF>
- <CFSET endtimeslot = "#TimeFormat(CreateTime(t,00,00),"h:mm tt")#">
- <CFIF ListContains(endschedtime,t)>
- <CFSET endslotavail = "Reserved">
- <CFELSE>
- <CFSET endslotavail = "Open">
- </CFIF>
- <!--- This extra code is to fix the double bookings on all day rentals overlapping with 2 hour rentals only that start at 11,12,1,2 - RG 7-6-15 --->
- <cfif sched.recordcount GT 0>
- <cfif sched.craft_reg eq craft.craft_reg>
- <CFIF (TimeFormat(rental_starttime,"H")-TimeFormat(endtimeslot,"H")) MOD 8 IS 0>
- <CFSET endslotavail = "Reserved">
- </CFIF>
- </cfif>
- </cfif>
- <!--- end extra code to fix double bookings --->
- <CFIF endslotavail NEQ "Reserved" AND TimeFormat(endtimeslot,"H") GTE TimeFormat(rental_starttime,"H")+2
- AND
- (
- (
- (
- (TimeFormat(rental_starttime,"H")-TimeFormat(endtimeslot,"H"))
- MOD 2 IS 0
- )
- AND
- (
- (TimeFormat(rental_starttime,"H")-TimeFormat(endtimeslot,"H"))
- MOD 6 IS NOT 0
- )
- ) OR (TimeFormat(rental_starttime,"H") EQ 9 AND (TimeFormat(rental_starttime,"H")-TimeFormat(endtimeslot,"H"))
- MOD 9 IS 0)
- )>
- <CFIF (TimeFormat(rental_starttime,"H")-TimeFormat(endtimeslot,"H")) MOD 9 IS 0>
- <CFSET tframe = "All Day">
- <CFELSEIF (TimeFormat(rental_starttime,"H")-TimeFormat(endtimeslot,"H")) MOD 8 IS 0>
- <CFSET tframe = "8hr">
- <CFELSEIF (TimeFormat(rental_starttime,"H")-TimeFormat(endtimeslot,"H")) MOD 4 IS 0>
- <CFSET tframe = "4hr">
- <CFELSEIF (TimeFormat(rental_starttime,"H")-TimeFormat(endtimeslot,"H")) MOD 2 IS 0>
- <CFSET tframe = "2hr">
- </CFIF>
- <CFIF tframe NEQ "All Day">
- <!---
- EXCEED DIGITAL ADDED THIS ON 6-27-11
- This is added to hard code the weekend for pontoon boats only 4 hours. No 2 hour option --->
- <CFIF (craft.craft_type contains "Pontoon Boat" OR craft.craft_type contains "Ski Boat") and dateIsPremium eq "yes" and tframe eq "2hr">
- <!--- Do nothing --->
- <CFELSE>
- <option value="#endtimeslot#" <cfif rental_endtime eq endtimeslot>selected="selected"</cfif>>#endtimeslot# (#tframe#)</option>
- </CFIF>
- </CFIF>
- </CFIF>
- </CFLOOP>
- </cfselect>
- </CFIF>
- </td>
- </tr>
- </table></td>
- <td valign="top"> </td>
- </tr>
- </CFIF>
- </CFIF>
- </table></td>
- </tr>
- <tr>
- <td align="left" class="style2"><hr noshade size="1"></td>
- </tr>
- <CFELSE>
- <tr>
- <td align="left" class="style2">
- <table width="100%" border="0" cellpadding="4" cellspacing="0" class="style2" style="border:thin solid green">
- <tr>
- <td colspan="2" valign="top">
- <div align="left"><a href="##" data-tooltip="step1">How To Use This Section?</a></div>
- <strong><u><img src="/images/steps-01.jpg" width="44" height="46" align="absmiddle" />FIND YOUR WATERCRAFT</u></strong>
- </td>
- <td align="right" valign="top">
- </td>
- </tr>
- <tr>
- <td><h1 style="color:red;">Due to overwhelming demand, please call 877-312-7195 to find out availability</h1></td>
- </tr>
- </table>
- </cfif>
- <!--- end step 1 --->
- <CFIF Len(craftid) GT 0 AND Len(rental_reservedate) GT 0 AND Len(rental_endtime) GT 0>
- <CFIF (TimeFormat(rental_starttime,"H")-TimeFormat(rental_endtime,"H")) MOD 9 IS 0>
- <CFSET tframe = "All Day">
- <CFELSEIF (TimeFormat(rental_starttime,"H")-TimeFormat(rental_endtime,"H")) MOD 8 IS 0>
- <CFSET tframe = "8">
- <CFELSEIF (TimeFormat(rental_starttime,"H")-TimeFormat(rental_endtime,"H")) MOD 4 IS 0>
- <CFSET tframe = "4">
- <CFELSEIF (TimeFormat(rental_starttime,"H")-TimeFormat(rental_endtime,"H")) MOD 2 IS 0>
- <CFSET tframe = "2">
- </CFIF>
- <cfquery name="rate" datasource="#dsn#" >
- SELECT *
- FROM Rate
- WHERE craftid = '#craftid#' AND rate_hour = '#tframe#'
- </cfquery>
- <cfquery name="holiday" datasource="#dsn#" >
- SELECT *
- FROM holiday
- WHERE companyid = '#craft.companyid#'
- </cfquery>
- <CFSET holidaydates = "">
- <CFLOOP query="holiday">
- <CFLOOP list="#holiday_dates#" index="d">
- <CFSET holidaydates = ListAppend(holidaydates,d)>
- </CFLOOP>
- </CFLOOP>
- <CFSET rentalday = DayofWeek(rental_reservedate)>
- <CFIF ListContains(holidaydates,DateFormat(rental_reservedate,"mm/dd/yyyy")) AND Len(rate.rate_holiday) GT 0>
- <CFSET rental_rate = rate.rate_holiday>
- <CFELSEIF rentalday EQ 7 or rentalday EQ 1>
- <CFSET rental_rate = rate.rate_weekend>
- <CFELSE>
- <CFSET rental_rate = rate.rate_weekday>
- </CFIF>
- <cfinput type="hidden" name="rental_rate" id="rental_rate" value="#rental_rate#" />
- <cfinput type="hidden" name="rental_tframe" id="rental_tframe" value="#tframe#" />
- <CFELSE>
- <CFSET rental_rate = "">
- <CFSET tframe = "">
- </CFIF>
- <cfquery name="craft" datasource="#dsn#" >
- SELECT * FROM Craft WHERE craftid = '#craftid#' AND (craft_status = 'Active' OR craft_status IS NULL)
- </cfquery>
- <cfquery name="loc" datasource="#dsn#" >
- SELECT * FROM Location WHERE locationid = '#locationid#'
- </cfquery>
- <cfquery name="rtr" datasource="#dsn#" >
- SELECT * FROM Renter WHERE <CFIF IsDefined("form.renter_login")>renter_login = '#renter_login#' AND renter_password = '#renter_password#'<CFELSEIF Len(renterid) GT 0>renterid = '#renterid#'<CFELSE>renterid = ''</CFIF>
- </cfquery>
- <cfquery name="rentercard" datasource="#dsn#" >
- SELECT * FROM RenterCC WHERE renterid = '#renterid#' AND card_default = 'Yes'
- </cfquery>
- <cfparam name="form.rental_notes" default="">
- <CFIF (IsDefined("renterid") AND Len(renterid) GT 0) OR rtr.recordcount EQ 1>
- <CFSET form.rental_renter_first = "#rtr.renter_first#">
- <CFSET form.rental_renter_last = "#rtr.renter_last#">
- <CFSET form.rental_renter_email = "#rtr.renter_email#">
- <CFSET form.rental_renter_phone = "#rtr.renter_phone#">
- <CFSET form.rental_renter_address = "#rtr.renter_address#">
- <CFSET form.rental_renter_city = "#rtr.renter_city#">
- <CFSET form.rental_renter_state = "#rtr.renter_state#">
- <CFSET form.rental_renter_zip = "#rtr.renter_zip#">
- <CFSET form.cardid = "">
- <CFSET form.renterid = "#rtr.renterid#">
- <CFELSE>
- <cfparam name="form.rental_renter_first" default="">
- <cfparam name="form.rental_renter_last" default="">
- <cfparam name="form.rental_renter_email" default="">
- <cfparam name="form.rental_renter_phone" default="">
- <cfparam name="form.rental_renter_address" default="">
- <cfparam name="form.rental_renter_city" default="">
- <cfparam name="form.rental_renter_state" default="">
- <cfparam name="form.rental_renter_zip" default="">
- <cfparam name="form.cardid" default="#rentercard.cardid#">
- </CFIF>
- <cfparam name="form.trans_amount" default="50.00">
- <cfparam name="form.renter_login" default="">
- <cfparam name="form.renter_password" default="">
- <cfparam name="form.rental_renter_login" default="">
- <cfparam name="form.rental_renter_password" default="">
- <cfparam name="form.card_number" default="">
- <cfparam name="form.card_exp" default="">
- <cfparam name="form.card_cvv" default="">
- <cfquery name="cards" datasource="#dsn#" >
- SELECT * FROM RenterCC WHERE <CFIF Len(renterid) GT 0>renterid = '#renterid#'<CFELSE>reskey = '#reskey#'</CFIF>
- </cfquery>
- <cfquery name="cc" datasource="#dsn#" >
- SELECT * FROM RenterCC WHERE cardid = '#cardid#'
- </cfquery>
- <tr>
- <td align="left" class="style2">
- <table width="100%" border="0" cellpadding="4" cellspacing="0" class="style2" style="td {padding:8px}; border:thin solid blue">
- <tr>
- <td style="padding:4px">
- <div align="left"><a href="##" data-tooltip="step2">How To Use This Section?</a></div>
- <strong>
- <u><strong><u><strong><u><img src="images/steps-02.jpg" alt="" width="44" height="46" align="absmiddle" /></u></strong></u></strong>CUSTOMER DETAILS</u>
- </strong></td>
- <td colspan="2" align="right" style="padding:4px"><span style="color:red"><em>*</em></span><em> Required Field</em></td>
- </tr>
- <CFIF Len(renterid) EQ 0 AND NOT IsDefined("NewCust")>
- <tr>
- <td colspan="3" align="center" style="padding:4px"><strong>Returning Customer:</strong></td>
- </tr>
- <CFIF Len(renter_login) GT 0 AND rtr.recordcount EQ 0>
- <tr>
- <td colspan="3" align="center" style="padding:4px; color:red">Username/Password is incorrect. Please try again.</td>
- </tr>
- </CFIF>
- <tr>
- <td colspan="3" align="center" style="padding:4px">Username:
- <cfinput type="text" name="renter_login" class="style3" id="renter_login" value="#form.renter_login#" size="15">
- Password:
- <cfinput type="password" name="renter_password" class="style3" id="renter_password" value="#form.renter_password#" size="15">
- <cfinput type="submit" name="Login" class="style3" value="Login" onClick="return ray.ajax()"></td>
- </tr>
- <tr>
- <td colspan="3" align="center" style="padding:4px"><em><a href="##" onclick="window.open('servicewindow.cfm?service=Forgot','addelement','width=350,height=200,location=no,menubar=no,status=no,titlebar=no,toolbar=no')">Forgot Username or Password?</a></em></td>
- </tr>
- <tr>
- <td colspan="3" style="padding:4px"><hr noshade size="1"></td>
- </tr>
- <tr>
- <td colspan="3" align="center" style="padding:4px"><cfinput type="submit" name="NewCust" class="style3" value="I'm A New Customer"></td>
- </tr>
- <tr>
- <td colspan="3" style="padding:4px"><hr noshade size="1"></td>
- </tr>
- </CFIF>
- <CFIF Len(renterid) GT 0 OR IsDefined("NewCust")>
- <tr>
- <td colspan="3" style="padding:4px"><b>Renter Name:</b><span style="color:red">*</span></td>
- </tr>
- <tr>
- <td colspan="3" style="padding:4px"><cfinput type="text" name="rental_renter_first" message="Please enter a first name." required="yes" class="style3" id="rental_renter_first2" value="#form.rental_renter_first#" size="15">
- <cfinput type="text" name="rental_renter_last" message="Please enter a last name." required="yes" class="style3" id="rental_renter_last2" value="#form.rental_renter_last#" size="25"></td>
- </tr>
- <tr>
- <td style="padding:4px"><b>Address:</b><span style="color:red">*</span></td>
- <td colspan="2" style="padding:4px"><b>City / State / Zip:</b><span style="color:red">*</span></td>
- </tr>
- <tr>
- <td style="padding:4px"><b>
- <cfinput type="text" name="rental_renter_address" message="Please enter an address." required="yes" class="style3" id="rental_renter_address2" value="#form.rental_renter_address#" size="35">
- </b></td>
- <td colspan="2" style="padding:4px"><b>
- <cfinput type="text" name="rental_renter_city" message="Please enter a city." required="yes" class="style3" id="rental_renter_city2" value="#form.rental_renter_city#" size="18">
- ,
- <cfinput type="text" name="rental_renter_state" message="Please enter a state." required="yes" class="style3" id="rental_renter_state2" value="#form.rental_renter_state#" size="4">
- <cfinput type="text" name="rental_renter_zip" message="Please enter a zipcode." required="yes" class="style3" id="rental_renter_zip2" value="#form.rental_renter_zip#" size="10">
- </b></td>
- </tr>
- <tr>
- <td style="padding:4px"><b>Email:</b><span style="color:red">*</span></td>
- <td colspan="2" style="padding:4px"><b>Confirm Email:</b><span style="color:red">*</span></td>
- </tr>
- <tr>
- <td style="padding:4px"><b>
- <cfinput type="text" name="rental_renter_email" message="Please enter a valid email address." validate="email" class="style3" id="rental_renter_email" value="#form.rental_renter_email#" size="50">
- </b></td>
- <td colspan="2" style="padding:4px"><b>
- <cfinput type="text" name="rental_renter_confirm_email" message="Please enter a valid email address." validate="email" class="style3" id="rental_renter_confirm_email" value="#form.rental_renter_email#" size="50">
- </b></td>
- </tr>
- <tr>
- <td colspan="3" style="padding:4px"><b>Phone:</b><span style="color:red">*</span></td>
- </tr>
- <tr>
- <td colspan="3" style="padding:4px"><cfinput type="text" name="rental_renter_phone" message="Please enter a valid customer phone." validate="telephone" required="yes" class="style3" id="rental_renter_phone" value="#form.rental_renter_phone#" size="20"></td>
- </tr>
- <CFIF Len(renterid) EQ 0>
- <tr>
- <td colspan="3" style="padding:4px"><strong>Create Login Information:</strong><span style="color:red">*</span></td>
- </tr>
- <tr>
- <td colspan="3" style="padding:4px">Username:
- <cfinput type="text" name="rental_renter_login" class="style3" id="rental_renter_login" value="#form.rental_renter_login#" size="25" maxlength="25">
- Password:
- <cfinput type="text" name="rental_renter_password" class="style3" id="rental_renter_password" value="#form.rental_renter_password#" size="15" maxlength="10"></td>
- </tr>
- </CFIF>
- <CFIF NOT IsDefined("NewCust") AND cards.recordcount GT 0>
- <tr>
- <td colspan="3" style="padding:4px"><strong>Select Credit Card To Bill:</strong></td>
- </tr>
- <tr>
- <td colspan="3" style="padding:4px"><cfselect name="cardid" class="style3">
- <CFIF Len(cc.card_number) GT 0>
- <option value="#cc.cardid#" selected>#cc.card_type#: *-#Right(Decrypt(cc.card_number,variable.ekey),4)# (Exp. #cc.card_exp#)</option>
- <CFELSE>
- <option value="" selected>Select One...</option>
- </CFIF>
- <CFLOOP query="cards">
- <CFIF cc.cardid NEQ cardid>
- <option value="#cardid#">#card_type#: *-#Right(Decrypt(card_number,variable.ekey),4)# (Exp. #card_exp#)</option>
- </CFIF>
- </CFLOOP>
- </cfselect></td>
- </tr>
- </CFIF>
- <tr>
- <td colspan="3" style="padding:4px"><hr noshade size="1"></td>
- </tr>
- <tr>
- <td colspan="3" style="padding:4px"><strong>Add New Credit Card Information:</strong></td>
- </tr>
- <tr>
- <td width="43%"><strong>Credit Card Number:</strong></td>
- <td width="28%"><strong>Exp. Date: (MMYY)</strong></td>
- <td width="29%"><strong>CVV Code:</strong></td>
- </tr>
- <tr>
- <td><strong>
- <cfinput type="text" name="card_number" class="style3" id="card_number" value="#form.card_number#" size="25" validate="creditcard" message="The credit card number entered is not valid.">
- </strong></td>
- <td><strong>
- <!--- <cfinput type="text" name="card_exp" class="style3" id="card_exp" value="#form.card_exp#" size="10" validate="regular_expression" pattern="^((0[1-9])|(1[0-2]))[\/\.\-]*((1[1-9]))$" message="Your expiration date is not valid. Please verify and correct."> --->
- <cfinput type="text" name="card_exp" class="style3" id="card_exp" value="#form.card_exp#" size="10">
- </strong></td>
- <td><strong>
- <cfinput type="text" name="card_cvv" class="style3" id="card_cvv" value="#form.card_cvv#" size="5" validate="regular_expression" pattern="^([0-9]{3,4})$" message="Your security code must be 3 digits for MC,Visa,Disc - OR - 4 digits for AmEx.">
- </strong></td>
- </tr>
- <tr>
- <td colspan="3"> </td>
- </tr>
- </CFIF>
- </table>
- </td>
- </tr>
- <tr>
- <td align="left" class="style2"><hr noshade size="1"></td>
- </tr>
- <tr>
- <td align="left" class="style2">
- <table width="100%" border="0" cellpadding="4" cellspacing="0" class="style2" style="border:thin solid red">
- <tr>
- <td colspan="2" style="padding:4px">
- <div align="left"><a href="##" data-tooltip="step3">How To Use This Section?</a></div>
- <strong><u><img src="images/steps-03.jpg" alt="" width="44" height="46" align="absmiddle" />RESERVATION CONFIRMATION DETAILS</u></strong></td>
- </tr>
- <tr>
- <td width="34%" style="padding:4px"><b>Reservation Date:</b></td>
- <td width="66%" style="padding:4px"><b>Reservation Time:</b></td>
- </tr>
- <tr>
- <td style="padding:4px">#DateFormat(Rental_reservedate,"m/d/yy")#</td>
- <td style="padding:4px">#rental_starttime# to #rental_endtime#</td>
- </tr>
- <tr>
- <td colspan="2" style="padding:4px"><b>Location:</b></td>
- </tr>
- <tr>
- <td colspan="2" style="padding:4px"> #loc.location_name#<span style="padding:4px; color:red">
- <cfinput type="hidden" name="var.location_name" id="var.location_name" value="#loc.location_name#">
- <cfinput type="hidden" name="var.location_address1" id="var.location_address1" value="#loc.location_address1#">
- <cfinput type="hidden" name="var.location_address2" id="var.location_address2" value="#loc.location_address2#">
- <cfinput type="hidden" name="var.location_city" id="var.location_city" value="#loc.location_city#">
- <cfinput type="hidden" name="var.location_state" id="var.location_state" value="#loc.location_state#">
- <cfinput type="hidden" name="var.location_zip" id="var.location_zip" value="#loc.location_zip#">
- </td>
- </tr>
- <tr>
- <td colspan="2" style="padding:4px"><b>Equipment To Rent:</b></td>
- </tr>
- <tr>
- <td colspan="2" style="padding:4px">#craft.craft_name#
- <cfinput type="hidden" name="var.craft_name" id="var.craft_name" value="#craft.craft_name#">
- <cfinput type="hidden" name="var.craft_type" id="var.craft_type" value="#craft.craft_type#"></td>
- </tr>
- <tr>
- <td colspan="2" style="padding:4px"><strong>Date Booked:</strong> #DateFormat(Now(),"m/d/yy")#</td>
- </tr>
- <tr>
- <td colspan="2" style="padding:4px; color:red"><strong>Total Rental Rate:</strong> #rental_rate# (#tframe# Hours)
- <cfinput type="hidden" name="var.tframe" id="var.tframe" value="#tframe#"></td>
- </tr>
- <tr>
- <td colspan="2" style="padding:4px"><strong> Deposit Amount To Charge:</strong></td>
- </tr>
- <tr>
- <td colspan="2" style="padding:4px"><b>$</b>#form.trans_amount#
- <cfinput type="hidden" name="trans_amount" class="style2" id="trans_amount" value="#form.trans_amount#" size="10" readonly="true">
- <cfinput type="hidden" name="trans_type" id="trans_type" value="AUTH_CAPTURE">
- </b></td>
- </tr>
- <tr>
- <td colspan="2" style="padding:4px"><b>Reservation Notes:</b></td>
- </tr>
- <tr>
- <td colspan="2" style="padding:4px"><cftextarea name="rental_notes" cols="60" rows="3" wrap="soft" class="style3">#form.rental_notes#</cftextarea></td>
- </tr>
- </table>
- </td>
- </tr>
- <tr>
- <td align="left" class="style2"><hr noshade size="1"></td>
- </tr>
- <tr valign="top">
- <td align="center">
- <br><img src="images/steps-04.jpg" width="45" height="46" align="absmiddle" />
- <br>
- <cfinput type="submit" name="Modify" class="style8" style="color:blue" value="FINALIZE RENTAL">
- </td>
- </tr>
- <tr valign="top">
- <td align="left">
- <cfinput type="hidden" name="companyid" id="companyid" value="#session.companyid#">
- <cfinput type="hidden" name="var.co_conf_email" id="var.co_conf_email" value="#selco.co_conf_email#">
- <cfinput type="hidden" name="var.company" id="var.company" value="#selco.company#">
- <cfinput type="hidden" name="Rental_last_mod" id="Rental_last_mod" value="#CreateODBCDateTime(Now())#">
- <cfinput type="hidden" name="Rental_bookdate" id="Rental_bookdate" value="#CreateODBCDateTime(Now())#">
- <cfinput type="hidden" name="reskey" id="reskey" value="#reskey#">
- <CFIF Len(renterid) GT 0>
- <cfinput type="hidden" name="renterid" id="renterid" value="#renterid#">
- <CFELSE>
- <cfinput type="hidden" name="renterid" id="renterid" value="">
- </CFIF>
- <CFIF IsDefined("NewCust") AND Len(renterid) EQ 0>
- <cfinput type="hidden" name="NewCust" id="NewCust" value="">
- </CFIF>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- </CFFORM>
- <CFIF isdefined('crafts')>
- <cfinclude template="rentalrates.cfm">
- </CFIF>
- </cfoutput>
Add Comment
Please, Sign In to add comment