[maplab-users] links from map to jpg

kgrootendorst at baird.com kgrootendorst at baird.com
Wed Sep 1 15:18:22 EDT 2004


Steffen,
I changed the code, but the link still does not work.

thanks for your help.





Steffen Macke <sdteffen at web.de> 
Sent by: maplab-users-bounces at lists.maptools.org
09/01/2004 03:08 PM

To
maplab-users at lists.maptools.org
cc

Subject
[SPAM] - Re: [maplab-users] links from map to jpg - Email found in subject






Kevin, could you try to replace the crucial
for loop with the version below?

Regards,

Steffen

// loop and add a cell for each result
foreach ( $aRow as $key => $xCell ) {
  // $xCell is the attribute value, in this case,when the $key attribute 
name 
  // is equal to "Long_DD" and "Lat_DD" only display the value of 
attribute.
  if((strcasecmp($key, "Long_DD") == 0) or 
     (strcasecmp($key, "Lat_DD") == 0 )) {
     $szReturnValue .= "<td bgcolor=\"#ffffff\">".
       "<font face=\"Arial, Helvetica, sans-serif\" size=\"2\">". 
       $xCell."</font></td>\n";
  }

  // when the attribute name is equal to MS_PATH2, hyperlink according to 
the 
  // value of attribute, the attribute value of MS_PATH2 should be simliar 
as 
  // http://localhost/photoalbum/image.jpg 
  //photoalbum folder with images is put at your web server.
 
  else if(strcasecmp($key, "MS_PATH2") == 0) {
    $szReturnValue .= "<td bgcolor=\"#ffffff\"> <a href=\"".$xCell.
      "\"> Click here to document</a></td>\n";
  } 
}
_______________________________________________
Maplab-users mailing list
Maplab-users at lists.maptools.org
http://lists.maptools.org/mailman/listinfo/maplab-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/maplab-users/attachments/20040901/7dbdc7e2/attachment.htm


More information about the Maplab-users mailing list