<commit_before><?php
defined('BASEPATH') OR exit('No direct script access allowed');

function info_row($str)
{
        if ($str == '')
        {
                return;
        }
        return '<tr><td>' . $str . '</td></tr>';
}

function function_row_td($link, $label, $popup = FALSE)
{
        return table_row_button_link($link, $label, NULL, array('title' => $label, 'class' => "tip-bottom"), $popup);
}
?>
<div class="container-fluid">
    <div class="row-fluid">
        <div class="span12">
            <div class="widget-box">
                <div class="widget-title"> <span class="icon"> <i class="icon-user"></i> </span>
                    <?php echo heading($this->config->item('project_title'), 5); ?>
                </div>
                <div class="widget-content">
                    <div class="row-fluid">
                        <div class="span6">
                            <table class="table table-bordered table-invoice">
                                <tbody>
                                    <tr>
                                        <td><?php echo heading($this->student->fullname, 4); ?></td>
                                    </tr>
                                    <tr>
                                        <td><?php echo $this->student->address; ?></td>
                                    </tr>
                                    <?php echo info_row($this->student->town); ?>
                                    <?php echo info_row($this->student->region); ?>
                                    <?php echo info_row($this->student->contact); ?>
                                    <?php echo info_row($this->student->email); ?>
                                    <tr>
                                        <td><?php echo $this->student->birthdate; ?></td>
                                    </tr> 
                                    <tr>
                                        <td><?php echo $this->student->age(TRUE); ?></td>
                                    </tr> 
                                </tbody>
                            </table>                        
                        </div>
                        <div class="span6">
                            <table class="table table-bordered table-invoice">
                                <tbody>
                                    <tr>
                                        <td><img src="<?php echo $image_src; ?>" alt="no image" /></td>
                                    </tr>
                                    <tr>
                                        <td class="width30">School ID:</td>
                                        <td class="width70"><?php echo bold($this->student->school_id()); ?></td>
                                    </tr>
                                    <tr>
                                        <td>Course</td>
                                        <td><?php echo bold($this->student->course_code . ' - ' . $this->student->course_description); ?></td>
                                    </tr>
                                    <tr>
                                        <td>Year Level</td>
                                        <td> <?php echo bold($this->student->level_place); ?></td>
                                    </tr>
                                    <tr>
                                        <td>Status</td>
                                        <td> <?php echo bold($this->student->is_enrolled(TRUE)); ?></td>
                                    </tr>
                                    <tr>
                                        <td>Enrolled Term</td>
                                        <td> <?php echo bold($this->student->enrolled_term_year()); ?></td>
                                    </tr>
                                    <tr>
                                        <td>Enrolled Curriculum</td>
                                        <td> <?php echo $this->student->curriculum(TRUE); ?></td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                    <div class="row-fluid">
                        <div class="span12">
                            <table class="table table-bordered table-invoice-full">
                                <tbody>
                                    <tr>
                                        <td class="msg-invoice pull-right">
                                            <?php
                                            if ($this->Enrollment_status_model->status())
                                            {
                                                    /**
                                                     * add subject
                                                     */
                                                    echo function_row_td('create-student-subject?student-id=' . $this->student->id, lang('add_student_subject_label'));
                                            }
                                            if ($this->student->is_enrolled())
                                            {
                                                    /**
                                                     * print
                                                     */
                                                    echo function_row_td('students/print_data?action=prev&student-id=' . $this->student->id, lang('print_label'), TRUE);
                                            }
                                            if (( ! $this->student->is_enrolled()) &&
                                                    $this->Enrollment_status_model->status() &&
                                                    specific_groups_permission('accounting'))
                                            {
                                                    /**
                                                     * set enroll
                                                     */
                                                    echo function_row_td('students/set-enroll?student-id=' . $this->student->id, 'Set Enroll');
                                            }
                                            if (in_array('edit-student', permission_controllers()))
                                            {
                                                    /**
                                                     * print
                                                     */
                                                    echo function_row_td('edit-student?student-id=' . $this->student->id, 'Edit');
                                            }
                                            ?>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                            <?php
                            /*
                             * subjects table
                             */
                            echo $table_subjects;
                            ?>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div><commit_msg>modify view, course/year inline and set roman<commit_after><?php
defined('BASEPATH') OR exit('No direct script access allowed');

