?
Current Path : /home1/savoy/public_html/savoyglobal.net/simsdemo/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/simsdemo/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"/> <!--[if !IE]>start fieldset<![endif]--> <fieldset> <!--[if !IE]>start forms<![endif]--> <div class="forms"> <div class="backicon"> <a href="#" onclick="viewdata('student','viewinstudentsearch','searchstudent','viewstudent','<?=$_SESSION['pagenum'];?>')"> <img src="<?=base_url()?>assets/images/backicon.png" alt="back-icon" title="Back"/> </a> </div> <h3>Update Student</h3> <!--[if !IE]>start row<![endif]--> <div class="row"> <label>Student Reg No</label> <div class="inputs"> <span class="input_wrapper"><input class="text" class="required" name="reg_no" id="reg_no" readonly type="text" value="<?=$student->reg_no;?>" onchange="checkexistenceedit('student','reg_no',this.value,'student_id','<?=$student->student_id;?>')" /></span> </div> </div> <!--[if !IE]>end row<![endif]--> <!--[if !IE]>start row<![endif]--> <div class="row"> <label>First Name</label> <div class="inputs"> <span class="input_wrapper"><input class="text required" name="first_name" id="first_name" type="text" value="<?=$student->first_name;?>" /></span> </div> </div> <!--[if !IE]>end row<![endif]--> <!--[if !IE]>start row<![endif]--> <div class="row"> <label>Last Name</label> <div class="inputs"> <span class="input_wrapper"><input class="text" name="last_name" id="last_name" type="text" value="<?=$student->last_name;?>" /></span> </div> </div> <!--[if !IE]>end row<![endif]--> <!--[if !IE]>start row<![endif]--> <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'){ ?>checked<?php } ?> />Male</li> <li><input class="radio" name="gender" id="gender" type="radio" value="female" <?php if($student->gender=='female') { ?>checked<?php } ?> /> Female</li> </ul> </div> </div> <!--[if !IE]>end row<![endif]--> <!--[if !IE]>start row<![endif]--> <div class="row"> <label>Class</label> <div class="inputs"> <span class="input_wrapper select_wrapper"> <select name="classlevel_id"> <option value="">--Select--</option> <?php foreach ($class as $row) { ?> <option value="<?=$row['classlevel_id']?>" <?php if($student->classlevel_id==$row['classlevel_id']){ echo "selected"; } ?>><?=$row['classlevel_code']?></option> <?php } ?> </select></span> </div> </div> <!--[if !IE]>end row<![endif]--> <!--[if !IE]>start row<![endif]--> <div class="row" <label>Date of Birth</label> <div class="inputs"> <span class="input_wrapper"><input class="text calfocus" name="dob" id="dob" type="text" value="<?=$this->mastermodel->convertdatenormalformat($student->dob);?>" /></span> </div> </div> <!--[if !IE]>end row<![endif]--> <!--[if !IE]>start row<![endif]--> <div class="row"> <label>Email</label> <div class="inputs"> <span class="input_wrapper"><input class="text email" name="email" id="email" type="text" value="<?=$student->email;?>" /></span> </div> </div> <!--[if !IE]>end row<![endif]--> <!--[if !IE]>start row<![endif]--> <div class="row"> <label>Contact No</label> <div class="inputs"> <span class="input_wrapper"><input class="text" name="contact_no" id="contact_no" type="text" value="<?=$student->contact_no;?>" /></span> </div> </div> <!--[if !IE]>end row<![endif]--> <!--[if !IE]>start row<![endif]--> <div class="row"> <label>Mobile No</label> <div class="inputs"> <span class="input_wrapper"><input class="text" name="mobile_no" id="mobile_no" type="text" value="<?=$student->mobile_no;?>" /></span> </div> </div> <!--[if !IE]>end row<![endif]--> </div> </fieldset> <!--[if !IE]>end fieldset<![endif]--> <!--[if !IE]>start fieldset<![endif]--> <fieldset> <!--[if !IE]>start forms<![endif]--> <div class="forms"> <h3>Student Address</h3> <div class="row" <label>Address</label> <div class="inputs"> <span class="input_wrapper"><textarea name="address" id="street"><?=$student->address;?></textarea></span> </div> </div> <!--[if !IE]>end row<![endif]--> <!--[if !IE]>start row<![endif]--> <div class="row"> <label>State</label> <div class="inputs"> <span class="input_wrapper"><input class="text" name="state" id="state" value="<?=$student->state;?>" type="text" /></span> </div> </div> <!--[if !IE]>end row<![endif]--> <!--[if !IE]>start row<![endif]--> <div class="row"> <label>Country</label> <div class="inputs"> <span class="input_wrapper"><input class="text" name="country" id="country" type="text" value="<?=$student->country;?>" /></span> </div> </div> <!--[if !IE]>end row<![endif]--> <!--[if !IE]>start row<![endif]--> </div> <!--[if !IE]>end forms<![endif]--> </fieldset> <!--[if !IE]>end fieldset<![endif]--> <!--[if !IE]>end fieldset<![endif]--> <fieldset> <div class="forms"> <!--[if !IE]>start row<![endif]--> <h3>Other Information</h3> <div class="row"> <label>Community and Religion</label> <div class="inputs"> <span class="input_wrapper"><input class="text" value="<?=$other->community;?>" name="community" id="community" type="text" /></span> </div> </div> <div class="row"> <label>ID/IPP No.</label> <div class="inputs"> <span class="input_wrapper"><input class="text" value="<?=$other->ipp_no;?>" name="ipp_no" id="ipp_no" type="text" /></span> </div> </div> <div class="row"> <label>Does your child has access to</label> <div class="inputs"> <input type="checkbox" name="computer" value="1" <?php if($other->computer == 1){echo "checked";}?>/>Computer<br/> <input type="checkbox" name="internet" value="1" <?php if($other->internet == 1){echo "checked";}?>/>Internet<br/> <input type="checkbox" name="printer" value="1" <?php if($other->printer == 1){echo "checked";}?>/>Printer </div> </div> <div class="row"> <label>Number and date of Transfer Certificate<br/>produced on admission</label> <div class="inputs"> <span class="input_wrapper"><input class="text" value="<?=$other->tc;?>" name="tc" id="tc" type="text" /></span> </div> </div> <div class="row"> <label>School previously attended</label> <div class="inputs"> <span class="input_wrapper"><input class="text" value="<?=$other->school_previous;?>" name="school_previous" id="school_previous" type="text" /></span> </div> </div> <div class="row"> <label>Transportation</label> <div class="inputs"> <ul> <li><input class="radio" name="transport" <?php if($other->transport == 'schoolbus'){echo "checked";}?> id="transport" type="radio" value="schoolbus" /> School Bus</li> <li><input class="radio" name="transport" <?php if($other->transport == 'private'){echo "checked";}?> id="transport" type="radio" value="private" /> Private Conveyance</li> </ul> </div> </div> </div> </fieldset> <fieldset> <div class="forms"> <!--[if !IE]>start row<![endif]--> <h3>Medical History</h3> <div class="row"> <label>Illness</label> <div class="inputs"> <span class="input_wrapper"><input class="text" name="illness" value="<?=$other->illness;?>" id="illness" type="text" /></span> </div> </div> <!--[if !IE]>end row<![endif]--> <div class="row"> <label>Allergy</label> <div class="inputs"> <span class="input_wrapper"><input class="text" name="allergy" value="<?=$other->allergy;?>" id="allergy" type="text" /></span> </div> </div> <!--[if !IE]>end row<![endif]--> <?php $num=$this->mastermodel->get_data_srow('user',$student->student_id,'linkedto_id'); if(count($num)==0) { ?> <!--[if !IE]>start row<![endif]--> <div class="row"> <label>Create User?</label> <div class="inputs"> <input type="checkbox" name="create_user" onchange="showhideuser(this)"/> </div> </div> <!--[if !IE]>end row<![endif]--> <div style="display:none;" id="createuser"> <div class="row"> <label>Username</label> <div class="inputs"> <span class="input_wrapper"><input class="text"name="username" id="username" type="text" onchange="checkexistence('user','username',this.value)" /></span> </div> </div> <!--[if !IE]>end row<![endif]--> <!--[if !IE]>start row<![endif]--> <div class="row"> <label>Password</label> <div class="inputs"> <span class="input_wrapper"><input class="text" name="password" id="password" type="password" /></span> </div> </div> <!--[if !IE]>end row<![endif]--> <!--[if !IE]>end row<![endif]--> <!--[if !IE]>start row<![endif]--> <div class="row"> <label>Confirm Password</label> <div class="inputs"> <span class="input_wrapper"><input class="text" name="password1" id="password1" type="password" onchange="checkpassword('password','password1')" /></span> </div> </div> <!--[if !IE]>end row<![endif]--> <!--[if !IE]>start row<![endif]--> <div class="row"> <label>Select Profile</label> <div class="inputs"> <span class="input_wrapper select_wrapper"> <select name="profile_id" id="profile_id" class="" > <?php foreach ($profile_details as $row) { ?> <option value="<?=$row['profile_id']?>"><?=$row['name']?></option> <?php } ?> </select> </span> </div> </div> <!--[if !IE]>end row<![endif]--> </div> <?php } else { ?> <div class="row"> <label>Username</label> <div class="inputs"> <span class="input_wrapper"><input class="text required" value="<?=$num->username;?>" name="username" id="username" type="text" onchange="checkexistence('user','username',this.value)" /></span> </div> </div> <!--[if !IE]>end row<![endif]--> <!--[if !IE]>start row<![endif]--> <div class="row"> <label>Password</label> <div class="inputs"> <span class="input_wrapper"><input class="text" name="password" id="password" type="password" /></span> </div> </div> <!--[if !IE]>end row<![endif]--> <!--[if !IE]>end row<![endif]--> <!--[if !IE]>start row<![endif]--> <div class="row"> <label>Select Profile</label> <div class="inputs"> <span class="input_wrapper select_wrapper"> <select name="profile_id" id="profile_id" class="required" > <?php foreach ($profile_details as $row) { ?> <option value="<?=$row['profile_id']?>"<?php if($row['profile_id']==$num->profile_id){echo "selected";}?>><?=$row['name']?></option> <?php } ?> </select> </span> </div> </div> <?php } ?> <!--[if !IE]>start row<![endif]--> <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> <!--[if !IE]>end row<![endif]--> </div> </fieldset> <?php echo form_close(); ?> </div> <span class="section_content_bottom"></span>