policybot/application/views/front/policy-detail.php

519 lines
20 KiB
PHP
Raw Permalink Normal View History

2021-11-30 10:56:55 +00:00
<?php include 'includes/header.php';?>
<link rel="stylesheet" href="<?=base_url();?>fassets/css/components/bs-rating.css" type="text/css" />
<style>
.review-comment-ratings {
width: auto;
color: #ed2727!important;
}
</style>
<?php
if(isset($pol)&& $pol->num_rows()>0)
{
$s=$pol->row();
$id=$s->id;
$name=$s->name;
$image=$s->image;
$intro=$s->intro;
$policy_period=$s->policy_period;
$guarantee=$s->guarantee;
$category=$s->category;
$amount=$s->amount;
$amount_period=$s->amount_period;
$cmpname=$s->cmpname;
$catname=$s->catname;
$benefits=$s->benefits;
$specializations=$s->specializations;
}
$primaryid=$this->session->userdata('primaryid');
$userrole=$this->session->userdata('userrole');
$loggedname=$this->session->userdata('loggedname');
//wishlist
$table="wishlist";
$where=array("user_id"=>$primaryid,"policy_id"=>$id,"status"=>1);
$show=("*");
$wish=$this->commonsql_model->selectTable($table,$where,$show);
$tables="users";
$wheres=array("id"=>$primaryid);
$shows=("*");
$userdet=$this->commonsql_model->selectTable($tables,$wheres,$shows);
$pincode="";
if($userdet->num_rows()>0)
{
$u=$userdet->row();
$pincode=$u->pincode;
}
$CI=&get_instance();
$CI->load->model("Frontend_model");
//session info
$loggedname=$this->session->userdata('loggedname');
$loggedmobile=$this->session->userdata('loggedmobile');
$loggedpincode=$this->session->userdata('loggedpincode');
$loggeddob=$this->session->userdata('loggeddob');
$loggedgender=$this->session->userdata('loggedgender');
$loggedcarno=$this->session->userdata('loggedcarno');
$loggedbikeno=$this->session->userdata('loggedbikeno');
$loggedcompanyno=$this->session->userdata('loggedcompanyno');
$loggedcountry=$this->session->userdata('loggedcountry');
$loggedleavingdate=$this->session->userdata('loggedleavingdate');
$loggedreturndate=$this->session->userdata('loggedreturndate');
?>
<section id="content">
<div class="content-wrap">
<div class="parallax header-stick bottommargin-lg dark" style="padding: 60px 0; background-image: url('<?=base_url();?>fassets/images/parallax/calendar.jpg'); height: auto;" data-bottom-top="background-position:0px 0px;" data-top-bottom="background-position:0px -500px;">
<div class="container clearfix">
<div class="events-calendar">
<div class="events-calendar-header clearfix" style="text-align:center">
<h2><?=ucwords($catname);?></h2>
<span>Powered By </i><?=ucwords($cmpname);?></i></span>
</div>
</div>
</div>
</div>
<h2 style="text-align:center"><?=ucwords($name);?></h2>
<div class="container clearfix">
<!--<div class="row col-mb-50">
<div class="divider divider-center" style="margin:0px !important"><i class="icon-circle-blank"></i></div>
<!-- Portfolio Single Content
=============================================
<div class="row col-md-12" style="margin-bottom:10px;padding-right:0px">
<?php $CI=&get_instance();
$CI->load->model("frontend_model");
//if($pincode!=" "){
//$getquote=$CI->frontend_model->select_pincode_agentcount($pincode,$agentcount=3);
//}
// echo $this->db->last_query();
?>
<div class="col-md-6 col-lg-4">
<div class="pricing-box pricing-simple px-5 py-4 bg-light text-center text-md-start">
<div class="pricing-title">
<span class="text-danger">Most Popular</span>
<h3>Enquire Details</h3>
</div>
<div class="pricing-features">
<ul class="iconlist">
<li><i class="icon-check text-smaller"></i> <strong style="margin-right:5px"><?=$policy_period;?> </strong> Policy Period</li>
<li><i class="icon-check text-smaller"></i> <strong style="margin-right:5px"><?=$guarantee;?></strong> Guarantee</li>
<li><i class="icon-check text-smaller"></i> <strong style="margin-right:5px">24/7</strong> Support</li>
</ul>
</div>
<?php $getquotesenterd=$CI->frontend_model->select_sent_quotes_from_user($id,$primaryid);
//echo $this->db->last_query();
if($primaryid!=""){
if($userrole!=1){ ?>
<div class="pricing-action">
<?php if($getquotesenterd->num_rows()>0){ ?><a href="javascript:;" id="sentquote" class="btn btn-success btn-lg" >Quote Sent</a><br>
<a href="javascript:;" class="getaquote" id="viewquote" style="text-decoration:underline!important" data-priid="<?=$primaryid;?>" data-polid="<?=$id;?>">View Received Agent</a>
<?php } else { ?>
<a href="javascript:;" id="reqquote" data-priid="<?=$primaryid;?>" data-polid="<?=$id;?>" class="btn btn-danger btn-lg getaquote">Get a Quote</a>
<?php } ?>
</div>
<?php } ?>
<?php } else { ?>
<div class="alert alert-danger">Please login to request for quote . </div>
<?php } ?>
</div>
</div>
<?php if($primaryid==""){?>
<div class="col-md-4 col-lg-4" style="padding-right:0px">
<!-- Portfolio Single - Share End
<div class="widget quick-contact-widget form-widget clearfix">
<h4>Enquiry Form</h4>
<form action="<?=base_url();?>frontend/policydetailenquiry" method="post" >
<input type="hidden" name="primaryid" id="primaryid" value=" " >
<input type="hidden" name="policyid" value="<?=$id;?>" >
<input type="hidden" name="oldusercheck" id="oldusercheck" >
<div class="col-md-12">
<input type="text" class=" sm-form-control" id="quick-contact-form-name" data-validation="required" name="name" value="" placeholder="Full Name" />
</div>
<div class="col-md-12">
<input type="text" class=" sm-form-control" id="enq_emalid" data-validation="email" name="email" value="" placeholder="Email Address" />
</div>
<div id="enq_emalid_alredyhave"></div>
<div class="col-md-12">
<input type="text" class=" sm-form-control" id="quick-contact-form-email" data-validation="number length" data-validation-length="6" name="Pincode" value="" placeholder="Pincode" />
</div>
<div class="col-md-12">
<input type="text" class=" sm-form-control" id="quick-contact-form-email" data-validation="number length" data-validation-length="10" name="Mobile" value="" placeholder="Mobile" />
</div>
<div class="col-md-12">
<textarea class=" sm-form-control" id="quick-contact-form-message" data-validation="required" name="message" rows="4" cols="30" placeholder="Message"></textarea>
</div>
<button type="submit" id="submitgetquote" name="submit" class="button button-small button-3d m-0" value="submit" >Enquire Now </button>
</form>
</div>
</div>
<?php } else {?>
<div class="col-md-6 col-lg-4">
<img src="<?=base_url();?><?=$image;?>" >
</div>
<?php }?>
<div class="col-md-6 col-lg-4">
<div class="pricing-box pricing-simple px-5 py-4 bg-light text-center text-md-start">
<div class="pricing-title">
<span class="text-danger">Your </span>
<h3>Favourites</h3>
</div>
<div class="pricing-features">
<ul class="iconlist">
<li><i class="icon-check text-smaller"></i> <strong style="margin-right:5px"> Add this policy to favourites </strong> </li>
<li><i class="icon-check text-smaller"></i> <strong style="margin-right:5px"> Easy way to get policy</strong> </li>
<li><i class="icon-check text-smaller"></i> <strong style="margin-right:5px">24/7 Support</strong> </li>
</ul>
</div>
<?php if($primaryid!=""){
if($userrole!=1){ ?>
<?php if($wish->num_rows()>0){ ?>
<div class="pricing-action">
<a href="<?=base_url();?>remove-from-wishlist/<?=$primaryid;?>/<?=$id;?>" class="button button-border button-rounded button-fill fill-from-left button-red"><span> Remove wishlist</span></a>
</div>
<?php } else { ?>
<div class="pricing-action">
<a href="<?=base_url();?>add-to-wishlist/<?=$primaryid;?>/<?=$id;?>" class="button button-border button-rounded button-fill fill-from-right button-blue"><span> Add to wishlist</span></a>
</div>
<?php } ?>
<?php } ?>
<?php } else { ?>
<div class="alert alert-danger">Please login for add policy to your favourites. </div>
<?php } ?>
</div>
</div>
</div>
</div>-->
<!--image and specialixarion-->
<div class="row col-mb-50">
<div class="col-md-12 col-lg-12">
<div class="row col-mb-30">
<div class="col-sm-12 col-md-12 col-lg-12">
<p> <?=$intro;?></p>
</div>
</div>
</div>
</div>
<?php if($category=="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="<?=$loggedpincode;?>" 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="<?=$loggedname;?>" 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="<?=$loggeddob;?>" 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="<?=$loggedmobile;?>" 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="View Prices">
</div>
</form>
</div>
</div><?php } else if($category=="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="<?=$loggedpincode;?>" 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="<?=$loggedname;?>" 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($loggedgender=="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($loggedgender=="Female"){ ?> checked <?php } ?> value="Female">
<span class=" checkmark"></span>
</label>
</div>
</div><input type="hidden" name="healthradio" id="healthradio" value="<?=$loggedgender;?>">
<div class="col-6 form-group">
<label> Mobile Number </label>
<input type="text" class="form-control" name="healthmobile" value="<?=$loggedmobile;?>" 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="View Prices">
</div>
</form>
</div>
</div>
<?php } else if($category=="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="<?=$loggedpincode;?>" 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="<?=$loggedcarno;?>" 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="<?=$loggedmobile;?>" data-validation-length="10" placeholder="Enter mobile number">
</div>
</div>
<div class="col-12 form-group">
<input type="submit" class="btn btn-danger" value="View Prices">
</div>
</form>
</div>
</div>
<?php } else if($category=="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="<?=$loggedpincode;?>" 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="<?=$loggedbikeno;?>" 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="<?=$loggedmobile;?>" data-validation-length="10" placeholder="Enter mobile number">
</div>
</div>
<div class="col-12 form-group">
<input type="submit" class="btn btn-danger" value="View Prices">
</div>
</form>
</div>
</div>
<?php } else if($category=="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="<?=$loggedpincode;?>" 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="<?=$loggedcompanyno;?>" 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="<?=$loggedmobile;?>" data-validation-length="10" placeholder="Enter mobile number">
</div>
</div>
<div class="col-12 form-group">
<input type="submit" class="btn btn-danger" value="View Prices">
</div>
</form>
</div>
</div>
<?php } else if($category=="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="<?=$loggedcountry;?>" 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="<?=$loggedleavingdate;?>" 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="<?=$loggedreturndate;?>" data-validation="required" >
</div>
</div>
<div class="col-12 form-group">
<input type="submit" class="btn btn-danger" value="View Prices">
</div>
</form>
</div>
</div> <?php ?>
<?php } ?>
<div class="row">
<div class="pricing-box pricing-extended row align-items-stretch mb-5 mx-0">
<div class="pricing-desc col-lg-12 p-4">
<div class="pricing-title">
<h3>Why should you buy <?=($name);?> ?</h3>
</div>
<div class="row pricing-features pb-0">
<div class="col-sm-6 col-md-6 col-lg-6">
<div class=" ">
<h4 style="margin-bottom:10px;text-decoration:underline">Benefits </h4>
</div>
<div class="col-12 col-sm-12">
<ul class="iconlist">
<?php
$i=1;
$benef=explode(",", $benefits);
foreach($benef as $ben)
{ if($ben!=" "){?>
<li style="margin-bottom: 5px;"><i class="icon-line-corner-down-right"></i><?=$ben;?></li><?php } $i++;} ?>
</ul>
</div>
</div>
<div class="col-sm-6 col-md-6 col-lg-6">
<div class=" ">
<h4 style="margin-bottom:10px;text-decoration:underline">Specialization:</h4>
</div>
<div class="col-12 col-sm-12">
<ul class="iconlist">
<?php
$j=1;
$spec=explode(",", $specializations);
foreach($spec as $sp)
{ if($sp!=" "){?>
<li style="margin-bottom: 5px;"><i class="icon-line-corner-down-right"></i><?=$sp;?></li><?php } $i++;} ?>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section><!-- #content end -->
<!-- #request a quote -->
<?php include 'includes/footer.php';?>