-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtopic.php
More file actions
82 lines (81 loc) · 2.78 KB
/
topic.php
File metadata and controls
82 lines (81 loc) · 2.78 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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?php
session_start();
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="stylesheet" type="text/css" href="topic4.css"/>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="about_me.css"/>
<link href="http://libs.baidu.com/bootstrap/3.0.3/css/bootstrap.min.css" rel="stylesheet">
<script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
<script src="http://libs.baidu.com/bootstrap/3.0.3/js/bootstrap.min.js"></script>
<title>话题首页</title>
</head>
<body>
<div class="welcome">
<?php
include 'top_class.php';
if(isset($_SESSION['username']))
{
} else {
echo "<script>alert('请登录'); top.location='login.php'; </script>";
//header("Location:login.php");
exit;
}
?>
</div>
<!-- <div class="content1">
<CENTER><FONT face=隶书 color=red size=15>
<MARQUEE direction=up behavior=alternate width=60 height=120>欢</MARQUEE><FONT color=yellow>
<MARQUEE direction=up behavior=alternate width=60 height=80>迎</MARQUEE><FONT color=brown>
<MARQUEE direction=up behavior=alternate width=60 height=120>来</MARQUEE><FONT color=green>
<MARQUEE direction=up behavior=alternate width=60 height=80>到</MARQUEE><FONT color=orange>
<MARQUEE direction=up behavior=alternate width=290 height=120>NitefuiiSand</MARQUEE><FONT color=green>
</div> -->
<div class="btn_">
<button class="btn btn-info" onclick="location='Love.php'">网站首页</button>
<button type="button" class="btn btn-success">留言板</button>
<div class="Tform">
<form action="insert_data_topic.php" method="post">
<table>
<tr>
<td><?php echo $_SESSION['username'];?></td>
</tr>
<tr>
<td>标题:</td>
<td><input type="text" name="heading"/></td>
</tr>
<tr>
<td>内容:</td>
<td>
<!-- <textarea name="content" rows="5" cols="40"></textarea> -->
<div id="content">
<!--加载编辑器的容器-->
<script id="container" name="content" type="text/plain">
</script>
<!--配置文件-->
<script type="text/javascript" src="utf8-php/ueditor.config.js"></script>
<!--编辑器源码文件-->
<script type="text/javascript" src="utf8-php/ueditor.all.js"></script>
<!-- 实例化编辑器 -->
<script type="text/javascript">
var ue = UE.getEditor('container');
</script>
</div>
</td>
</tr>
<tr>
<td>时间:</td>
<td><?php date_default_timezone_set('prc'); $time = time();echo date("y-m-d h:i:s",$time) ?></td>
</tr>
<tr>
<td colspan="2" style="text-align:center;">
<input type="submit" name="submit" value="发表" />
</td>
</tr>
</table>
</form>
</div>
</body>
</html>