function jb_get_menu_js_src($rel = false) { static $src; if (isset($src)) { return $src; } jbplug_do_callback('get_menu_js_src', $src); if (strlen($src) > 0) { return $src; } $base = 'include/lib/menu/'; if ($rel) { $src = JB_get_relative_path($base); return $src; } else { $src = JB_BASE_HTTP_PATH . $base; return $src; } }
function gmap_mark() { global $label; $src = htmlentities(JB_get_relative_path('include/lib/GoogleMap/gmap_iframe.php')); $lat = htmlentities($this->get_data_value($this->field_row['field_id'] . '_lat')); $lng = htmlentities($this->get_data_value($this->field_row['field_id'] . '_lng')); $z = htmlentities($this->get_data_value($this->field_row['field_id'])); // zoom if (!$z) { $z = JB_GMAP_ZOOM; } echo $label['gmap_move_marker']; echo $this->field_row['FCOMMENT']; ?> <br> <input type="hidden" id="input_gmap_<?php echo $this->field_row['field_id']; ?> _lat" name="<?php echo $this->field_row['field_id']; ?> _lat" value="<?php echo $lat; ?> "> <input type="hidden" id="input_gmap_<?php echo $this->field_row['field_id']; ?> _lng" name="<?php echo $this->field_row['field_id']; ?> _lng" value="<?php echo $lng; ?> "> <input type="hidden" id="input_gmap_<?php echo $this->field_row['field_id']; ?> _zoom" name="<?php echo $this->field_row['field_id'] . '_zoom'; ?> " value="<?php echo $z; ?> "> <iframe width="<?php echo $this->field_row['field_width']; ?> " height="<?php echo $this->field_row['field_height']; ?> " frameborder="0" src="<?php echo $src . '?map_id=' . $this->field_row['field_id']; ?> &form_id=<?php echo $this->form_id; ?> &lat=<?php echo $this->get_data_value($this->field_row['field_id'] . '_lat'); ?> &lng=<?php echo $this->get_data_value($this->field_row['field_id'] . '_lng'); ?> &z=<?php echo $z; ?> "></iframe> <?php }