Example #1
0
 function output()
 {
     global $construct, $main, $vars;
     $main->header->hide = TRUE;
     $main->menu->hide = TRUE;
     $main->footer->hide = TRUE;
     include_map('map', true);
     return template($this->tpl, __FILE__);
 }
Example #2
0
    function output()
    {
        if ($_SERVER['REQUEST_METHOD'] == 'POST' && method_exists($this, 'output_onpost_' . $_POST['form_name'])) {
            return call_user_func(array($this, 'output_onpost_' . $_POST['form_name']));
        }
        global $construct, $db, $vars, $main;
        $main->html->head->add_script("text/javascript", "./templates/basic/scripts/javascripts/fancyzoom/js-global/FancyZoom_packed.js");
        $main->html->head->add_script("text/javascript", "./templates/basic/scripts/javascripts/fancyzoom/js-global/FancyZoomHTML_packed.js");
        $main->html->body->tags['onload'] = "setupZoom();";
        if ($db->cnt('', 'nodes ' . 'INNER JOIN users_nodes ON users_nodes.node_id = nodes.id ' . 'INNER JOIN users ON users_nodes.user_id = users.id', "nodes.id = " . intval(get('node')) . ' AND users.status = "activated"') == 0) {
            $main->message->set_fromlang('error', 'node_not_found');
            return;
        }
        $this->tpl['node'] = $db->get('nodes.id, nodes.name, nodes.date_in, nodes.latitude, nodes.longitude, nodes.elevation, nodes.info, nodes.status, nodes.due_date, areas.name as area_name, regions.name as region_name, users.username AS owner_username, users.email AS owner_email', 'nodes
			LEFT JOIN areas ON nodes.area_id = areas.id
			LEFT JOIN regions ON areas.region_id = regions.id
			LEFT JOIN users_nodes ON users_nodes.node_id = nodes.id
			LEFT JOIN users ON users.id = users_nodes.user_id', "nodes.id = " . intval(get('node')) . " AND (users_nodes.owner = 'Y' OR users_nodes.owner IS NULL)");
        $this->tpl['node'] = $this->tpl['node'][0];
        $this->tpl['link_contact'] = self_ref(array("subpage" => "contact"));
        $this->tpl['table_ip_ranges'] = $construct->table($this->table_ip_ranges(), __FILE__);
        $this->tpl['table_ip_ranges_v6'] = $construct->table($this->table_ip_ranges_v6(), __FILE__);
        $this->tpl['table_dns'] = $construct->table($this->table_dns(), __FILE__);
        $this->tpl['table_nameservers'] = $construct->table($this->table_nameservers(), __FILE__);
        $this->tpl['table_links_p2p'] = $construct->table($this->table_links_p2p(), __FILE__);
        $t = $db->get('id, type', 'links', "node_id = " . intval(get('node')));
        foreach ((array) $t as $key => $value) {
            if ($value['type'] == 'ap') {
                $this->tpl['table_links_ap'][$value['id']] = $construct->table($this->table_links_ap($value['id']), __FILE__);
            }
        }
        $this->tpl['table_links_free'] = $construct->table($this->table_links_free(intval(get('node'))), __FILE__);
        $this->tpl['table_ipaddr_subnets'] = $construct->table($this->table_ipaddr_subnets(), __FILE__);
        $this->tpl['table_services'] = $construct->table($this->table_services(), __FILE__);
        $t = $db->get('id, date_in, view_point, info', 'photos', "node_id = " . intval(get('node')));
        foreach ((array) $t as $key => $value) {
            $this->tpl['photosview'][$value['view_point']] = $value;
            $this->tpl['photosview'][$value['view_point']]['image_s'] = surl($vars['folders']['photos'] . 'photo-' . $this->tpl['photosview'][$value['view_point']]['id'] . '-s.jpg');
            $this->tpl['photosview'][$value['view_point']]['image'] = surl($vars['folders']['photos'] . 'photo-' . $this->tpl['photosview'][$value['view_point']]['id'] . '.jpg');
        }
        $this->tpl['link_plot_link'] = make_ref('/nodes/plot_link', array("a_node" => $this->tpl['node']['id']));
        if (isset($main->userdata->privileges['admin']) && $main->userdata->privileges['admin'] === TRUE || $db->cnt('', "users_nodes", "node_id = " . get('node') . " AND user_id = '" . $main->userdata->user . "'") > 0) {
            $this->tpl['edit_node'] = make_ref('/node_editor', array("node" => get('node')));
        }
        include_map('map');
        return template($this->tpl, __FILE__);
    }
Example #3
0
<?php use_helper('ijani', 'GMap'); ?>
<p><?php echo $presta->getName(); ?></p>
<p><?php echo rating_status($presta->getRating()); ?></p>
<br/>
<p><?php echo $presta->getPresentation(); ?></p>
<p>Domaines :
  <?php foreach($presta->Domaines as $domain): ?>
  <?php echo link_to($domain->getName(), '@domaine?id='.$domain->getId().'&domaine='.$domain->getName()); ?>
  <?php endforeach; ?>
</p>
<?php include_map($gmap, array('width' => '320px', 'height' => '240px')); ?>
<?php include_map_javascript($gmap); ?>
<p>Adresse : <?php echo $presta->getAddress(); ?></p>
<p><?php echo $presta->getReperes(); ?>
<p>Tel : <?php echo $presta->getTel() ?></p>
<p>Mobile : <?php echo $presta->getMobile() ?></p>
<?php include_component('comment', 'formComment', array('object' => $presta)) ?>
<?php include_component('comment', 'list', array('object' => $presta, 'i' => 0)) ?>
<?php 
require_once GMAP_LIB_PATH . 'helper/GMapHelper.php';
?>

<html>
  <head>
    <?php 
include_google_map_javascript_file($gMap);
?>
    <script type="text/javascript">
    function moveToDarwin() {
      var darwin = new google.maps.LatLng(-12.461334, 130.841904);
      map.set_center(darwin);
    }
  </script>
  </head>
  <body>

    <h1>The Map</h1>
    <?php 
include_map($gMap);
?>

    <br />
    <!-- Javascript included at the bottom of the page -->
    <?php 
include_map_javascript($gMap);
?>
  </body>
</html>
Example #5
0
 function output()
 {
     global $construct, $vars, $main;
     if ($_SERVER['REQUEST_METHOD'] == 'POST' && method_exists($this, 'output_onpost_' . $_POST['form_name'])) {
         return call_user_func(array($this, 'output_onpost_' . $_POST['form_name']));
     }
     $this->tpl['form_search_nodes'] = $construct->form($this->form_search_nodes(), __FILE__);
     $this->tpl['table_nodes'] = $construct->table($this->table_nodes(), __FILE__);
     $this->tpl['link_gearth'] = make_ref("/gearth/donwload", array("node" => get('node'), "show_p2p" => "1", "show_aps" => "1", "show_clients" => "1", "show_unlinked" => "1", "show_links_p2p" => "1", "show_links_client" => "1"));
     $this->tpl['skip_map'] = 'no';
     if (get('show_map') != "no") {
         include_map('map');
     } else {
         $this->tpl['skip_map'] = 'yes';
     }
     return template($this->tpl, __FILE__);
 }
Example #6
0
 function output()
 {
     global $construct, $vars, $main;
     $main->header->hide = TRUE;
     $main->menu->hide = TRUE;
     $main->footer->hide = TRUE;
     $this->tpl['link_gearth'] = make_ref("/gearth/donwload", array("node" => get('node'), "show_p2p" => "1", "show_aps" => "1", "show_clients" => "1", "show_unlinked" => "1", "show_links_p2p" => "1", "show_links_client" => "1"));
     $this->tpl['skip_map'] = 'no';
     if (get('show_map') != "no") {
         include_map('map');
     } else {
         $this->tpl['skip_map'] = 'yes';
     }
     return template($this->tpl, __FILE__);
 }
Example #7
0
<div>
  <div class="sample-map">
    <div id="map-search">
      <div id="map_search_title">
        Search on the map :
      </div>
      
      <div id="map_search_form">
        <?php include_search_location_form() ?>
      </div>
      
      <div style="clear: both;"></div>
    </div>
  
    <?php include_map($gMap); ?>
    
    <div class="console">
      <span id="console_title">Console</span>
      <div id="console_div"></div>
    </div>
  </div>

  <div class="sample-sources">  
    <div id="sample-source-action">
      <a href="#" onclick="gmapSample_Toggle('action_source'); return false;">&bull; <?php echo "Display/Hide action source" ?></a>
      
      <div id="action_source">
        <?php echo preg_replace('/.*(\/\/.*)<br \/>.*/', '<span class="sample-comment">$0</span>', nl2br($action_source)) ?>
      </div>
    </div>