?
Current Path : /home1/savoy/public_html/savoyglobal.net/koolkids/school/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 |
Current File : /home1/savoy/public_html/savoyglobal.net/koolkids/school/application/views/Student/editstudent.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); $class=$this->mastermodel->getdatas('classlevel','sort'); $this->load->view('documentreadyfunctions'); $profile_details = $this->mastermodel->get_data('user_profiles','Student','profile_user_type'); ?> <span class="section_content_top"></span> <div class="section_content_inner"> <?php $attributes=array('class'=>'search_form','id'=>'validateform'); echo form_open('student/addinstudent/updatestudent/viewstudent/1/',$attributes); ?> <input type="hidden" value="<?=$student->student_id;?>" name="masterid"/> <fieldset> <div class="forms"> <h3>DETAILS OF CHILD</h3> <div class="row"> <label>Student Reg No</label> <div class="inputs"> <span class="input_wrapper"><input class="text required" value="<?=$student->reg_no?>" readonly name="reg_no" id="reg_no" type="text" onchange="checkexistence('student','reg_no',this.value)" /></span> </div> </div> <div class="row"> <label>Name in Full</label> <div class="inputs"> <span class="input_wrapper"><input class="text required" value="<?=$student->first_name?>" name="first_name" id="first_name" type="text" /></span> </div> </div> <div class="row"> <label>Surname</label> <div class="inputs"> <span class="input_wrapper"><input class="text" value="<?=$student->last_name?>" name="last_name" id="last_name" type="text" /></span> </div> </div> <div class="row"> <label>Preferred name</label> <div class="inputs"> <span class="input_wrapper"><input class="text" value="<?=$student->preferred_name?>"name="preferred_name" id="preferred_name" type="text" /></span> </div> </div> <div class="row"> <label>Date of Birth</label> <div class="inputs"> <span class="input_wrapper"><input class="text required calfocus" value="<?=$this->mastermodel->convertdatenormalformat($student->dob)?>" name="dob" id="dob" type="text" onkeydown="calculate_age('dob')" /></span> </div> </div> <?php $difference = abs(strtotime(date("Y-m-d")) - strtotime($student->dob)); $years = floor($difference / (365*60*60*24)); $months = floor(($difference - $years * 365*60*60*24) / (30*60*60*24)); $days = floor(($difference - $years * 365*60*60*24 - $months*30*60*60*24)/ (60*60*24)); echo $years.' years '.$months.' months'; ?> <div class="row"> <label>Age</label> <div class="inputs"> <span class="input_wrapper"><input value="<?php echo $years.' years '.$months.' months';?>" name="age" id="age" class="text" type="text" readonly="readonly" onclick="calculate_age()" /></span> </div> </div> <div class="row"> <label>Gender</label> <div class="inputs"> <ul> <li><input class="radio" name="gender" id="gender" type="radio" value="Male" <?php if($student->gender=='Male'){echo "checked";}?> />Male</li> <li><input class="radio" name="gender" id="gender" type="radio" value="female" <?php if($student->gender=='female'){echo "checked";}?> /> Female</li> </ul> </div> </div> <div class="row"> <label>Ranking in family</label> <div class="inputs"> <span class="input_wrapper select_wrapper"> <select name="ranking"> <option value="">--Select--</option> <option value="1st" <?php if($student->ranking=='1st'){echo "selected";}?>>1st</option> <option value="2nd" <?php if($student->ranking=='2nd'){echo "selected";}?>>2nd</option> <option value="3rd" <?php if($student->ranking=='3rd'){echo "selected";}?>>3rd</option> <option value="4th" <?php if($student->ranking=='4th'){echo "selected";}?>>4th</option> </select> </span> </div> </div> <div class="row"> <label>Home language</label> <div class="inputs"> <span class="input_wrapper"><input class="text" value="<?=$student->home_language?>" name="home_language" id="home_language" type="text" /></span> </div> </div> <div class="row"> <label>Address</label> <div class="inputs"> <span class="input_wrapper"><textarea name="address" id="address" rows="5" cols="30"><?=$student->address?></textarea></span> </div> </div> <div class="row"> <label>City</label> <div class="inputs"> <span class="input_wrapper"><input class="text" value="<?=$student->city;?>" name="city" id="city" type="text" /></span> </div> </div> <div class="row"> <label>State</label> <div class="inputs"> <span class="input_wrapper"><input class="text" value="<?=$student->state?>" name="state" id="state" type="text" /></span> </div> </div> <div class="row"> <label>Country</label> <div class="inputs"> <span class="input_wrapper"><input class="text" value="<?=$student->country?>" name="country" id="country" type="text" /></span> </div> </div> <div class="row"> <label>Class to which admission is sought</label> <div class="inputs"> <span class="input_wrapper select_wrapper"> <select name="classlevel_id" class="required"> <option value="">--Select--</option> <?php foreach ($class as $row) { ?> <option value="<?=$row['classlevel_id']?>" <?php if($row['classlevel_id']==$student->classlevel_id){echo "selected";}?>><?=$row['classlevel_code']?></option> <?php } ?> </select> </span> </div> </div> </div> </fieldset> <fieldset> <div class="forms"> <h3>ADMISSION INFORMATION</h3> <div class="row"> <label>Planned date of admission</label> <div class="inputs"> <span class="input_wrapper"><input class="text required calfocus" value="<?=$this->mastermodel->convertdatenormalformat($admission->date_admission)?>" name="date_admission" id="date_admission" type="text" /></span> </div> </div> <div class="row"> <label>Previous nursery</label> <div class="inputs"> <span class="input_wrapper"><input class="text" value="<?=$admission->previous_nursery?>" name="previous_nursery" id="previous_nursery" type="text" /></span> </div> </div> <div class="row"> <label>Who will bring the child to school</label> <div class="inputs"> <span class="input_wrapper"><input class="text" value="<?=$admission->child_bring_school?>" name="child_bring_school" id="child_bring_school" type="text" /></span> </div> </div> Kindly provide the details of two people whom we may contact should you not be immediately available, e.g. in case of emergency: <div class="row"> <label>A. Name</label> <div class="inputs"> <span class="input_wrapper"><input class="text" value="<?=$admission->contact_name_1?>" name="contact_name_1" id="contact_name_1" type="text" /></span> </div> </div> <div class="row"> <label>Contact No</label> <div class="inputs"> <span class="input_wrapper"><input class="text" value="<?=$admission->contact_no_1?>" name="contact_no_1" id="contact_no_1" type="text" /></span> </div> </div> <div class="row"> <label>Relation</label> <div class="inputs"> <span class="input_wrapper"><input class="text" value="<?=$admission->relation_1?>" name="relation_1" id="relation_1" type="text" /></span> </div> </div> <div class="row"> <label>B. Name</label> <div class="inputs"> <span class="input_wrapper"><input class="text" value="<?=$admission->contact_name_2?>" name="contact_name_2" id="contact_name_2" type="text" /></span> </div> </div> <div class="row"> <label>Contact No</label> <div class="inputs"> <span class="input_wrapper"><input class="text" value="<?=$admission->contact_no_2?>" name="contact_no_2" id="contact_no_2" type="text" /></span> </div> </div> <div class="row"> <label>Relation</label> <div class="inputs"> <span class="input_wrapper"><input class="text" value="<?=$admission->relation_2?>" name="relation_2" id="relation_2" type="text" /></span> </div> </div> </div> </fieldset> <fieldset> <div class="forms"> <h3>Medical History (Please specify details):</h3> <div class="row"> <label>Blood Group</label> <div class="inputs"> <span class="input_wrapper"><input class="text" type="text" name="blood_group" id="blood_group" value="<?=$other->blood_group?>"/></span> </div> </div> <div class="row"> <label>Previous serious illnesse</label> <div class="inputs"> <span class="input_wrapper"><textarea name="illness" id="illness"><?=$other->illness?></textarea></span> </div> </div> <div class="row"> <label>Surgical procedures or operations</label> <div class="inputs"> <span class="input_wrapper"><textarea name="surgery" id="surgery"><?=$other->surgery?></textarea></span> </div> </div> <div class="row"> <label>Any Speech, hearing or sight impediments</label> <div class="inputs"> <span class="input_wrapper"><textarea name="speech" id="speech"><?=$other->speech?></textarea></span> </div> </div> <div class="row"> <label>Allergies</label> <div class="inputs"> <span class="input_wrapper"><textarea name="allergy" id="allergy"><?=$other->allergy?></textarea></span> </div> </div> <div class="row"> <label>Have all inoculations, as prescribed by law,<br/> been administered</label> <div class="inputs"> <span class="input_wrapper"><textarea name="inoculation" id="inoculation"><?=$other->inoculation?></textarea></span> </div> </div> <div class="row"> <label>General practitioner or paediatrician of child</label> <div class="inputs"> <span class="input_wrapper"><input class="text" name="general_practitioner" value="<?=$other->general_practitioner?>" id="general_practitioner" type="text" /></span> </div> </div> <div class="row"> <label>Contact No</label> <div class="inputs"> <span class="input_wrapper"><input class="text" name="contact_no_practitioner" value="<?=$other->contact_no_practitioner?>" id="contact_no_practitioner" type="text" /></span> </div> </div> <div class="row"> <div class="inputs"> <input type="hidden" name="tab_name" value="student"/> <span class="button blue_button search_button" onclick="addformdata('validateform')"><span><span><em>Update Student</em></span></span><input name="" type="submit" /></span> </div> </div> </div> </fieldset> <?php echo form_close(); ?> </div> <span class="section_content_bottom"></span>