<commit_before><div class="section">
    <div class="row">
        <div class="small-6 columns">
            <h1><i class="fa fa-check-square"></i> All Staff Requests</h1>
        </div>
        <div class="small-6 columns text-right">
            <ul class="button-group radius">
                <?php
                    if($this->completed == false)
                    {
                        echo "
                        <li><a href=\"".$this->link(array('requests','all','completed'))."\" class=\"button radius\"><i class=\"fa fa-check\"></i> Completed</a></li>
                        ";
                    }
                    else
                    {
                        echo "<li><a href=\"".$this->link(array('requests','all'))."\" class=\"button radius\"><i class=\"fa fa-refresh\"></i> Pending</a></li>";
                    }
                ?>

            </ul>

        </div>
    </div>

    <?php

    if(count($this->requests) > 0)
    {
        echo "
            <div class=\"row\">
                <div class=\"small-8 columns text-right\" style='padding-top:8px;'>
                    <b>Quick Select</b>
                </div>
                <div class=\"small-4 columns\">
                    <select id='nameSelect'>
                        <option>Select a name</option>
                        ";

                    $previousName = "";
                    foreach($this->requests as $request)
                    {
                        if($request['firstName']." ".$request['lastName'] != $previousName)
                        echo "<option value='".$request['firstName']."".$request['lastName']."'>".$request['firstName']." ".$request['lastName']."</option>";
                        $previousName = $request['firstName']." ".$request['lastName'];
                    }
                echo "</select>
                </div>
            </div>
        ";

        echo "
        <div class=\"row\">
        <div class=\"small-12 columns\">
        <table width='100%'>
        ";
        $lastRequestName = "";
        foreach($this->requests as $request)
        {
            if($request['firstName']." ".$request['lastName'] != $lastRequestName)
            {
                echo "
                    
                    <tr>
                        <td colspan='7' class='text-center' style='background-color:#999;'>
                            <b><h5 style='color:#fff;' id=\"".$request['firstName']."".$request['lastName']."\">".$request['firstName']." ".$request['lastName']."</h5></b>
                        </td>
                    </tr>   
                    <tr>
                       <th>Type</th>
                       <th>Requested On</th>
                       <th>Start Date</th>
                       <th>End Date</th>
                       <th>Total Hours</th>
                       <th>Status</th>
                       <th></th>
                   </tr> 
                ";
            }
            echo "
            <tr>
                <td>
                    <a class='' href='".$this->link(array("requests","request",$request['requestId']))."'><i class='fa fa-file'></i> ".$request['codeName']."</a>
                </td>
                <td>
                    ".date("l",strtotime($request['dateOfRequest']))."<br>
                    ".date("M. jS Y",strtotime($request['dateOfRequest']))."
                </td>
                <td><commit_msg>Fixed name selection ID<commit_after><div class="section">
    <div class="row">
        <div class="small-6 columns">
            <h1><i class="fa fa-check-square"></i> All Staff Requests</h1>
        </div>
        <div class="small-6 columns text-right">
            <ul class="button-group radius">
                <?php
                    if($this->completed == false)
                    {
                        echo "
                        <li><a href=\"".$this->link(array('requests','all','completed'))."\" class=\"button radius\"><i class=\"fa fa-check\"></i> Completed</a></li>
                        ";
                    }
                    else
                    {
                        echo "<li><a href=\"".$this->link(array('requests','all'))."\" class=\"button radius\"><i class=\"fa fa-refresh\"></i> Pending</a></li>";
                    }
                ?>

            </ul>

        </div>
    </div>

    <?php

    if(count($this->requests) > 0)
    {
        echo "
            <div class=\"row\">
                <div class=\"small-8 columns text-right\" style='padding-top:8px;'>
                    <b>Quick Select</b>
                </div>
                <div class=\"small-4 columns\">
                    <select id='nameSelect'>
                        <option>Select a name</option>
                        ";

                    $previousName = "";
                    foreach($this->requests as $request)
                    {
                        $idName = $request['firstName']." ".$request['lastName'];
                        $idName = str_replace(" ","",$idName);

                        if($request['firstName']." ".$request['lastName'] != $previousName)
                        {
                            echo "<option value='".$idName."'>".$request['firstName']." ".$request['lastName']."</option>";
                            $previousName = $request['firstName']." ".$request['lastName'];
                        }
                    }
                echo "</select>
                </div>
            </div>
        ";

        echo "
        <div class=\"row\">
        <div class=\"small-12 columns\">
        <table width='100%'>
        ";
        $lastRequestName = "";
        foreach($this->requests as $request)
        {
            if($request['firstName']." ".$request['lastName'] != $lastRequestName)
            {
                $idName = $request['firstName']." ".$request['lastName'];
                $idName = str_replace(" ","",$idName);
                echo "
                    
                    <tr>
                        <td colspan='7' class='text-center' style='background-color:#999;'>
                            <b><h5 style='color:#fff;' id=\"".$idName."\">".$request['firstName']." ".$request['lastName']."</h5></b>
                        </td>
                    </tr>   
                    <tr>
                       <th>Type</th>
                       <th>Requested On</th>
                       <th>Start Date</th>
                       <th>End Date</th>
                       <th>Total Hours</th>
                       <th>Status</th>
                       <th></th>
                   </tr> 
                ";
            }
            echo "
            <tr>
                <td>
                    <a class='' href='".$this->link(array("requests","request",$request['requestId']))."'><i class='fa fa-file'></i> ".$request['codeName']."</a>
                </td>
                <td>
                    ".date("l",strtotime($request['dateOfRequest']))."<br>
                    ".date("M. jS Y",strtotime($request['dateOfRequest']))."
                </td>
                <td>
{'fraction_non_alphanumeric': 0.1808257522743177, 'fraction_numerical': 0.005318404478656403, 'mean_word_length': 1.0949868073878628, 'pattern_counts': {'":': 0, '<': 161, '<?xml version=': 0, '>': 175, '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': '2253728', 'n_tokens_mistral': 1944, 'n_tokens_neox': 1800, 'n_words': 296}