<commit_before><?php
include '../navBar/master.php';

?>

<!DOCTYPE html>
<html lang="en">
<link href="../CSS/bootstrap.min.css?version=51" rel="stylesheet" />
<link href="../CSS/half-slider.css?version=51" rel="stylesheet" />
<link href="../CSS/healthPage.css?version=51" rel="stylesheet" />


<header id="myCarousel" class="carousel slide">
    <div class="carousel-inner">
        <div class="item active">
            <div class="fill" style="background-image: url('../Images/gym-wallpaper-workout.jpg')"></div>
        </div>
        <div class="item">
            <div class="fill" style="background-image: url('../Images/healthyfood.jpg')"></div>

        </div>
        <div class="item">
            <div class="fill" style="background-image: url('../Images/hills.jpg')"></div>

        </div>
    </div>
</header>

<script src="../js/jquery.js"></script>
<script src="../js/bootstrap.min.js"></script>

<script>
    $('.carousel').carousel({
        interval: 5000
    })
</script>


<div class="container" >
    <div class="row">
        <div class="col-lg-12">
            <h1>Healthy Lifestyle</h1>
            <i>This page will contain helpful information, tips & tricks for staying healthy!</i>
        </div>
    </div>
    <hr class="pacman" />





<ul class="ulProducts" runat="server" id="newsFeed" style="background-color: #f5f5f5">
    <h2>News Feed!</h2>
    <?php
    include('dbconnect.php');
    /* this script loads the article the user clicked on.*/

    $sql = "SELECT * FROM port_newsfeed";
    $result = $db->query($sql);

    if ($result->num_rows > 0) {
        // output data of each row
        while ($row = $result->fetch_assoc()) {
            echo '<li class="display2"><b>'.$row["title"].'</b><br>'.$row["text"].'</li>';
        }
    }
    else {
        echo "0 results";
    }
    $db->close();
    ?>
    </ul>
</div>
<br>

<div class="container">
<h2>Community Spotlight!</h2>
<i>Articles published by users of this site!</i>
<hr class="pacman"/>

    <ul class="ulProducts" runat="server" id="newsFeed" style="background-color: #f5f5f5">
<h2>Article Titles! </h2>

<?php
include('dbconnect.php');
/* this script loads the article the user clicked on.*/

$sql = "SELECT * FROM port_articles";
$result = $db->query($sql);

if ($result->num_rows > 0) {
    // output data of each row
    while ($row = $result->fetch_assoc()) {
        echo '<li class="display"><b>'.$row["title"].'</b><br>'.$row["text"].'</li>';

    }
}
else {
    echo "0 results";
    }
$db->close();
?>
</ul>
</div>
<?php
include '../webPages/footer.html';
?>


</html><commit_msg>healthupdates + new footer<commit_after><?php
include '../navBar/master.php';

?>

<!DOCTYPE html>
<html lang="en">
<link href="../CSS/bootstrap.min.css?version=51" rel="stylesheet" />
<link href="../CSS/half-slider.css?version=51" rel="stylesheet" />
<link href="../CSS/healthPage.css?version=51" rel="stylesheet" />


<header id="myCarousel" class="carousel slide">
    <div class="carousel-inner">
        <div class="item active">
            <div class="fill" style="background-image: url('../Images/gym-wallpaper-workout.jpg')"></div>
        </div>
        <div class="item">
            <div class="fill" style="background-image: url('../Images/healthyfood.jpg')"></div>

        </div>
        <div class="item">
            <div class="fill" style="background-image: url('../Images/hills.jpg')"></div>

        </div>
    </div>
</header>

<script src="../js/jquery.js"></script>
<script src="../js/bootstrap.min.js"></script>

<script>
    $('.carousel').carousel({
        interval: 5000
    })
</script>


<div class="container" >
    <div class="row">
        <div class="col-lg-12">
            <h1>Healthy Lifestyle</h1>
            <i>This page will contain helpful information, tips & tricks for staying healthy!</i>
        </div>
    </div>
    <hr class="pacman" />





<ul class="ulProducts" runat="server" id="newsFeed" style="background-color: #f5f5f5">
    <h2>News Feed!</h2>
    <?php
    include('dbconnect.php');
    /* this script loads the article the user clicked on.*/

    $sql = "SELECT * FROM port_newsfeed";
    $result = $db->query($sql);

    if ($result->num_rows > 0) {
        // output data of each row
        while ($row = $result->fetch_assoc()) {
            echo '<li class="display2"><b>'.$row["title"].'</b><br>'.$row["text"].'</li>';
        }
    }
    else {
        echo "0 results";
    }
    $db->close();
    ?>
    </ul>
</div>
<br>

<div class="container">
<h2>Community Spotlight!</h2>
<i>Articles published by users of this site!</i>
<hr class="pacman"/>

    <ul class="ulProducts" runat="server" id="newsFeed" style="background-color: #f5f5f5">
<h2>Article Titles! </h2>

<?php
include('dbconnect.php');
/* this script loads the article the user clicked on.*/

$sql = "SELECT * FROM port_articles";
$result = $db->query($sql);

if ($result->num_rows > 0) {
    // output data of each row
    while ($row = $result->fetch_assoc()) {
        echo '<li class="display"><b>'.$row["title"].'</b><br>'.$row["text"].'</li><br>';

    }
}
else {
    echo "0 results";
    }
$db->close();
?>
</ul>
</div>
<?php
include '../webPages/footer.html';
?>


</html>
{'fraction_non_alphanumeric': 0.21750815895565367, 'fraction_numerical': 0.011902476483010174, 'mean_word_length': 2.9114114114114114, 'pattern_counts': {'":': 0, '<': 142, '<?xml version=': 0, '>': 162, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '235094', 'n_tokens_mistral': 1830, 'n_tokens_neox': 1766, 'n_words': 379}