business.cmp.php 3.6 KB

1234567
  1. <!--power by mazephp--><?php Maze::setInput("menu", "0") ?>
  2. <?php Maze::setInput("item", "business-item") ?>
  3. <?php $data['company/info.device_data_url']=Maze\Routing\Load::get('company/info.device_data_url') ?>
  4. <?php $data['company/info.device_data_html']=Maze\Routing\Load::get('company/info.device_data_html') ?>
  5. <?php $data['company/info.park_menu']=Maze\Routing\Load::get('company/info.park_menu') ?>
  6. <?php $data['main/data.menu']=Maze\Routing\Load::get('main/data.menu') ?>
  7. <!doctype html> <html> <head href="<?php echo Maze::url("index") ?>"><?php echo Maze::view("inc/head") ?></head> <body> <div class="header"> <ul class="nav clearfix"> <?php if(is_array($data['main/data.menu'])): ?><?php $t=count($data['main/data.menu'])-1 ?><?php $i=0 ?><?php foreach($data['main/data.menu'] as $k => $v): ?><li class="<?php echo Maze::last("no-bg", $i, $t) ?> <?php echo Maze::last(Maze::input("nav"), $i, $t) ?>"><a href="<?php echo $v['link'] ? $v['link'] : "javascript:;" ?>" title="" target="<?php echo $v['target'] ?>"><?php echo $v['name'] ?></a></li><?php $i=$i+1 ?><?php endforeach; ?><?php else: ?><?php echo $data['main/data.menu'] ?><?php endif; ?> </ul> </div> <div class="equip-top"> <h3><?php echo Maze::load("company/info.park_info#name") ?></h3> <div class="avatar" style="display:none;"><img src="img/equip2.jpg" width="106" height="106" alt=""></div> <img src="http://www.xinnongbaohe.com/assets/pc/img/equip1.jpg" alt="" class="bg"> <div class="txt" style="display:none;"><?php echo Maze::load("company/info.park_info#baidu") ?></div> </div> <div class="equip"> <div class="tabs clearfix"> <?php if(is_array($data['company/info.park_menu'])): ?><?php $t=count($data['company/info.park_menu'])-1 ?><?php $i=0 ?><?php foreach($data['company/info.park_menu'] as $k => $v): ?><a href="<?php echo $v['link'] ?>" class="<?php echo $v['class'] ?>"><?php echo $v['name'] ?></a><?php $i=$i+1 ?><?php endforeach; ?><?php else: ?><?php echo $data['company/info.park_menu'] ?><?php endif; ?> </div> <div id="playerShow" style="display:none;margin-left: 150px;display:;"><div style="width:700px;height:394px;" id="player"></div></div> <div id="device_data" data-url="<?php if(is_array($data['company/info.device_data_url'])): ?><?php $t=count($data['company/info.device_data_url'])-1 ?><?php $i=0 ?><?php foreach($data['company/info.device_data_url'] as $k => $v): ?><?php $i=$i+1 ?><?php endforeach; ?><?php else: ?><?php echo $data['company/info.device_data_url'] ?><?php endif; ?>"> <div class="business-list clearfix"><?php if(is_array($data['company/info.device_data_html'])): ?><?php $t=count($data['company/info.device_data_html'])-1 ?><?php $i=0 ?><?php foreach($data['company/info.device_data_html'] as $k => $v): ?><?php echo $v ?><?php $i=$i+1 ?><?php endforeach; ?><?php else: ?><?php echo $data['company/info.device_data_html'] ?><?php endif; ?></div> </div> </div> <div class="footer"> <div class="txt"><?php echo Maze::load("/config-one#icp", 1) ?> 联系电话:<?php echo Maze::load("/config-one#tel", 1) ?></div> </div> <div id="video"><?php echo Maze::load("video/show.init") ?></div> <script type="text/javascript" src="http://www.xinnongbaohe.com/assets/pc/js/device.js"></script> <script type="text/javascript"> Maze_Device.Init(false); </script> </body> </html>