Page 1 of 1

question about nazione,regione,citta and documentoid

Posted: Sun Jan 25, 2009 6:14 pm
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

Posted: Mon Feb 09, 2009 10:20 pm
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

ok

Posted: Tue Feb 10, 2009 7:47 pm
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

Posted: Sun Feb 15, 2009 12:52 am
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?

Re: question about nazione,regione,citta and documentoid

Posted: Fri Mar 06, 2009 12:41 am
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