-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcreatephone.php
More file actions
203 lines (164 loc) · 6.18 KB
/
createphone.php
File metadata and controls
203 lines (164 loc) · 6.18 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
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
<div class="d-flex flex-row justify-content-center creatingpostss mb-3">
<div class="flex-grow-1">
<div class="d-flex flex-row rounded shadow-sm">
<div class="flex-fill rounded-left posters p-4 text-center" id="myBtnphone" title="Create post with text">
<h3>Aa<small>..</small></h3>
</div>
<div class="flex-fill posters p-4 text-center" id="myBtn2phone" title="Create post with link">
<h3><i class="fa fa-link"></i></h3>
</div>
<div class="flex-fill posters p-4 text-center" id="myBtn3phone" title="Create post with image">
<h3><i class="fa fa-image"></i></h3>
</div>
<div class="flex-fill posters p-4 text-center" id="myBtn4phone" title="Create post with video">
<h3><i class="fa fa-video"></i></h3>
</div>
</div>
</div>
</div>
<!-- The Modal for creating posts-->
<div class="modal createposts rounded-0" id="myModalphone">
<div class="modal-dialog">
<form method="POST" id="formpost" class="modal-content border-0 rounded-0 shadow">
<div class="modal-header border-0">
<div class="d-flex flex-row">
<div>
<?php require"logged.php"?>
</div>
<div class="flex-grow-1 pl-3">
<h4 class="modal-title">Aa<small>..</small></h4>
</div>
</div>
<button type="button" class="close" id="closephone" data-dismiss="modal">×</button>
</div>
<div class="modal-body">
* Start with # to create hashtags.
<textarea placeholder="Write here...." class="rounded-0 border-0 form-control" name="post"></textarea>
</div>
<div class="modal-footer">
<button type="submit" name="save_post" class="save_post btn btn-sm">Save</button>
</div>
</form>
</div>
</div>
<!-- The Modal for creating links-->
<div class="modal createposts rounded-0" id="myModal2phone">
<div class="modal-dialog">
<form method="POST" id="formpost" class="modal-content border-0 rounded-0 shadow">
<div class="modal-header border-0">
<div class="d-flex flex-row">
<div>
<?php require"logged.php"?>
</div>
<div class="flex-grow-1 pl-3 pt-2">
<h4 class="modal-title"><i class="fa fa-link"></i></h4>
</div>
</div>
<button type="button" class="close" id="close2phone" data-dismiss="modal">×</button>
</div>
<div class="modal-body">
<textarea placeholder="Copy link here...." class="rounded-0 border-0 form-control" name="link"></textarea>
</div>
<div class="modal-footer">
<button type="submit" name="save_link" class="btn btn-sm">Save</button>
</div>
</form>
</div>
</div>
<!-- The Modal for creating images-->
<div class="modal createposts rounded-0" id="myModal3phone">
<div class="modal-dialog">
<form method="POST" id="formpost" class="modal-content border-0 rounded-0 shadow" enctype="multipart/form-data">
<div class="modal-header border-0">
<div class="d-flex flex-row">
<div>
<?php require"logged.php"?>
</div>
<div class="flex-grow-1 pl-3 pt-2">
<h4 class="modal-title"><i class="fa fa-image"></i></h4>
</div>
</div>
<button type="button" class="close" id="close3phone" data-dismiss="modal">×</button>
</div>
<div class="modal-body">
<label>Upload image</label><br>
<input type="file" name="images">
<hr>
<label>Add caption</label><br>
* Start with # to create hashtags.
<textarea type="text" name="caption" class="form-control border-0" placeholder="Write caption"></textarea>
</div>
<div class="modal-footer">
<button type="submit" name="save_image" class="btn btn-sm">Save</button>
</div>
</form>
</div>
</div>
<!-- The Modal for creating images-->
<div class="modal rounded-0" id="myModal4phone">
<div class="modal-dialog">
<form method="POST" id="formpost" class="text-dark modal-content border-0 rounded-0 shadow" enctype="multipart/form-data">
<div class="modal-header border-0">
<div class="d-flex flex-row">
<div>
<?php require"logged.php"?>
</div>
<div class="flex-grow-1 pl-3 pt-2">
<h4 class="modal-title"><i class="fa fa-video"></i></h4>
</div>
</div>
<button type="button" class="close" id="close4phone" data-dismiss="modal">×</button>
</div>
<div class="modal-body">
<label>Upload video</label><br>
* Start with # to create hashtags.
<input type="file" name="videos">
<hr>
<label>Add description</label><br>
<textarea type="text" name="caption" class="form-control border-0" placeholder="Write caption"></textarea>
</div>
<div class="modal-footer">
<button type="submit" name="save_video" class="btn btn-sm">Save</button>
</div>
</form>
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){
$("#myModalphone").hide();
$("#myBtnphone").click(function(){
$("#myModalphone").show();
});
$("#closephone").click(function () {
$("#myModalphone").hide();
})
});
$(document).ready(function(){
$("#myModal2phone").hide();
$("#myBtn2phone").click(function(){
$("#myModal2phone").show();
});
$("#close2phone").click(function () {
$("#myModal2phone").hide();
});
});
$(document).ready(function(){
$("#myModal3phone").hide();
$("#myBtn3phone").click(function(){
$("#myModal3phone").show();
});
$("#close3phone").click(function () {
$("#myModal3phone").hide();
});
});
$("#myModal4phone").hide();
$(document).ready(function(){
$("#myModal4phone").hide();
$("#myBtn4phone").click(function(){
$("#myModal4phone").show();
});
$("#close4phone").click(function () {
$("#myModal4phone").hide();
});
});
</script>