| Server IP : 162.214.74.102 / Your IP : 216.73.216.59 Web Server : Apache System : Linux dedi-4363141.lrsys.com.br 3.10.0-1160.119.1.el7.tuxcare.els25.x86_64 #1 SMP Wed Oct 1 17:37:27 UTC 2025 x86_64 User : lrsys ( 1015) PHP Version : 5.6.40 Disable Function : exec,passthru,shell_exec,system MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/lrsys/public_html/lrsys_apps/school/application/views/backend/admin/ |
Upload File : |
<div class="tab-pane box active" id="edit" style="padding: 5px">
<div class="box-content">
<?php foreach($edit_data as $row):?>
<?php echo form_open(base_url() . 'index.php?admin/teacher/do_update/'.$row['teacher_id'] , array('class' => 'form-horizontal form-groups-bordered validate','target'=>'_top', 'enctype' => 'multipart/form-data'));?>
<div class="padded">
<div class="form-group">
<label class="col-sm-3 control-label"><?php echo get_phrase('name');?></label>
<div class="col-sm-5">
<input type="text" class="validate[required]" name="name" value="<?php echo $row['name'];?>"/>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label"><?php echo get_phrase('birthday');?></label>
<div class="col-sm-5">
<input type="text" class="datepicker fill-up" name="birthday" value="<?php echo $row['birthday'];?>"/>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label"><?php echo get_phrase('sex');?></label>
<div class="col-sm-5">
<select name="sex" class="uniform" style="width:100%;">
<option value="male" <?php if($row['sex'] == 'male')echo 'selected';?>><?php echo get_phrase('male');?></option>
<option value="female" <?php if($row['sex'] == 'female')echo 'selected';?>><?php echo get_phrase('female');?></option>
</select>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label"><?php echo get_phrase('address');?></label>
<div class="col-sm-5">
<input type="text" class="" name="address" value="<?php echo $row['address'];?>"/>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label"><?php echo get_phrase('phone');?></label>
<div class="col-sm-5">
<input type="text" class="" name="phone" value="<?php echo $row['phone'];?>"/>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label"><?php echo get_phrase('email');?></label>
<div class="col-sm-5">
<input type="text" class="" name="email" value="<?php echo $row['email'];?>"/>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label"><?php echo get_phrase('photo');?></label>
<div class="controls" style="width:210px;">
<input type="file" class="" name="userfile" id="imgInp" />
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label"></label>
<div class="controls" style="width:210px;">
<img id="blah" src="<?php echo $this->crud_model->get_image_url('teacher',$row['teacher_id']);?>" alt="your image" height="100" />
</div>
</div>
</div>
<div class="form-actions">
<button type="submit" class="btn btn-gray"><?php echo get_phrase('edit_teacher');?></button>
</div>
</form>
<?php endforeach;?>
</div>
</div>