874 lines
30 KiB
PHP
874 lines
30 KiB
PHP
|
||
<?php include 'includes/header.php';
|
||
$primaryid=$this->session->userdata('primaryid');
|
||
$CI=&get_instance();
|
||
$CI->load->model("Frontend_model");
|
||
$indexcategory=$this->uri->segment(3);
|
||
?>
|
||
<style>
|
||
.fbox-center .fbox-icon {
|
||
margin-bottom: 1rem!important;
|
||
}
|
||
.fbox-bg.fbox-center {
|
||
|
||
padding: 0 1rem 1rem !important;
|
||
|
||
}
|
||
.entry-title{height:40px!important;}
|
||
.mb-20px{
|
||
margin-bottom: 20px!important;text-align:justify;
|
||
}
|
||
.headingucword{
|
||
text-transform: capitalize!important;
|
||
}
|
||
|
||
@media (max-width: 1200px){
|
||
.col-6 { width:100%!important;}
|
||
.entry-title.title-sm h2 { font-size: 18px!important; }
|
||
}
|
||
.grid-inner {
|
||
height: 100px!important;
|
||
|
||
align-items: center!important;
|
||
}
|
||
.comparediv
|
||
{
|
||
background-color:#e9edf1;
|
||
position:fixed;
|
||
bottom:0px;
|
||
left:0px;
|
||
right:0px;
|
||
height:auto;
|
||
margin-bottom:0px;
|
||
}
|
||
</style>
|
||
<style>
|
||
.arrow {
|
||
float:right;
|
||
cursor: pointer;
|
||
color: white!important;
|
||
border: 1px solid #ef7f1a;
|
||
border-radius: 30px;
|
||
background: #ef7f1a;
|
||
font-size: 31px;
|
||
font-weight: bold;
|
||
display: inline-block;
|
||
line-height: 1px;
|
||
padding: 13px 5px;
|
||
}
|
||
.arrow:before{
|
||
content: "×";
|
||
}
|
||
</style>
|
||
<!-- Content
|
||
============================================= -->
|
||
<?php if(isset($mobexist)&& $mobexist->num_rows()>0)
|
||
{
|
||
$mobexistval="1";
|
||
}
|
||
else
|
||
{
|
||
$mobexistval="2";
|
||
}?>
|
||
<section id="content">
|
||
<input type="hidden" name="primaryid" id="primaryid" value="<?=$primaryid;?>">
|
||
<div class=" content-wrap">
|
||
<?php
|
||
if(isset($lfgetcat)&& $lfgetcat->num_rows()>0)
|
||
{
|
||
$s=$lfgetcat->row();
|
||
$id=$s->id;
|
||
$name=$s->name;
|
||
$short_description=$s->short_description;
|
||
} else
|
||
{
|
||
$name="";
|
||
$short_description="";
|
||
}
|
||
?>
|
||
|
||
<div class="container clearfix">
|
||
<h2 style="padding-top:20px;"> <?=ucwords($name);?></h2>
|
||
<p> <?=$short_description;?></p>
|
||
<?php if($indexcategory=="1"){?><div class="row">
|
||
|
||
<div class="entry event col-6">
|
||
<img src="<?=base_url();?>fassets/category_img/life.jpg">
|
||
</div>
|
||
<div class="entry event col-6" style="padding-top:50px">
|
||
<h3>Go with your details </h3>
|
||
<form class="row form_sec" action="<?=base_url();?>category/view-price/1" method="POST">
|
||
<div class="col-6 form-group">
|
||
<label>Pincode</label>
|
||
<input type="text" class="form-control" name="lifepincode" id="lifepincode" value="<?=$lifepincode;?>" data-validation="number length" data-validation-length="6" placeholder="Enter Pincode">
|
||
</div>
|
||
<div class="col-6 form-group">
|
||
<label>Name </label>
|
||
<input type="text" class="form-control" name="lifename" value="<?=$lifename;?>" data-validation="required" placeholder="Your Name">
|
||
</div>
|
||
<div class="col-6 form-group">
|
||
<label>Date Of Birth </label>
|
||
<input type="text" class="form-control" name="lifedob" value="<?=$lifedob;?>" id="lifedateofbirth" placeholder="MM/DD/YYYY">
|
||
<div id="lifeage" style="color:#e31e24"> </div><input type="hidden" name="lifeage" id="life_age" >
|
||
</div>
|
||
<div class="col-6 form-group">
|
||
<label> Mobile Number </label>
|
||
<input type="text" class="form-control" name="lifemobile" id="lifemobile" value="<?=$lifemobile;?>" data-validation="number length" data-validation-length="10" placeholder="Enter Mobile No.">
|
||
</div>
|
||
<div class="col-12 form-group">
|
||
<input type="submit" class="btn btn-danger" value="Change">
|
||
</div>
|
||
</form>
|
||
</div>
|
||
<?php $commonpincodeallcat=$lifepincode; ?>
|
||
<input type="hidden" name="commonusername" id="commonusername" value="<?=$lifename;?>">
|
||
<input type="hidden" name="commonmobile" id="commonmobile" value="<?=$lifemobile;?>">
|
||
<input type="hidden" name="commonpincode" id="commonpincode" value="<?=$lifepincode;?>">
|
||
</div><?php } else if($indexcategory=="2"){?>
|
||
<div class="row">
|
||
|
||
<div class="entry event col-6">
|
||
<img src="<?=base_url();?>fassets/category_img/health.jpg">
|
||
</div>
|
||
<div class="entry event col-6" style="padding-top:50px">
|
||
<h3>Go with your details </h3>
|
||
<form class="row form_sec" action="<?=base_url();?>category/view-price/2" method="POST">
|
||
<div class="col-6 form-group">
|
||
<label>Pincode</label>
|
||
<input type="text" class="form-control" name="healthpincode" id="healthpincode" value="<?=$lifepincode;?>" data-validation="number length" data-validation-length="6" placeholder="Enter Pincode">
|
||
</div>
|
||
<div class="col-6 form-group">
|
||
<label>Name </label>
|
||
<input type="text" class="form-control" name="healthname" value="<?=$healthname;?>" data-validation="required" placeholder="Your Name">
|
||
</div>
|
||
<div class="col-6 form-group">
|
||
<label>Gender </label><br>
|
||
<div class="form-check-inline">
|
||
<label class="radio_sec">Male
|
||
<input type="radio" data-validation="required" name="radio" class="healthgen " <?php if($healthgender=="Male"){ ?> checked <?php } ?> value="Male" >
|
||
<span class=" checkmark"></span>
|
||
</label>
|
||
</div>
|
||
<div class="form-check-inline">
|
||
<label class="radio_sec">Female
|
||
<input type="radio" name="radio" data-validation="required" class="healthgen" <?php if($healthgender=="Female"){ ?> checked <?php } ?> value="Female">
|
||
<span class=" checkmark"></span>
|
||
</label>
|
||
</div>
|
||
</div><input type="hidden" name="healthradio" id="healthradio" value="<?=$healthgender;?>">
|
||
|
||
<div class="col-6 form-group">
|
||
<label> Mobile Number </label>
|
||
<input type="text" class="form-control" name="healthmobile" value="<?=$healthmobile;?>" data-validation="number length" data-validation-length="10" placeholder="Enter Mobile No.">
|
||
</div>
|
||
<div class="col-12 form-group">
|
||
<input type="submit" class="btn btn-danger" value="Change">
|
||
</div>
|
||
</form>
|
||
</div>
|
||
|
||
|
||
</div>
|
||
<input type="hidden" name="commonusername" id="commonusername" value="<?=$healthname;?>">
|
||
<input type="hidden" name="commonmobile" id="commonmobile" value="<?=$healthmobile;?>">
|
||
<input type="hidden" name="commonpincode" id="commonpincode" value="<?=$lifepincode;?>">
|
||
<?php $commonpincodeallcat=$lifepincode; ?>
|
||
<?php } else if($indexcategory=="3"){ ?> <!--car-->
|
||
<div class="row">
|
||
|
||
<div class="entry event col-6">
|
||
<img src="<?=base_url();?>fassets/category_img/health.jpg">
|
||
</div>
|
||
<div class="entry event col-6" style="padding-top:50px">
|
||
<h3>Go with your details </h3>
|
||
<form class="row form_sec" action="<?=base_url();?>category/view-price/3" method="POST">
|
||
<div class="col-6 form-group">
|
||
<label>Pincode</label>
|
||
<input type="text" class="form-control" name="carpincode" id="carpincode" value="<?=$carpincode;?>" data-validation="number length" data-validation-length="6" placeholder="Enter Pincode">
|
||
</div>
|
||
<div class="col-6 form-group">
|
||
<label>Car Registration number</label>
|
||
<input type="text" class="form-control" name="carregister" value="<?=$carregister;?>" data-validation="required" placeholder="E.g. KA04DK8337">
|
||
|
||
</div>
|
||
|
||
|
||
<div class="col-6 form-group">
|
||
<label> Mobile Number</label>
|
||
<div class="add_extension">
|
||
|
||
<input type="text" class="form-control" name="carmobile" data-validation="number length" value="<?=$carmobile;?>" data-validation-length="10" placeholder="Enter mobile number">
|
||
</div>
|
||
</div>
|
||
<div class="col-12 form-group">
|
||
<input type="submit" class="btn btn-danger" value="Change">
|
||
</div>
|
||
</form>
|
||
</div>
|
||
<input type="hidden" name="commonusername" id="commonusername" value=" ">
|
||
<input type="hidden" name="commonmobile" id="commonmobile" value="<?=$carmobile;?>">
|
||
<input type="hidden" name="commonpincode" id="commonpincode" value="<?=$carpincode;?>">
|
||
|
||
</div> <?php $commonpincodeallcat=$carpincode; ?>
|
||
<?php } else if($indexcategory=="4"){ ?> <!--car-->
|
||
<div class="row">
|
||
|
||
<div class="entry event col-6">
|
||
<img src="<?=base_url();?>fassets/category_img/health.jpg">
|
||
</div>
|
||
<div class="entry event col-6" style="padding-top:50px">
|
||
<h3>Go with your details </h3>
|
||
<form class="row form_sec" action="<?=base_url();?>category/view-price/4" method="POST">
|
||
<div class="col-6 form-group">
|
||
<label>Pincode</label>
|
||
<input type="text" class="form-control" name="bikepincode" id="bikepincode" value="<?=$bikepincode;?>" data-validation="number length" data-validation-length="6" placeholder="Enter Pincode">
|
||
</div>
|
||
<div class="col-6 form-group">
|
||
<label> Registration number</label>
|
||
<input type="text" class="form-control" name="bikeregister" value="<?=$bikeregister;?>" data-validation="required" placeholder="E.g. KA04DK8337">
|
||
|
||
</div>
|
||
|
||
|
||
<div class="col-6 form-group">
|
||
<label> Mobile Number</label>
|
||
<div class="add_extension">
|
||
|
||
<input type="text" class="form-control" name="bikemobile" data-validation="number length" value="<?=$bikemobile;?>" data-validation-length="10" placeholder="Enter mobile number">
|
||
</div>
|
||
</div>
|
||
<div class="col-12 form-group">
|
||
<input type="submit" class="btn btn-danger" value="Change">
|
||
</div>
|
||
</form>
|
||
</div>
|
||
<input type="hidden" name="commonusername" id="commonusername" value=" ">
|
||
<input type="hidden" name="commonmobile" id="commonmobile" value="<?=$bikemobile;?>">
|
||
<input type="hidden" name="commonpincode" id="commonpincode" value="<?=$bikepincode;?>">
|
||
|
||
</div> <?php $commonpincodeallcat=$bikepincode; ?>
|
||
<?php } else if($indexcategory=="5"){ ?> <!--sme-->
|
||
<div class="row">
|
||
|
||
<div class="entry event col-6">
|
||
<img src="<?=base_url();?>fassets/category_img/health.jpg">
|
||
</div>
|
||
<div class="entry event col-6" style="padding-top:50px">
|
||
<h3>Go with your details </h3>
|
||
<form class="row form_sec" action="<?=base_url();?>category/view-price/5" method="POST">
|
||
<div class="col-6 form-group">
|
||
<label>Pincode</label>
|
||
<input type="text" class="form-control" name="smepincode" id="smepincode" value="<?=$smepincode;?>" data-validation="number length" data-validation-length="6" placeholder="Enter Pincode">
|
||
</div>
|
||
<div class="col-6 form-group">
|
||
<label> Registration number</label>
|
||
<input type="text" class="form-control" name="smeregister" value="<?=$smeregister;?>" data-validation="required" placeholder="E.g. KA04DK8337">
|
||
|
||
</div>
|
||
|
||
|
||
<div class="col-6 form-group">
|
||
<label> Mobile Number</label>
|
||
<div class="add_extension">
|
||
|
||
<input type="text" class="form-control" name="smemobile" data-validation="number length" value="<?=$smemobile;?>" data-validation-length="10" placeholder="Enter mobile number">
|
||
</div>
|
||
</div>
|
||
<div class="col-12 form-group">
|
||
<input type="submit" class="btn btn-danger" value="Change">
|
||
</div>
|
||
</form>
|
||
</div>
|
||
<input type="hidden" name="commonusername" id="commonusername" value=" ">
|
||
<input type="hidden" name="commonmobile" id="commonmobile" value="<?=$smemobile;?>">
|
||
<input type="hidden" name="commonpincode" id="commonpincode" value="<?=$smepincode;?>">
|
||
|
||
</div> <?php $commonpincodeallcat=$smepincode; ?>
|
||
<?php } else if($indexcategory=="6"){ ?> <!--Flight-->
|
||
<div class="row">
|
||
|
||
<div class="entry event col-6">
|
||
<img src="<?=base_url();?>fassets/category_img/health.jpg">
|
||
</div>
|
||
<div class="entry event col-6" style="padding-top:50px">
|
||
<h3>Go with your details </h3>
|
||
<form class="row form_sec" action="<?=base_url();?>category/view-price/6" method="POST">
|
||
<div class="col-6 form-group">
|
||
<label>Country</label>
|
||
<input type="text" class="form-control" name="country" value="<?=$country;?>" data-validation="required" >
|
||
</div>
|
||
<div class="col-6 form-group">
|
||
<label> Leaving Date</label>
|
||
<input type="text" class="form-control" id="Leaving" name="Leaving" value="<?=$Leaving;?>" data-validation="required" placeholder="E.g. KA04DK8337">
|
||
|
||
</div>
|
||
|
||
|
||
<div class="col-6 form-group">
|
||
<label> Return Date</label>
|
||
<div class="add_extension">
|
||
|
||
<input type="text" class="form-control" id="Return" name="Return" value="<?=$Return;?>" data-validation="required" >
|
||
</div>
|
||
</div>
|
||
<div class="col-12 form-group">
|
||
<input type="submit" class="btn btn-danger" value="Change">
|
||
</div>
|
||
</form>
|
||
</div>
|
||
<input type="hidden" name="commonusername" id="commonusername" value=" ">
|
||
<input type="hidden" name="commonmobile" id="commonmobile" value=" ">
|
||
<input type="hidden" name="commonpincode" id="commonpincode" value=" ">
|
||
|
||
</div> <?php ?>
|
||
<?php } ?>
|
||
<div class="row">
|
||
|
||
<div class="sidebar col-lg-10">
|
||
<div class="sidebar-widgets-wrap">
|
||
|
||
<div class="widget clearfix">
|
||
|
||
<h4 style="color:#f37504">Top Plans</h4>
|
||
<div class="posts-sm row col-mb-30" id="post-list-sidebar">
|
||
|
||
<?php
|
||
if(isset($lfgetpoltop)&& $lfgetpoltop->num_rows()>0)
|
||
{
|
||
$i=1;
|
||
foreach($lfgetpoltop->result() as $pst)
|
||
{
|
||
$polid=$pst->id;
|
||
$polname=$pst->name;
|
||
$image=$pst->image;
|
||
$logo=$pst->logo;
|
||
$life_cover=$pst->life_cover;
|
||
$claimed_settlement=$pst->claimed_settlement;
|
||
$max_cover_age=$pst->max_cover_age;
|
||
$is_this_top_plan=$pst->is_this_top_plan;
|
||
$company=$pst->company;
|
||
$al_send=$CI->Frontend_model->get_already_send_quote_details($polid,$primaryid);
|
||
|
||
?>
|
||
<div class="grid-inner entry col-12" style="background-color: #f7f7f7;margin-bottom: 10px;">
|
||
<div class="grid-inner row g-0">
|
||
<div class="col ps-2">
|
||
<div class="entry-image" style="text-align:center;">
|
||
<input type="checkbox" name="compareplan" class="compareplan" id="compareplan_<?=$polid;?>" data-plan="1" value="<?=$polid;?>" style="width: 20px; height: 20px;">
|
||
|
||
</div>
|
||
<span style="font-size:12px;color: #1abc9c;">Add to Compare</span>
|
||
</div>
|
||
<div class="col ps-3">
|
||
<div class="entry-image">
|
||
<a href="javascript:;" style="cursor:text"><img src="<?=base_url();?><?=$logo;?>" alt="Image"></a>
|
||
|
||
</div>
|
||
<span style="font-size:12px">Max Limit : <?=$max_cover_age;?> Yrs</span>
|
||
</div>
|
||
<div class="col ps-3">
|
||
<div class="entry-title">
|
||
<h4><a href="javascript:;" style="cursor:text">Life Cover</a></h4>
|
||
<?=$life_cover;?> <br>
|
||
|
||
</div>
|
||
|
||
</div>
|
||
<div class="col ps-3">
|
||
<div class="entry-title">
|
||
<h4><a href="javascript:;" style="cursor:text">Claim Settlement </a></h4>
|
||
<?=$claimed_settlement." %";?>
|
||
</div>
|
||
|
||
</div>
|
||
<?php if($al_send->num_rows()>0){?>
|
||
<?php if($primaryid!=""){?>
|
||
|
||
<div class="col ps-3">
|
||
<div class="entry-title">
|
||
<a href="<?=base_url();?>user-request" class="btn btn-danger ">Click Here</a>
|
||
|
||
</div>
|
||
|
||
</div>
|
||
<?php }
|
||
else{?>
|
||
<div class="col ps-3">
|
||
<div class="entry-title">
|
||
<a href="javascript:;" id="reqquote" data-priid="<?=$primaryid;?>" data-polid="<?=$polid;?>" data-catid="<?=$id;?>" data-company="<?=$company;?>" class="btn btn-danger getaquote">Get a Quote</a>
|
||
|
||
</div>
|
||
|
||
</div> <?php
|
||
} }else { ?>
|
||
<div class="col ps-3">
|
||
<div class="entry-title">
|
||
<a href="javascript:;" id="reqquote" data-priid="<?=$primaryid;?>" data-polid="<?=$polid;?>" data-catid="<?=$id;?>" data-company="<?=$company;?>" class="btn btn-danger getaquote">Get a Quote</a>
|
||
|
||
</div>
|
||
|
||
</div>
|
||
<?php } ?>
|
||
</div>
|
||
|
||
|
||
</div>
|
||
<?php } } else { ?> <p style="color:#ccc">No More Plans</p> <?php } ?>
|
||
</div>
|
||
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="container ">
|
||
<div class="row" style="margin-top:50px" >
|
||
|
||
<div class="sidebar col-lg-10">
|
||
<div class="sidebar-widgets-wrap">
|
||
|
||
<div class="widget clearfix">
|
||
|
||
<h4 style="color:#f37504">More Plans</h4>
|
||
<div class="posts-sm row col-mb-30" id="post-list-sidebar">
|
||
|
||
<?php
|
||
if(isset($lfgetpol)&& $lfgetpol->num_rows()>0)
|
||
{
|
||
$i=1;
|
||
foreach($lfgetpol->result() as $ps)
|
||
{
|
||
$polid=$ps->id;
|
||
$polname=$ps->name;
|
||
$image=$ps->image;
|
||
$logo=$ps->logo;
|
||
$life_cover=$ps->life_cover;
|
||
$claimed_settlement=$ps->claimed_settlement;
|
||
$max_cover_age=$ps->max_cover_age;
|
||
$is_this_top_plan=$ps->is_this_top_plan;
|
||
$company=$ps->company;
|
||
|
||
?>
|
||
<div class="grid-inner entry col-12" style="background-color: #f7f7f7;margin-bottom: 10px;">
|
||
<div class="grid-inner row g-0">
|
||
<div class="col ps-2">
|
||
<div class="entry-image" style="text-align:center;">
|
||
<input type="checkbox" name="compareplan" class="compareplan" id="compareplan_<?=$polid;?>" data-plan="0" value="<?=$polid;?>" data-company="<?=$company;?>" style="width: 20px; height: 20px;">
|
||
|
||
</div>
|
||
<span style="font-size:12px;color: #1abc9c;">Add to Compare</span>
|
||
</div>
|
||
<div class="col ps-3">
|
||
<div class="entry-image">
|
||
<a href="javascript:;" style="cursor:text"><img src="<?=base_url();?><?=$logo;?>" alt="Image"></a>
|
||
|
||
</div>
|
||
<span style="font-size:12px">Max Limit : <?=$max_cover_age;?> Yrs</span>
|
||
</div>
|
||
<div class="col ps-3">
|
||
<div class="entry-title">
|
||
<h4><a href="javascript:;" style="cursor:text">Life Cover</a></h4>
|
||
<?=$life_cover;?> <br>
|
||
|
||
</div>
|
||
|
||
</div>
|
||
<div class="col ps-3">
|
||
<div class="entry-title">
|
||
<h4><a href="javascript:;" style="cursor:text">Claim Settlement </a></h4>
|
||
<?=$claimed_settlement." %";?>
|
||
</div>
|
||
|
||
</div>
|
||
<div class="col ps-3">
|
||
<div class="entry-title">
|
||
<a href="javascript:;" id="reqquote" data-priid="<?=$primaryid;?>" data-polid="<?=$polid;?>" data-catid="<?=$id;?>" data-company="<?=$company;?>" class="btn btn-danger getaquote">Get a Quote</a>
|
||
|
||
</div>
|
||
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<?php } } else { ?> <p style="color:#ccc">No More Plans</p> <?php } ?>
|
||
</div>
|
||
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
</section><!-- #content end -->
|
||
<?php ?>
|
||
|
||
<div class="modal fade alredy-register-modal" tabindex="-1" role="dialog" aria-hidden="true">
|
||
<div class="modal-dialog modal-lg">
|
||
|
||
|
||
<div class="modal-content">
|
||
<div class="modal-header">
|
||
<h4 class="modal-title" id="myModalLabel">Alert</h4>
|
||
<button type="button" class="btn-close btn-sm" data-bs-dismiss="modal" aria-hidden="true"></button>
|
||
</div>
|
||
|
||
<div class="modal-body">
|
||
|
||
<h4 style="text-align: center; color: green; font-size: 16px;">Your mobile number has been registered with us...!</h4>
|
||
<h4 style="text-align: center; color: red; font-size: 16px;">Kindly login then try to get a quotes...!</h4>
|
||
|
||
</div>
|
||
<div class="modal-footer">
|
||
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
|
||
|
||
</div>
|
||
</div>
|
||
|
||
|
||
|
||
</div>
|
||
</div>
|
||
<div class="modal fade " id="sentdetails_modal" tabindex="-1" role="dialog" aria-hidden="true">
|
||
<div class="modal-dialog modal-lg">
|
||
|
||
|
||
<div class="modal-content">
|
||
<div class="modal-header">
|
||
<h4 class="modal-title" id="myModalLabel">Request Received Agents</h4>
|
||
<button type="button" class="btn-close btn-sm" data-bs-dismiss="modal" aria-hidden="true"></button>
|
||
</div>
|
||
<?php $CI=&get_instance();
|
||
$CI->load->model("frontend_model");
|
||
|
||
// echo $this->db->last_query();
|
||
|
||
?>
|
||
<div class="modal-body">
|
||
|
||
<p style="text-align: center; color: green; font-size: 16px;">Your request sent to following agents successfully</p>
|
||
<div class="posts-sm row col-mb-30" id="Get_result_of_received_agents">
|
||
|
||
</div>
|
||
</div>
|
||
<div class="modal-footer">
|
||
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
|
||
|
||
</div>
|
||
</div>
|
||
|
||
|
||
|
||
</div>
|
||
</div>
|
||
|
||
|
||
|
||
<!-- Modal -->
|
||
<div class="modal fade" id="question_request" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
|
||
<div class="modal-dialog">
|
||
|
||
<div class="modal-content viewreview">
|
||
|
||
</div>
|
||
|
||
</div>
|
||
</div>
|
||
|
||
<input type="hidden" name="value_mob_exist" id="value_mob_exist" value="<?=$mobexistval;?>">
|
||
<?php include 'includes/footer.php';?>
|
||
<div class="comparediv" style="display:none" >
|
||
<div class=" container" >
|
||
<div class="row col-md-12" >
|
||
<div class="col-md-9" >
|
||
<div class="row comparedivcontent">
|
||
|
||
</div>
|
||
|
||
</div>
|
||
<div class="col-md-3" style="padding:0px;">
|
||
<div class="col-md-12 " id="comparebtn" style="display:none;padding:30px" >
|
||
|
||
|
||
|
||
<div class="row ">
|
||
<div class="col-md-6">
|
||
<form method="POST" action="<?=base_url();?>plan-comparision/<?=$indexcategory;?>" class="popupstyle">
|
||
<input type="submit" class="btn btn-warning" name="submitcompare" value="Compare" >
|
||
<input type="hidden" name="selectedplans" id="selectedplans">
|
||
</div>
|
||
</form>
|
||
<div class="col-md-6">
|
||
<input type="submit" class="btn btn-default close_compare" name="" value="Close" >
|
||
</div>
|
||
</div>
|
||
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<script type="text/javascript">
|
||
var date = document.getElementById('lifedateofbirth');
|
||
|
||
function checkValue(str, max) {
|
||
if (str.charAt(0) !== '0' || str == '00') {
|
||
var num = parseInt(str);
|
||
if (isNaN(num) || num <= 0 || num > max) num = 1;
|
||
str = num > parseInt(max.toString().charAt(0)) && num.toString().length == 1 ? '0' + num : num.toString();
|
||
};
|
||
return str;
|
||
};
|
||
|
||
date.addEventListener('input', function(e) {
|
||
this.type = 'text';
|
||
var input = this.value;
|
||
if (/\D\/$/.test(input)) input = input.substr(0, input.length - 3);
|
||
var values = input.split('/').map(function(v) {
|
||
return v.replace(/\D/g, '')
|
||
});
|
||
if (values[0]) values[0] = checkValue(values[0], 12);
|
||
if (values[1]) values[1] = checkValue(values[1], 31);
|
||
var output = values.map(function(v, i) {
|
||
return v.length == 2 && i < 2 ? v + ' / ' : v;
|
||
});
|
||
this.value = output.join('').substr(0, 14);
|
||
});
|
||
|
||
date.addEventListener('blur', function(e) {
|
||
this.type = 'text';
|
||
var input = this.value;
|
||
var values = input.split('/').map(function(v, i) {
|
||
return v.replace(/\D/g, '')
|
||
});
|
||
var output = '';
|
||
|
||
if (values.length == 3) {
|
||
var year = values[2].length !== 4 ? parseInt(values[2]) + 2000 : parseInt(values[2]);
|
||
var month = parseInt(values[0]) - 1;
|
||
var day = parseInt(values[1]);
|
||
var d = new Date(year, month, day);
|
||
if (!isNaN(d)) {
|
||
document.getElementById('result').innerText = d.toString();
|
||
var dates = [d.getMonth() + 1, d.getDate(), d.getFullYear()];
|
||
output = dates.map(function(v) {
|
||
v = v.toString();
|
||
return v.length == 1 ? '0' + v : v;
|
||
}).join(' / ');
|
||
};
|
||
};
|
||
this.value = output;
|
||
});
|
||
</script>
|
||
|
||
<script>
|
||
$("#lifedateofbirth").focusout(function(){
|
||
var today = new Date();
|
||
var dobs= $("#lifedateofbirth").val();
|
||
|
||
|
||
|
||
var dob = new Date(dobs);
|
||
|
||
//calculate month difference from current date in time
|
||
var month_diff = Date.now() - dob.getTime();
|
||
|
||
//convert the calculated difference in date format
|
||
var age_dt = new Date(month_diff);
|
||
|
||
//extract year from date
|
||
var year = age_dt.getUTCFullYear();
|
||
|
||
//now calculate the age of the user
|
||
var age = Math.abs(year - 1970);
|
||
if(dobs!=""){ $("#lifeage").html(age+' Years'); $("#life_age").val(age); }else{
|
||
$("#lifeage").html("");
|
||
|
||
}
|
||
|
||
});
|
||
</script>
|
||
<script>
|
||
$('.getaquote').on('click',function(){
|
||
|
||
var primaryids=$("#primaryid").val();
|
||
var existchek=$("#value_mob_exist").val();
|
||
var commonusername=$("#commonusername").val();
|
||
var commonmobile=$("#commonmobile").val();
|
||
var commonpincode=$("#commonpincode").val();
|
||
if(primaryids==""){
|
||
|
||
if(existchek=="1"){
|
||
|
||
$(".alredy-register-modal").modal("show");
|
||
}
|
||
else if(existchek=="2")
|
||
{
|
||
$("#rfullname").val(commonusername);
|
||
$("#rmobile").val(commonmobile);
|
||
$("#rpincode").val(commonpincode);
|
||
$(".register-modal").modal("show");
|
||
}
|
||
}
|
||
else{ $("#question_request").modal("show"); }
|
||
|
||
$('.viewreview').html('<img src='+base_path+'bassets/admin/img/process.gif class="loader-img">');
|
||
|
||
var priid=$(this).attr('data-priid');
|
||
var polid=$(this).attr('data-polid');
|
||
var catid=$(this).attr('data-catid');
|
||
var company=$(this).attr('data-company');
|
||
if(catid=="1"){
|
||
var pin=$("#lifepincode").val();
|
||
}
|
||
if(catid=="2")
|
||
{
|
||
var pin=$("#healthpincode").val();
|
||
}
|
||
if(catid=="3")
|
||
{
|
||
var pin=$("#carpincode").val();
|
||
}
|
||
if(catid=="4")
|
||
{
|
||
var pin=$("#bikepincode").val();
|
||
}
|
||
if(catid=="5")
|
||
{
|
||
var pin=$("#smepincode").val();
|
||
}
|
||
|
||
|
||
var url22=base_path+"frontend/get_question_pop";
|
||
|
||
|
||
|
||
$.post(url22,{priid:priid,polid:polid,catid:catid,company:company,pin:pin,csrf_test_name:$.cookie('csrf_cookie_name')},function(result){
|
||
|
||
$('.viewreview').html(result);
|
||
});
|
||
});
|
||
function checkphonenumberforregister_login(mob)
|
||
{
|
||
var url22=base_path+"frontend/checkmobile_exist_for_login_register";
|
||
$.post(url22,{mob:mob,csrf_test_name:$.cookie('csrf_cookie_name')},function(result){
|
||
$("#value_mob_exist").val(result);
|
||
});
|
||
}
|
||
</script>
|
||
<script>
|
||
var base_path=$('body').attr('data-path');
|
||
$(".viewreview").on('click','.formsubmitinsteps',function(){
|
||
|
||
orgstepval=$('#getsteps').val();
|
||
getstepdata=$(this).attr("data-id");
|
||
if(orgstepval==getstepdata){
|
||
var ser= $("#regForm").serialize();
|
||
// alert(ser);
|
||
|
||
var url22=base_path+"frontend/insert_question_category";
|
||
|
||
$.post(url22,{ser:ser,csrf_test_name:$.cookie('csrf_cookie_name')},function(result){
|
||
|
||
if(result!=""){
|
||
$("#question_request").modal("hide");
|
||
$("#Get_result_of_received_agents").html(result);
|
||
$("#sentdetails_modal").modal("show");
|
||
}
|
||
|
||
|
||
|
||
});
|
||
}
|
||
});
|
||
|
||
</script>
|
||
|
||
<script>
|
||
$('.healthgen').on('click',function(){
|
||
var gen=$(this).val();
|
||
$("#healthradio").val(gen);
|
||
});
|
||
</script>
|
||
<script>
|
||
$('.compareplan').on('click',function(){
|
||
var polid=$(this).attr("id");
|
||
var plan=$(this).attr("data-plan");
|
||
var idd=polid.split("_");
|
||
var pid=idd[1];
|
||
var numberOfChecked = $('input:checkbox:checked').length; //alert(numberOfChecked);
|
||
if ($(this).is(':checked')){
|
||
|
||
var url22=base_path+"frontend/getplantocompare";
|
||
|
||
$.post(url22,{pid:pid,plan:plan,csrf_test_name:$.cookie('csrf_cookie_name')},function(result){
|
||
|
||
$(".comparediv").css("display","block");
|
||
|
||
if(numberOfChecked > "3"){
|
||
alert ("Can't compare more than 3 plans");
|
||
$('#compareplan_'+pid).prop('checked',false);
|
||
|
||
}
|
||
if(numberOfChecked >= "2")
|
||
{
|
||
$('#comparebtn').css("display","block");
|
||
}
|
||
if(numberOfChecked == "1" || numberOfChecked == "2" || numberOfChecked == "3"){
|
||
$(".comparedivcontent").append(result);
|
||
}
|
||
var checkin = [];
|
||
$.each($("input[name='compareplan']:checked"), function(){
|
||
checkin.push($(this).val());
|
||
});
|
||
$("#selectedplans").val( checkin.join(","));
|
||
|
||
});
|
||
}
|
||
else
|
||
{
|
||
$('#compareplan_'+pid).prop('checked',false);
|
||
$("#showhidediv_"+pid).css("display","none");
|
||
if(numberOfChecked > "3"){
|
||
alert ("Can't compare more than 3 plans");
|
||
$('#compareplan_'+pid).prop('checked',false);
|
||
|
||
}
|
||
if(numberOfChecked >= "2")
|
||
{
|
||
$('#comparebtn').css("display","block");
|
||
}
|
||
if(numberOfChecked == "1" || numberOfChecked == "2" || numberOfChecked == "3"){
|
||
$(".comparedivcontent").append(result);
|
||
}
|
||
}
|
||
});
|
||
</script>
|
||
<script>
|
||
$('.comparediv').on('click','.onclickcomparecancel',function(){
|
||
var polid=$(this).attr("id");
|
||
var idd=polid.split("_");
|
||
var pid=idd[1];
|
||
$('#compareplan_'+pid).prop('checked',false);
|
||
$("#showhidediv_"+pid).css("display","none");
|
||
var numberOfChecked = $('input:checkbox:checked').length; //alert(numberOfChecked);
|
||
if(numberOfChecked == "1"){
|
||
$('#comparebtn').css("display","none");
|
||
}
|
||
if(numberOfChecked == "0"){
|
||
$('#comparebtn').css("display","none");
|
||
}
|
||
if(numberOfChecked >= "2"){
|
||
$('#comparebtn').css("display","block");
|
||
}
|
||
});
|
||
</script>
|
||
<script>
|
||
$('.comparediv').on('click','.close_compare',function(){
|
||
|
||
$('.compareplan').prop('checked',false);
|
||
$(".comparediv").css("display","none");
|
||
$(".showhidediv").css("display","none");
|
||
});
|
||
</script>
|