<commit_before><?php

include_once 'header.php';
include_once 'tohtml.php';
include_once 'methods.php';
include_once 'database.php';

include_once 'check_access_permissions.php';
mustHaveAllOfTheseRoles( array( 'AWS_ADMIN' ) );

$logins = getLoginIds( );

$pendingRequests = getPendingAWSRequests( );
$pendingScheduleRequest = getTableEntries( 'aws_scheduling_request'
    , 'status', "status='PENDING'" );

?>

<!-- Script to autocomplete user -->
<script>
$(function() {
    var logins = <?php echo json_encode( $logins ); ?>;
    //console.log( logins );
    $( "#autocomplete_user" ).autocomplete( { source : logins }); 
    $( "#autocomplete_user1" ).autocomplete( { source : logins }); 
});
</script>


<?php

echo userHTML( );

echo '<h1>ANNUAL WORK SEMINAR</h1>';

echo "<h2>Upcoming AWS</h2>";
echo '
  <table border="0" class="admin">
    <tr>
      <td>Manage upcoming AWS</td>
      <td><a href="admin_acad_manages_upcoming_aws.php">Manage
      upcoming AWSes</a></td>
    </tr>
    <tr>
        <td>Manage AWS scheduling requests</td>
        <td> <a href="admin_acad_manages_scheduling_request.php">
            Manage ' . count( $pendingScheduleRequest ) .  
            ' pending scheduling requests</a> </td>
    </tr>
  </table>';

echo '<h2>Edit and update AWS</h2>';
echo '<table class="admin">
    <tr>
        <td>Manage AWS edit requests</td>
        <td> <a href="admin_acad_manages_requests.php">Manage ' . count( $pendingRequests) . 
            ' pending requests</a> </td>
    </tr>
    <tr>
        <td>Generate emails and documents</td>
        <td> <a href="admin_acad_email_and_docs.php">Emails and Documents</td>
    </tr>
    <tr>
    </table>';

echo '<br/>';

echo '<table class="admin">
    <tr>
        <td>Add AWS entry</td>
        <td> <a href="admin_acad_add_aws_entry.php">Add AWS entry</td>
    </tr>
    <tr><td>
    Enter a login and optionally AWS date and you can delete that AWS entry 
    from my database.</td>
    <td> 
    <form method="post" action="">
    <input id="autocomplete_user1" name="login" placeholder="AWS Speaker" type="text" />
    <input class="datepicker" name="date" placeholder="date(optional)" value="" >
    <button name="response" value="Select">' . $symbCheck . '</button>
    </form></td>
    </tr>
    </table>';

echo '<h2>Add, update or remove AWS speakers</h2>';
echo '<table class="admin">';
echo '
    <tr>
        <td>Add or update existing speakers. </td>
        <td> <a href="admin_acad_manages_speakers.php">Manage speakers</td>
    </tr>
    <tr>
        <td>Add, Update or Delete user <br>
            <small>Type a login name and press the button.</small>
        </td>
        <td>
            <form method="post" action="admin_acad_update_user.php">
                <input id="autocomplete_user" name="login" 
                    placeholder="I will autocomplete " >
                <button title="Add or remove speakers from AWS list"
                    name="response" value="edit">' . $symbUpdate . 
                '</button>
            </form>
        </td>
    </tr></table>';

$login = null;
$date = null;
if( isset( $_POST[ 'response' ] ))
{
    if( $_POST[ 'response' ] == 'Select' )
    {
        $login = $_POST[ 'login' ];
        $date = $_POST[ 'date' ];<commit_msg>Let admin manage all talks.<commit_after><?php

include_once 'header.php';
include_once 'tohtml.php';
include_once 'methods.php';
include_once 'database.php';

include_once 'check_access_permissions.php';
mustHaveAllOfTheseRoles( array( 'AWS_ADMIN' ) );

$logins = getLoginIds( );

$pendingRequests = getPendingAWSRequests( );
$pendingScheduleRequest = getTableEntries( 'aws_scheduling_request'
    , 'status', "status='PENDING'" );

?>

<!-- Script to autocomplete user -->
<script>
$(function() {
    var logins = <?php echo json_encode( $logins ); ?>;
    //console.log( logins );
    $( "#autocomplete_user" ).autocomplete( { source : logins }); 
    $( "#autocomplete_user1" ).autocomplete( { source : logins }); 
});
</script>


<?php

echo userHTML( );

echo '<h1>ANNUAL WORK SEMINAR</h1>';

echo "<h2>Upcoming AWS</h2>";
echo '
  <table border="0" class="admin">
    <tr>
      <td>Manage upcoming AWS</td>
      <td><a href="admin_acad_manages_upcoming_aws.php">Manage
      upcoming AWSes</a></td>
    </tr>
    <tr>
        <td>Manage AWS scheduling requests</td>
        <td> <a href="admin_acad_manages_scheduling_request.php">
            Manage ' . count( $pendingScheduleRequest ) .  
            ' pending scheduling requests</a> </td>
    </tr>
  </table>';

echo '<h2>Edit and update AWS</h2>';
echo '<table class="admin">
    <tr>
        <td>Manage AWS edit requests</td>
        <td> <a href="admin_acad_manages_requests.php">Manage ' . count( $pendingRequests) . 
            ' pending requests</a> </td>
    </tr>
    <tr>
        <td>Generate emails and documents</td>
        <td> <a href="admin_acad_email_and_docs.php">Emails and Documents</td>
    </tr>
    <tr>
    </table>';

echo '<br/>';

echo '<table class="admin">
    <tr>
        <td>Add AWS entry</td>
        <td> <a href="admin_acad_add_aws_entry.php">Add AWS entry</td>
    </tr>
    <tr><td>
    Enter a login and optionally AWS date and you can delete that AWS entry 
    from my database.</td>
    <td> 
    <form method="post" action="">
    <input id="autocomplete_user1" name="login" placeholder="AWS Speaker" type="text" />
    <input class="datepicker" name="date" placeholder="date(optional)" value="" >
    <button name="response" value="Select">' . $symbCheck . '</button>
    </form></td>
    </tr>
    </table>';

echo '<h2>Add, update or remove AWS speakers</h2>';
echo '<table class="admin">';
echo '
    <tr>
        <td>Add or update speakers. </td>
        <td> <a href="admin_acad_manages_speakers.php">Manage speakers</td>
    </tr>
    <tr>
        <td>Add, Update a student (AWS) <br>
            <small>Type a login name and press the button.</small>
        </td>
        <td>
            <form method="post" action="admin_acad_update_user.php">
                <input id="autocomplete_user" name="login" 
                    placeholder="I will autocomplete " >
                <button title="Add or remove speakers from AWS list"
                    name="response" value="edit">' . $symbUpdate . 
                '</button>
            </form>
        </td>
    </tr></table>';

$login = null;
$date = null;
if( isset( $_POST[ 'response' ] ))
{
    if( $_POST[ 'response' ] == 'Select' )
    {
        $login = $_POST[ 'login' ];
        $date = $_POST[ 'date' ];
{'fraction_non_alphanumeric': 0.1688014638609332, 'fraction_numerical': 0.003354681305275999, 'mean_word_length': 2.7891392258809935, 'pattern_counts': {'":': 0, '<': 193, '<?xml version=': 0, '>': 191, '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': '5165717', 'n_tokens_mistral': 2211, 'n_tokens_neox': 2168, 'n_words': 521}