Ok, Mr. Becchi, Thank You for your response. I will try to modify the kaSearch.php. <br><br>And I'm sorry i replied directly to your personal email. I didn't notice the email address. I thought it went directly to mailing list.<br><br>-don-<br><br><b><i>Lorenzo Becchi <lorenzo@ominiverdi.com></i></b> wrote:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> Hi Donny, better to go on with the thread on the mailing list so that <br>others can benefit too (please remember to reply all).<br><br>donny wicaks wrote:<br>> Thank You very much for your response, Mr. Lorenzo Becchi.<br>><br>> So, I should customize the search.php file. Is it the "kaSearch.php"?<br>> How should I modify the file, Sir?<br>><br>yes Don, kaSearch.php [1] is the file you have to edit.<br>How? you need to know a bit of PHP and HTML.<br><br>regards<br>Lorenzo<br><br>[1] htdocs/tools/search/kaSearch.php<br><br><br><br><br>>
-don-<br>><br>><br>><br>> */Lorenzo Becchi <lorenzo@ominiverdi.com>/* wrote:<br>><br>> Hi Donny,<br>> if I've understood your problem, you don't need to use the default<br>> search.php file for your search.<br>> That file use mapserver to perform searches and you have a better<br>> system<br>> that is your postgres db.<br>> what you have to do is customize the search.php to avoid it to go and<br>> ask to mapserver but directly to your db. With a little join of<br>> tables<br>> you can have your search as you like.<br>><br>> regards<br>> lorenzo<br>><br>><br>> donny wicaks wrote:<br>> > Hi, All<br>> ><br>> > I'm Donny Wicaksono from Indonesia. i'm developing a web-gis. I use<br>> > ka-map and postgis as database.<br>> ><br>> > I have difficulties, i really hope anyone can help me.. :)<br>>
><br>> > I'm developing accident occurrences in a certain location, for<br>> example<br>> > in one district. They are displayed as points in ka-map. The<br>> > occurrences are yearly, in 2004, 2005, and 2006. The map and the<br>> > points have already successfully displayed. The identify<br>> function per<br>> > point is working and also is the search function.<br>> ><br>> ><br>> > This is my map file in Layer part:<br>> > .................................<br>> > LAYER<br>> > NAME 'accident 2006'<br>> > GROUP 'Accident 2006'<br>> > TYPE POINT<br>> > CONNECTIONTYPE postgis<br>> > CONNECTION "host=localhost user='postgis' password=password<br>> > dbname='car_accidents'"<br>> > DATA 'coordinates FROM cases'<br>> > FILTER "extract(year from date)='2006'"<br>> ><br>>
> METADATA<br>> > 'wms_title' 'cases'<br>> > 'queryable' 'true'<br>> > 'searchfield' 'car_type'<br>> > 'fields' 'car_type:Car Type,accident_type:Accident<br>> > Type,description:Description,date:Date,time:Time,time_zone:Time<br>> Zone'<br>> > END<br>> > STATUS on<br>> > TRANSPARENCY 100<br>> > PROJECTION<br>> > 'proj=longlat'<br>> > 'ellps=WGS84'<br>> > 'datum=WGS84'<br>> > 'no_defs'<br>> > ''<br>> > END<br>> > LABELITEM 'car_type'<br>> > CLASS<br>> > TEMPLATE "kueri.html"<br>> > NAME 'Year 2006'<br>> > STYLE<br>> > SYMBOL 'CIRCLE'<br>> > SIZE 7<br>> > OUTLINECOLOR 0 0 0<br>> > COLOR 255 0 0<br>> > END<br>> > LABEL<br>> > SIZE small<br>> > COLOR 0 0 0<br>> > ANGLE 0<br>>
> BUFFER 2<br>> > END<br>> > END<br>> > PROCESSING "close_connection=DEFER"<br>> > END<br>> > #Circle symbol<br>> > SYMBOL<br>> > NAME 'CIRCLE'<br>> > TYPE ellipse<br>> > FILLED true<br>> > POINTS<br>> > 1 1<br>> > END<br>> > END<br>> > ...........................<br>> ><br>> ><br>> ><br>> > But this is the problem i'm facing:<br>> ><br>> > In my ka-map system, the search results are able to be<br>> displayed. But<br>> > the results are not distributed in the three appropriate layers<br>> (as i<br>> > mentioned above, i have three layers: 2004, 2005, and 2006).<br>> > For example, i search "Bus", and i get the results for buses<br>> accidents<br>> > in 2004, 2005, and 2006 complete with accident type,<br>>
description, date<br>> > and time data. say i get 17 data.<br>> > Then, the all 17 results are displayed three times as Results for<br>> > Layer Year 2004, Results for Layer Year 2005, and Results for Layer<br>> > Year 2006.<br>> ><br>> > I want to place the data result in their right place: the 2004 data<br>> > result in Results for Layer Year 2004, the 2005 data result in<br>> > Results for Layer Year 2005, and the 2006 data result in Results<br>> for<br>> > Layer Year 2006.<br>> ><br>> > How should I configure my map file to do that? Or do I have to<br>> > configure another files? If so, which files, and how should i<br>> > configure them?<br>> ><br>> > I will appreciate any helps....<br>> ><br>> > Thank You<br>> ><br>> > -don-<br>> ><br>> ><br>>
------------------------------------------------------------------------<br>> ><br>> > _______________________________________________<br>> > ka-Map-users mailing list<br>> > ka-Map-users@lists.maptools.org<br>> > http://lists.maptools.org/mailman/listinfo/ka-map-users<br>> ><br>> _______________________________________________<br>> ka-Map-users mailing list<br>> ka-Map-users@lists.maptools.org<br>> http://lists.maptools.org/mailman/listinfo/ka-map-users<br>><br>><br>_______________________________________________<br>ka-Map-users mailing list<br>ka-Map-users@lists.maptools.org<br>http://lists.maptools.org/mailman/listinfo/ka-map-users<br></lorenzo@ominiverdi.com></blockquote><br><p>