Plugin Directory

Changeset 963052


Ignore:
Timestamp:
08/09/2014 03:22:02 PM (12 years ago)
Author:
ryan_xantoo
Message:

3.0.1 Bug Fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • map-contact/trunk/admin/map_addresses.php

    r963041 r963052  
    9494        foreach ($addressess as $address)
    9595        {
     96            $image = "";
    9697            $address = get_object_vars($address);
    9798
     
    107108            }
    108109
    109             $image = "<div style='width:100%; text-align:center;'><img src='".$address["image"]."' style='max-width:100%;' /></div>"."<div style='text-align:center;'><input type='hidden'  name='".$address["id"]."_image' value='' style='width:63.01%;' /><input type='button' class='upload-button' value='Change Image' /></div>";
     110            if (!empty($address["image"])) { $image = "<div style='width:100%; text-align:center;'><img src='".$address["image"]."' style='max-width:100%;' /></div>";}
    110111
     112            $image .= "<div style='text-align:center; width:100%;'><input type='hidden'  name='".$address["id"]."_image' value='' /><input type='button' style='width:100%;' class='upload-button' value='Change' /></div>";
    111113            $listTable->data[] = array("id" => $address["id"],"image" => $image,"name" => "<input name='".$address["id"]."_"."name"."' type='text' style='width:100%;' value='".$address["name"]."'>","infowindow" => "<textarea name='".$address["id"]."_"."infowindow"."' style='max-width: 100%; max-height: 106px;width:100%; height:106px;'>".$address["infoWindow"]."</textarea>","address" => "<input name='".$address["id"]."_"."address"."' type='text' style='width:100%;' value='".$address["address"]."'>","email" => "<input name='".$address["id"]."_"."email"."' type='text' style='width:100%;' value='".$address["email"]."'>", "delete" => "<div style='height:106px; line-height:106px; text-align:center;'><form id='delete' action='".$URL."' method='POST'><input type='submit' value='Delete' name='".$address['id']."_delete'></form></div>");
    112114        }
Note: See TracChangeset for help on using the changeset viewer.