File "testimonial_form_others_edit.php"
Full Path: /home/ichhrkpd/public_html/idcm/application/views/testimonial_form_others_edit.php
File size: 14.44 KB
MIME-type: text/html
Charset: utf-8
<?php
$sl =1;
$msg = isset($msg)?$msg:'';
$msg_type = isset($msg_type)?$msg_type:'';
$this->session->UnsetFlashData();
?>
<div class="content-wrapper">
<section class="content-header">
<h1>
<?php
echo "Testimonial Edit (Others) Form";
?>
</h1>
</section>
<section class="content">
<div class="row">
<div class="col-xs-12">
<div class="box">
<div class="box-header">
<a href="<?php echo base_url().'admin/testimonial_others';?>" class="btn-sm btn-info pull-right"><i class="fa fa-arrow-left" aria-hidden="true"></i> Back</a>
</div>
<div class="box-body">
<div class="row">
<form id="contactForm" action="<?php echo base_url()."admin/testimonial_update_others"?>" class="contact-form" method="post" role="form" >
<div class="col-md-6">
<div class="controls">
<div class="row">
<div class="col-md-12">
<input type="hidden" id="id" name="id" value="<?php echo $single_data[0]->id;?>">
<div class="form-group">
<label class="control-label" for="test_sl"><?php _e("Testimonial Serial Number"); ?></label>
<input id="test_sl" name="test_sl" type="text" value="<?php echo $single_data[0]->test_sl;?>" maxlength="20" class="form-control" placeholder="Testimonial Serial No. *" required="required" data-error="Testimonial Serial No is required.">
<div class="help-block with-errors"></div>
</div>
<div class="form-group">
<label class="control-label" for="dois"><?php _e("Date of Issue"); ?></label>
<input id="dois" type="text" maxlength="200" value="<?php echo $single_data[0]->dois;?>" autocomplete="off" name="dois" class="form-control" placeholder="Date of Issue *" required="required" data-error="Date of Issue is required.">
<div class="help-block with-errors"></div>
</div>
<div class="form-group">
<label class="control-label" for="std_reg"><?php _e("Registration No."); ?></label>
<input tabindex="2" id="std_reg" type="text" value="<?php echo $single_data[0]->std_reg;?>" maxlength="80" name="std_reg" class="form-control" placeholder="Registration No. *" required="required" data-error="Registration No. is required.">
<div class="help-block with-errors"></div>
</div>
<div class="form-group">
<label class="control-label" for="std_session"><?php _e("Session"); ?></label>
<input tabindex="2" id="std_session" type="text" value="<?php echo $single_data[0]->std_session;?>" maxlength="80" name="std_session" class="form-control" placeholder="Session *" required="required" data-error="Session is required.">
<div class="help-block with-errors"></div>
</div>
<div class="form-group">
<label class="control-label" for="std_roll"><?php _e("Roll No."); ?></label>
<input tabindex="2" id="std_roll" type="text" value="<?php echo $single_data[0]->std_roll;?>" maxlength="80" name="std_roll" class="form-control" placeholder="Roll *" required="required" data-error="Roll is required.">
<div class="help-block with-errors"></div>
</div>
<div class="form-group">
<label class="control-label" for="name"><?php _e("Name"); ?></label>
<input tabindex="2" id="name" type="text" maxlength="80" name="name" value="<?php echo $single_data[0]->name;?>" class="form-control" placeholder="Name *" required="required" data-error="Name is required.">
<div class="help-block with-errors"></div>
</div>
<div class="form-group">
<label class="control-label" for="fname"><?php _e("Father Name"); ?></label>
<input tabindex="5" autocomplete="off" style="margin-bottom: 0px !important;" id="fname" value="<?php echo $single_data[0]->fname;?>" maxlength="80" name="fname" class="form-control" placeholder="Father Name *" required="required" data-error="Father Name is required.">
<div class="help-block with-errors"></div>
</div>
<div class="form-group">
<label class="control-label" for="fname"><?php _e("Mother Name"); ?></label>
<input tabindex="5" autocomplete="off" style="margin-bottom: 0px !important;" id="mname" value="<?php echo $single_data[0]->mname;?>" maxlength="80" name="mname" class="form-control" placeholder="Mother Name *" required="required" data-error="Father Name is required.">
<div class="help-block with-errors"></div>
</div>
<div class="form-group">
<label class="control-label" for="present_address"><?php _e("Present Address"); ?></label>
<input tabindex="7" id="present_address" type="text" maxlength="200" autocomplete="off" value="<?php echo $single_data[0]->present_address;?>" name="present_address" class="form-control" placeholder="Present Address *" required="required" data-error="Present Address is required.">
<div class="help-block with-errors"></div>
</div>
<div class="form-group">
<label class="control-label" for="dob"><?php _e("DoB"); ?></label>
<input tabindex="7" id="dob" type="text" maxlength="200" autocomplete="off" value="<?php echo $single_data[0]->dob;?>" name="dob" class="form-control" placeholder="DoB *" required="required" data-error="DoB is required.">
<div class="help-block with-errors"></div>
</div>
<div class="form-group">
<label class="control-label" for="passing_year">Passing Year</label>
<input tabindex="7" id="passing_year" type="text" maxlength="200" autocomplete="off" value="<?php echo $single_data[0]->passing_year;?>" name="passing_year" class="form-control" placeholder="DoB *" required="required" data-error="Passing year is required.">
<div class="help-block with-errors"></div>
</div>
<div class="form-group">
<label class="control-label" for="gpa"><?php _e("GPA"); ?></label>
<input tabindex="7" id="gpa" type="text" maxlength="200" autocomplete="off" name="gpa" value="<?php echo $single_data[0]->gpa;?>" class="form-control" placeholder="GPA *" required="required" data-error="GPA is required.">
<div class="help-block with-errors"></div>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label class="control-label" for="std_class"><?php _e("Class"); ?></label>
<input type="text" name="std_class" id="std_class"class="form-control" style="width: 100%;" maxlength="200" value="<?php echo $single_data[0]->std_class;?>" >
</div>
<div class="form-group">
<label class="control-label" for="std_class"><?php _e("Group"); ?></label>
<input type="text" name="std_division" class="form-control" style="width: 100%;" id="std_division" maxlength="200" value="<?php echo $single_data[0]->std_division;?>" >
</div>
<label class="control-label"><?php _e("Subject Selection"); ?></label>
<table id="example" class="table table-bordered table-hover">
<thead>
<tr>
<th class="text-center">Sl</th>
<th class="text-center">Sub Title</th>
</tr>
</thead>
<tbody>
<tr>
<td>1.</td>
<td><input type="text" maxlength="200" class="form-control" style="width: 100%;" id="sub1" name="sub1" value="<?php echo $single_data[0]->sub1;?>" ></td>
</tr>
<tr>
<td>2.</td>
<td><input type="text" maxlength="300" id="sub2" class="form-control" style="width: 100%;" name="sub2" value="<?php echo $single_data[0]->sub2;?>" ></td>
</tr>
<tr>
<td>3.</td>
<td><input type="text" maxlength="300" id="sub3" class="form-control" style="width: 100%;" name="sub3" value="<?php echo $single_data[0]->sub3;?>" ></td>
</tr>
<tr>
<td>4.</td>
<td><input type="text" maxlength="300" id="sub4" class="form-control" style="width: 100%;" name="sub4" value="<?php echo $single_data[0]->sub4;?>" ></td>
</tr>
<tr>
<td>5.</td>
<td><input type="text" maxlength="300" id="sub5" class="form-control" style="width: 100%;" name="sub5" value="<?php echo $single_data[0]->sub5;?>" ></td>
</tr>
<tr>
<td>6.</td>
<td><input type="text" maxlength="300" id="sub6" class="form-control" style="width: 100%;" name="sub6" value="<?php echo $single_data[0]->sub6;?>" ></td>
</tr>
<?php if($single_data[0]->std_class=='HSC'){?>
<tr>
<td>7.</td>
<td><input type="text" maxlength="200" class="form-control" style="width: 100%;" id="sub7" name="sub7" value="<?php echo $single_data[0]->sub7;?>" ></td>
</tr>
<?php }else{ }?>
</tbody>
</table>
<div class="text-center"> <button type="submit" name="submit" id="submit" class="btn btn-success" id="confirm">Submit</button></div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</section>
</div>
<link rel="stylesheet" href="<?php echo base_url();?>/lib/datepicker/datepicker3.css">
<script src="<?php echo base_url();?>/lib/datepicker/bootstrap-datepicker.js"></script>
<script>
$("#dois").datepicker({'format':'yyyy-mm-dd'}).on("changeDate",function(ev){ $("#dois").datepicker("hide"); });
$("#dob").datepicker({'format':'yyyy-mm-dd'}).on("changeDate",function(ev){ $("#dob").datepicker("hide"); });
$(document).ready(function() {
$('#contactForm').validator();
var toast_msg = '<?php echo $msg;?>';
var msg_type = '<?php echo $msg_type;?>';
if(toast_msg !== null && toast_msg !== '') {
var shortCutFunction = msg_type;
toastr.options = {
positionClass: 'toast-bottom-right'
};
var $toast = toastr[shortCutFunction](toast_msg);
}
} );
</script>