CasperSecurity
| Current Path : /var/www/uim.org.in/ |
|
|
| Current File : //var/www/uim.org.in/right_section.php |
<div class="event_sidebar">
<!-- Single Feature Image Area End -->
<div class="achive_section latest_post">
<h3>Notice and Events</h3>
<?php
$sql ="select * from college_notice ORDER BY notice_id DESC LIMIT 5";
$i=1;
$result = mysqli_query($link,$sql);
if (mysqli_num_rows($result) == 0){?>
<tr><td colspan="5"><p align="center" style="color:#FF0000;font-weight:500;font-size:18px">No Notice To Display !!!</p></td></tr>
<?php }else{
while($row = mysqli_fetch_array($result)){
?>
<ul>
<li><a href="?p=noticeboarddetails¬ice_id=<?php echo $row['notice_id'];?>"><i class="fa fa-caret-right" aria-hidden="true"></i><?php echo $row['notice_headlines'];?></a></li>
</ul>
<?php $i ++ ;} } ?>
<p><a href="?p=noticedetails">view more</a></p>
</div>
<!-- Single Feature Text Area End -->
<div class="achive_section">
<h3>Downloads</h3>
<?php
$sql ="select * from college_downloads ORDER BY downloads_id DESC LIMIT 5";
$i=1;
$result = mysqli_query($link,$sql);
if (mysqli_num_rows($result) == 0){?>
<tr><td colspan="3"><p align="center" style="color:#FF0000;font-weight:500;font-size:18px">No Downloads to show !!!</p></td></tr>
<?php }else{
while($row = mysqli_fetch_array($result)){
?>
<ul>
<li><a href="collegeadmin/uploadpdf/<?php echo $row['download_pdf'];?>" download="<?php echo $row['download_pdf'];?>"><?php echo $row['project_name'];?> <?php if($row['status']==1){?> <img src="collegeadmin/images/new_flash.gif"><?php } else { ?>
<?php } ?></a></li>
</ul>
<?php $i ++ ;} } ?>
<p><a href="?p=downloaddetails">view more</a></p>
</div>
</div>