<commit_before><?php 
include ('theme/verification.php');
include ('theme/header.php');
include ('functions/function.php');
include ('functions/functionDb.php');
include ('config.php');
include ('init.php');
?>
<?php
if (isset($_POST['Archivia'])) {
        $selected_radio = $_POST['update_archivia'];
        foreach ($selected_radio as $value){
        dbLogTextUpdate ($value);  
        }
    }
?>
    <div id="content" class="clearfix">
        <div align="center">
            <form method="post" action="#" method="POST" />
            <input type="text" name="testo">
            <input type="submit" id="cerca" name="Cerca" value="Cerca" />
            </form>
        </div>
        <div class="content-row">
            <table border="1">
                <tr>
                    <td>Data inserimento</td>
                    <td>Nome</td>
                    <td>Messaggio ricevuto</td>
                    <td>Messaggio</td>
                    <td>Risp.</td>
                    <td>Archivia</td>
                </tr>
                <?php
                /******
                 * This table view the message send by single user
                 ******/
                $messageUsers = dbLogTextFull();
                foreach ($messageUsers as $message) { 
                    echo '<tr>';
                       echo '<td>'.(date('d/m/Y H:i', strtotime($message['DataInsert']))).'</td>';
                       echo '<td>'.$message['FirstName'].'</td>';
                       echo '<td>'.$message['Text'].'</td>';
                       echo '<td>'
                       .    '<form method="post" action="sendSingle.php" method="POST" />'
                       .    '<textarea name="testo" rows="2" cols="40" placeholder="Inserisci qui la risposta.."></textarea>'
                       .    '<input type="hidden" name="id_user" value="'.$message['UserID'].'" />'
                       .    '<input type="hidden" name="id_message" value="'.$message['Message'].'" />'
                       .    '<input type="hidden" name="id_total" value="'.$message['ID'].'" />'
                       .    '<br>'
                       .    '<input type="submit" id="invia" name="invia" value="Invia" />'
                       .    '</form></td>';
                        echo '<td>'
                       .    '<form method="post" action="joinMessage.php" method="POST" />'
                       .    '<input type="hidden" name="id_message" value="'.$message['Message'].'" />'
                       .    '<input type="submit" id="join" name="join" value="+"></form>'
                       .    '</td>';
                       echo '<td align="center">'
                       .    '<form method="post" action="message.php" method="POST" />'
                       .    '<input type="hidden" name="update_archivia[]" value="'.$message['ID'].'" />'
                       .    '<input type="submit" name="Archivia" value="Archivia" />'
                       .    '</td>';
                       echo '</tr>';
                }
                ?>
            </table>
            </form>	
        </div>
        <div class="content-row">
            <form action="messageExport.php"> 
            <input type="submit" name="esporta" value="Esporta in Excel" />
            </form>
        </div>			
    </div>

<!-- Footer page -->
<?php include 'theme/footer.php'; ?><commit_msg>function archive in send message<commit_after><?php 
include ('theme/verification.php');
include ('theme/header.php');
include ('functions/function.php');
include ('functions/functionDb.php');
include ('config.php');
include ('init.php');
?>
<?php
if (isset($_POST['Archivia'])) {
        $selected_radio = $_POST['update_archivia'];
        foreach ($selected_radio as $value){
        dbLogTextUpdate($value);  
        }
    }
?>
    <div id="content" class="clearfix">
        <div align="center">
            <form method="post" action="#" method="POST" />
            <input type="text" name="testo">
            <input type="submit" id="cerca" name="Cerca" value="Cerca" />
            </form>
        </div>
        <div class="content-row">
            <table border="1">
                <tr>
                    <td>Data inserimento</td>
                    <td>Nome</td>
                    <td>Messaggio ricevuto</td>
                    <td>Messaggio</td>
                    <td>Risp.</td>
                    <td>Archivia</td>
                </tr>
                <?php
                /******
                 * This table view the message send by single user
                 ******/
                $messageUsers = dbLogTextFull();
                foreach ($messageUsers as $message) { 
                    echo '<tr>';
                       echo '<td>'.(date('d/m/Y H:i', strtotime($message['DataInsert']))).'</td>';
                       echo '<td>'.$message['FirstName'].'</td>';
                       echo '<td>'.$message['Text'].'</td>';
                       echo '<td>'
                       .    '<form method="post" action="sendSingle.php" method="POST" />'
                       .    '<textarea name="testo" rows="2" cols="40" placeholder="Inserisci qui la risposta.."></textarea>'
                       .    '<input type="hidden" name="id_user" value="'.$message['UserID'].'" />'
                       .    '<input type="hidden" name="id_message" value="'.$message['Message'].'" />'
                       .    '<input type="hidden" name="id_total" value="'.$message['ID'].'" />'
                       .    '<br>'
                       .    '<input type="submit" id="invia" name="invia" value="Invia" />'
                       .    '</form></td>';
                        echo '<td>'
                       .    '<form method="post" action="joinMessage.php" method="POST" />'
                       .    '<input type="hidden" name="id_message" value="'.$message['Message'].'" />'
                       .    '<input type="submit" id="join" name="join" value="+"></form>'
                       .    '</td>';
                       echo '<td align="center">'
                       .    '<form method="post" action="message.php" method="POST" />'
                       .    '<input type="hidden" name="update_archivia[]" value="'.$message['ID'].'" />'
                       .    '<input type="submit" name="Archivia" value="Archivia" />'
                       .    '</td>';
                       echo '</tr>';
                }
                ?>
            </table>
            </form>	
        </div>
        <div class="content-row">
            <form action="messageExport.php"> 
            <input type="submit" name="esporta" value="Esporta in Excel" />
            </form>
        </div>			
    </div>

<!-- Footer page -->
<?php include 'theme/footer.php'; ?>
{'fraction_non_alphanumeric': 0.1863062004114017, 'fraction_numerical': 0.0011754334410813989, 'mean_word_length': 1.4002115655853316, 'pattern_counts': {'":': 0, '<': 137, '<?xml version=': 0, '>': 137, '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': '6831673', 'n_tokens_mistral': 1869, 'n_tokens_neox': 1818, 'n_words': 345}