[maplab-users] links from map to jpg

kgrootendorst at baird.com kgrootendorst at baird.com
Mon Aug 30 11:09:55 EDT 2004


Hi Charley,
(I had to send this twice, because the maplab list bounced the first 
message back to me)

Thanks for your help.  Unfortunately, I do not have the function working 
yet, but I feel I am close. 
In your posting, are the characters "==" and "||" valid php syntax?
Also, your posting is just a portion of your query.phtml file right?  Or 
is that your entire query.phtml file?

Below is my code, for the areas where I describe my columns of the 
attribute table.   Do you see any thing that appears incorrect?
The URL (with photo name) to my jpegs is contained in the column 
"MS_PATH", the column "photo" contains only the photo name.

// loop and use key for titles
            foreach ($aRows[0] as $key => $value)
            {
                        //***********ADDED FOR HYPERLINK
                        if (strcasecmp($key, "Long_DD") = "Long_DD";
                         strcasecmp($key, "Lat_DD") = "Lat_DD";
                         strcasecmp($key, "photo") = "photo";
                         strcasecmp($key, "MS_PATH") = "MS_PATH")
 
                        //********************************
                $szReturnValue .= "<td bgcolor=\"E2EFF5\"><font 
face=\"Arial, Helvetica, sans-serif\" size=\"2\">".$key."</font></td>\n";
            }

*************************

//Look for the attribute value in column of Job_no, location, siteplan and 
//summary_2
                if (strcasecmp($key, "Long_DD") = "Long_DD";
                    strcasecmp($key, "Lat_DD") = "Lat_DD" )
                {$szReturnValue .= "<td bgcolor=\"#ffffff\"><font 
face=\"Arial, Helvetica, sans-serif\" size=\"2\">". 
$xCell."</font></td>\n";}

                else if (strcasecmp($key, "photo") = "photo";
                        strcasecmp($key, "MS_PATH") = "MS_PATH" )
                        //$xCell is the attribute value in URL format such 
as http://localhost/test/test.pdf
 
                {$szReturnValue .= "<td bgcolor=\"#ffffff\"> <a 
href=\"".$xCell."\"> Click here to document</a></td>\n";} 
                }
                $szReturnValue .= "</tr>\n";
            }

********************

Thanks!

Kevin

______________________________
Baird 
Innovation, Excellence, & Service 
Oceans, Lakes & Rivers
Kevin Grootendorst 
905-845-5385 phone    905-845-0698 fax
627 Lyons Lane, Suite 200
Oakville, Ontario, Canada L6J 5Z7 
mailto:kgrootendorst at baird.com    http://www.baird.com/ 
______________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/maplab-users/attachments/20040830/e61978b5/attachment.htm


More information about the Maplab-users mailing list