news.cmp.php 2.1 KB

123
  1. <!--power by mazephp--><?php $data['company/info.msg']=Maze\Routing\Load::get('company/info.msg') ?>
  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 news"> <?php if(is_array($data['company/info.msg'])): ?><?php $t=count($data['company/info.msg'])-1 ?><?php $i=0 ?><?php foreach($data['company/info.msg'] as $k => $v): ?><div class="news-item gray<?php echo Maze::lace(",gray", $i+1) ?>"> <div class="time"><?php echo Date("Y.m.d H:i", $v['cdate']) ?></div> <div class="txt"><?php echo $v['content'] ?></div> </div><?php $i=$i+1 ?><?php endforeach; ?><?php else: ?><?php echo $data['company/info.msg'] ?><?php endif; ?> </div> <div class="page"><?php echo Maze::load("company/info.msg_page") ?></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>