Page 1 of 1

Is there any way to do this?

Posted: Fri Nov 14, 2008 11:15 pm
by MarcAstr0
Hello
I've found that at the hostel I'm working at it is much easier for our receptionists to enter reservation dates as 'start date' and 'number of nights'. For example, by default, in the reservation form php-residence has:

From <select date> to <select date>

How can I modify prenota.php to have the form like this?

Arrival <select date>
Number of nights <insert number>

Posted: Sat Nov 15, 2008 12:56 am
by MarcAstr0
In other words, which is the variable that gets passed as the end date and ends up inserted in the reservations table on the DB?

My idea, is to get the default end date (one day later than the start date) and after getting the number of nights on the form change the end date with the desired number of nights.

Please help

Posted: Sun Nov 30, 2008 12:31 pm
by marco
The variable depends on the page where you find the select, normally it is "fineperiodo". Anyway you can see it viewing the html source of the page in firefox.

Marco

Posted: Wed Dec 24, 2008 7:06 pm
by Scott M. Sanders
I would like to have this feature as well.