<commit_before><?php
$flat_class='active';
include("header.php") ?>
<?php
if($_GET['id']){

    $query = "DELETE FROM `flatpage` WHERE `id`=".$_GET['id'];

    $mysqli->query($query);


}
?>

<div class="container-fluid">
    <div class="row">
        <?php include("menu.php"); ?>
        <main class="col-sm-9 offset-sm-3 col-md-10 offset-md-2 pt-3">
            <h1>Flatpages list</h1>
            <a href="flatpage_edit.php">
                <button class="btn btn-success">New</button></a>
            <div class="table-responsive">
                <table class="table table-striped">
                    <?php
                    $flat = "SELECT * FROM `flatpage`";
                    $flat_result = $mysqli->query($flat);
                    if ($flat_result) {

                        echo '<thead>
                            <tr>
                                <th>#id</th>
                                <th>#picture</th>
                                <th>url</th>
                                <th>name</th>
                            </tr>
                            </thead>
                            <tbody>';
                        foreach ($flat_result as $key) {
                            echo '<tr><td>' . $key['id'] . '</td>
                                <td><img width="200px" src="../'.$key['image'].'" alt="Flat page"></td>
                                <td>' . $key['url'] . '</td>
                                <td>' . $key['title'] . '</td>
                                <td><a href="flatpage_edit.php?edit='.$key['id'].'" class="btn btn-info">
                                        <span class="glyphicon glyphicon-edit"></span> Edit
                                    </a><a href="flatpage_list.php?id='.$key['id'].'" class="btn btn-danger">
                                        <span class="glyphicon glyphicon-remove-sign"></span> Delete
                                    </a></td>
                            </tr>';
                        }
                        echo '</thbody>';
                    }
                    else {
                        echo "No result found";
                    }
                    ?>
                </table>
        </main>
    </div>
</div><commit_msg>Update last php<commit_after><?php
$flat_class='active';
include("header.php") ?>
<?php
if($_GET['id']){

    $query = "DELETE FROM `flatpage` WHERE `id`=".$_GET['id'];

    $mysqli->query($query);


}
?>

<div class="container-fluid">
    <div class="row">
        <?php include("menu.php"); ?>
        <main class="col-sm-9 offset-sm-3 col-md-10 offset-md-2 pt-3">
            <h1>Flatpages list</h1>
            <a href="flatpage_edit.php">
                <button class="btn btn-success">New</button></a>
            <div class="table-responsive">
                <table class="table table-striped">
                    <?php
                    $flat = "SELECT * FROM `flatpage`";
                    $flat_result = $mysqli->query($flat);
                    if ($flat_result) {

                        echo '<thead>
                            <tr>
                                <th>#id</th>
                                <th>#picture</th>
                                <th>url</th>
                                <th>name</th>
                                <th>action</th>
                            </tr>
                            </thead>
                            <tbody>';
                        foreach ($flat_result as $key) {
                            echo '<tr><td>' . $key['id'] . '</td>
                                <td><img width="200px" src="../'.$key['image'].'" alt="Flat page"></td>
                                <td>' . $key['url'] . '</td>
                                <td>' . $key['name'] . '</td>
                                <td><a href="flatpage_edit.php?edit='.$key['id'].'" class="btn btn-info">
                                        <span class="glyphicon glyphicon-edit"></span> Edit
                                    </a><a href="flatpage_list.php?id='.$key['id'].'" class="btn btn-danger">
                                        <span class="glyphicon glyphicon-remove-sign"></span> Delete
                                    </a></td>
                            </tr>';
                        }
                        echo '</thbody>';
                    }
                    else {
                        echo "No result found";
                    }
                    ?>
                </table>
        </main>
    </div>
</div>
{'fraction_non_alphanumeric': 0.1609371578716882, 'fraction_numerical': 0.00481716663017298, 'mean_word_length': 0.9153039832285115, 'pattern_counts': {'":': 0, '<': 113, '<?xml version=': 0, '>': 117, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2062775', 'n_tokens_mistral': 1226, 'n_tokens_neox': 1141, 'n_words': 208}