Commits

Thejesh GN committed d8352ce

fixed data issues and maps

  • Participants
  • Parent commits 8f3b5c8
  • Tags v.0.6.07

Comments (0)

Files changed (4)

db/postbox.sqlite

Binary file modified.

gui/basic/sub_by_pincode_map.html

 
     <? foreach ($this->get('array_all_postboxes') as $post_box=>$post_box_array): ?>
 	    var marker = L.marker([<?=$post_box_array['lat']?>,<?=$post_box_array['lan']?>]).addTo(map);
-	    var infohtml = "<br><br><b><?=$post_box_array['caption']?></b><br><br>";
+	    var infohtml = "<b><?=$post_box_array['caption']?></b><br>";
+	    infohtml = infohtml + "<img src='<?= $post_box_array['picture_url'] ?>' width=100px height=100px /><br>";
 	    infohtml = infohtml + "<a href='<?= $this->get('BASE'); ?>/pb/id/<?=$post_box_array['post_id']?>'>Detailed Information</a>";
 		marker.bindPopup(infohtml);
     <? endforeach; ?>

gui/basic/sub_location_map.html

 
 
 		    var marker<?=$i?> = L.marker([<?=$post_box_array['lat']?>,<?=$post_box_array['lan']?>]);
-		    marker<?=$i?>.bindPopup("<br><br><b><?=$post_box_array['caption']?> - <?=$post_box_array['pincode']?></b><br><br><a href='<?= $this->get('BASE'); ?>/pb/id/<?=$post_box_array['post_id']?>'>Detailed Information</a>");
+		    marker<?=$i?>.bindPopup("<b><?=$post_box_array['caption']?> - <?=$post_box_array['pincode']?></b><br><img src='<?= $post_box_array['picture_url'] ?>' width=100px height=100px /><br><br><a href='<?= $this->get('BASE'); ?>/pb/id/<?=$post_box_array['post_id']?>'>Detailed Information</a>");
 			group_markers.addLayer( marker<?=$i?>);
 
     <? endforeach; ?>
 			$single_postbox['center_lat']=	$row["center_lat"];
 			$single_postbox['center_long']=	$row["center_long"];
 			$single_postbox['caption']=	$row["caption"];
+			$single_postbox['picture_url']=	$row["picture_url"];			
 			$single_postbox['formatted_address']=	$row["formatted_address"];
 			$array_all_postboxes[$row["post_id"]]	= $single_postbox;
         }
 			$single_postbox['lan']=	$row["lan"];
 			$single_postbox['pincode']=	$row["pincode"];	
 			$single_postbox['caption']=	$row["caption"];
+			$single_postbox['picture_url']=	$row["picture_url"];
+			
 			$array_all_postboxes[$row["post_id"]]	= $single_postbox;
         }