本文整理汇总了PHP中Frame::render方法的典型用法代码示例。如果您正苦于以下问题:PHP Frame::render方法的具体用法?PHP Frame::render怎么用?PHP Frame::render使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Frame
的用法示例。
在下文中一共展示了Frame::render方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Frame
<?php
include 'akses.php';
$lat = $_REQUEST['lat'];
$lng = $_REQUEST['lng'];
$frame = new Frame();
$datamap = $frame->render($lat, $lng);
foreach ($datamap as $titik) {
echo ' <div class="postingan">';
if ($titik['pictureid'] == NULL || !$titik['pictureid']) {
$src = "../userdata/default.jpg";
echo "\t\t<img class='pp' src='{$src}'>";
} else {
$id = $titik['pictureid'];
echo "<img class='pp' src='viewimage.php?id={$id}'>";
}
settype($titik['jarak'], "float");
$jarak = $titik['jarak'];
$satuan = " km";
if ($jarak > 0 && $jarak < 1) {
$jarak = $jarak * 1000;
$satuan = " meter";
}
$jarak = number_format($jarak, 2, ',', '.');
$titik['jarak'] = $jarak . $satuan;
echo " <input type='hidden' value= " . $titik['f_lat'] . " class='lat'>";
echo " <input type='hidden' value= " . $titik['f_long'] . " class='long'>";
$waktu = date_create($titik['f_time']);
echo "\t<h2> Radius " . $titik['jarak'] . " <strong>[" . $titik['kategori'] . "]<strong> | " . date_format($waktu, 'l, d M ( H:i ) | ') . " </h2> ";
echo "\t<p> Ditambahkan oleh " . $titik['f_user'] . " </p> ";
echo " <div class='clearfix'></div> ";
$attachid = $titik['attachmentid'];