-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprofile_content_default.php
401 lines (341 loc) · 24.3 KB
/
profile_content_default.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
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
<?php
$DB = new Database();
$sql =" select image,postid from posts where is_image = 1 && userid = $user_data[userid] order by id desc limit 30 ";
$images = $DB->read($sql);
$image_class = new Image();
?><div class="container">
<div class="row">
<div class="col-lg-3 order-2 order-lg-1">
<aside class="widget-area profile-sidebar">
<!-- widget single item start -->
<br>
<div class="card widget-item">
<a href="profile.php"> <h4 class="widget-title"><?php echo $user_data['first_name'] . " " . $user_data['last_name'] ?></h4></a>
<div class="widget-body">
<div class="about-author">
<p><?php echo $user_data['about']?></p>
<ul class="author-into-list">
<li><a href="#"><i class="bi bi-office-bag"></i><?php echo $user_data['field']?></a></li>
<li><a href="#"><i class="bi bi-home"></i><?php echo $user_data['position']?></a></li>
<li><a href="#"><i class="bi bi-location-pointer"></i><?php echo $user_data['country']?></a></li>
<li><a href="#"><i class="bi bi-heart-beat"></i><?php echo $user_data['age']?></a></li>
</ul>
</div>
</div>
</div>
<!-- widget single item end -->
<!-- widget single item start -->
<div class="card widget-item">
<h4 class="widget-title">My Acquirements</h4>
<div class="widget-body">
<div class="sweet-galley img-gallery">
<div class="row row-5">
<?php
if(is_array($images))
{
foreach ($images as $image_row)
{
echo "<div class='col-4'>
<div class='gallery-tem'>
<figure class='post-thumb'>
<a class='gallery-selector' href='$image_row[image]'>";
echo "<img src ='" .$image_class->get_thumb_post($image_row['image']) . "' ' />";
echo "</a>
</figure>
</div>
</div>";
}
}
?>
</div>
</div>
</div>
</div>
<!-- widget single item end -->
<!-- widget single item start -->
<div class="card widget-item">
<h4 class="widget-title">Virtual Ideathon Event</h4>
<div class="widget-body">
<div class="add-thumb">
<a href="https://site.ieee.org/sb-ritb/wealth-from-waste/">
<img src="image\advertise2.png" alt="advertisement">
</a>
</div>
</div>
</div>
<!-- widget single item start -->
<div class="card widget-item">
<h4 class="widget-title">latest top General news</h4>
<div class="widget-body">
<ul class="like-page-list-wrapper">
<li class="unorder-list">
<!-- profile picture end -->
<div class="profile-thumb">
<a href="#">
<figure class="profile-thumb-small">
<img src="image\news-icon-22.png" alt="profile picture">
</figure>
</a>
</div>
<!-- profile picture end -->
<div class="unorder-list-info">
<h3 class="list-title"><a href="https://www.bbc.com/news/technology-55074383"> Why bots will beat you to in-demand gifts</a></h3>
</div>
</li>
<li class="unorder-list">
<!-- profile picture end -->
<div class="profile-thumb">
<a href="#">
<figure class="profile-thumb-small">
<img src="image\news-icon-22.png" alt="profile picture">
</figure>
</a>
</div>
<!-- profile picture end -->
<div class="unorder-list-info">
<h3 class="list-title"><a href="https://www.bbc.com/news/business-54881746">How machine learning is allowing thousands of students to sit exams at home</a></h3>
</div>
</li>
<li class="unorder-list">
<!-- profile picture end -->
<div class="profile-thumb">
<a href="#">
<figure class="profile-thumb-small">
<img src="image\news-icon-22.png" alt="profile picture">
</figure>
</a>
</div>
<!-- profile picture end -->
<div class="unorder-list-info">
<h3 class="list-title"><a href="https://www.bbc.com/news/technology-55146206">Netflix content given age rating by algorithm</a></h3>
</div>
</li>
<li class="unorder-list">
<!-- profile picture end -->
<div class="profile-thumb">
<a href="#">
<figure class="profile-thumb-small">
<img src="image\news-icon-22.png" alt="profile picture">
</figure>
</a>
</div>
<!-- profile picture end -->
<div class="unorder-list-info">
<h3 class="list-title"><a href="https://deccan.news/microsoft-aicte-to-provide-skilled-students-in-next-technologies/">Microsoft, AICTE to Provide Skilled Students in Next Technologies</a></h3>
</div>
</li>
<li class="unorder-list">
<!-- profile picture end -->
<div class="profile-thumb">
<a href="#">
<figure class="profile-thumb-small">
<img src="image\news-icon-22.png" alt="profile picture">
</figure>
</a>
</div>
<!-- profile picture end -->
<div class="unorder-list-info">
<h3 class="list-title"><a href="https://www.thehindu.com/sci-tech/technology/hackers-can-trick-scientists-into-creating-deadly-viruses/article33227446.ece">Hackers can trick scientists into creating deadly viruses</a></h3>
>
</div>
</li>
</ul>
</div>
</div>
<!-- widget single item end -->
<!-- widget single item end -->
</aside>
</div>
<div class="col-lg-6 order-1 order-lg-2">
<!-- share box start -->
<div class="card card-small">
<div class="share-box-inner">
<!-- profile picture end -->
<div class="profile-thumb">
<a href="#">
<?php
$profile_image = " ";
if($user_data['gender'] == "Male")
{
$profile_image = "image/male.jpg";
}elseif ($user_data['gender'] == "Female")
{
$profile_image = "image/female.jpg";
}else
{
$profile_image = "image/male.jpg";
}
if(file_exists($user_data['profile_image']))
{
$profile_image = $image_class->get_thumb_profile($user_data['profile_image']);
}
?>
<figure class="profile-thumb-middle">
<img src="<?php echo $profile_image; ?>" alt="profile picture">
</figure>
</a>
</div>
<!-- profile picture end -->
<!-- share content box start -->
<div class="share-content-box w-100">
<form method="post" action = " " enctype = "multipart/form-data" class="share-text-box">
<textarea name="post" class="share-text-field" aria-disabled="true" placeholder="Say Something" data-toggle="modal" data-target="#textbox" id="email"></textarea>
<br><input type="file" name="file"><br><br><br><br>
<button class="btn-share" type="submit">share</button>
</form>
</div>
<!-- share content box end -->
<!-- Modal start -->
<form method = "post" action = " " enctype = "multipart/form-data" class="share-text-box">
<div class="modal fade" id="textbox" aria-labelledby="textbox">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Share Your ThoughtsS</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body custom-scroll">
<textarea name="post" class="share-field-big custom-scroll" placeholder="Say Something"></textarea>
</div>
<input type="file" name="file">
<div class="modal-footer">
<button type="button" class="post-share-btn" data-dismiss="modal">cancel</button>
<button type="submit" class="post-share-btn" value="Post" >post</button>
</div>
</form>
</div>
</div>
</div>
<!-- Modal end -->
</div>
</div>
<!-- share box end -->
<!-- post here -->
<div class="card">
<!-- All post here -->
<?php
if($posts)
{
foreach ($posts as $ROW)
{
$user = new User();
$ROW_USER = $user->get_user($ROW['userid']);
//print_r($ROW);
include("post.php");
}
}
?>
</div>
</div>
<div class="col-lg-3 order-3">
<aside class="widget-area">
<!-- widget single item end -->
<!-- widget single item start -->
<div class="card widget-item">
<h4 class="widget-title">Virtual Tech Event</h4>
<div class="widget-body">
<div class="add-thumb">
<a href="https://youthforseva.org/event-3911933">
<img src="image\advertise3.jpg" alt="advertisement">
</a>
</div>
</div>
</div>
<!-- widget single item end -->
<!-- widget single item start -->
<div class="card widget-item">
<h4 class="widget-title">latest top news</h4>
<div class="widget-body">
<ul class="like-page-list-wrapper">
<li class="unorder-list">
<!-- profile picture end -->
<div class="profile-thumb">
<a href="#">
<figure class="profile-thumb-small">
<img src="image\news-icon-22.png" alt="profile picture">
</figure>
</a>
</div>
<!-- profile picture end -->
<div class="unorder-list-info">
<h3 class="list-title"><a href="https://www.home.sandvik/en/stories/articles/2020/11/digital-technology-on-the-cutting-edge/">Digital technology on the cutting edge</a></h3>
</div>
</li>
<li class="unorder-list">
<!-- profile picture end -->
<div class="profile-thumb">
<a href="#">
<figure class="profile-thumb-small">
<img src="image\news-icon-22.png" alt="profile picture">
</figure>
</a>
</div>
<!-- profile picture end -->
<div class="unorder-list-info">
<h3 class="list-title"><a href="https://www.home.sandvik/en/stories/articles/2020/02/modelled-in-the-virtual-world/">Modelled in the virtual world</a></h3>
</div>
</li>
<li class="unorder-list">
<!-- profile picture end -->
<div class="profile-thumb">
<a href="#">
<figure class="profile-thumb-small">
<img src="image\news-icon-22.png" alt="profile picture">
</figure>
</a>
</div>
<!-- profile picture end -->
<div class="unorder-list-info">
<h3 class="list-title"><a href="https://www.home.sandvik/en/stories/articles/2019/09/ai-supports-agile-working-methods/">AI supports agile working methods</a></h3>
</div>
</li>
<li class="unorder-list">
<!-- profile picture end -->
<div class="profile-thumb">
<a href="#">
<figure class="profile-thumb-small">
<img src="image\news-icon-22.png" alt="profile picture">
</figure>
</a>
</div>
<!-- profile picture end -->
<div class="unorder-list-info">
<h3 class="list-title"><a href="https://www.home.sandvik/en/stories/articles/2017/05/will-your-next-colleague-be-a-smart-robot/">Will your next colleague be a smart robot?</a></h3>
</div>
</li>
<li class="unorder-list">
<!-- profile picture end -->
<div class="profile-thumb">
<a href="#">
<figure class="profile-thumb-small">
<img src="image\news-icon-22.png" alt="profile picture">
</figure>
</a>
</div>
<!-- profile picture end -->
<div class="unorder-list-info">
<h3 class="list-title"><a href="https://www.home.sandvik/en/stories/articles/2019/11/5g-is-finally-here-this-is-what-you-need-to-know/">5G is finally here – This is what you need to know</a></h3>
</li>
</ul>
</div>
</div>
<!-- widget single item end -->
<!-- widget single item end -->
<!-- widget single item start -->
<div class="card widget-item">
<h4 class="widget-title">Virtual Grand Tech Event</h4>
<div class="widget-body">
<div class="add-thumb">
<a href="https://www.fashiontechco.com/events/">
<img src="image\advertise1.png" alt="advertisement">
</a>
</div>
</div>
</div>
</aside>
</div>
</div>
</div>
</div>