question.cmp.php 2.5 KB

123
  1. <!--power by mazephp--><?php $data['company/info.question']=Maze\Routing\Load::get('company/info.question') ?>
  2. <?php $data['main/data.menu']=Maze\Routing\Load::get('main/data.menu') ?>
  3. <!doctype html> <html> <head><?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="system"> <div class="news-title"> <a href="<?php echo Maze::url("index") ?>" class="news-back"></a> 常见问题 </div> </div> <div class="container question"> <div class="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"> <div class="txt"><?php echo Maze::load("/config-one#icp", 1) ?> 联系电话:<?php echo Maze::load("/config-one#tel", 1) ?></div> </div> <script type="text/javascript"> </script> </body> </html>