Exemplo n.º 1
0
<?php

$goods = new goods();
?>

  <!-- content -->
  <div class="holder_content">
    <section class="group1_sidebar">
      <h3><a href="#" onclick="MoveToBookmark(1);return false;">Maasvlakte 1</a></h3>
      <h3><a href="#" onclick="MoveToBookmark(2);return false;">Maasvlakte 2</a></h3>
      <h3><a href="#" onclick="MoveToBookmark(3);return false;">Dintelhaven</a></h3>
      <h3><a href="#" onclick="MoveToBookmark(4);return false;">Seinehaven</a></h3>
    </section>

    <section class="group2_map">
      <div id="map"></div>
    </section>
  </div>

<script>

var data = <?php 
echo $goods->getContainerLocationData();
?>
;
var heatmapData = new Array();

var map = L.map('map').setView([51.95823052624468, 4.051809310913086], 13);
L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
    attribution: 'Map data &copy; <a href="http://openstreetmap.org">OpenStreetMap</a>',
    maxZoom: 18,
Exemplo n.º 2
0
<?php

$order = "";
$flow = "";
if (isset($_GET['order'])) {
    $order = $_GET['order'];
}
if (isset($_GET['flow'])) {
    $flow = $_GET['flow'];
}
$goods = new goods();
$goods->order = $order;
$goods->flow = $flow;
if ($flow == "asc") {
    $flow = "desc";
} else {
    $flow = "asc";
}
?>

  <!-- content -->
  <div class="holder_content">
    <section class="group1_data">
      <h3>Informatie containers</h3>
      
      <table border='1' id='goods_data'>
        <tr>
          <th><a href="?order=equipmentNumber&flow=<?php 
echo $flow;
?>
">EQ</a></th>
Exemplo n.º 3
0
            $recommend_array = $model_recommend->getOneRecommend($g_id);
            if (!empty($recommend_array)) {
                $recommend_config = array();
                $recommend_config = unserialize($recommend_array['recommend_config']);
                if (empty($recommend_array['recommend_config']) || empty($recommend_config)) {
                    $recommend_config = $this->config;
                }
                $recommend_config['recommend_id'] = $g_id;
                $goods_html = '';
                $condition = array();
                $condition['recommend_id'] = $g_id;
                $condition['goods_show'] = '1';
                //上架:1是,0否
                $condition['goods_state'] = '0';
                //禁售:1是,0否
                $condition['goods_store_state'] = '0';
                //店铺状态:1关闭,0正常
                $condition['limit'] = $recommend_config['limit'];
                $goods_list = $model_recommend->getGoodsList($condition);
                //查询最新的价格信息(如果使用缓存则可能出现不正确情况)
                if (!empty($goods_list)) {
                    $goods_html = $this->html($goods_list, $recommend_config);
                }
                echo 'document.write(\'' . $goods_html . '\');';
                exit;
            }
        }
    }
}
$goods = new goods();
$goods->js();
Exemplo n.º 4
0
 function del()
 {
     global $_G;
     $a_goods = new goods();
     $a_goods->del();
 }