This repository was archived by the owner on Dec 7, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcreations.php
More file actions
67 lines (64 loc) · 2.51 KB
/
Copy pathcreations.php
File metadata and controls
67 lines (64 loc) · 2.51 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
<?php
require_once 'autoload.php';
User::CheckLogin();
$arrArticle = Article::readAllrelatedWriterID(User::getSessionUserID());
$arrPoll = Poll::readAllrelatedWriterID(User::getSessionUserID());
$arrYoutube = Youtube::readAllrelatedWriterID(User::getSessionUserID());
$arrGallery = Gallery::readAllrelatedWriterID(User::getSessionUserID());
function printthem($displayLVL) {
global $arrArticle, $arrPoll, $arrYoutube, $arrGallery;
foreach ($arrArticle as &$value) {
if ($value->getDisplay() == $displayLVL) {
PrintHTML::portofolio_12row_next_normal($value->getTitleEnglish(), "creat_article.php?id=" . $value->getId(), $value->getDescriptionEnglish(), $value->getCreatDate_StringLong(), $value->getImgThumbnail());
}
}
foreach ($arrYoutube as &$value) {
if ($value->getDisplay() == $displayLVL) {
PrintHTML::YoutubeThumb($value, True);
}
}
foreach ($arrPoll as &$value) {
if ($value->getDisplay() == $displayLVL) {
PrintHTML::Poll($imput, True);
}
}
}
?><!DOCTYPE html>
<html lang="en">
<head>
<title>ACU Times | Category</title>
<?php require_once("header.php"); ?>
<script type="text/javascript" src="js/Poll.js"></script>
</head>
<body>
<?php include ("navbar.php"); ?>
<div class="container">
<!-------------------------------- New -------------------------------->
<br><a href="#New" class="text-primary" data-toggle="collapse"><h2>New</h2></a>
<hr>
<div id="New" class="collapse in container">
<?php printthem(EntityArticle::DISPLAY_NEW); ?>
</div>
<!-------------------------------- Approved -------------------------------->
<br><a href="#Approved" class="text-primary" data-toggle="collapse"><h2>Approved</h2></a>
<hr>
<div id="Approved" class="collapse in container">
<?php printthem(EntityArticle::DISPLAY_APPROVED); ?>
</div>
<!-------------------------------- Published -------------------------------->
<br><a href="#Published" class="text-primary" data-toggle="collapse"><h2>Published</h2></a>
<hr>
<div id="Published" class="collapse in container">
<?php printthem(EntityArticle::DISPLAY_PUBLISHED);?>
</div>
<!-------------------------------- Rejected -------------------------------->
<br><a href="#Rejected" class="text-danger" data-toggle="collapse"><h2>Rejected</h2></a>
<hr>
<div id="Rejected" class="collapse in container">
<?php printthem(EntityArticle::DISPLAY_DENIED); ?>
</div>
<!-------------------------------- Articles -------------------------------->
</div>
<?php include ("footer.php"); ?>
</body>
</html>