valve.cmp.php 3.4 KB

1234567
  1. <!--power by mazephp--><?php Maze::setInput("menu", "0") ?>
  2. <?php Maze::setInput("item", "business-item") ?>
  3. <?php Maze::setInput("top", "") ?>
  4. <?php $data['company/info.device_data_url']=Maze\Routing\Load::get('company/info.device_data_url') ?>
  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. <!doctype html> <html> <head><?php echo Maze::view("inc/head") ?></head> <body> <div class="header" style="<?php echo Maze::input("header") ? "display:none;" : "" ?>"> <ul class="nav clearfix"> <li class="active title" style="<?php echo Maze::input("header") ? (Maze::input("title") ? "" : "display:none;") : "" ?>"><a href="" title=""><?php echo Maze::load("company/info.park_info#name") ?></a></li> </ul> <a href="<?php echo Maze::url("index?farm=" . Maze::input("farm")) ?>" class="back"></a> </div> <div class="container equip" style="<?php echo Maze::input("header") ? (Maze::input("top") ? Maze::input("top") : "top:0;bottom:0") : Maze::input("top") ?>"> <div id="playerShow" style="display:none;"><div style="height:250px;" id="player"><?php echo Maze::load("video/show.init", "mobile") ?></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; ?>" style="<?php echo Maze::input("header") ? "margin-top:20px" : "" ?>"> <div class="equip-info clearfix" id="J_equipInfo" style="border:0px;margin-top:-10px;"><?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 clearfix" style="<?php echo Maze::input("header") ? "display:none;" : "" ?>"> <?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'] ?><?php echo Maze::input("header") ? "&header=false" : "" ?>" class="item <?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="baidumap"></div> <div id="video"></div> <script type="text/javascript" src="http://www.xinnongbaohe.com/assets/mobile/js/device.js"></script> <script type="text/javascript" src="http://www.xinnongbaohe.com/assets/mobile/build/lib/jquery-1.11.3.min.js"></script> <script type="text/javascript"> var device = { '#J_equipInfo .item' : ['.name', '.state'] }; Maze_Device.Init(device); </script> </body> </html>