File: /home/cafsindia/lifemaze_in/snap_chart.php
<?php
require_once('./lp_lib/lpObject.php');
$lp_session = lpObject::newObject('lp_session');
$lp_session->startSession();
$is_customer = false;
$cust_name = "";
$cust_mobile = "";
$cust_email = "";
$cust_address = "";
$city = "";
$state = "";
$pin = "";
$country = "";
$libObject = $lp_session->is_session_exist();
if(!$libObject){
header( "Location: ./index?mode=get_info");
}
$is_customer = $libObject->is_customer();
if(!$is_customer){
header( "Location: ./index?mode=get_login");
}
//ON LOAD SCRIPT
$load_script = "";
$msg = "";
//CUSTOMER INFORMATION - START
$cust_name = $libObject->cust_name;
$cust_mobile = $libObject->cust_mobile;
$cust_email = $libObject->cust_email;
$cust_address = $libObject->cust_address;
$city = $libObject->city;
$state = $libObject->state;
$pin = $libObject->pin;
$country = $libObject->country;
//CUSTOMER INFORMATION - END
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0"/>
<title>Life Planner - © CAFS Infotech <?php date("Y");?></title>
<!-- CSS -->
<link href="./css/materialize.min.css?rel=LP<?php echo date("Ymd")?>" type="text/css" rel="stylesheet" media="screen,projection"/>
<link href="./font/font-awesome.min.css?rel=LP<?php echo date("Ymd")?>" type="text/css" rel="stylesheet" />
<link href="./css/style.css?rel=LP<?php echo date("Ymd")?>" type="text/css" rel="stylesheet" media="screen,projection"/>
</head>
<body>
<div class="navbar-fixed hide">
<nav>
<div class="nav-wrapper">
<a href="#!" class="brand-logo">Life Maze</a>
<?php
if($is_customer){
?>
<a href="#sidenav_menu" data-target="sidenav_menu" class="sidenav-trigger"><i class="material-icons">menu</i></a>
<?php
}
?>
<ul class="right hide-on-med-and-down">
<li><a class='content' href="./index"><i class="fa fa-home" aria-hidden="true"></i> Home</a></li>
<?php
if($is_customer){
if(!$cust_name){
$cust_name = "Profile";
}else{
$cust_name = $cust_name;
}
?>
<li><a href="./planner"><i class="fa fa-tasks" aria-hidden="true"></i> Planner</a></li>
<li>
<a class="dropdown-trigger" href="#cust_profile" data-target="cust_profile"><i class="fa fa-user-circle-o" aria-hidden="true"></i> <?php echo $cust_name;?><i class="material-icons right">arrow_drop_down</i></a>
<ul id="cust_profile" class="dropdown-content">
<li class="divider"></li>
<li><a href="./profile">Profile</a></li>
<li><a href="./logout">Logout</a></li>
</ul>
</li>
<?php
}
?>
</ul>
</div>
</nav>
<ul class="sidenav" id="sidenav_menu">
<?php
if($is_customer){
?>
<li><a><?php echo $cust_name;?></a></li>
<li><a href="./index">Home</a></li>
<li><a href="./profile">Profile</a></li>
<li><a href="./logout">Logout</a></li>
<?php
}
?>
</ul>
</div>
<div class="row" style="margin-bottom:0px;">
<div class="col l12 s12 pd0" style='background-color: #FFFFFF;'>
<h1 class="inner_title">YOUR ANALYSIS SNAP</h1>
</div>
<div class="col l12 s12 pd0 split"></div>
<div class="col l12 s12 pd15" style='padding-bottom:0px !important;'>
<div class="row chart_inner mg0">
<div class='col l3 s12' id='overall_snap_tbl'> </div>
<div class='col l9 s12'>
<div id='overall_snap'> </div>
</div>
</div>
</div>
<div class="col l12 s12 pd15" style='padding-bottom:0px !important;'>
<div class="row chart_inner mg0">
<div class='col l12 s12 pd0' id='protection_snap' style='padding-top:15px !important;'>
<h3 style='text-align:center;margin-bottom:20px !important;'>Protection Suggested</h3>
<div class='row mg0' style='margin-bottom:15px !important;border-bottom:1px dashed #CCCCCC;'>
<div class='col l6 s12'>
<h3 style='text-align:center;color:#000000;'>Life Insurance</h3>
<table class='striped centered'>
<thead>
<tr style='background-color:#ed780e;color:#FFFFFF;'>
<th style='font-weight: normal;'>Name</th>
<th style='font-weight: normal;'>Sum Assured</th>
<th style='font-weight: normal;'>Suggested <a class='modal-trigger' href='#sugg_derive' style='color:#FFFFFF;'><i class='fa fa-paper-plane' aria-hidden='true'></i></a></th>
</tr>
</thead>
<tbody id='profolio_tbl'>
</tbody>
</table>
<div id='sugg_derive' class='modal'>
<div class='modal-content'>
<table class='striped'>
<thead>
<tr style='background-color:#ed780e;color:#FFFFFF;'>
<th style='font-weight: normal;'>Summary</th>
<th style='font-weight: normal;'>Amount</th>
</tr>
</thead>
<tbody id='sugg_derive_tbl'>
</tbody>
</table>
</div>
<div class='modal-footer'>
<a href='#!' class='modal-close waves-effect waves-green btn-flat'>Close</a>
</div>
</div>
</div>
<div class='col l6 s12'>
<div id='pro_chart' style='max-height:200px;'></div>
</div>
</div>
<div class='row mg0' style='margin-bottom:15px !important;'>
<div class='col l6 s12'>
<h3 style='text-align:center;color:#000000;'>Health Insurance</h3>
<table class='striped'>
<thead>
<tr style='background-color:#ed780e;color:#FFFFFF;'>
<th style='font-weight: normal;'>Name</th>
<th style='font-weight: normal;'>Sum Assured</th>
<th style='font-weight: normal;'>Risk</th>
</tr>
</thead>
<tbody id='health_tbl'>
</tbody>
</table>
</div>
<div class='col l6 s12'>
<div id='hel_chart' style='max-height:200px;'></div>
</div>
</div>
</div>
</div>
</div>
<div class="col l12 s12 pd15" >
<div class="row chart_inner mg0" style='padding-top:15px !important;'>
<h3 style='text-align:center;margin-bottom:20px !important;'>Goal Summary</h3>
<div class='col l4 s12' id='goal_snap_tbl' style='margin-bottom:15px !important;'>
</div>
<div class='col l8 s12'>
<div id='goal_snap' style='min-height:290px;margin-bottom:15px !important;'> </div>
</div>
</div>
</div>
</div>
<!-- Scripts -->
<script type="text/javascript" src="./js/jquery-2.1.1.min.js"></script>
<script type="text/javascript" src="./js/materialize.min.js"></script>
<script type="text/javascript" src="./js/jquery.validate.min.js"></script>
<script type="text/javascript" src="./highcharts/highcharts.js"></script>
<script type="text/javascript" src="./highcharts/highcharts-3d.js"></script>
<script type="text/javascript" src="./highcharts/drilldown.js"></script>
<script type="text/javascript" src="./js/lp_snap.js?rel=LP<?php echo date("Ymd")?>"></script>
<body>
</html>