function info_row($str)
{
        if ($str == '')
        {
                return;
        }
        return '<tr><td>' . $str . '</td></tr>';
}

function function_row_td($link, $label, $popup = FALSE)
{
        return table_row_button_link($link, $label, NULL, array('title' => $label, 'class' => "tip-bottom"), $popup);
}
?>
<div class="container-fluid">
    <div class="row-fluid">
        <div class="span12">
            <div class="widget-box">
                <div class="widget-title"> <span class="icon"> <i class="icon-user"></i> </span>
                    <?php echo heading($this->config->item('project_title'), 5); ?>
                </div>
                <div class="widget-content">
                    <div class="row-fluid">
                        <div class="span6">
                            <table class="table table-bordered table-invoice">
                                <tbody>
                                    <tr>
                                        <td><img src="<?php echo $image_src; ?>" alt="no image" /></td>
                                    </tr>
                                    <tr>
                                        <td><?php echo heading($this->student->fullname, 4); ?></td>
                                    </tr>
                                    <tr>
                                        <td><?php echo $this->student->address; ?></td>
                                    </tr>
                                    <?php echo info_row($this->student->town); ?>
                                    <?php echo info_row($this->student->region); ?>
                                    <?php echo info_row($this->student->contact); ?>
                                    <?php echo info_row($this->student->email); ?>
                                    <tr>
                                        <td><?php echo $this->student->birthdate; ?></td>
                                    </tr> 
                                    <tr>
                                        <td><?php echo $this->student->age(TRUE); ?></td>
                                    </tr> 
                                </tbody>
                            </table>                        
                        </div>
                        <div class="span6">
                            <table class="table table-bordered table-invoice">
                                <tbody>
                                    <tr>
                                        <td class="width30">School ID:</td>
                                        <td class="width70"><?php echo bold($this->student->school_id()); ?></td>
                                    </tr>
                                    <tr>
                                        <td>Course / Year</td>
                                        <td><?php echo bold($this->student->course_code . ' - ' . $this->student->level_roman); ?></td>
                                    </tr>
                                    <tr>
                                        <td>Status</td>
                                        <td> <?php echo bold($this->student->is_enrolled(TRUE)); ?></td>
                                    </tr>
                                    <tr>
                                        <td>Enrolled Term</td>
                                        <td> <?php echo bold($this->student->enrolled_term_year()); ?></td>
                                    </tr>
                                    <tr>
                                        <td>Enrolled Curriculum</td>
                                        <td> <?php echo $this->student->curriculum(TRUE); ?></td>
                                    </tr>
                                    <tr>
                                        <td colspan="2" >
                                            <?php
                                            if ($this->Enrollment_status_model->status())
                                            {
                                                    /**
                                                     * add subject
                                                     */
                                                    echo function_row_td('create-student-subject?student-id=' . $this->student->id, lang('add_student_subject_label'));
                                            }
                                            if ($this->student->is_enrolled())
                                            {
                                                    /**
                                                     * print
                                                     */
                                                    echo function_row_td('students/print_data?action=prev&student-id=' . $this->student->id, lang('print_label'), TRUE);
                                            }
                                            if (( ! $this->student->is_enrolled()) &&
                                                    $this->Enrollment_status_model->status() &&
                                                    specific_groups_permission('accounting'))
                                            {
                                                    /**
                                                     * set enroll
                                                     */
                                                    echo function_row_td('students/set-enroll?student-id=' . $this->student->id, 'Set Enroll');
                                            }
                                            if (in_array('edit-student', permission_controllers()))
                                            {
                                                    /**
                                                     * print
                                                     */
                                                    echo function_row_td('edit-student?student-id=' . $this->student->id, 'Edit');
                                            }
                                            ?>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                    <div class="row-fluid">
                        <div class="span12">

                            <?php
                            /*
                             * subjects table
                             */
                            echo $table_subjects;
                            ?>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
{'fraction_non_alphanumeric': 0.1086698751482179, 'fraction_numerical': 0.0017437399734951523, 'mean_word_length': 0.5588171341595999, 'pattern_counts': {'":': 0, '<': 236, '<?xml version=': 0, '>': 334, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 231, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6535701', 'n_tokens_mistral': 2592, 'n_tokens_neox': 2501, 'n_words': 469}