forked from pulsir/pulsir
-
Notifications
You must be signed in to change notification settings - Fork 0
/
form.php
116 lines (77 loc) · 2.53 KB
/
form.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
<?php error_reporting(0); ?>
<?php $salt = '9572186cd8f2e34eb43126434391bc77$1$mwI2qhKq$CzGzM43JmtvRWwKpbbl7..$1$CHBkox0S$nEoSlWNwnTB89.U0BRsax/3862f21b65bdb8d2223ef223a978ff6f3862f21b65bdb8d2223ef223a978ff6ff6ff879a322fe3222d8bdb56b12f2683883258566443752882'; ?>
<form action="index.php" method="post">
<input type="hidden" name="add" value="true" />
<input type="text" name="title" id="title-field" class="ned" placeholder="Title" autofocus />
<style>
input, button, input:focus, button:focus, .ned {
outline: none;
line-height: 20px;
font-weight: lighter;
float: left;
background: #fff;
font-family: inherit;
border: none;
border-radius: 0px;
color: #4A525F;
box-shadow: 0 0 0 0 0;
-moz-box-shadow: 0 0 0 0 0;
-webkit-box-shadow: 0 0 0 0 0;
}
.transparent{
background-color: transparent;
}
.transparent:hover{
background-color: #fff;
}
.save{
border:none;
background-image: url('http://d.pulsir.eu/circletosave.png');
height:45px;
width:42px;
}
.save:hover{
border:none;
background-image: url('http://d.pulsir.eu/circletosave.png');
}
</style>
<?php include 'toolbar.php'; ?>
<textarea name="body" id="body-field" rows="40" cols="30" placeholder="Post body" class="ned"> </textarea>
<script>
var editor = new wysihtml5.Editor("body-field", {
toolbar: "wysihtml5-editor-toolbar",
stylesheets: ["http://yui.yahooapis.com/2.9.0/build/reset/reset-min.css", "http://xing.github.com/wysihtml5/css/editor.css"],
parserRules: wysihtml5ParserRules
});
editor.on("load", function() {
var composer = editor.composer,
h1 = editor.composer.element.querySelector("h1");
if (h1) {
composer.selection.selectNode(h1);
}
});
</script>
<div class="row">
<div class="five columns">
<input id="tags" type="text" name="tags" placeholder="Describe this post in one word." />
</div>
<div class="five columns"> <input type="checkbox" name="private" value="1"> Make this post private? </div>
<div class="two columns"><input type="submit" id="submit" class="transparent save button" value=""></div>
</div>
<?php echo $msg; ?>
<input type="hidden" name="approved" value="false" />
</form>
<style>
.tagbox-item .name, .tagbox-item .email { /* The name and email within the dropdown */
display: block;
float: left;
width: 35%;
overflow: hidden;
text-overflow: ellipsis;
}
.tagbox-item .email {
float: right;
width: 65%;
}
</style>
<link rel="stylesheet" href="tagbox.css">