File "testimonial_form.php"
Full Path: /home/ichhrkpd/public_html/idcm_old/application/views/testimonial_form.php
File size: 6.99 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 Add Form";
//GPrint($sub_ids_arr);
//GPrint($subToCodeArr);
//GPrint($SubToCodeArr_short);
//GPrint($selected_codesArr);
?>
</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';?>" 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_add"?>" class="contact-form" method="post" role="form" >
<div class="col-md-12">
<div class="controls">
<div class="row">
<div class="col-md-6 col-sm-12">
<div class="form-group">
<label>Registration No.</label>
<select class="form-control select2" name="std_reg" id="std_reg" multiple="multiple" data-placeholder="Registration Number" style="width: 100%;">
<?php
foreach($st_data as $sd){?>
<option value="<?php echo $sd->std_reg;?> "><?php echo $sd->std_reg.' | '.$sd->name;?></option>
<?php } ?>
</select>
</div><!-- /.form-group -->
<div class="form-group">
<label class="control-label" for="hsc_gpa"><?php _e("HSC GPA"); ?></label>
<input id="hsc_gpa" name="hsc_gpa" type="text" maxlength="4" class="form-control" placeholder="HSC GPA (Out of 5.00)*" required="required" data-error="HSC GPA is required.">
<div class="help-block with-errors"></div>
</div>
<div class="form-group">
<label class="control-label" for="passing_year"><?php _e("Passing Year"); ?></label>
<select name="passing_year" id="passing_year" class="form-control">
<option value="2017">2017</option>
<option value="2018">2018</option>
<option value="2019">2019</option>
<option value="2020">2020</option>
<option value="2021">2021</option>
<option value="2022">2022</option>
<option value="2023">2023</option>
<option value="2024">2024</option>
<option value="2025">2025</option>
<option value="2026">2026</option>
<option value="2027">2027</option>
<option value="2028">2028</option>
<option value="2029">2029</option>
<option value="2030">2030</option>
<option value="2031">2031</option>
<option value="2032">2032</option>
</select>
</div>
<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" 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="dob"><?php _e("Date of Issue"); ?></label>
<input id="dois" type="text" maxlength="200" 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="text-center"> <button type="submit" name="submit" id="submit" class="btn btn-success" id="confirm">Submit</button></div>
</div>
</div><!-- /.col -->
</div>
</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){ $("#org_date").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>
<script>
$(function () {
//Initialize Select2 Elements
$(".select2").select2();
});
</script>