262 lines
10 KiB
PHP
262 lines
10 KiB
PHP
|
<link href="<?=base_url();?>bassets/select2/css/select2.css" rel="stylesheet" type="text/css" />
|
||
|
<link href="<?=base_url();?>bassets/select2/css/select2-bootstrap.min.css" rel="stylesheet" type="text/css" />
|
||
|
<style>
|
||
|
.hearderss{ text-decoration:underline;color:red}
|
||
|
</style>
|
||
|
<?php $this->load->view('admin/includes/header');?>
|
||
|
<div class="page-container">
|
||
|
<?php $this->load->view('admin/includes/sidebar');?>
|
||
|
<!-- start page content -->
|
||
|
<div class="page-content-wrapper">
|
||
|
<div class="page-content">
|
||
|
<div class="page-bar">
|
||
|
<div class="page-title-breadcrumb">
|
||
|
<div class=" pull-left">
|
||
|
<div class="page-title">Policy View</div>
|
||
|
</div>
|
||
|
<ol class="breadcrumb page-breadcrumb pull-right">
|
||
|
<li><i class="fa fa-home"></i> <a class="parent-item" href="index.html">Home</a> <i class="fa fa-angle-right"></i>
|
||
|
</li>
|
||
|
<li><a class="parent-item" href="<?=base_url();?>admin/policies">Policy</a> <i class="fa fa-angle-right"></i>
|
||
|
</li>
|
||
|
<li class="active">Policy View</li>
|
||
|
</ol>
|
||
|
</div>
|
||
|
</div>
|
||
|
<?php $this->load->view('admin/includes/msg');?>
|
||
|
<div class="row">
|
||
|
<div class="col-md-12">
|
||
|
<div class="card card-topline-orange">
|
||
|
<div class="white-box">
|
||
|
<div class="card card-box">
|
||
|
<div class="card-head">
|
||
|
<header>View Policy</header>
|
||
|
|
||
|
</div>
|
||
|
<?php
|
||
|
if(isset($pol)&& $pol->num_rows()>0)
|
||
|
{
|
||
|
$s=$pol->row();
|
||
|
$id=$s->id;
|
||
|
$name=$s->name;
|
||
|
$image=$s->image;
|
||
|
$catname=$s->catname;
|
||
|
$cmpname=$s->cmpname;
|
||
|
$intro=$s->intro;
|
||
|
$amount=$s->amount;
|
||
|
$amount_period=$s->amount_period;
|
||
|
$guarantee=$s->guarantee;
|
||
|
$policy_period=$s->policy_period;
|
||
|
$benefits=$s->benefits;
|
||
|
$specializations=$s->specializations;
|
||
|
$max_cover_age=$s->max_cover_age;
|
||
|
$is_this_top_plan=$s->is_this_top_plan;
|
||
|
$life_cover=$s->life_cover;
|
||
|
$claimed_settlement=$s->claimed_settlement;
|
||
|
if($is_this_top_plan=="1"){
|
||
|
$is_this_tp="Yes"; $color="green";
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
$is_this_tp="No"; $color="red";
|
||
|
}
|
||
|
}
|
||
|
?>
|
||
|
<div class="row" style="margin-top:10px">
|
||
|
<div class="col-md-12">
|
||
|
<div class="col-md-4 col-sm-4 col-xs-4" style="float:right">
|
||
|
<div class="btn-group">
|
||
|
<a href="<?=base_url();?>admin/edit-policy/<?=$id;?>" id="addRow" class="btn btn-primary">
|
||
|
Edit <i class="fa fa-pencil"></i>
|
||
|
</a>
|
||
|
</div>
|
||
|
<div class="btn-group">
|
||
|
<a id="addRow" class="btn btn-danger delete ">
|
||
|
Delete <i class="fa fa-trash"></i>
|
||
|
</a>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="card-body ">
|
||
|
<h3 style="font-weight:900;color:#ef7f1a;text-align:center;margin-bottom:10px"><?=ucwords($name);?> <span style="color:red;font-size:18px">(<?=$catname;?>)</span> </h3>
|
||
|
<h5 style="text-align:center;margin:0px"><span style="font-size:15px!important">From </span> </h5>
|
||
|
<h4 style="text-align:center;margin:0px;color:#577b47"><span><?=ucwords($cmpname);?></span></h4>
|
||
|
<div class="row" style="margin-top:30px">
|
||
|
|
||
|
<div class="form-group col-md-6">
|
||
|
<h4 for="simpleFormEmail" class="hearderss"> Introduction </h4>
|
||
|
<p> <?=$intro;?></p>
|
||
|
<?php if($amount!=""){?> <h4 for="simpleFormEmail"> Policy Amount : <span style="font-size:15px"><?=$amount." / ".$amount_period;?> </span> </h4> <?php } ?>
|
||
|
|
||
|
<?php if($policy_period!=""){?><h4 for="simpleFormEmail"> Policy Period : <span style="font-size:15px"><?=$policy_period;?></span> </h4> <?php } ?>
|
||
|
|
||
|
<?php if($guarantee!=""){?><h4 for="simpleFormEmail"> Guarantee : <span style="font-size:15px"><?=$guarantee;?></span> </h4> <?php } ?>
|
||
|
<?php if($life_cover!=""){?><h4 for="simpleFormEmail"> Life Cover : <span style="font-size:15px"><?=$life_cover;?></span> </h4> <?php } ?>
|
||
|
<?php if($claimed_settlement!=""){?><h4 for="simpleFormEmail"> Claim Settlement : <span style="font-size:15px"><?=$claimed_settlement;?> % </span> </h4> <?php } ?>
|
||
|
<?php if($max_cover_age!=""){?><h4 for="simpleFormEmail"> Max Age Limit : <span style="font-size:15px"><?=$max_cover_age;?> Yrs</span> </h4> <?php } ?>
|
||
|
<h4 for="simpleFormEmail"> Is this top plan : <span style="font-weight:900;font-size:15px;color:<?=$color;?>"><?=$is_this_tp;?> </span> </h4>
|
||
|
<h4 for="simpleFormEmail" class="hearderss"> Benefits </h4>
|
||
|
<?php
|
||
|
$i=1;
|
||
|
$benef=explode(",", $benefits);
|
||
|
foreach($benef as $ben)
|
||
|
{ if($ben!=" "){?>
|
||
|
<p> <?=$i." . ".$ben;?></p> <?php } $i++;} ?>
|
||
|
|
||
|
</div>
|
||
|
<div class="form-group col-md-6">
|
||
|
<img src="<?=base_url();?>/<?=$image;?>" width="350px" >
|
||
|
|
||
|
<h4 for="simpleFormEmail" style="margin-top:20px" class="hearderss"> Specialization </h4>
|
||
|
<?php
|
||
|
$j=1;
|
||
|
$spec=explode(",", $specializations);
|
||
|
foreach($spec as $sp)
|
||
|
{ if($sp!=" "){?>
|
||
|
<p> <?=$j." . ".$sp;?></p> <?php } $j++;} ?>
|
||
|
|
||
|
<h4 for="simpleFormEmail" style="margin-top:20px" class="hearderss"> Policy Comparision Details </h4>
|
||
|
<table class="table table-hover table-border table-checkable order-column full-width" >
|
||
|
<thead>
|
||
|
<tr>
|
||
|
<th>S no</th>
|
||
|
<th> Compare Field</th>
|
||
|
<th> Details </th>
|
||
|
|
||
|
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
<?php
|
||
|
if(isset($cmp_det)&& $cmp_det->num_rows()>0)
|
||
|
{
|
||
|
$i=1;
|
||
|
foreach($cmp_det->result() as $s)
|
||
|
{
|
||
|
$compid=$s->compare;
|
||
|
$compare_name=$s->compare_name;
|
||
|
$comparedetail=$s->comparedetail;
|
||
|
|
||
|
?>
|
||
|
<tr class="odd gradeX">
|
||
|
<td><?=$i;?></td>
|
||
|
|
||
|
<td><?=ucwords($compare_name);?></td>
|
||
|
<td><?= ($comparedetail);?></td>
|
||
|
|
||
|
|
||
|
|
||
|
</tr>
|
||
|
<?php $i++;} } ?>
|
||
|
|
||
|
</tbody>
|
||
|
</table>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="modal fade" id="deleted" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle"
|
||
|
aria-hidden="true">
|
||
|
<?=form_open_multipart(base_url().'policy/delete_policy/'.$id);?>
|
||
|
<div class="modal-dialog modal-dialog-centered" role="document">
|
||
|
<div class="modal-content">
|
||
|
<div class="modal-header" >
|
||
|
<h4 class="col-md-12 modal-title" id="exampleModalLongTitle" style="text-align:center" >Delete Policy</h4>
|
||
|
|
||
|
</div>
|
||
|
<div class="modal-body" style="text-align:center">
|
||
|
<h4 style="color:red">Are you sure you want to delete this ?</h4>
|
||
|
</div>
|
||
|
<div class="modal-footer">
|
||
|
<input type="submit" class="btn btn-primary" name="yes" value="YES">
|
||
|
<button type="button" class="btn dark btn-outline" data-dismiss="modal">No</button>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<?=form_close();?>
|
||
|
</div>
|
||
|
<?php $this->load->view('admin/includes/footer');?>
|
||
|
<script type="text/javascript" src="<?=base_url();?>bassets/admin/js/jquery.cookie.min.js"></script>
|
||
|
<script src="<?=base_url();?>bassets/select2/js/select2.js"></script>
|
||
|
<script src="<?=base_url();?>bassets/select2/js/select2-init.js"></script>
|
||
|
<script>
|
||
|
sevIndex = 0;
|
||
|
sevIndex++;
|
||
|
$('body').on('click', '.addButton', function() {
|
||
|
|
||
|
var $template = $('#bookTemplate'),
|
||
|
$clone = $template
|
||
|
.clone(true)
|
||
|
.removeClass('hide')
|
||
|
.removeAttr('id')
|
||
|
.attr('data-book-index1', sevIndex)
|
||
|
.insertBefore($template);
|
||
|
|
||
|
// Update the name attributes sev_account
|
||
|
// Update the name attributes sev_account
|
||
|
$clone
|
||
|
.find('[id="benefits"]').attr('id', 'benefits_' + sevIndex ).end()
|
||
|
|
||
|
|
||
|
})
|
||
|
// Remove button click handler
|
||
|
.on('click', '.removeButton', function() {
|
||
|
var $row = $(this).parents('.form-group1'),
|
||
|
index = $row.attr('data-book-index1');
|
||
|
$row.remove();
|
||
|
|
||
|
});
|
||
|
</script>
|
||
|
<script>
|
||
|
sevIndexx = 0;
|
||
|
sevIndexx++;
|
||
|
$('body').on('click', '.addButton1', function() {
|
||
|
|
||
|
var $template = $('#bookTemplate1'),
|
||
|
$clone = $template
|
||
|
.clone(true)
|
||
|
.removeClass('hide')
|
||
|
.removeAttr('id')
|
||
|
.attr('data-book-index1', sevIndexx)
|
||
|
.insertBefore($template);
|
||
|
|
||
|
// Update the name attributes sev_account
|
||
|
// Update the name attributes sev_account
|
||
|
$clone
|
||
|
.find('[id="Specialization"]').attr('id', 'Specialization_' + sevIndexx ).end()
|
||
|
|
||
|
|
||
|
})
|
||
|
// Remove button click handler
|
||
|
.on('click', '.removeButton1', function() {
|
||
|
var $row = $(this).parents('.form-group1'),
|
||
|
index = $row.attr('data-book-index1');
|
||
|
$row.remove();
|
||
|
|
||
|
});
|
||
|
</script>
|
||
|
<script>
|
||
|
|
||
|
$('body').on('click','.delete',function(){
|
||
|
//alert("sdadsd");
|
||
|
$('#deleted').modal('show');
|
||
|
|
||
|
});
|
||
|
</script>
|
||
|
|