forked from guaycuru/gde
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmapa.php
31 lines (25 loc) · 923 Bytes
/
mapa.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php
define('TITULO', 'Mapa do Campus');
require_once('../common/common.inc.php');
if(isset($_GET['cm']))
die("<img src='".CONFIG_URL."web/images/loading.gif' /> Carregando Mapa...");
$link = "http://maps.google.com/maps/ms?ie=UTF8&msa=0&msid=207972918742334384558.00049b21f38a1896b2cc5&z=15&output=embed";
?>
<script type="text/javascript">
// <![CDATA[
var carregou_mapa = false;
$(document).ready(function() {
if(!carregou_mapa) {
$("#iframe_mapa").attr('src', '<?= $link ?>');
carregou_mapa = true;
}
});
// ]]>
</script>
<div id="mapa_campus" style="width: 100%">
<div id="texto_mapa_campus" style="width: 100%;"><h1 style="text-align: center;">Mapa do Campus - UNICAMP</h1></div>
<div id="iframe_mapa_campus">
<iframe class="iframe_mapa" id="iframe_mapa" scrolling="no" frameborder="0" src="<?= CONFIG_URL; ?>sala/?cm" marginwidth="0" marginheight="0"></iframe>
</div>
</div>
<?= $FIM; ?>