-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproject.php
131 lines (89 loc) · 2.92 KB
/
project.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
<?php //include('sys/connect.php');
$conf_code = $_GET['conf'];
include('sys/functions.php');
require_once('include/front_header.php'); ?>
</div>
</div>
<div id="contents">
<div class="clearfix">
<div class="sidebar">
<div>
<h2>Quick Links</h2>
<ul>
<?php
$sql = mysqli_query($connection, "
SELECT *
FROM event
WHERE event_type = 'project'
");
if ($sql)
if (mysqli_num_rows($sql) > 0) {
while($row = mysqli_fetch_assoc($sql)) {
/*$event_id = $row['event_id'];
$event_code = $row['event_code'];
$row['title'];*/
echo" <a href='project.php?conf=". $row['event_code'] ."'><li>
". $row['event_name'] ."
</p>
</li>
</a>
";
}
} ?>
</ul>
</div>
<div>
</div>
</div>
<div class="main">
<h1>Confrences</h1>
<?php
$sql = mysqli_query($connection, "
SELECT *
FROM event
WHERE event_type = 'project'
AND event_code = \"".$conf_code."\"
");
if ($sql)
if (mysqli_num_rows($sql) > 0) { ?>
<?php while($row = mysqli_fetch_assoc($sql)) {
?>
<h2> <?php echo $row['event_name'] ; ?> [<?php echo $row['event_code'] ; ?>]</h2>
<p>
<a href="<?php echo $row['event_webpage'] ; ?>" target="_blank"><strong>CONFERENCE WEBSITE</strong></a> -----
<a href="submit_article.php?event=<?php echo $row['event_code'] ; ?>" target="_blank"><strong>PAPER SUBMISSION</strong></a></p>
<P><?php echo $row['event_description'] ; ?> </p>
<?php }} ?>
</br><br/><br/><h2>Papers</h2>
<ul class="news">
<?php $sqls = mysqli_query($connection, "
SELECT *
FROM publish_paper
WHERE event_code = \"". $conf_code ."\"
");
if ($sqls)
if (mysqli_num_rows($sqls) > 0) {
while($rows = mysqli_fetch_assoc($sqls)) {
/*$event_id = $row['event_id'];
$event_code = $row['event_code'];
$row['title'];*/
$author_name = "";
$author_query = mysqli_query($connection,"SELECT * FROM author
WHERE paper_id =\"".$rows['paper_id'] ."\" ");
if (mysqli_num_rows($author_query) > 0) {
while($rowss = mysqli_fetch_assoc($author_query)) {
$author_name .= "".$rowss['author_name'].", ";
}
}
echo" <li> <p>".$rows['title'] .", <span class='author'> ".$author_name."</span>
<a href='".$rows['document']."' target='_blank' class='more'> Full Article</a></p>
</li>
";
}
}
?>
</ul>
</div>
</div>
</div>
<?php require_once('include/front_footer.php'); ?>