customer type

Post here you suggestions and wished features for hoteldruid development.

Moderator: marco

Post Reply
fred
Posts: 1
Joined: Thu Nov 06, 2025 12:51 pm

customer type

Post by fred »

Hello,

Is it possible to add a dropdown menu that allows users to choose the type of client, and then display a color code on the calendar to differentiate between the different client types?
I've already done a rough draft, but I don't have the rest of the structure.

clienti.php:

closedir($lang_dir);
$opt_lingue = "<option value=\"\">------</option>".$opt_lingue;
echo "$opt_lingue</select></span>";

// Ajout menu deroulant
$sel_Polo = (isset($categoria) && $categoria == 'Staff POLO') ? ' selected' : '';
$sel_CSI = (isset($categoria) && $categoria == 'Staff CSI') ? ' selected' : '';
$sel_AF = (isset($categoria) && $categoria == 'Staff AF') ? ' selected' : '';
$sel_Membre = (isset($categoria) && $categoria == 'Membre') ? ' selected' : '';
$sel_VIP = (isset($categoria) && $categoria == 'VIP') ? ' selected' : '';
$sel_Autre = (isset($categoria) && $categoria == 'Autre') ? ' selected' : '';

echo " <span class=\"wsnw\">".mex("Categorie",$pag).": ";
echo "<select name=\"categoria\">";
echo "<option value=\"\">-- ".mex("Selectionnez",$pag)." --</option>";
echo "<option value=\"Staff POLO\"$sel_Polo>Staff POLO</option>";
echo "<option value=\"Staff CSI\"$sel_CSI>Staff CSI</option>";
echo "<option value=\"Staff AF\"$sel_AF>Staff AF</option>";
echo "<option value=\"Membre\"$sel_Membre>Membre</option>";
echo "<option value=\"VIP\"$sel_VIP>VIP</option>";
echo "<option value=\"Autre\"$sel_Autre>Autre</option>";
echo "</select></span>";

if (!empty($datiprenota)) {
echo ".&nbsp;&nbsp; <span class=\"wsnw\"><label><input name=\"cliente_ospite\" value=\"SI\" type=\"checkbox\" checked>
".mex("Ospite della prenotazione",$pag)."</label>";
marco
Posts: 1356
Joined: Tue Jul 05, 2005 6:00 pm
Location: Roma, Italia

Re: customer type

Post by marco »

Hello,
currently you can add custom fields to clients from "configure and customize", but only in text or boolean format, no drop-down list (you could create a list with boolean values). It's not possible to assign colors based on clients in month table, what is planned for a future release is the possibility to have different colors based on rates associated to rooms (assignment rule 2).

Regards,
Marco
Problems installing, configuring, upgrading?
Try the easiest way to use HotelDruid:
https://www.digitaldruid.net/hosted/index.php
Post Reply