<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<?php $this->skymvc->loadmodel("site");$this->assign("site",$_ENV["siteModel"]->selectRow()); ?>
<title><?php if ($this->_var['seo']['title']): ?><?php echo $this->_var['seo']['title']; ?><?php else: ?><?php echo $this->_var['site']['title']; ?><?php endif; ?><?php if ($_GET['per_page']): ?>|第<?php echo $_GET['per_page']; ?>页<?php endif; ?></title>
<meta name="keywords" content="<?php if ($this->_var['seo']['keywords']): ?><?php echo $this->_var['seo']['keywords']; ?><?php else: ?><?php echo $this->_var['site']['keywords']; ?><?php endif; ?>" />
<meta name="description" content="<?php if ($this->_var['seo']['description']): ?><?php echo $this->_var['seo']['description']; ?><?php else: ?><?php echo $this->_var['site']['description']; ?><?php endif; ?>" />
<!--[if lt IE 9]>
      <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
<script language="javascript" src="/static/js/jquery.js"></script>
<script language="javascript" src="/static/js/jquery.lazyload.js"></script>
<script language="javascript" src="/static/js/jquery.masonry.min.js"></script>
<script src="/plugin/bootstrap/js/bootstrap.js"></script>
<script src="/static/js/common.js"></script>
<link href="/plugin/bootstrap/css/bootstrap.css" rel="stylesheet" type="text/css">

<link href="/static/images/base.css?v=<?php echo time(); ?>" rel="stylesheet" type="text/css">
<link href="/static/images/my.css?v=<?php echo time(); ?>" rel="stylesheet" type="text/css">
<style type="text/css">
<?php $this->assign('navbar_inner_bg','#F33'); ?>
.navbar-inverse .navbar-inner {
  background-color: <?php echo $this->_var['navbar_inner_bg']; ?>;
  background-image: -moz-linear-gradient(top, <?php echo $this->_var['navbar_inner_bg']; ?>, <?php echo $this->_var['navbar_inner_bg']; ?>);
  background-image: -webkit-gradient(linear, 0 0, 0 100%, from(<?php echo $this->_var['navbar_inner_bg']; ?>), to(<?php echo $this->_var['navbar_inner_bg']; ?>));
  background-image: -webkit-linear-gradient(top, <?php echo $this->_var['navbar_inner_bg']; ?>, <?php echo $this->_var['navbar_inner_bg']; ?>);
  background-image: -o-linear-gradient(top, <?php echo $this->_var['navbar_inner_bg']; ?>,<?php echo $this->_var['navbar_inner_bg']; ?>);
  background-image: linear-gradient(to bottom, <?php echo $this->_var['navbar_inner_bg']; ?>, <?php echo $this->_var['navbar_inner_bg']; ?>);
  background-repeat: repeat-x;
  border-color: <?php echo $this->_var['navbar_inner_bg']; ?>;
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='<?php echo $this->_var['navbar_inner_bg']; ?>', endColorstr='<?php echo $this->_var['navbar_inner_bg']; ?>', GradientType=0);
   filter:none;
  
}

.navbar-inverse .brand {
  color: #fff;
	font-weight:900;
}

.navbar-inverse .brand,
.navbar-inverse .nav > li > a {
  color: #fff;
 
  text-shadow:none;
}

.navbar-inverse .nav > li > a{font-size:14px; font-weight:600;}

.navbar-inverse .nav li > a:hover,
.navbar-inverse .nav li > a:focus {
  color: #ffffff;
  background-color: #FA6262;
}

.navbar-inverse .nav .active > a,
.navbar-inverse .nav .active > a:hover,
.navbar-inverse .nav .active > a:focus {
  color: #ffffff;
  background-color: #FA6262;
}


.navbar-inverse .nav li.dropdown.open > .dropdown-toggle,
.navbar-inverse .nav li.dropdown.active > .dropdown-toggle,
.navbar-inverse .nav li.dropdown.open.active > .dropdown-toggle {
  color: #ffffff;
  background-color: #FA6262;
}

