Beispiel #1
0
        if ($last > $photo_small_sum) {
            $last = $photo_small_sum;
        }
        $photonavinfo = sprintf(_MD_GNAV_NAV_ITEMPOS, $pos + 1, $last, $photo_small_sum);
        //customize navihtml
        $nav_html = preg_replace("%<u>&laquo;</u>%", _MD_GNAV_NAV_PREVIOUS, $nav_html);
        if (!preg_match("%<u>&raquo;</u>%", $nav_html)) {
            if ($nav_html) {
                $nav_html .= " " . _MD_GNAV_NAV_NEXT;
            }
        } else {
            $nav_html = preg_replace("%<u>&raquo;</u>%", _MD_GNAV_NAV_NEXT, $nav_html);
        }
        $nav_html = preg_replace("%<b>\\(1\\)</b>%", _MD_GNAV_NAV_PREVIOUS . " <b>(1)</b>", $nav_html);
        $nav_html = preg_replace("%<b>\\((.+?)\\)</b>%", "<span>\\1</span>", $nav_html);
        $xoopsTpl->assign('photonav', $nav_html);
        $xoopsTpl->assign('photonavinfo', $photonavinfo);
    }
    // Display photos
    $count = 1;
    while ($fetched_result_array = $xoopsDB->fetchArray($prs)) {
        $photo = $function_assigning($fetched_result_array) + array('count' => $count++, true);
        $xoopsTpl->append('photos', $photo);
    }
}
// comments
if ($GNAVI_MOBILE) {
    gnavi_mobile_templete_disp("db:{$mydirname}_mobile_viewcat.html");
} else {
    include XOOPS_ROOT_PATH . "/footer.php";
}
Beispiel #2
0
			//$xoopsTpl->assign('result',$query."は見つかりません");
			$xoopsTpl->assign('result',sprintf( constant('_MD_GNAV_MOBILE_NOTFOUND'), $query ));
		}elseif($latlng && $query){
			//$xoopsTpl->assign('result',$query."を表示します");
			$xoopsTpl->assign('result',sprintf( constant('_MD_GNAV_MOBILE_SHOW'), $query ));
		}


		if($markers)$markers="&markers=".$markers;
		$xoopsTpl->assign('mymap',$mymap.$markers);
		$xoopsTpl->assign('markerlist',$markerlist);
		//$xoopsTpl->assign('lang_category',"カテゴリー");
		$xoopsTpl->assign('lang_category', constant('_MD_GNAV_MOBILE_CATEGORY') );
		$xoopsTpl->assign('mapkeys', $mapkeys);

		gnavi_mobile_templete_disp("db:{$mydirname}_mobile_map.html");

	}else{
		echo"Disable GoogleMobileMap";
	}
}else{
	include( XOOPS_ROOT_PATH . "/footer.php" ) ;
}


function gnavi_latlnground($value){
	return round(floatval($value)*1000000)/1000000 ;
}


function address2latlng( $address ){