question about nazione,regione,citta and documentoid

Discuss here how to configure hoteldruid and better use its features.

Moderator: marco

Post Reply
viknet
Posts: 27
Joined: Sat Jan 24, 2009 3:08 pm

question about nazione,regione,citta and documentoid

Post by viknet »

dear marco, I have a small question about the usage of php residence:
I saw the table "relutenti" which (as far as I understand) link a user with the list of nation, region, city documentid it can see,

ie each user (user=employee I suppose) have its own list of city, region, nation.

I do not undrestand why this is usefull, it is quite complicated and I cannot see the advantages (furthermore because all of this data cannot be dynamicaly inserted, you have to configure it by yourself).
There is also a nice option which enable the admin to import cities from other users but I don't see the other option which permit a user to import the nation table of the admin.

So my question: did I miss something ???

best regards

Vincent
marco
Posts: 1332
Joined: Tue Jul 05, 2005 6:00 pm
Location: Roma, Italia

Post by marco »

Hello Vincent,
it is useful if you have users with different languages (and in a future version also for internet templates). Administator, besides importing them, can also change them at once for all users or for a group of users (as all other customizations). Other users can restore the default values, which in English are availble only for nations, but you can set them in the translation files (/includes/lang/en) that begin with "lista_", you find some commented examples in each file.

Marco
Problems installing, configuring, upgrading?
Try the easiest way to use HotelDruid:
https://www.digitaldruid.net/hosted/index.php
viknet
Posts: 27
Joined: Sat Jan 24, 2009 3:08 pm

ok

Post by viknet »

Thanks for your answer marco I think I understand better now.
I will search the translation to add my own country.


Best regards


Vincent
rstoeber
Posts: 5
Joined: Sat Feb 14, 2009 11:41 pm
Location: Park City, UT USA

Post by rstoeber »

I want to set the default states for the USA. I see that I must modify the file lista_regioni.php which needs the following variables:

$lista_regioni = "";
$cod_regioni = "";
$cod_nazione_regioni = "";

I'm not sure exactly what to do with that, but it looks like I can make it work like this:

$lista_regioni[0] = "Alaska";
$lista_regioni[1] = "Alabama";
$lista_regioni[2] = "Colorado";
$cod_nazione_regioni[0] = "United States Of America";
$cod_nazione_regioni[1] = "United States Of America";
$cod_nazione_regioni[2] = "United States Of America";

But I don't know what to do with $cod_regioni = "";

Can someone explain that variable?
marco
Posts: 1332
Joined: Tue Jul 05, 2005 6:00 pm
Location: Roma, Italia

Re: question about nazione,regione,citta and documentoid

Post by marco »

rstoeber wrote: But I don't know what to do with $cod_regioni = "";

Can someone explain that variable?
That should be $cod_regioni[0] = ""; and is useful when you want to assign a code (like AL for Alaska) to be used in documents.

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