.tab-list-heading,.tab-list-heading:hover,.tab-list-heading:visited{display:block; height:40px; line-height:40px; text-decoration:none; padding-left:6px; background-color:#319199; color:#fff; font-weight:600; font-size:16px;}

.tab-list{
	list-style: none;
	padding: 0;
	margin: 0;
	width: 100%;
	text-align: left;
	list-style-type:none;
}

.tab-list li {
	padding: 0 10px;
	
	line-height: 40px;
	border-bottom: 1px solid #ccc;
	border-top: 1px solid #fff;
	background-color: #fafafa;
	font-size: 14px;
}
.tab-list .active{background-color:#ECE0D4;}
.tab-list  li a{display:block; text-decoration:none; color:#000;}
.tab-list  li a：hover{display:block; text-decoration:none; color:#ccc;}

.fixed-cart-off{position:fixed; bottom:3px; border-bottom:0px; right:10px; background-color:#fff; padding-bottom:10px; padding:10px; width:120px; text-align:center;}
.fixed-cart-close:hover{background-color:#ccc;}
.fixed-cart-on{width:320px; position:fixed; bottom:3px; right:10px; background-color:#fff; padding-bottom:10px; max-height:400px; overflow-y:scroll; padding:5px;}
.fixed-cart-close{position:absolute; top:5px; right:5px; height:30px; width:30px; line-height:30px; text-align:center; cursor:pointer; color:#fff; font-weight:900; z-index:9999;}

</style> 
</head>

<body  style="padding-top:40px ; background-color:#C00;">
<?php $this->skymvc->loadmodel("login");$this->assign("ssuser",$_ENV["loginModel"]->getuser()); ?>
<div class="navbar  navbar-fixed-top navbar-inverse navbar-red">
<div class="navbar-inner">
        <div class="container">
        <a class="brand" href="/index.php"><?php echo $this->_var['site']['sitename']; ?></a>
           <ul class="nav" style="float:left">
          
          	 <li <?php if (get ( 'm' ) == 'index' && get ( 'm' ) == ''): ?> class="active"<?php endif; ?>><a href="<?php echo R("/index.php");?>">首页</a></li>
              <li <?php if (get ( 'm' ) == 'list' && get ( 'catid' ) == 1): ?> class="active"<?php endif; ?>><a href="<?php echo R("/index.php?m=list&catid=1");?>">美食</a></li>
               <li <?php if (get ( 'm' ) == 'list' && get ( 'catid' ) == 2): ?> class="active"<?php endif; ?>><a href="<?php echo R("/index.php?m=list&catid=2");?>">资讯</a></li>
              <li <?php if (get ( 'm' ) == 'list' && get ( 'catid' ) == 5): ?> class="active"<?php endif; ?>><a href="<?php echo R("/index.php?m=list&catid=5");?>">积分兑换</a></li>
              <li <?php if (get ( 'm' ) == 'html' && get ( 'a' ) == 'about'): ?> class="active"<?php endif; ?>><a href="<?php echo R("/index.php?m=html&a=about");?>">关于我们</a></li>
              <li <?php if (get ( 'm' ) == 'order_cart'): ?> class="active"<?php endif; ?>><a href="<?php echo R("/index.php?m=order_cart");?>">购物车</a></li>
              <li <?php if (get ( 'm' ) == 'activity'): ?> class="active"<?php endif; ?>><a href="<?php echo R("/index.php?m=activity");?>">活动</a></li>
              <li <?php if (get ( 'm' ) == 'checkin'): ?> class="active"<?php endif; ?>><a href="<?php echo R("/index.php?m=checkin");?>"  >签到</a></li>
               
              </ul>
           
           
            <ul class="nav" style="float:right">
              <?php if (isset ( $this->_var['ssuser']['userid'] )): ?>
              <li class="dropdown">
              <a href="javascript:;" class="dropdown-toggle"
       data-toggle="dropdown" ><?php echo $this->_var['ssuser']['nickname']; ?><b class="caret"></b></a>
              	<ul class="dropdown-menu">
                	<li><a href="/index.php?m=sysmsg">消息</a></li>
                    <li><a href="/index.php?m=follow">我的好友</a></li>
                    <li><a href="/index.php?m=checkin&a=my">签到记录</a></li>
                    <li><a href="/index.php?m=order&a=my">我的订单</a></li>
                    
                    <li><a href="/index.php?m=activity&a=myCreate">我的活动</a></li>
                    <li><a href="/index.php?m=comment&a=my">我的评论</a></li>
                    <li><a href="/index.php?m=recharge">在线充值</a></li>
                    <li><a href="/index.php?m=user&a=info">用户信息</a></li>
                     
                    <li><a href="/index.php?m=user_address">收获地址</a></li>
                </ul>
              </li>
                <li><a href="/index.php?m=member&a=home"  >主页</a></li>
                 
                
                
                <li><a href="/index.php?m=login&a=logout"  >退出</a></li>
			<?php else: ?>
              <li class="">
                <a href="/index.php?m=register">注册</a>
              </li>
              <li class="dropdown"> <a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown">登陆 <b class="caret"></b></a>
          <ul class="dropdown-menu">
            <li><a href="/index.php?m=login&a=login">账号登陆</a></li>
            <li class="divider"></li>
            <li><a href="/index.php?m=sinalogin&a=geturl"><i class="open-bind open-weibo"></i>微博登陆</a></li>
            <li><a href="/index.php?m=qqlogin&a=geturl"><i class="open-bind open-qq"></i> QQ登陆</a></li>
            <li><a href="/index.php?m=taobaologin&a=geturl"><i class="open-bind open-taobao"></i>淘宝登陆</a></li>
          </ul>
        </li>
             <?php endif; ?>
            </ul>
           
        </div>
      </div>
</div>

<div style="width:980px; background-color:#fff; margin:10px auto;">
<img src="<?php echo $this->_var['skins']; ?>images/ad/banner.jpg" style="width:100%;" />
</div>
</div>

<div style="">

<div style="width:980px; background-color:#fff; margin:0 auto;">
<div class="container" >
<div style="width:100%; height:20px;"></div>
 