Skip to content

Commit

Permalink
announcements added
Browse files Browse the repository at this point in the history
  • Loading branch information
kopaljain03 committed Dec 17, 2021
1 parent bee1961 commit e1ca1df
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 65 deletions.
67 changes: 5 additions & 62 deletions backend/announcements.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
include 'db_con.php';
$sql="SELECT * FROM faqs ";
$sql="SELECT * FROM announcements ";
$res=mysqli_query($con,$sql);
$ronum=mysqli_num_rows($res);
while($row=mysqli_fetch_assoc($res)){
Expand Down Expand Up @@ -101,73 +101,16 @@
</div>
</div>
</nav>



<!-- <section class="probootstrap-section probootstrap-section-colored">
<div class="container">
<div class="row">
<div class="col-md-12 text-left section-heading probootstrap-animate">
<h3
</div>
</div>
</div>
</section> -->

<!-- <section class="probootstrap-section">
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="probootstrap-flex-block">
<div class="probootstrap-text probootstrap-animate">
<h3>About Academics</h3>
<p>This website has been made to introduce incoming freshers to the life at MNNIT Allahabad. Explore this website and use it to make an informed choice about your college and department. You won't feel leftout on this platform.
Have fun!</p>
<p><a href="#" class="btn btn-primary">Learn More</a></p>
</div>
<div class="probootstrap-image probootstrap-animate" style="background-image: url(img/slider_3.png)">
<iframe width="720" height="480" src="https://www.youtube.com/embed/Sz6YRpyefpY" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe> -->
<!-- <a href="https://www.youtube.com/watch?v=Sz6YRpyefpY" class="btn-video popup-vimeo"><i class="icon-play3"></i></a>
</div>
</div>
</div>
</div>
</div>
</section> -->



<!-- <section class="probootstrap-section">
<div class="container">

<div class="row">
<?php for($i=0;$i<$ronum;$i++) {?>

<div class="col-md-4 col-sm-6 col-xs-6 col-xxs-12 probootstrap-animate">
<a href="academic.php?row=<?php echo $data[$i]["id"]?>" class="probootstrap-featured-news-box">
<figure class="probootstrap-media"><img src="data:image/jpg;charset=utf8;base64,<?php echo base64_encode($data[$i]["image"]); ?>" alt="Free Bootstrap Template by uicookies.com" class="img-responsive"></figure>
<div class="probootstrap-text">
<h3><?php echo $data[$i]["acad"]; ?></h3>
<span class="probootstrap-date"><i class="icon-calendar"></i>July 9, 2017</span>
<span class="probootstrap-location"><i class="icon-location2"></i>Click to know more!!</span>
</div>
</a>
</div>
<?php } ?>
</div>
</div>
</section> -->
<!-- faqs -->
<section class="main-section">
<div id="faqs" class="container">
<h2 class="line-heading">Frequently Asked Questions</h2>
<h3 class="large-heading">Some of the most common questions asked about SMP</h3>
<h2 class="line-heading">Announcements</h2>
<h3 class="large-heading"></h3>
<div id="faqSection" class="fullwidth-container">
<div>
<?php for($i=0;$i<$ronum;$i++) {?>
<button class="collapsible"> <?php echo $data[$i]["ques"]; ?></button>
<button class="collapsible"> <?php echo $data[$i]["Announce"]; ?></button>
<div class="faq-content">
<p><?php echo $data[$i]["answer"]; ?></p>
<p><?php echo $data[$i]["Description"]; ?></p>
</div>
<?php } ?>
</div>
Expand Down
2 changes: 1 addition & 1 deletion backend/google_map.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
<li><a href="google_map.php">College Map</a></li>

<li><a href="faqs.php">FAQ's</a></li>
<li class="dropdown-submenu dropdown">
<li class="dropdown-submenus dropdown">
<a href="#" data-toggle="dropdown" class="dropdown-toggle"><span>Extra - Curricular</span></a>
<ul class="dropdown-menu">
<li><a href="events.php">Events</a></li>
Expand Down
5 changes: 3 additions & 2 deletions backend/mentor1.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,11 @@
<div class="container" id="containers">
<h2 class="mt-4">Third Year Mentors</h2>
<p>Fetch contact info of your third year mentors here:</p>
<div style="background-color:burlywood" class="container themed-container">
<form method="get" action="mentor1.php">
<?php for ($i=0;$i<2;$i++){ ?>
<?php if($name[$i]) {?>
<div style="background-color:burlywood" class="container themed-container">
<form method="get" action="mentor1.php">

<input id="btn-<?php echo $i+2 ?>" name="btn-<?php echo $i+2 ?>" type="submit" value="<?php echo $name[$i] ?>" class="subbtn" >
</form></div><br>
<?php } ?>
Expand Down

0 comments on commit e1ca1df

Please sign in to comment.