equip.cmp.php 4.2 KB

1234567
  1. <!--power by mazephp--><?php Maze::setInput("menu", "0") ?>
  2. <?php $data['company/info.device_control']=Maze\Routing\Load::get('company/info.device_control') ?>
  3. <?php $data['company/info.device_mul']=Maze\Routing\Load::get('company/info.device_mul') ?>
  4. <?php $data['company/info.device_show_1']=Maze\Routing\Load::get('company/info.device_show_1') ?>
  5. <?php $data['company/info.device_setting']=Maze\Routing\Load::get('company/info.device_setting') ?>
  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") ? "margin-top:20px" : "" ?>"> <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 class="equip-top"> <div class="left"> <div id="map" style="width:600px;height:400px;"><?php echo Maze::load("company/info.park_map") ?></div> <div id="device_1_show" style="<?php if(is_array($data['company/info.device_show_1'])): ?><?php $t=count($data['company/info.device_show_1'])-1 ?><?php $i=0 ?><?php foreach($data['company/info.device_show_1'] as $k => $v): ?>display:none;<?php $i=$i+1 ?><?php endforeach; ?><?php else: ?><?php echo $data['company/info.device_show_1'] ?><?php endif; ?>"> <div class="<?php echo $data['company/info.device_control']['status'] ?>" id="J_allBtn"></div> <div class="list"><?php echo $data['company/info.device_mul']['status'] ?></div> </div> </div> </div> <div class="right clearfix"><?php echo $data['company/info.device_control']['info'] ?></div> <div class="equip-info clearfix" id="J_equipInfo"><?php echo $data['company/info.device_mul']['info'] ?></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 class="bigBox"><?php if(is_array($data['company/info.device_setting'])): ?><?php $t=count($data['company/info.device_setting'])-1 ?><?php $i=0 ?><?php foreach($data['company/info.device_setting'] as $k => $v): ?><?php echo $v ?><?php $i=$i+1 ?><?php endforeach; ?><?php else: ?><?php echo $data['company/info.device_setting'] ?><?php endif; ?></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"><?php echo Maze::load("company/info.park_gps") ?></div> <script type="text/javascript" src="http://www.xinnongbaohe.com/assets/mobile/js/device.js"></script> <script type="text/javascript"> var device = { '.all-info' : ['.J_allBtn', '.title', '#J_allBtn'] ,'#J_equipInfo .item' : ['.name', '.state', '.J_valve'] }; Maze_Device.Init(device); </script> </body> </html>