question.cmp.php 2.9 KB

123
  1. <!--power by mazephp--><?php $data['company/info.question']=Maze\Routing\Load::get('company/info.question') ?>
  2. <?php $data['main/data.mobile_menu']=Maze\Routing\Load::get('main/data.mobile_menu') ?>
  3. <!doctype html> <html> <head href="<?php echo Maze::url("index") ?>"><?php echo Maze::view("inc/head") ?></head> <body> <div class="header" style="<?php echo Maze::input("header") ? "display:none;" : "" ?>"> <ul class="nav clearfix"> <?php if(is_array($data['main/data.mobile_menu'])): ?><?php $t=count($data['main/data.mobile_menu'])-1 ?><?php $i=0 ?><?php foreach($data['main/data.mobile_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.mobile_menu'] ?><?php endif; ?> </ul> </div> <div class="container question" style="<?php echo Maze::input("header") ? (Maze::input("top") ? Maze::input("top") : "top:0;bottom:0") : Maze::input("top") ?>"> <h3 class="title" style="<?php echo Maze::input("header") ? "display:none;" : "" ?>">常见问题</h3> <div class="sec-title">常见问题目录</div> <?php if(is_array($data['company/info.question'])): ?><?php $t=count($data['company/info.question'])-1 ?><?php $i=0 ?><?php foreach($data['company/info.question'] as $k => $v): ?><a href="#question<?php echo $v['id'] ?>" class="question-item"><?php echo $v['name'] ?></a><?php $i=$i+1 ?><?php endforeach; ?><?php else: ?><?php echo $data['company/info.question'] ?><?php endif; ?> <div class="list"> <?php if(is_array($data['company/info.question'])): ?><?php $t=count($data['company/info.question'])-1 ?><?php $i=0 ?><?php foreach($data['company/info.question'] as $k => $v): ?><div class="item" id="question<?php echo $v['id'] ?>"> <div class="item-title">· <?php echo $v['name'] ?></div> <div class="item-con"><?php echo $v['content'] ?></div> </div><?php $i=$i+1 ?><?php endforeach; ?><?php else: ?><?php echo $data['company/info.question'] ?><?php endif; ?> </div> </div> <div class="footer clearfix" style="<?php echo Maze::input("header") ? "display:none;" : "" ?>"> <a href="<?php echo Maze::url("select") ?>">园区切换</a> <a href="<?php echo Maze::url("news") ?>">消息提示</a> <a href="<?php echo Maze::url("basic") ?>">园区概况</a> <a href="<?php echo Maze::url("index") ?>" class="active">设备控制</a> </div> <script type="text/javascript"> </script> </body> </html>