-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmanager1.php
executable file
·202 lines (161 loc) · 8.65 KB
/
manager1.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
<?php
require("code/util/mysql.php");
$result= PdoMysql::getInstance()->getAllNews(1);
?>
<!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>新闻·News</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">
<?php
foreach($result as $news){
?>
<div id="view1" class="clearfix">
<div class="group-right">
<div>
<div><?php echo $news["date"] ?></div>
</div>
<div>
<h2 style="font-size: 35px;margin-top:6px">
<a href="newsDetail.php?id=<?php echo $news["id"] ?>" target="_blank" class="TitlePreview"><?php echo $news["title"] ?></a>
</h2>
</div>
<div class="newsAbstract">
<?php echo $news["subContent"] ?>
<a href="editor.php?id=<?php echo $news["id"] ?>&mode=update&type=1" target="_blank" class="more-link">编辑</a>
<a href="newsDetail.php?id=<?php echo $news["id"] ?>" class="more-link">删除</a>
</div>
</div>
</div>
<hr class="featurette-divider" style="margin: 15px 0px 15px 0px">
<?php
}
?>
</div>
</div>
</div>
<a href="editor.php" class="more-link" target="_blank">新增</a>
<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 class="active"><a class="sideBar" href="news.php" >新闻<span class="sidebarEn">  News</span></a></li>
<li><a class="sideBar" href="manager2.php?type=2">会议<span class="sidebarEn">  Conference</span></a></li>
<li><a class="sideBar" href="manager2.php?type=3">讲座<span class="sidebarEn">  Lectures</span></a></li>
<li><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>