admin_layout.php 3.97 KB
<!DOCTYPE html>
<html>
<head>
<link rel="shortcut icon" href="favicon.ico" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>YOHO!- YOHOOD</title>
<meta name="Author" content="YOHO.CN" />
<?php $this->_block('css');?>
<?php $this->_css('index.css', array(
    SITE_CSS . '/common/bootstrap.min.css',
));?>
<?php $this->_endblock();?>
</head>
<?php $_ctx = Framework_YHttpRequest::instance();?>
<body style="padding-bottom: 40px;">
<div class="navbar navbar-inverse">
	<div class="navbar-inner">
        <div class="container-fluid">
            <a class="brand" href="<?php echo SITE_MAIN;?>">
              YO'HOOD
            </a>
            <div class="nav-collapse collapse">
	            <ul class="nav">
	              <li <?php if ($_ctx->controller_name == 'mobile'):?>class="active"<?php endif;?>><a href="<?php echo url('mobile/index')?>" >客户端模块</a></li>
	              <li <?php if ($_ctx->controller_name == 'index'):?>class="active"<?php endif;?>><a href="<?php echo url('index/index')?>" >首页</a></li>
	              <li <?php if ($_ctx->controller_name == 'activity' && in_array($_ctx->action_name, array('index','create')) ):?>class="active"<?php endif;?>><a href="<?php echo url('activity/index')?>" >活动介绍</a></li>
	              <li <?php if ($_ctx->controller_name == 'news'):?>class="active"<?php endif;?>><a href="<?php echo url('news/index')?>">资讯</a></li>
	              <li <?php if ($_ctx->controller_name == 'brand' && $_ctx->action_name != 'booth' || ($_ctx->controller_name == 'prod' && !isset($_REQUEST['status'])) ):?>class="active" <?php endif;?>><a href="<?php echo url('brand/index')?>" >品牌</a></li>
	              <li <?php if ($_ctx->controller_name == 'prod' && isset($_REQUEST['status']) ):?> <?php echo $_REQUEST['status'] == 1 ? 'class="active"':''; endif;?>><a href="<?php echo url('prod/index', array('status'=> 1))?>">限量商品</a></li>
	              <li <?php if ($_ctx->controller_name == 'activity' && in_array($_ctx->action_name, array('plantopic','plan'))):?>class="active"<?php endif;?>><a href="<?php echo url('activity/plantopic')?>">现场活动</a></li>
	              <li <?php if ($_ctx->controller_name == 'partner' && $_ctx->action_name == 'index'):?>class="active"<?php endif;?>><a href="/admin/partner/index">合作伙伴</a></li>
	              <li <?php if ($_ctx->controller_name == 'brand' && $_ctx->action_name == 'booth'):?>class="active"<?php endif;?>><a href="/admin/brand/booth">booth坐标</a></li>
	            </ul>
	            <span style="float: right;font-size: 16px;padding-top: 10px;">
	            	<a href="<?php echo url('admin::default/logout')?>" style='color:white;'>退出</a>
	            </span>
            </div>
        </div>
	</div>
</div>

<div class="container-fluid">
	<div class="row-fluid">
     <?php $this->_block('main');$this->_endblock();?>
	</div>
</div>

<!-- 弹窗 -->
<!-- ALERT窗口 -->
<div class="modal hide fade" id='box_alert' style="width: 350px;">
  <div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
    <h4>系统提示</h4>
  </div>
  <div class="modal-body">
    <p id="alert_message"></p>
    <p style="float:right;"><a href="javascript:void(0);" class="btn btn-primary" data-dismiss="modal" aria-hidden="true">确定</a></p>
  </div>
</div>

<!-- CONFIRM窗口 -->
<div class="modal hide fade" id='box_confirm' style="width: 350px;">
  <div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
    <h4>系统提示</h4>
  </div>
  <div class="modal-body">
    <p id="confirm_message"></p>
  </div>
  <div class="modal-footer">
    <button class="btn" data-dismiss="modal" aria-hidden="true">取消</button>
    <button class="btn btn-primary"  id='box_confirm_ok'>确定</button>
  </div>
</div>

<?php $this->_block('js');?>
<?php $this->_js('seajs.js', array(
	SITE_JS . '/lib/seajs.js'
));?>
<?php $this->_endblock();?>
</body>
</html>