greenhouse.cmp.php 4.8 KB

12345678
  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.device_button_list']=Maze\Routing\Load::get('company/info.device_button_list') ?>
  6. <?php $data['company/info.park_menu']=Maze\Routing\Load::get('company/info.park_menu') ?>
  7. <?php $data['main/data.menu']=Maze\Routing\Load::get('main/data.menu') ?>
  8. <!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="http://www.xinnongbaohe.com/assets/pc/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-data 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 class="equip-info business-list clearfix" id="J_equipInfo"><?php echo $data['company/info.device_button_list']['info'] ?></div> </div> </div> <div class="show-box" id="J_showBox"> <div class="mark"></div> <div class="box"> <div class="title" id="J_title">确认关闭设备</div> <div class="btn sure box_sure" id="J_sure">确认</div> <div class="btn cancel box_cancel" id="J_cancel">取消</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> var basePath = 'http://www.xinnongbaohe.com/assets/pc/lib/'; var m3u8 = 'http://vshare.ys7.com:80/hcnp/528988158_1_2_1_0_183.136.184.7_6500.m3u8'; var rtmp = 'rtmp://hzrtmp02.ys7.com:1935/livestream/528988158_1_2_1_0'; var rtsp = 'rtsp://183.136.184.33:8554/demo://528988158:1:2:1:0:183.136.184.7:6500'; var retcode = '0'; var des = '服务器异常'; </script> <script type="text/javascript" src="http://www.xinnongbaohe.com/assets/pc/js/device.js"></script> <script type="text/javascript"> var device = { '#J_equipInfo .item' : ['.name', '.state'] }; Maze_Device.Init(device); </script> </body> </html>