123456 |
- <!--power by mazephp--><?php Maze::setInput("menu", "4") ?>
- <?php Maze::setInput("title", "no") ?>
- <?php $data['company/info.device_log']=Maze\Routing\Load::get('company/info.device_log') ?>
- <?php $data['company/info.device_list']=Maze\Routing\Load::get('company/info.device_list') ?>
- <?php $data['company/info.park_menu']=Maze\Routing\Load::get('company/info.park_menu') ?>
- <!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"><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 id="device_data" style="<?php echo Maze::input("header") ? "margin-top:20px" : "" ?>"></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="title" style="<?php echo Maze::input("header") ? (Maze::input("title") ? "" : "display:none;") : "" ?>">设备记录</div> <table class="log-table" width="96%"> <tr class="bg"> <th>设备名称</th> <th>设备ID</th> <th>应用日期</th> <th>备注</th> </tr> <div id="list"> <?php if(is_array($data['company/info.device_list'])): ?><?php $t=count($data['company/info.device_list'])-1 ?><?php $i=0 ?><?php foreach($data['company/info.device_list'] as $k => $v): ?><tr class="<?php echo Maze::lace("bg,", $i+1, 2) ?>"> <td><?php echo $v['name'] ?></td> <td><?php echo $v['device'] ?></td> <td><?php echo date("Y-m-d", $v['sdate']) ?></td> <td><?php echo $v['info'] ?></td> </tr><?php $i=$i+1 ?><?php endforeach; ?><?php else: ?><?php echo $data['company/info.device_list'] ?><?php endif; ?> </div> </table> <div class="title log-title">维修记录</div> <table class="log-table mb60" width="96%"> <tr class="bg"> <th>日期</th> <th>记录</th> <th>维修工程师</th> </tr> <div id="log"> <?php if(is_array($data['company/info.device_log'])): ?><?php $t=count($data['company/info.device_log'])-1 ?><?php $i=0 ?><?php foreach($data['company/info.device_log'] as $k => $v): ?><tr class="<?php echo Maze::lace("bg,", $i+1, 2) ?>"> <td><?php echo date("Y-m-d", $v['sdate']) ?></td> <td><?php echo $v['info'] ?></td> <td><?php echo $v['name'] ?></td> </tr><?php $i=$i+1 ?><?php endforeach; ?><?php else: ?><?php echo $data['company/info.device_log'] ?><?php endif; ?> </div> </table> </div> <div class="footer clearfix image" 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> <script type="text/javascript"> </script> </body> </html>
|