This repository has been archived by the owner on Dec 27, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
site.html.php
64 lines (61 loc) · 2.1 KB
/
site.html.php
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
<?php require_once "include/config.php"?>
<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title><?=$site_name ?></title>
<!-- Bootstrap样式表 -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/style.css" rel="stylesheet">
</head>
<body>
<!-- 头部开始 -->
<?php require "include/header.html.php"; ?>
<!-- 头部结束 -->
<!-- 主容器开始 -->
<div class="container">
<div class="row">
<h1 class="page-header">场地:<?=$assoc['site_name'] ?>
<?php
if($_SESSION["usergroup"]=="管理员"){
echo '<div class="pull-right">';
echo '<a class="btn btn-primary" href="edit_site.php?id='.$_GET["id"].'">编辑</a>';
echo '</div>';
}
?>
</h1>
</div>
<div class="panel panel-default">
<div class="panel-heading">详细介绍</div>
<div class="panel-body">
<p><?php echo $Parsedown->text($assoc["site_describe"]); ?></p>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">最近的5场活动</div>
<div class="panel-body">
<?php
$get_site_activity=$_GET["id"];
require "include/get_activity.php";
?>
</div>
</div>
</div>
<!-- 主容器结束 -->
<!-- 底部开始 -->
<?php require "include/footer.html.php" ?>
<!-- 底部结束 -->
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="http://cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="http://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<!-- 导入jQuery(Bootstrap所需前置及jQ插件所需依赖) -->
<script src="js/jquery.min.js"></script>
<!-- 导入Bootstrap -->
<script src="js/bootstrap.min.js"></script>
</body>
</html>