Hello Armin

I'm implement your suggestions to sections of categories. The implementation 
need a little corrections to full integrate with the pmapper, but is working 
for my project.

The way to implement this include follow steps:
############################################################
config.ini ->
    Insert variable secStyle: tree OR flat;
    Insert variable secInfoLink, equal to categories and groups

legend.php -> Insert function _printSection();

php_config.ini -> Insert definitions of sections

example ->

    $sections['padrao'] = array("NascidosVivos", "Mortalidade", "Morbidade", 
"AtencaoBasica", "RegulacaoAvaliacaoControle", "MapasBasicos", "MapasSatelite");
   
 
    $_SESSION['sections'] = $sections;
    

initmap.php -> Insert errors controls in variables config

    ////////////////////

    // Style of Sections
        $secStyle = strtolower($this->ini["secStyle"]);
        if (!preg_match ("/flat|tree|Off/i", $secStyle)) {
            pm_logDebug(1, "P.MAPPER-ERROR: Wrong entry in '/config/config.ini' 
file for section 'secStyle'. Must be either 'flat', 'tree' or 'Off'");
            $secStyle = "Off";    // set to a default
        }
        $_SESSION["secStyle"] = $secStyle;
        
    ////////////////////
       
 
    $_SESSION['secInfoLink'] = isset($this->ini['secInfoLink']) ? 
$this->ini['secInfoLink'] : 0;

############################################################

I'm send for you and pmapper-list to available if this is interesting for other 
pmapper users.
In attachment  the code.
Working project: http://geolivre.saude.rn.gov.br/pmapper-menu/map.phtml

PS:

    My implementations have a different info window (with pop-up instead of 
javascript:alert() )


Regards,

"Free software: more than a choice, a philosophy of life"
Rodrigo Gaete
Brasil, RN, Natal


----- Mensagem original ----
De: Armin Burger <[EMAIL PROTECTED]>
Para: Rodrigo Gaete <[EMAIL PROTECTED]>
Enviadas: Sábado, 20 de Janeiro de 2007 7:35:33
Assunto: Re: Pmapper Project

Hello Rodrigo

the way how it is currently defined, adding additional levels makes
things somewhat more complicated. Both for the implementation, settings
definition, logic and consistency of use.

I personally think that the current functionality with categories and
groups (and groups comprising several layers) is the maximum I would
like to offer to whatsoever user,
 otherwise it's becoming too confusing.
I mainly try to avoid adding too many layers to any application,
ordering them in multiple sub-sub structures is for me not facilitating
the usage.

If the treeview plugin for jQuery were working correctly I would swap to
this which would facilitate for a developer to define more levels.
Unfortunately the problems with IE 7 are not solved so I stay to the
current solution that I set up by myself a while ago. This one is not
very flexible for additional sub-structures. The JS code (now all in
toc.js) should allow the management of multiple levels if you dig a bit
into the logic of jQuery.

You will mainly have to find a way to keep your customization in sync
with the main code, but it should be just some parts in legend.php and
some modifications in toc.js. Custom JS code can be easily added if you
put that file eg. in the config/default directory, it will be loaded
last, so anything
 there would overwrite an existing default JS function.
For the legend.php I would suggest to create your own class that
inherits from the default one. If you need a modification in the core
code that allows to plug in your version then tell me and I will see
what I can do.

Armin

PS: if by chance you would like to update the language file for
Portuguese/Brazilian to the latest version of p.mapper I will add that
to the main code.

Rodrigo Gaete wrote:
> Hello Armin
> 
> We are needing more levels of categories (categories, sub-categories, 
> subsub-categories). I would like to contribute in the project with this, 
> what you think?
> How I can help in pmapper project?
> 
> Regards,
> Gaete
> 
> ----- Mensagem original ----
> De: Armin Burger <[EMAIL PROTECTED]>
> Para: Rodrigo Gaete <[EMAIL PROTECTED]>
> Enviadas: Quinta-feira, 18 de
 Janeiro de 2007 16:14:24
> Assunto: Re: Res: Problems with 3.1 beta1
> 
> Thanks for the language file. I will add it to the other locales.
> 
> armin
> 
> -------- Original-Nachricht --------
> Datum: Thu, 18 Jan 2007 09:32:38 -0800 (PST)
> Von: Rodrigo Gaete <[EMAIL PROTECTED]>
> An: Armin Burger <[EMAIL PROTECTED]>
> Betreff: Res: Problems with 3.1 beta1
> 
>  > Armin, find the error.
>  > This error is show beacuse my categories names content spaces. But, 
> why in
>  > pmapper 3.0.0 working without problems?
>  >
>  > Regards,
>  > Gaete
>  >
>  > ----- Mensagem original ----
>  > De: Rodrigo Gaete <[EMAIL PROTECTED]>
>  > Para: Armin Burger
 <[EMAIL PROTECTED]>
>  > Enviadas: Quinta-feira, 18 de Janeiro de 2007 14:06:45
>  > Assunto: Problems with 3.1 beta1
>  >
>  > Hello Armin
>  >
>  > I'm testing a pmapper 3.1.0 beta1 and have one error in load categories
>  > (TypeError: elem has no properties), I using without categories
>  > (useCategories = 0) and working OK.
>  > In pmapper 3.0.0 I'm not have error.
>  >
>  > I'm send to you the config files and a little contribution
>  > (language_pt_br.php - translation for portuguese-brazil)
>  >
>  > pmapper 3.0.0 - working
>  > http://geolivre.saude.rn.gov.br/pmapper/map.phtml
>  >
>  > pmapper 3.1.0 - With a error
>  > http://geolivre.saude.rn.gov.br/pmapper-dev/map.phtml
>  >
>  > Regards
>  > "Software Livre: mais do que uma escolha é uma
>  >  filosofia de vida."
>  > Rodrigo Gaete
>  >
>  >
>  >
>  >
>  >
>  >
>  > __________________________________________________
>  > Fale com seus amigos  de graça com o novo Yahoo! Messenger
>  > http://br.messenger.yahoo.com/
>  >
>  >
>  >
>  >
>  > __________________________________________________
>  > Fale com seus amigos  de graça com o novo Yahoo! Messenger
>  > http://br.messenger.yahoo.com/
> 
> -- 
> "Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ...
> Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail
> 
> 
> 
> 
> __________________________________________________
> Fale com seus amigos de graça com o novo Yahoo! Messenger
> http://br.messenger.yahoo.com/









__________________________________________________
Fale com seus amigos  de graça com o novo Yahoo! Messenger 
http://br.messenger.yahoo.com/ 




__________________________________________________
Fale com seus amigos  de graça com o novo Yahoo! Messenger 
http://br.messenger.yahoo.com/ 
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
pmapper-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pmapper-users

Reply via email to