-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmanager2.php
executable file
·232 lines (194 loc) · 11.3 KB
/
manager2.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
<?php
require("code/util/mysql.php");
require("code/util/util.php");
if(isset($_SERVER['REQUEST_URI'])){
$url=$_SERVER['REQUEST_URI'];
$params = getParam($url);
if($params["type"] ==1){
echo "<script type='text/javascript'>window.location.href='news.php' </script>";
}
if($params==null){
$params["type"] = 2;
}
$type=$params["type"];
$result= PdoMysql::getInstance()->getAllNews($type);
}
?>
<!DOCTYPE html>
<!-- saved from url=(0046)http://v3.bootcss.com/examples/carousel/#about -->
<html lang="zh-CN"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- 上述3个meta标签*必须*放在最前面,任何其他内容都*必须*跟随其后! -->
<meta name="description" content="">
<meta name="author" content="">
<link rel="icon" href="resource/img/ico.jpg">
<title>复旦大学海关史与海关文献国际研究中心欢迎您</title>
<!-- Bootstrap core CSS -->
<link href="resource/css/style.css" rel="stylesheet">
<link href="resource/css/bootstrap.css" rel="stylesheet">
<link href="resource/css/base.css" rel="stylesheet">
<!-- Just for debugging purposes. Don't actually copy these 2 lines! -->
<!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
<script src="resource/js/ie-emulation-modes-warning.js"></script>
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="resource/js/respond.js"></script>
<script src="resource/js/html5shiv.js"></script>
<![endif]-->
<!-- Custom styles for this template -->
<link href="resource/css/carousel.css" rel="stylesheet">
<!--[if IE 8]><body class="ie">
<style type="text/css">
#rightContent{ padding-right:0px !important;}
</style>
<![endif]-->
</head>
<!-- NAVBAR
================================================== -->
<body style="font-family:微软雅黑 !important;background-color:#f8f8f8">
<div class="container">
<?php include("header.php") ?>
</div>
<div id="myCarousel" class="carousel slide" data-ride="carousel">
<!-- Indicators -->
<div class="carousel-inner" role="listbox" >
<div class="item active">
<img id="slider" class="first-slide" alt="First slide">
</div>
</div>
</div><!-- /.carousel -->
<div class="container" style="margin-top:-320px;padding-left:0px">
<div class="jumbotron" style="padding:1px 40px 5px 15px;margin-bottom:-3px;opacity:0.9;background-color:#f8f8f8">
<h1 class="subTitle"><b>
<?php
if($type==2){
echo "会议·Conference";
}else if($type==3){
echo "讲座· Lectures";
}else if($type==4){
echo "活动· Activities";
}
?>
</b></h1>
</div>
</div>
<div class="container" style="margin-top:0px">
<div class="row">
<div class="col-md-9 panelCol2">
<div class="panel panel-default" style="border-color:#f8f8f8;background-color:#f8f8f8">
<div class="row" style="margin:15px 0px 0px 2px" id="fudanNews">
<div class="wrapper" style="padding-top:0px">
<a name="main-content" class="top-anchor"></a>
<section class="region region-content">
<div class="ds-1col node node-page view-mode-full clearfix">
<div class="field field-name-title field-type-ds field-label-hidden"><div class="field-items"><div class="field-item even"><h1 style="display:none">News</h1></div></div></div></div>
<div id="block-views-hy-news-news" class="block block-views plain last even">
<div class="content">
<div class="view view-hy-news view-id-hy_news view-display-id-news">
<div class="view-content">
<ul class="events-listing-content sort-destination isotope-events" style="padding-left:0px" data-sort-id="events">
<?php
foreach($result as $eachResult){
?>
<li class="event-list-item dashed-bottom-bordered" style="width: 95%;margin:3px 9px 0px 9px;padding-top:10px;height:110px;">
<div style="margin-left: 10px;">
<div class="event-list-item-date" style="width: 120px;height: 90px;overflow: hidden;margin-right: 15px;">
<span class="event-date">
<span class="event-day"><?php echo getDay($eachResult['contentdate']) ?></span>
<span class="event-month"><?php echo getMonth($eachResult['contentdate']).'   月' ?></span>
</span>
</div>
<div class="event-list-item-info myevent-list-item" style="padding:1px 0 5px 5px;">
<div class="lined-info lined-title event-title" style="position: relative;padding-right: 0;max-height: 36px;overflow: hidden">
<h4 style="margin-top:0px" >
<a class="hover-yellow" href="newsDetail.php?id=<?php echo $eachResult["id"].'&type='.$type ?>" target="_blank"><?php echo $eachResult['title'] ?></a>
</h4>
</div>
<div class="event-list-item-dm">
<div class="lined-info">
<span class="meta-data"><i class="fa fa-clock-o"></i> <span style="event-time"><?php echo getTime($eachResult['contentdate']) ?></span></span>
</div>
<div class="lined-info event-location">
<span class="meta-data"><i class="fa fa-map-marker"></i> <span style="event-location-address"><?php echo $eachResult['contentLocation'] ?></span></span>
</div>
</div>
</div>
</div>
<a href="editor.php?id=<?php echo $eachResult["id"] ?>&mode=update&type=<?php echo $type ?>" target="_blank" class="more-link">编辑</a>
<a href="newsDetail.php?id=<?php echo $eachResult["id"] ?>" class="more-link">删除</a>
</li>
<hr class="featurette-divider" style="margin: 5px 0px 0px 0px">
<?php
}
?>
</ul>
</div>
</div>
</div>
<h2 style="display:none">Pages</h2><div class="item-list">
<ul class="pager"><li class="pager-current first">1</li>
<!--<li class="pager-item"> <a title="Go to page 2" href="/news?page=1">2</a></li>-->
<li> <a title="Go to next page" href="/news?page=1">next ›</a></li>
<li> <a title="Go to last page" href="/news?page=1">last »</a></li>
</ul>
</div>
</div>
</section>
</div>
</div><!-- /.row -->
</div> <!-- /.panel -->
</div><!-- /.col-sm-9 -->
<div class="col-md-3" style="padding-left:0px;padding-right:15px">
<div class="panel panel-default" style="border-color:#f8f8f8;background-color:#f8f8f8;margin-left:-50px;padding-right:50px">
<div class="panel-heading" style="background-color:#f8f8f8;border:none">
<!--<i class="fa fa-link"></i>-->
<div class="pull-right" style="">
</div>
<div class="clearfix"></div>
</div>
<div class="row" style="margin:40px 10px 0px 2px;padding:2px" id="fudanNews">
<div class="sideNav">
<nav class="sidebar-navigation">
<ul>
<li <?php if($type==1) echo "class='active'" ?>><a class="sideBar" href="manager1.php" >新闻<span class="sidebarEn">  News</span></a></li>
<li <?php if($type==2) echo "class='active'" ?>><a class="sideBar" href="manager2.php?type=2">会议<span class="sidebarEn">  Conference</span></a></li>
<li <?php if($type==3) echo "class='active'" ?>><a class="sideBar" href="manager2.php?type=3">讲座<span class="sidebarEn">  Lectures</span></a></li>
<li <?php if($type==4) echo "class='active'" ?>><a class="sideBar" href="manager2.php?type=4">活动<span class="sidebarEn">  Activity</span></a></li>
</ul>
</nav> <!-- /sidebar-navigation -->
</div>
</div>
</div>
</div><!-- /.col-sm-3 -->
</div> <!--row-->
<br><br>
</div>
<?php
include("footer.php");
?>
<!-- Carousel
================================================== -->
<!-- FOOTER -->
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="resource/js/jquery.min.js"></script>
<script src="resource/js/bootstrap.min.js"></script>
<script src="resource/js/main.js"></script>
<!-- Just to make our placeholder images work. Don't actually copy the next line! -->
<!--<script src="./js/holder.min.js"></script>-->
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<script src="resource/js/ie10-viewport-bug-workaround.js"></script>
<script type="text/javascript">
var bodyBgs = []; //创建一个数组变量来存储背景图片的路径
bodyBgs[0] = "resource/img/banner9.jpg";
bodyBgs[1] = "resource/img/banner2.jpg";
bodyBgs[2] = "resource/img/banner2.jpg";
bodyBgs[3] = "resource/img/banner9.jpg";
bodyBgs[4] = "resource/img/banner8.jpg";
var randomBgIndex = Math.round( Math.random() * 4 );
$("#slider").attr("src",bodyBgs[randomBgIndex]);
</script>
</body></html>