admin_layout.php
4.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<!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('admin.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>
<li <?php if ($_ctx->controller_name == 'invitation' && $_ctx->action_name == 'index'):?>class="active"<?php endif;?>><a href="/admin/invitation/index">邀请函</a></li>
<li <?php if ($_ctx->controller_name == 'onlinereg'):?>class="active"<?php endif;?>><a href="/admin/onlinereg/index">在线登记</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">×</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">×</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>