</div> <div class="form-group"> <button type="submit" class="btn btn-success">Post Your Comment</button> </div> </form> </div> <?php $sql3 = "SELECT * FROM Comments_Videos Where Video_No = '" . $currentVideo['Video_No'] . "' ORDER BY Comment_Time DESC"; foreach ($pdo->query($sql3) as $data) { echo '<div class="row">'; echo '<div class="col-md-2">'; echo '<a href="#">'; if ($_SESSION['user_session'] == $data['Commented_By']) { echo 'You'; } else { echo $api->First_Name($data['Commented_By'], $pdo); } echo '</a>'; echo '<div >'; echo '<img src="images/image1.jpg" class="img-circle" height="45" width="60" alt="Avatar">'; echo '</div>'; echo '</div>'; echo '<div class="col-md-10">'; echo '<div class="panel panel-default" >'; echo '<div class="panel-body">'; echo '<span>' . $data['Post'] . '</span>'; echo '<p>' . $data['Comment_Date'] . ' at ' . $data['Comment_Time'] . '</p>'; echo '</div>'; echo '</div>'; echo '</div>'; echo '</div>';
</div> </div> </div> <!--The Main Part Of This Page Starts Here--> <!--The Beginning Of About div--> <div class="about"> <!--The Beginning Of Container div--> <div class="container"> <!--The Beginning Of about-md1 div--> <div class="about-md1"> <!--The Beginning Of col-md-3 col-2 div--> <div class="col-md-3 col-2"> <!--The Beginning Of My Profile Well--> <div class="well"> <p><a href="#"><?php echo $api->First_Name($_SESSION['user_session'], $pdo) . ' ' . $api->Last_Name($_SESSION['user_session'], $pdo); ?> </a></p> <img src="images/image1.jpg" class="img-circle" height="65" width="65" alt="Avatar"> </div> <!--The End Of My Profile Well--> <!--The Beginning Of All Discussions Well--> <div class="well"> <p><a href="#"><h4>List Of Laboratories for Grade9</h4></a></p> <?php foreach ($pdo->query($sql1) as $row) { echo '<p><a href="discussion.php?discussionNo=' . $row['Discussion_No'] . '"><span>' . $row['Discussion_Title'] . '</span></a></p>'; } echo '<br />'; //Pagination if ($count > $startrow + 5) {
<h3 class="modal-title" id="myModalLabel" > <?php if ($message == 'block') { echo 'Blocking User'; } ?> </h3> </div> <!--Message Modal Header End Here--> <!--Message Modal Body Start Here--> <div class="modal-body"> <div> <?php echo '<span>'; if ($message == 'block') { echo 'Are you sure you want to block ' . $api->First_Name($id, $pdo) . ' ' . $api->Last_Name($id, $pdo) . '?'; } else { if ($message == 'blocking succedded') { echo $api->First_Name($id, $pdo) . ' ' . $api->Last_Name($id, $pdo) . ' successfully blocked.'; } } echo '</span>'; ?> </div> <!--The Beginning Of Message Modal Footer--> <div class="modal-footer"> <?php if ($message == 'block') { echo '<a class="btn btn-warning" href="admin.php?User_Id=' . $id . '&page=registered&message=blocking">Yes</a>'; } else { if ($message == 'blocking succedded') {