-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
125 lines (119 loc) · 3.78 KB
/
index.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
<?php
session_start();
date_default_timezone_set("PRC");
$time=date('Y-m-d H:i:s');
?>
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>留言板leesd.net</title>
<link rel="stylesheet" href="css/global.css" type="text/css"/>
<link rel="stylesheet" href="css/index.css" type="text/css"/>
<script type="application/javascript" src="./js/common_tools.js"></script>
<script type="application/javascript" src="./js/index.js"></script>
</head>
<body id="top">
<div class="report">
<div class="up">
<div onclick="location='#top'" id="triangle-up" style='display: none;'></div>
</div>
<br/>
<p>
<?php
if(!empty($_SESSION['loginuser'])){
echo "<div onclick='location=\"#reporttable\"' class='up'><div id='talkbubble'></div></div>";
}else{
echo "<div class='up' onclick='alert(\"请登录\")'><div id='talkbubble'></div></div>";
}
?>
</p>
</div>
<div class="mainDiv">
<div class="lybHead">
<div class="menudiv" onclick="showDiv('menudiv2')">
<a class="menu" href="javascript:">
<div class="bar"></div>
<div class="bar"></div>
<div class="bar"></div>
</a>
</div>
<div id="menudiv2" class="menudiv2" style="display: none;">
<div class="m2k">
<div class="m2d"><a href="javascript:goToAccount()">个人资料</a></div>
<div class="m2d"><a href="javascript:">管理留言</a></div>
<div class="m2d"><a href="javascript:">我喜欢的</a></div>
<div class="m2d"><a href="javascript:">设置</a></div>
</div>
</div>
<?php
echo "<span class=\"sp1\">";
if(empty($_SESSION['loginuser'])){
echo "<div class='login'><a href=\"login.php\">登录</a> <a href=\"register.php\">注册</a></div>";
}else{
echo "<img onclick='goToAccount()' id='touxiang' class='touxiang' src='images/userheads/default.gif'/>";
echo "<div class='login'>"
//."<img class='touxiang' src='./images/default.gif'/>"
."<span style='color:#2aa7ff;'>"
.$_SESSION['loginuser']."</span> ";
echo "#".$_SESSION['UID']." ";
if($_SESSION['pLevel']==255){
echo "<a href='./manage/index.php'>管理</a> ";
}
echo "<a href='javascript:safeQuit()'>退出</a></div>";
}
echo "</span><span class=\"sp2\"><a href=\"index.php\">LEESD.NET</a></span>";
?>
</div>
<div class="contentdiv">
<div class="contents">
<?php
//输出留言信息
require_once 'printcontent.php';
?>
</div>
</div>
<br/><br/><br/>
<?php if(!empty($_SESSION['loginuser'])){ ?>
<form action="./controller/addProcess.php" method="post">
<input type="hidden" name="name" value="<?php echo $_SESSION['loginuser'];?>">
<div class="reportdiv">
<table id="reporttable" cellspacing="0" cellpadding="0" style="width:100%">
<tr>
<td width="75" height="30">
标题:
</td>
<td>
<input type="text" name="title" style="width:100%;"/>
</td>
</tr>
<tr>
<td colspan="2">
留言内容:
</td>
</tr>
<tr>
<td colspan="2" >
<textarea name="content" rows="10" style="width:100%;resize:none;"></textarea>
</td>
</tr>
<tr>
<td>
<input type="hidden" id="nowtime" name="nowtime" value="<?php echo $time ?>"/>
<input type="submit" value="发表" style="width:100px; height:30px;"/>
</td>
<td align="right">
<input type="reset" value="重置" style="width:40px; height:30px;"/>
</td>
</tr>
</table>
</div>
<br/>
</form>
<?php } ?>
<div class="footer">
©2016 LEESD <a href="http://www.miitbeian.gov.cn/" target="_blank">蜀ICP备16007729号</a>
</div>
</div>
</body>
</html>