Professional Documents
Culture Documents
ABSTRACT
1. Renewal of insurance
2. Claim of insurances.
The notification on renewal of insurance policy will be sent via. E-mail to the
registered user and gateway link for making payment of renewal premium will
also be sent. Next aspect in the application is with respect to submission of
insurance claims via online along with attaching of necessary documents like
FIR, vehicle documents, damage photographs in support of the claims.
1. INTRODUCTION
Online Insurance is a web application which is used to tracking the details about
the insurance policy, customer details and company details. This project is
useful for any kind of insurance company to manage the insurance details, to
sanction the insurance for customer, process the insurance policy details and all
kind of insurance process through online. Our wide spectrum of articles that
have been included in this edition touch on business, regulatory and accounting
aspects that are currently topical and the subject matters of many debates. We
explore the future of micro insurance, the challenges brought about by the
implementation of Combine portal and its impact on the consolidation
principles applied to insurance cells this is an exciting and challenging time for
insurers. Customer behavior is changing rapidly. Technology, and in particular
the growth of online and social media, is driving a fundamental shift in
customer expectations in terms of how products are marketed, priced, sold and
serviced, and how companies are perceived. Pure internet businesses have set
new standards for customer-centricity and engagement that raise the
performance bar for players in every retail business sector.
Customers want to be able to buy with confidence in both the non-life insurance
and life and pensions sectors, Customers want products, and the purchasing
process, to be simple and transparent so they can understand what they are
buying. They want to build long-term relationships with insurance providers
based on trust, and to have confidence that the products they are buying Are
right for them and meet their needs. So to fulfil the requirements and need of the
insurer we have developed one methodology which will attract the people. And
the system will be a user friendly so all peoples who have knowledge about
insurance or not they all will accept the insurance.
Project Description:
Online Insurance is a web application which is used to tracking the
details about the insurance policy, customer details and company details. This
project is useful for any kind of insurance company to manage the insurance
details, to sanctioned the insurance for customer, process the insurance policy
details and all kind of insurance process through online.
In this online process the user enter into the website it will show details
about insurance and its types, also it will show the details about different
duration schemes to the corresponding insurance type or insurance policy. In
this process contains the user registration form which is used to apply for
insurance policy through online. It also helps the customer to view their own
insurance status information.
If the user registered insurance policy to this website, it will process that
registration form by verification and immediately give the temporary policy
holder ID to the user. After submission of registration form the admin will
process to verify that particular details registered by the customer and
sanctioned the insurance policy. Then the admin send the permanent policy
holder ID and password to the customer and also send status information about
insurance policy to the corresponding policy holder.
If the policy holder wants to view the information about their own policy
details, he/she login to policy status page by using the policy holder ID and
password had already given by insurance company and view their own details
and also they give feedback to the insurance company.
System Analysis:
2. LITERATURE SURVEY
Year: 2017
The fact is your brain craves novelty. It's constantly searching, scanning,
waiting for something unusual to happen. After all, that's the way it was built to
help you stay alive. It takes all the routine, ordinary, dull stuff and filters it to
the background so it won't interfere with your brain's real work--recording
things that matter. How does your brain know what matters? It's like the
creators of the Head First approach say, suppose you're out for a hike and a tiger
jumps in front of you, what happens in your brain? Neurons fire. Emotions
crank up. Chemicals surge. That's how your brain knows.
And that's how your brain will learn Java. Head First Java combines puzzles,
strong visuals, mysteries, and soul-searching interviews with famous Java
objects to engage you in many different ways. It's fast, it's fun, and it's effective.
And, despite its playful appearance, Head First Java is serious stuff: a complete
introduction to object-oriented programming and Java. You'll learn everything
from the fundamentals to advanced topics, including threads, network sockets,
and distributed programming with RMI. And the new. Second edition focuses
on Java 5.0, the latest version of the Java language and development platform.
Because Java 5.0 is a major update to the platform, with deep, code-level
changes, even more careful study and implementation is required. So learning
the Head First way is more important than ever.
If you've read a Head First book, you know what to expect--a visually rich
format designed for the way your brain works. If you haven't, you're in for a
treat. You'll see why people say it's unlike any other Java book you've ever read.
By exploiting how your brain works, Head First Java compresses the time it
takes to learn and retain--complex information. Its unique approach not only
shows you what you need to know about Java syntax, it teaches you to think
like a Java programmer. If you want to be bored, buy some other book. But if
you want to understand Java, this book's for you
Year: 2018
Year: 2015
Description: The system adopts C/S structure as the system structure, using JSP
as a developing platform, Microsoft SQL Server database. At the same time, the
whole system is developed combined with the basic theory of project
management information system development, structure and basic principle and
system developing steps. The system not only includes policy information
entering, generating and managing compensation, but also includes creating
different types of insurance type and editing corresponding types of payment
information besides the customer and the employee information management.
The purpose of this effective system is designed to improve the work efficiency
of insurance companies and reduce the cost of insurance companies.
Year: 2019
Year: 2017
Description: This study seeks to determine the extent to which German farmers
feel that digital management of their contracts and claims is important. It
presents the results of a quantitative survey of 413 farmers via telephonic
interview. The development of digitization is progressing throughout the
insurance industry. Many InsurTech companies are entering the market and
offer customers digital insurance folders in which the customers can easily
manage their contracts. From the results of this study recommendations have
been derived with regards to marketing agricultural insurance products for
insurance companies as well as conventional intermediaries in order for these to
keep up with the increasing digitization. Initially, the study shows that the
importance of digital management for insurance contracts and claims processes
is still low among German farmers. However, it becomes apparent that this is
increasingly important for younger farmers.
Year: 2018
Year: 2019
PROBLEM STATEMENT
Tracking issues! as people have reported multiple times that they are not
able to track the person they have added to the app
Login issues, like the app, get stuck while login in for few users
Notification issues as many have complained that the notifications are
either not coming up or coming frequently which causes a disturbance.
Low performance of app at peak time
Sometimes more than a message will be required to make sure that the
person on the other end has received the message
3. SYSTEM ANALYSIS
Advantage
Disadvantage
HARDWARE SPECIFICATION
Processor - I3 Processor
Speed - 2.0 GHz
RAM capacity - 4 GB
Hard Disk - 500 GB
SOFTWARE SPECIFICATION
SOFTWARE DESCRIPTION
PHP started out as a small open source project that evolved as more and more
people found out how useful it was. Rasmus Lerdorf unleashed the first version
of PHP way back in 1994.
CHARACTERISTICS OF PHP
Simplicity
Efficiency
Security
Flexibility
Familiarity
3. FUNCTIONAL REQUIREMENTS
Articles
About Website
Contact Information
Member Services
Login
Change-password (to remind the forgotten password)
Insured Registrations & management
Search for insured persons
Article Management
3.1.2 User Requirements
The web site provides easy links for easy navigation (browse) in the site. A
visitor with minimum knowledge of web browsing/surfing can access the site
very easily. Due to dynamic nature of features, the members, Admin members
should be able to understand the provided facilities. An online help
documentation will be provided to help the users and visitors in using the
facilities.
Maintainability
Availability
Reliability
The reliability of the website depends on the web server it will be hosted on,
and also on LOGIN mechanisms.
Security
All the necessary steps has been taken to provide security to the site by
following the latest technology because all the data of all members is
proprietary data of the Client’s Organization and its members (Visitors and
members)
5. MODULES
AGENT LOGIN
Basic agent information like contact details and address which will be shown in
customer insurance information window.
All the information related to insurances which he has made to his clients.
New Policy Holder gives their information like, Name, password, Ac no, bank,
Organization, Occupation, age, sex, address, e-mail id. DFD, UML diagram,
Screen shots, Paper presentation, output presents the Insurance Management
System project. Insurance Management System is an open source application.
provides the 27-03-2013
• RxInsurance - Insurance Management System aims to create robust solution
for Insurance industry. Focus area is small companies who deal with policy
CUSTOMER LOGIN:-
Next premium due of respective insurances by the client along with maturity
date, agent info etc.
Admin form:
Admin have provision to view all Agent, Policy, and Policy Holder information.
First Admin enter their name and Id then only they can access. And also admin
have the provision to view, Modify, Delete and insert the Policy, Policy Holder,
and Agent.
ADMINISTRATOR LOGIN:-
Offer web based insurance management software system like insurance Policy
Administration, agency and agent management system software, life and non-
life Independent Insurance Agents as a Trusted Choice, Independent Insurance
Agent we act on your behalf to find the best possible coverage at the most
affordable rates. 22-08-2010
Agent Form:
This module is used for agent to view all details about their policy holder/clients
and also view their own personal details.
7. SYSTEM DESIGN
7.1 Architecture Diagram
7.2 Diagrams
Fig 2.3: Use Case Diagram: Online Registered Members and Facilities
ER Diagram
The following relational diagrams show the logical relation between the entities.
n 1
Residence History Ha
s
Insured Person
n 1
Occupation History Ha
s
Medical History Ha
s
Diagnosis Date
n Has 1
Medical History Insured Person
Disease (ICD code)
CLAIM ID
1 Has 1
INCURRED DATE CLAIM PAID AMOUNTS
REPORTED DATE
1 Has 1
CLAIM CHARGES
DATE OF CLAIM PAID
1 Has 1
CLAIM STATUS EXCEEDED AMOUNT
TOTAL PRE-HOSP.CHARGES
TOTAL POST-HOSP.CHARGES
FUNCTIONAL DIAGRAM
Start
Admin logs in
Manages and
Uploads Articles
Log out
Stop
Subsystem decomposition
This section shows the all-functional objects in the project and their
functionality.
Login
Register an Insured persons data
Manages Insure Persons data
Manages Articles
ADMINS
INSURED REGISTRATION
PERSONAL DETAILS
MEDICAL HISTORY
POLICY DETAILS
POLICY MAXIMUMS
SEARCH TOOL
ADVANCED SEARCH
MANAGEMENT
ARTICLES MANGEMENT
MANAGE ARTICLES
UPLOAD ARTICLES
Data Flow Diagram
A data flow diagram represents the flow of information for any process or
system. It shows the system with its relationship to external entities. Here, we
can see how a system’s users and process flow work.
After logging in, Admin and User will land on the home page where they can
manage their profiles. Admin can add, view Policies, manage prices, view
buying, check the availability of Policies, etc.
After the user logs in to the system, the user can select the desired Policy and
buy and make the payment. Users can select a policy or multiple policies
separately and check all the details about the policy type, price, etc.
It shows how the user component connects to the other components while using
the system. Everything from the account details to Policy buying to payment
flow can be seen in the component diagram.
The admin is the user who can check the list of the insurance holder, can add a
category, subcategory, add a policy, etc. Another role here is that of the user
who will be a customer who can view the category, subcategory, and policy and
can apply for a policy listed therein.
Activity diagram
Admin can view the list of policies users bought. Admin can manage the
category of Policies and can update all Policy detail. Admin can view buying
history and detail. Admin can check payments.
Users can register and then buy the policies, make payments, etc. Users can find
detailed information about the policy on the system after logging in.
Sequence diagram
Users can search for Policies, and view the price of a selected Policy. Users can
log in to the system using their names & contact number. Users can view/track
their bought policies, policy status, history, etc.
CLASS DIAGRAMS
DATA DICTIONARY
Authentication
A user need to login to this software system in-order to manage the database.
SQL server allows us to logon in two ways.
1. Windows authentication
2. SQL Server authentication
In windows authentication, system recognizes the user through his/her windows
login credentials. That means, if a user logs into a windows operating system,
he/she becomes an authorized user to use all resources that accept windows
authentication and available in the system. If the logged in computer is
configured as a valid client under a DNS (domain name server), the user
becomes eligible to access any resource of any computer that is working under
the DNS with widows authentication. In front end (programming) the following
connection string can be used to connect to the server.
In a SQL server the following database objects can be created and maintained.
DATABASE USERS
SELECT
CREATE
INSERT
UPDATE
DELETE
A person who creates and maintains his/her database objects is called owner of
those database objects. He can GRANT or REVOKE privileges on his/her
objects to other users.
DATABASES
TABLES
A table is an actual data storage object and used to store the raw data of an
entity. A table collects data in the form of rows (records) and columns (fields).
So, while creating a table a user has to declare the columns in terms of column
name, column type and width. Column name is a identity name of the column,
column type specifies the type of data to be allowed in to the column and
column width specifies the maximum number of characters or range of data to
be allowed in to the column. A table allows a maximum of 1024 columns and
with an unlimited number of rows.
VIEWS
A view is a filter defined on a table. A view behaves like a table but with
restricted columns and rows. A view can be used to insert, update and delete the
contents of a table. But all actions work under the condition (filter) defined in
the view. That means we can not delete, update records that are not coming
under the filter definition of the view. So, views are very useful to restrict
columns and rows from the users depend on their accessibility.
CONSTRAINTS
An index is a database object that helps the database to speed up the data search
in a table. It holds a data expression/data from one or more columns of a table in
ascending order to find records quickly based on values of those columns. For a
table an index will be created automatically on its primary key column data. It is
called clustered index which is having data from the primary column in
ascending order along with cluster IDs (physical locations on the disk) of all the
rows. When a search condition is applied on a table through this column, system
searches the corresponding index for the rows. So, indexes make the data
searching faster.
TRIGGERS
1. Deleted rows can be automatic backed-up from a table into its backup
table.
2. Old values can be automatically backed-up when some rows are updates
with new values.
3. Special business logics (constraints), that can not be implemented using
standard constraints and need extra procedures, can be implemented using
trigger procedures.
8. SYSTEM TESTING
PHP
PHP requirements
Some individual modules may have specific requirements for PHP extensions
and configurations beyond those listed below, so, please check the module's
documentation as well.
Other interfaces
See the PHP manual for how to change configuration settings for other
interfaces to PHP.
Xdebug
If using Xdebug:
Setting: xdebug.show_exception_trace = 0
Reason: Could cause Drupal's installer to crash.
Using Xdebug with Drupal 9:
Setting: xdebug.collect_params = ?
Reason:Setting xdebug.collect_params too high will prevent Drupal 9 from
installing and working properly.
Setting:xdebug.max_nesting_level = 256
Reason:Using the default max_nesting_level of 100 (in xdebug versions < 2.3)
causes some pages to crash.
PHP from different sources
Drupal is designed to work with PHP as distributed on PHP.net. Every effort is
made to make it work with PHP versions from other sources but this is only
done on a best effort basis. In particular, Suhosin is known to break certain
features; and some operating systems move core components into other
packages.
PHP requirements details
See the phpinfo() page on Drupal.org to learn how to use Phpinfo to get the
details of your system. For example, Phpinfo will tell you if you have a database
already installed and what versions of PHP, MySQL, etc. your system is
running. Phpinfo will also tell you what PHP variables are set as well as many
other helpful things.
It is often possible to update to a newer version of PHP that ships with your
Linux distribution. Please read the documentation for your Linux distribution.
Testing Objectives
TYPES OF TESTING
Testing performs a very critical role for quality assurance and for
ensuring the reliability of the software. Some types of testing that are used in
this project are as follow:
The code is validated and checked to ensure that all the coding conventions ere
followed properly. Each module was individually validated and the errors were
corrected. After integration of the whole site, it was launched for a minimal set
of inputs and inspections were carried out, Testing involve two phases-Units
testing and Integration Testing.
Unit Testing
In our system, the modules of the system are tested separately. Unit
testing has been successfully handled. The data was given to each module in all
respects and has been found working properly.
Integration Testing
Validation Testing
System Testing
User acceptance of the system is a key factor for the success of any
system. The system under consideration is tested for user acceptance by
constantly keeping in touch with prospective system and user at the time of
developing and making changes whenever required.
TEST PLAN
The test plan outlines the entire testing process and includes the individual
test cases. To develop a solid test plan, it is necessary to systematically explore
the program to ensure converge is through but not unnecessary repetitive. A
formal test plan establishes a testing process that does not depend upon
accidental, random testing.
Before starting to code, test cases are designed and their outcome is found out
manually. The outcome of the program with these test cases as input is noted
and compared with the corresponding manual result. Any mismatch depicts an
error. Ideally, the developer or tester would test all the cases for successful
execution, which would result in an error free program. But due top cost for
successful execution, which would result in an error free program. But due to
cost and effort needed to generate a test case, time consumed to execute the
program with all the test cases as input and the time needed to evaluate the
results is intimidating. Hence practical testing rests on two fundamental goal-
maximize the number errors detected and minimize the number of test cases.
Code
Account Controller
<?Php
Class Accountcontroller Extends Zend_Controller_Action
{
Protected $_Redirector = Null;
Protected $_Dbadapter = Null;
Public Function Init()
{
$Registry = Zend_Registry::Getinstance();
$This->_Dbadapter = $Registry->Dbadapter;
$This->_Redirector = $This->_Helper->Gethelper("Redirector");
If (Empty($This->View->Adminidentity)) {
$This->_Redirector->Gotosimple("Index", "Auth", "Admin");
Exit();
} Else {
$Identity = $This->View->Adminidentity;
$Usertype = $Identity->Usertype;
If ($Usertype != "C") {
Default_Models_Adminauth::Destroy();
$This->_Redirector->Gotosimple("Index", "Auth", "Admin");
Exit();
}
}
}
#Getting Objects
$Commonobj = New Default_Models_Common();
$Identity = $This->View->Adminidentity;
$Username = $Identity->Username;
#Post Process
$Accounts = $Claimhistory = Array();
$Where = " And A.Usertype = 'C' And C.Insurecode = '".
$Username."'";
$Accounts = $Commonobj->Getallcustomers($Where);
$This->View->Accounts = $Accounts;
$This->View->Claimhistory = $Claimhistory;
$This->View->Msg = Str_Replace("_", " ", $_Get["Msg"]);
}
#Getting Objects
$Commonobj = New Default_Models_Common();
#Variables
$Errormsg = '';
$Info = Array();
#Post Process
If($This->Getrequest()->Ispost()) {
$Info = $_Post;
$Info['Cimage1'] = '';
$Info['Cimage2'] = '';
$Info['Cimage3'] = '';
If(!Empty($_Files["Imagepath1"]["Tmp_Name"])) {
If($_Files["Imagepath1"]["Error"] == 1 ) {
$Errormsg = "Error In Image Try Another
Image On Attach 1";
} Else {
If(Empty($_Files["Imagepath1"]["Name"])) {
$Errormsg = "Error In Image Try
Another Image On Attach 1";
} Else{
$Target_Filename =
Date('Ymdhis').'_'.Rand(100,999).'_'.$_Files["Imagepath1"]["Name"];
$Target_Path = $This->View-
>Uploadpath.'/Posts/'.$Target_Filename;
If ($_Files["Imagepath1"]["Size"] >
500000) {
$Errormsg = "Sorry, Your File Is
Too Large On Attach 1";
} Else {
If
(Move_Uploaded_File($_Files["Imagepath1"]["Tmp_Name"], $Target_Path)) {
$Info['Cimage1'] =
$Target_Filename;
} Else {
$Errormsg = "Sorry, There
Was An Error Uploading Your File On Attach 1";
}
}
}
}
}
If(Empty($Errormsg)) {
If(!Empty($_Files["Imagepath2"]["Tmp_Name"])) {
If($_Files["Imagepath2"]["Error"] == 1 ) {
$Errormsg = "Error In Image Try
Another Image On Attach 2";
} Else {
If(Empty($_Files["Imagepath2"]
["Name"])) {
$Errormsg = "Error In Image Try
Another Image On Attach 2";
} Else{
$Target_Filename =
Date('Ymdhis').'_'.Rand(100,999).'_'.$_Files["Imagepath2"]["Name"];
$Target_Path = $This->View-
>Uploadpath.'/Posts/'.$Target_Filename;
If ($_Files["Imagepath2"]["Size"]
> 500000) {
$Errormsg = "Sorry, Your
File Is Too Large On Attach 2";
} Else {
If
(Move_Uploaded_File($_Files["Imagepath2"]["Tmp_Name"], $Target_Path)) {
$Info['Cimage2'] =
$Target_Filename;
} Else {
$Errormsg = "Sorry,
There Was An Error Uploading Your File On Attach 2";
}
}
}
}
}
}
If(Empty($Errormsg)) {
If(!Empty($_Files["Imagepath3"]["Tmp_Name"])) {
If($_Files["Imagepath3"]["Error"] == 1 ) {
$Errormsg = "Error In Image Try
Another Image On Attach 3";
} Else {
If(Empty($_Files["Imagepath3"]
["Name"])) {
$Errormsg = "Error In Image Try
Another Image On Attach 3";
} Else{
$Target_Filename =
Date('Ymdhis').'_'.Rand(100,999).'_'.$_Files["Imagepath3"]["Name"];
$Target_Path = $This->View-
>Uploadpath.'/Posts/'.$Target_Filename;
If ($_Files["Imagepath3"]["Size"]
> 500000) {
$Errormsg = "Sorry, Your
File Is Too Large On Attach 3";
} Else {
If
(Move_Uploaded_File($_Files["Imagepath3"]["Tmp_Name"], $Target_Path)) {
$Info['Cimage3'] =
$Target_Filename;
} Else {
$Errormsg = "Sorry,
There Was An Error Uploading Your File On Attach 3";
}
}
}
}
}
}
If(Empty($Errormsg)) {
$Identity = $This->View->Adminidentity;
$Userid = $Identity->Userid;
$Info['Insid'] = $_Get['Insid'];
$Info['Userid'] = $Userid;
$Createinfo = $Commonobj-
>Insertclaimhistory($Info);
$This->_Redirector-
>Gotosimple('Index','Account','Admin', Array('Msg' =>
'Claim_Created_Successfully'));
}
}
$This->View->Accounts = $Accounts;
$This->View->Errormsg = $Errormsg;
$This->View->Info = $Info;
}
}
Auth Controller
<?Php
Class Authcontroller Extends Zend_Controller_Action
{
Protected $_Redirector = Null;
#Getting Objects
$Commonobj = New Default_Models_Common();
If ($Form->Isvalid($_Post)) {
$_Post["Useremail"] = Trim($_Post["Useremail"]);
$_Post["Password"] = Trim($_Post["Password"]);
$Auth = New
Default_Models_Adminauth($_Post["Useremail"],$_Post["Password"]);
If ($Auth->Authenticate()) {
$This->_User =
Default_Models_Adminauth::Getidentity();
If($This->_User->Userid)
{
$Usertype = $This->_User-
>Usertype;
If($Usertype == 'A')
$This->_Redirector-
>Gotosimple('Index','Customers','Admin');
If($Usertype == 'C')
$This->_Redirector-
>Gotosimple('Index','Account','Admin');
}
Exit;
} Else {
$This->View->Errormessage = "Invalid
Login";
}
}
}
$This->View->Form = $Form;
$This->View->Succmsg = Isset($_Get['Msg']) ? $_Get['Msg'] : '';
}
}
Customers Controller
<?Php
Class Customerscontroller Extends Zend_Controller_Action
{
Protected $_Redirector = Null;
Protected $_Dbadapter = Null;
Public Function Init()
{
$Registry = Zend_Registry::Getinstance();
$This->_Dbadapter = $Registry->Dbadapter;
$This->_Redirector = $This->_Helper->Gethelper("Redirector");
If (Empty($This->View->Adminidentity)) {
$This->_Redirector->Gotosimple("Index", "Auth", "Admin");
Exit();
} Else {
$Identity = $This->View->Adminidentity;
$Usertype = $Identity->Usertype;
If ($Usertype != "A") {
Default_Models_Adminauth::Destroy();
$This->_Redirector->Gotosimple("Index", "Auth", "Admin");
Exit();
}
}
}
#Getting Objects
$Commonobj = New Default_Models_Common();
#Variables
$Errormsg = '';
$Info = Array();
#Post Process
If(Isset($_Post['Email'])) {
$Info = $_Post;
$Createinfo = $Commonobj->Insertcustomers($Info);
$Emailinfo = Array(
"Fromemail" => $This->View->Testemail,
);
$Output = $Commonobj->Sendtestemail($Emailinfo);
$This->_Redirector-
>Gotosimple('Index','Customers','Admin', Array('Msg' =>
'Customer_Account_Created_Successfully'));
}
#Getting Objects
$Commonobj = New Default_Models_Common();
#Post Process
$Where = " And A.Usertype = 'C' ";
$Accounts = $Commonobj->Getallcustomers($Where);
$This->View->Accounts = $Accounts;
$This->View->Msg = Str_Replace("_", " ", $_Get["Msg"]);
}
#Getting Objects
$Commonobj = New Default_Models_Common();
#Post Process
$Where = " And A.Usertype = 'C' And C.Insid = '".$_Get['Insid']."'";
$Accounts = $Commonobj->Getallcustomers($Where);
$Where = " And Ch.Insid = '".$_Get['Insid']."'";
$Claimhistory = $Commonobj->Getallclaimhistory($Where);
$This->View->Accounts = $Accounts;
$This->View->Claimhistory = $Claimhistory;
$This->View->Msg = Str_Replace("_", " ", $_Get["Msg"]);
}
#Getting Objects
$Commonobj = New Default_Models_Common();
#Post Process
$Accounts = $Claimhistory = Array();
If($This->Getrequest()->Ispost()) {
$Where = " And A.Usertype = 'C' And C.Insurecode = '".
$_Post['Inscode']."'";
$Accounts = $Commonobj->Getallcustomers($Where);
#Getting Objects
$Commonobj = New Default_Models_Common();
#Post Process
$Identity = $This->View->Adminidentity;
$Userid = $Identity->Userid;
$Info = Array(
"Insid" => $_Get['Insid'],
"Userid" => $Userid,
);
$Accounts = $Commonobj->Rejectclaim($Info);
$This->_Redirector->Gotosimple('Index','Customers','Admin',
Array('Msg' => 'Clamin_Rejected_Successfully'));
#Getting Objects
$Commonobj = New Default_Models_Common();
$Identity = $This->View->Adminidentity;
$Userid = $Identity->Userid;
$_Post['Userid'] = $Userid;
$Commonobj->Approveclaim($_Post);
Echo Json_Encode(Array("Code" => 200, 'Msg' => 'Claim
Approved Successfully'));
Exit;
}
#Getting Objects
$Commonobj = New Default_Models_Common();
#Variables
$Errormsg = '';
$Info = Array();
#Post Process
If($This->Getrequest()->Ispost()) {
$Info = $_Post;
$Info['Cimage1'] = '';
$Info['Cimage2'] = '';
$Info['Cimage3'] = '';
If(!Empty($_Files["Imagepath1"]["Tmp_Name"])) {
If($_Files["Imagepath1"]["Error"] == 1 ) {
$Errormsg = "Error In Image Try Another
Image On Attach 1";
} Else {
If(Empty($_Files["Imagepath1"]["Name"])) {
$Errormsg = "Error In Image Try
Another Image On Attach 1";
} Else{
$Target_Filename =
Date('Ymdhis').'_'.Rand(100,999).'_'.$_Files["Imagepath1"]["Name"];
$Target_Path = $This->View-
>Uploadpath.'/Posts/'.$Target_Filename;
If ($_Files["Imagepath1"]["Size"] >
500000) {
$Errormsg = "Sorry, Your File Is
Too Large On Attach 1";
} Else {
If
(Move_Uploaded_File($_Files["Imagepath1"]["Tmp_Name"], $Target_Path)) {
$Info['Cimage1'] =
$Target_Filename;
} Else {
$Errormsg = "Sorry, There
Was An Error Uploading Your File On Attach 1";
}
}
}
}
}
If(Empty($Errormsg)) {
If(!Empty($_Files["Imagepath2"]["Tmp_Name"])) {
If($_Files["Imagepath2"]["Error"] == 1 ) {
$Errormsg = "Error In Image Try
Another Image On Attach 2";
} Else {
If(Empty($_Files["Imagepath2"]
["Name"])) {
$Errormsg = "Error In Image Try
Another Image On Attach 2";
} Else{
$Target_Filename =
Date('Ymdhis').'_'.Rand(100,999).'_'.$_Files["Imagepath2"]["Name"];
$Target_Path = $This->View-
>Uploadpath.'/Posts/'.$Target_Filename;
If ($_Files["Imagepath2"]["Size"]
> 500000) {
$Errormsg = "Sorry, Your
File Is Too Large On Attach 2";
} Else {
If
(Move_Uploaded_File($_Files["Imagepath2"]["Tmp_Name"], $Target_Path)) {
$Info['Cimage2'] =
$Target_Filename;
} Else {
$Errormsg = "Sorry,
There Was An Error Uploading Your File On Attach 2";
}
}
}
}
}
}
If(Empty($Errormsg)) {
If(!Empty($_Files["Imagepath3"]["Tmp_Name"])) {
If($_Files["Imagepath3"]["Error"] == 1 ) {
$Errormsg = "Error In Image Try
Another Image On Attach 3";
} Else {
If(Empty($_Files["Imagepath3"]
["Name"])) {
$Errormsg = "Error In Image Try
Another Image On Attach 3";
} Else{
$Target_Filename =
Date('Ymdhis').'_'.Rand(100,999).'_'.$_Files["Imagepath3"]["Name"];
$Target_Path = $This->View-
>Uploadpath.'/Posts/'.$Target_Filename;
If ($_Files["Imagepath3"]["Size"]
> 500000) {
$Errormsg = "Sorry, Your
File Is Too Large On Attach 3";
} Else {
If
(Move_Uploaded_File($_Files["Imagepath3"]["Tmp_Name"], $Target_Path)) {
$Info['Cimage3'] =
$Target_Filename;
} Else {
$Errormsg = "Sorry,
There Was An Error Uploading Your File On Attach 3";
}
}
}
}
}
}
If(Empty($Errormsg)) {
$Identity = $This->View->Adminidentity;
$Userid = $Identity->Userid;
$Info['Insid'] = $_Get['Insid'];
$Info['Userid'] = $Userid;
$Createinfo = $Commonobj-
>Insertclaimhistory($Info);
$This->_Redirector-
>Gotosimple('Index','Customers','Admin', Array('Msg' =>
'Claim_Created_Successfully'));
}
}
$This->View->Accounts = $Accounts;
$This->View->Errormsg = $Errormsg;
$This->View->Info = $Info;
}
}
Error Controller
<?Php
Class Errorcontroller Extends Zend_Controller_Action
{
$Errors = $This->_Getparam('Error_Handler');
Switch ($Errors->Type) {
Case Zend_Controller_Plugin_Errorhandler::Exception_No_Controller:
Case Zend_Controller_Plugin_Errorhandler::Exception_No_Action:
}
Index Controller
<?Php
#Getting Objects
$Commonobj = New Default_Models_Common();
#Getting List
$Districts = $Commonobj->Getalldistricts(" And D.Stateid = '".
$_Post['Stateid']."' ");
If($Districts) {
Foreach($Districts As $Val) {
Echo '<Option Value="'.$Val-
>Districtid.'">'.Ucfirst($Val->Districtname).'</Option>';
}
}
Exit;
}
}
Scripts
<?Php
$Controller = Zend_Controller_Front::Getinstance()->Getrequest()-
>Getcontrollername();
$Action = Zend_Controller_Front::Getinstance()->Getrequest()-
>Getactionname();
#Echo $This->Adminidentity->Usertype; Exit;
?>
<?Php If($This->Adminidentity->Userid ){
$Commonobj = New Default_Models_Common();
$Where = " And A.Usertype = 'C' And C.Userid = '".$This-
>Adminidentity->Userid."' ";
$Accountsinfo = $Commonobj->Getallcustomers($Where);
$Accountsinfo = $Accountsinfo[0];
}
?>
<!Doctype Html>
<Html Class="No-Js">
<Head>
<Title>My Insurance System</Title>
<Meta Http-Equiv="Content-Type" Content="Text/Html;
Charset=Utf-8" />
<Base Href="<?Php Echo $This->Httphost; ?>" />
<Link Rel="Stylesheet" Href="Html/Css/Bootstrap.Min.Css" />
<Link Rel="Stylesheet" Href="Html/Font-Awesome/4.5.0/Css/Font-
Awesome.Min.Css" />
<Link Rel="Stylesheet" Href="Html/Css/Fonts.Googleapis.Com.Css" />
<Link Rel="Stylesheet" Href="Html/Css/Ace.Min.Css" Class="Ace-Main-
Stylesheet" Id="Main-Ace-Style" />
<Link Rel="Stylesheet" Href="Html/Css/Ace-Skins.Min.Css" />
<Link Rel="Stylesheet" Href="Html/Css/Ace-Rtl.Min.Css" />
<Script Src="Html/Js/Jquery-2.1.4.Min.Js"></Script>
<Script Src="Html/Js/Ace-Extra.Min.Js"></Script>
<?Php If($Controller == "Customers") { ?>
<Link Rel="Stylesheet" Href="Html/Css/Bootstrap-
Datepicker3.Min.Css" />
<Script Src="Html/Js/Bootstrap-Datepicker.Min.Js"></Script>
<?Php } ?>
<Style>
.Table-Striped>Tbody>Tr:Nth-Of-Type(Even) {
Background-Color: #F9f9f9;
}
/* Transparent Overlay */
.Loading:Before {
Content: '';
Display: Block;
Position: Fixed;
Top: 0;
Left: 0;
Width: 100%;
Height: 100%;
Background: Radial-Gradient(Rgba(20, 20, 20,.8), Rgba(0, 0, 0, .8));
.Loading:Not(:Required):After {
Content: '';
Display: Block;
Font-Size: 10px;
Width: 1em;
Height: 1em;
Margin-Top: -0.5em;
-Webkit-Animation: Spinner 1500ms Infinite Linear;
-Moz-Animation: Spinner 1500ms Infinite Linear;
-Ms-Animation: Spinner 1500ms Infinite Linear;
-O-Animation: Spinner 1500ms Infinite Linear;
Animation: Spinner 1500ms Infinite Linear;
Border-Radius: 0.5em;
-Webkit-Box-Shadow: Rgba(255,255,255, 0.75) 1.5em 0 0 0,
Rgba(255,255,255, 0.75) 1.1em 1.1em 0 0, Rgba(255,255,255, 0.75) 0 1.5em 0
0, Rgba(255,255,255, 0.75) -1.1em 1.1em 0 0, Rgba(255,255,255, 0.75) -1.5em
0 0 0, Rgba(255,255,255, 0.75) -1.1em -1.1em 0 0, Rgba(255,255,255, 0.75) 0 -
1.5em 0 0, Rgba(255,255,255, 0.75) 1.1em -1.1em 0 0;
Box-Shadow: Rgba(255,255,255, 0.75) 1.5em 0 0 0, Rgba(255,255,255, 0.75)
1.1em 1.1em 0 0, Rgba(255,255,255, 0.75) 0 1.5em 0 0, Rgba(255,255,255,
0.75) -1.1em 1.1em 0 0, Rgba(255,255,255, 0.75) -1.5em 0 0 0,
Rgba(255,255,255, 0.75) -1.1em -1.1em 0 0, Rgba(255,255,255, 0.75) 0 -1.5em
0 0, Rgba(255,255,255, 0.75) 1.1em -1.1em 0 0;
}
/* Animation */
@-Webkit-Keyframes Spinner {
0% {
-Webkit-Transform: Rotate(0deg);
-Moz-Transform: Rotate(0deg);
-Ms-Transform: Rotate(0deg);
-O-Transform: Rotate(0deg);
Transform: Rotate(0deg);
}
100% {
-Webkit-Transform: Rotate(360deg);
-Moz-Transform: Rotate(360deg);
-Ms-Transform: Rotate(360deg);
-O-Transform: Rotate(360deg);
Transform: Rotate(360deg);
}
}
@-Moz-Keyframes Spinner {
0% {
-Webkit-Transform: Rotate(0deg);
-Moz-Transform: Rotate(0deg);
-Ms-Transform: Rotate(0deg);
-O-Transform: Rotate(0deg);
Transform: Rotate(0deg);
}
100% {
-Webkit-Transform: Rotate(360deg);
-Moz-Transform: Rotate(360deg);
-Ms-Transform: Rotate(360deg);
-O-Transform: Rotate(360deg);
Transform: Rotate(360deg);
}
}
@-O-Keyframes Spinner {
0% {
-Webkit-Transform: Rotate(0deg);
-Moz-Transform: Rotate(0deg);
-Ms-Transform: Rotate(0deg);
-O-Transform: Rotate(0deg);
Transform: Rotate(0deg);
}
100% {
-Webkit-Transform: Rotate(360deg);
-Moz-Transform: Rotate(360deg);
-Ms-Transform: Rotate(360deg);
-O-Transform: Rotate(360deg);
Transform: Rotate(360deg);
}
}
@Keyframes Spinner {
0% {
-Webkit-Transform: Rotate(0deg);
-Moz-Transform: Rotate(0deg);
-Ms-Transform: Rotate(0deg);
-O-Transform: Rotate(0deg);
Transform: Rotate(0deg);
}
100% {
-Webkit-Transform: Rotate(360deg);
-Moz-Transform: Rotate(360deg);
-Ms-Transform: Rotate(360deg);
-O-Transform: Rotate(360deg);
Transform: Rotate(360deg);
}
}
</Style>
</Head>
<Body Class="No-Skin">
<Div Id="Navbar" Class="Navbar Navbar-Default Ace-Save-State">
<Div Class="Navbar-Container Ace-Save-State" Id="Navbar-Container">
<Button Type="Button" Class="Navbar-Toggle Menu-Toggler Pull-
Left" Id="Menu-Toggler" Data-Target="#Sidebar">
<Span Class="Sr-Only">Toggle Sidebar</Span>
<Span Class="Icon-Bar"></Span>
<Span Class="Icon-Bar"></Span>
<Span Class="Icon-Bar"></Span>
</Button>
<Div Class="Navbar-Header Pull-Left">
<A Href="Javascript:Void(0);" Class="Navbar-Brand">
<Small><I Class="Fa Fa-Leaf"></I> Insurance System </Small>
</A>
</Div>
$( Document ).Ready(Function() {
$('#Sidebar-Collapse').Hide();
<?Php If($Controller == "Customers") { ?>
$( ".Datepicker" ).Datepicker({
Format: 'Yyyy-Mm-Dd',
Showothermonths: True,
Selectothermonths: False,
Autoclose: 'True',
});
<?Php } ?>
$(".Allownumericwithoutdecimal").On("Keypress Keyup
Blur",Function (Event) {
$(This).Val($(This).Val().Replace(/[^\D].+/, ""));
If ((Event.Which < 48 || Event.Which > 57)) {
Event.Preventdefault();
}
});
});
</Script>
<Div Class="Loading" Id="Fullloading" Style="Display:
None;">Loading…</Div>
<?Php If($This->Adminidentity->Userid && ($This->Adminidentity-
>Usertype != "A" )){ ?>
<Script>
$(Window).Bind("Load", Function() {
//Updatenotificationcount();
});
</Script>
<?Php } ?>
</Body>
</Html>
Helpers
GetLeftNav
<?php
class Admin_View_Helper_GetLeftNav extends
Zend_View_Helper_Abstract
{
public function getLeftNav(){
?>
<div id="sidebar">
<ul>
<li><h3><a href="/admin/index"
class="house">Dashboard</a></h3></li>
<li><h3><a href="/admin/policies"
class="folder_table">Policies</a></h3>
<ul>
<li><a
href="/admin/policies/add" class="addorder">Add Policy</a></li>
</ul>
</li>
<li><h3><a href="/admin/users"
class="user">Users</a></h3>
<ul>
<li><a href="/admin/users/add" class="useradd">Add
user</a></li>
<li><a href="/admin/template/">Mass Mail</a></li>
</ul>
</li>
<li><h3><a href="/admin/orders"
class="folder_table">Orders</a></h3>
<ul>
<li><a href="/admin/orders/"
class="search">Search</a></li>
</ul>
</li>
<li><h3><a href="/admin/iprules/"
class="folder_table">Ban/Unban Ipaddress</a></h3>
<ul>
<li><a href="/admin/iprules/blockipaddress"
class="search">Block Ipaddress</a></li>
</ul>
</li>
<li><h3><a href="/admin/reports/"
class="folder_table">Reports</a></h3>
<ul>
<li><a href="/admin/reports/" class="report_seo">Mail
Sent Report</a></li>
<li><a href="/admin/reports/undelivered"
class="report_seo">Undelivered Mail Report</a></li>
<li><a href="/admin/reports/iptablebanlist"
class="report_seo">Banned IP Addresses</a></li>
<li><a href="/admin/tracking/"
class="report_seo">Tracking Hackers</a></li>
</ul>
</li>
</ul>
</div>
<?
}
}
GetNav
<?php
class Default_View_Helper_GetNav extends Zend_View_Helper_Abstract
{
public function getNav()
{
$front = Zend_Controller_Front::getInstance();
$request = $front->getRequest();
$nav_arr = array('controller'=>$request->controller ,
'action'=>$request->action);
return $nav_arr;
}
}
GetRequestParam
<?php
class Admin_View_Helper_GetRequestParam extends
Zend_View_Helper_Abstract
{
public function getRequestParam(){
$front = Zend_Controller_Front::getInstance();
$request = $front->getRequest();
$req_arr = array('controller'=>$request->controller ,
'action'=>$request->action);
return $req_arr;
}
}
Scripts
Account
Addclaim
<?php
$info = $this->accounts[0];
?>
<style>
.error{
color:red;
}
textarea{
border-radius: 0px;
}
</style>
<div class="row">
<div class="col-xs-12">
<!-- PAGE CONTENT BEGINS -->
<div class="row">
<div class="col-xs-12">
<h3 class="header smaller lighter blue" style="text-align:
center;"><strong>Insurance Claim - <?php if(isset($info->insurecode))
echo $info->insurecode; ?></strong></h3>
<?php if($this->errormsg) { ?>
<div class="alert alert-danger">
<strong><?php echo $this->errormsg; ?></strong>
</div>
<?php } ?>
<form method="post" name="claimform"
class="form-horizontal" id="claimform" enctype="multipart/form-data"
>
<div class="form-group">
<label style="font-weight: bold;"
class="col-sm-2 control-label no-padding-right"> Customer name :
</label>
<div class="col-sm-4" style="font-size:
15px; padding-top: 6px;">
<?php if(isset($info-
>customername)) echo $info->customername; ?>
</div>
<label style="font-weight: bold;"
class="col-sm-2 control-label no-padding-right">Gender : </label>
<div class="col-sm-4" style="font-size:
15px; padding-top: 6px;">
<?php if(isset($info->gender)) echo
$info->gender; ?>
</div>
</div>
<div class="form-group">
<label style="font-weight: bold;"
class="col-sm-2 control-label no-padding-right"> Mobile : </label>
<div class="col-sm-4" style="font-size:
15px; padding-top: 6px;">
<?php if(isset($info->mobile))
echo $info->mobile; ?>
</div>
<label style="font-weight: bold;"
class="col-sm-2 control-label no-padding-right"> Email : </label>
<div class="col-sm-4" style="font-size:
15px; padding-top: 6px;">
<?php if(isset($info->email))
echo $info->email; ?>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label no-padding-
right"> Query </label>
<div class="col-sm-6">
<textarea name="querycontent"
id="querycontent" class="form-control" placeholder="Query" rows="8"
></textarea>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label no-padding-
right"> Upload 1 </label>
<div class="col-sm-4">
<input type="file"
name="imagepath1" id="imagepath1" class="form-control" >
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label no-padding-
right"> Upload 2 </label>
<div class="col-sm-4">
<input type="file"
name="imagepath2" id="imagepath2" class="form-control" >
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label no-padding-
right"> Upload 3 </label>
<div class="col-sm-4">
<input type="file"
name="imagepath3" id="imagepath3" class="form-control" >
</div>
</div>
Index
<?php
#Getting Objects
$commonobj = new Default_Models_Common();
$info = $this->accounts[0];
?>
<style>
.error{
color:red;
}
textarea{
border-radius: 0px;
}
</style>
<div class="row">
<div class="col-xs-12">
<!-- PAGE CONTENT BEGINS -->
<div class="row">
<div class="col-xs-12">
<h3 class="header smaller lighter blue" style=" text-align:
center;"><strong>Insurance Details - <?php if(isset($info->insurecode))
echo $info->insurecode; ?></strong></h3>
<form method="post" name="insureform"
class="form-horizontal" id="insureform" >
<h3 class="header smaller lighter
blue"><strong>Customer Details</strong></h3>
<div class="form-group">
<label style="font-weight: bold;" class="col-sm-2
control-label no-padding-right"> Customer name : </label>
<div class="col-sm-4" style="font-size: 15px;
padding-top: 6px;">
<?php if(isset($info->customername))
echo $info->customername; ?>
</div>
<label style="font-weight: bold;" class="col-sm-
2 control-label no-padding-right">Gender : </label>
<div class="col-sm-4" style="font-size: 15px;
padding-top: 6px;">
<?php if(isset($info->gender)) echo $info-
>gender; ?>
</div>
</div>
<div class="form-group">
<label style="font-weight: bold;" class="col-sm-
2 control-label no-padding-right"> Mobile : </label>
<div class="col-sm-4" style="font-size: 15px;
padding-top: 6px;">
<?php if(isset($info->mobile)) echo
$info->mobile; ?>
</div>
</div>
<div class="form-group">
<label style="font-weight: bold;" class="col-sm-
2 control-label no-padding-right"> Date of Birth : </label>
<div class="col-sm-4" style="font-size: 15px;
padding-top: 6px;">
<?php if(isset($info->gender)) echo
$info->gender; ?>
</div>
<label style="font-weight: bold;" class="col-sm-2
control-label no-padding-right"> Address : </label>
<div class="col-sm-4" style="font-size: 15px;
padding-top: 6px;">
<?php if(isset($info->address)) echo
$info->address; ?>
</div>
</div>
</div>
<div class="form-group">
<label style="font-weight: bold;" class="col-
sm-2 control-label no-padding-right"> Vehical color : </label>
<div class="col-sm-4" style="font-size: 15px;
padding-top: 6px;">
<?php if(isset($info->color)) echo
$info->color; ?>
</div>
<label style="font-weight: bold;" class="col-
sm-2 control-label no-padding-right">Manufacture Date : </label>
<div class="col-sm-4" style="font-size: 15px;
padding-top: 6px;">
<?php if(isset($info-
>manufacturedate)) echo $info->manufacturedate; ?>
</div>
</div>
<div class="form-group ">
<label style="font-weight: bold;" class="col-sm-2
control-label no-padding-right"> Vehical cost : </label>
<div class="col-sm-4" style="font-size: 15px;
padding-top: 6px;">
<?php if(isset($info->vehicalcost)) echo
$info->vehicalcost; ?>
</div>
</div>
</div>
</div>
<div class="form-group">
<label style="font-weight: bold;" class="col-
sm-2 control-label no-padding-right">Vaild From : </label>
<div class="col-sm-4" style="font-size: 15px;
padding-top: 6px;">
<?php if(isset($info->insurefrom)) echo
$info->insurefrom; ?>
</div>
<label style="font-weight: bold;" class="col-
sm-2 control-label no-padding-right">Vaild To : </label>
<div class="col-sm-4" style="font-size: 15px;
padding-top: 6px;">
<?php if(isset($info->insureto)) echo
$info->insureto; ?>
</div>
</div>
<div class="form-group">
<label style="font-weight: bold;" class="col-
sm-2 control-label no-padding-right">Nominee Name : </label>
<div class="col-sm-4" style="font-size: 15px;
padding-top: 6px;">
<?php if(isset($info->nomineename))
echo $info->nomineename; ?>
</div>
<label style="font-weight: bold;" class="col-
sm-2 control-label no-padding-right">Relationship : </label>
<div class="col-sm-4" style="font-size: 15px;
padding-top: 6px;">
<?php if(isset($info->nomineerelation)) echo
$info->nomineerelation; ?>
</div>
</div>
<h3 class="header smaller lighter
blue"><strong>Claim Details</strong></h3>
<div class="form-group">
<div class="col-sm-12">
<a href="<?php echo $this-
>httphost; ?>account/addclaim?insid=<?php echo $info->insid; ?
>"><button class="btn btn-primary scshowfullloading" type="button" >
Add claim query
</button></a>
</div>
<?php if(empty($this->claimhistory)) { ?>
<div class="col-sm-12">
<div class="alert alert-danger">
<strong>Claim details not
found</strong>
</div>
</div>
<?php } else { ?>
<?php if($info->claimstatus == 0) { ?>
<div class="col-sm-12" style="padding-top:
15px;">
<div class="alert alert-success">
<strong>Claim Request
Received</strong>
</div>
</div>
<?php } ?>
<?php if($info->claimstatus == 1) { ?>
<div class="col-sm-12" style="padding-top:
15px;">
<div class="alert alert-success">
<strong>Claim Request Approved on
<?php echo date('d-m-Y', strtotime($info->claimdate));?> with Rs : <?php
echo $info->claimamt; ?></strong>
</div>
</div>
<?php } ?>
<?php if($info->claimstatus == 2) { ?>
<div class="col-sm-12" style="padding-top:
15px;">
<div class="alert alert-danger">
<strong>Claim Request Rejectedon <?
php echo date('d-m-Y', strtotime($info->claimdate));?></strong>
</div>
</div>
<?php } ?>
</div>
</div>
<script>
var paymodelopen = function(insid, maxamt) {
$('#payerr').html('');
$('#insid').val(insid);
$('#maxamt').val(maxamt);
$('#eamount').val('');
$('#maxhtml').html(maxamt);
$('#payModal').modal({
show: true,
keyboard: false,
backdrop: 'static'
});
}
var response =
JSON.parse(resdata);
if(typeof response
=='object') {
if(response.code ==
200){
}
alert(response.msg);
location.reload();
} else {
alert('Error in
saving');
}
$('#fullloading').hide();
},
error: function(){
alert('Error in saving');
$('#fullloading').hide();
}
});
}
}
</script>
Auth
Index
<style>
.account-container {
background: #f9f9f9 none repeat scroll 0 0;
border: 1px solid #d5d5d5;
border-radius: 5px;
box-shadow: 0 0 2px #dadada, 0 -3px 0 #e6e6e6 inset;
display: block;
margin: 60px auto 0;
width: 380px;
}
.content {
padding: 16px 28px 23px;
}
.clearfix::before, .clearfix::after {
content: "";
display: table;
}
.clearfix::after {
clear: both;
}
.login-actions {
float: left;
margin-bottom: 1.25em;
margin-top: -1em;
width: 100%;
}
.login-fields .field {
margin-bottom: 1.25em;
}
.login-fields input {
background-color: #fdfdfd;
box-shadow: 2px 2px 4px #f1f1f1 inset;
color: #8e8d8d;
display: block;
font-family: "Open Sans";
font-size: 13px;
margin: 0;
padding: 11px 15px 10px 15px;
width: 300px;
}
.login-actions {
float: left;
margin-bottom: 1.25em;
margin-top: -1em;
width: 100%;
}
.error{
color: red;
}
.success{
color: green;
}
</style>
<div class="account-container">
<div class="content clearfix" align="center">
<h1>Sign In</h1>
<form action="" method="post" id="loginform" name="loginform">
<div class="login-fields">
<p>Please provide the login details</p>
<div class="field">
<?=$this->form->useremail ?>
</div>
<div class="field">
<?=$this->form->password ?>
</div>
</div>
<?php if(isset($this->errormessage) && $this->errormessage !=
"") : ?>
<span class="error"><?php echo $this->errormessage;?></span>
<?php endif;?>
<?php if(!empty($this->succmsg)) { ?>
<span class="success"><b>Registeration Successfull</b></span>
<?php } ?>
<br><br>
<div class="login-actions">
<button class="width-35 btn btn-sm btn-primary" type="submit">
<i class="ace-icon fa fa-key"></i>
<span class="bigger-110">Login</span>
</button>
</div>
</form>
</div>
</div>
<script>
window.onload = function() {
var input = document.getElementById("useremail").focus();
}
</script>
Customers
1. addclaim
<?php
$info = $this->accounts[0];
?>
<style>
.error{
color:red;
}
textarea{
border-radius: 0px;
}
</style>
<div class="row">
<div class="col-xs-12">
<!-- PAGE CONTENT BEGINS -->
<div class="row">
<div class="col-xs-12">
<h3 class="header smaller lighter blue" style="text-align:
center;"><strong>Insurance Claim - <?php if(isset($info->insurecode))
echo $info->insurecode; ?></strong></h3>
<?php if($this->errormsg) { ?>
<div class="alert alert-danger">
<strong><?php echo $this->errormsg; ?></strong>
</div>
<?php } ?>
<form method="post" name="claimform"
class="form-horizontal" id="claimform" enctype="multipart/form-data"
>
<div class="form-group">
<label style="font-weight: bold;"
class="col-sm-2 control-label no-padding-right"> Customer name :
</label>
<div class="col-sm-4" style="font-size:
15px; padding-top: 6px;">
<?php if(isset($info-
>customername)) echo $info->customername; ?>
</div>
<label style="font-weight: bold;"
class="col-sm-2 control-label no-padding-right">Gender : </label>
<div class="col-sm-4" style="font-size:
15px; padding-top: 6px;">
<?php if(isset($info->gender)) echo
$info->gender; ?>
</div>
</div>
<div class="form-group">
<label style="font-weight: bold;"
class="col-sm-2 control-label no-padding-right"> Mobile : </label>
<div class="col-sm-4" style="font-size:
15px; padding-top: 6px;">
<?php if(isset($info->mobile))
echo $info->mobile; ?>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label no-padding-
right"> Upload 1 </label>
<div class="col-sm-4">
<input type="file"
name="imagepath1" id="imagepath1" class="form-control" >
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label no-padding-
right"> Upload 2 </label>
<div class="col-sm-4">
<input type="file"
name="imagepath2" id="imagepath2" class="form-control" >
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label no-padding-
right"> Upload 3 </label>
<div class="col-sm-4">
<input type="file"
name="imagepath3" id="imagepath3" class="form-control" >
</div>
</div>
#Getting Objects
$commonobj = new Default_Models_Common();
?>
<div class="row">
<div class="col-xs-12">
<!-- PAGE CONTENT BEGINS -->
<div class="row" id="indexcontent">
<div class="col-xs-12">
<h3 class="header smaller lighter blue"><b>Insurance - Manage
Customers</b></h3>
<!-- message div-->
<?php if($this->msg) { ?>
<div class="row">
<div class="alert alert-block alert-success">
<button type="button" class="close" data-
dismiss="alert">
<i class="ace-icon fa fa-times"></i>
</button>
<i class="ace-icon fa fa-check green"></i>
<strong class="green">
<?php echo $this->msg; ?>
</strong>
</div>
</div>
<?php } ?>
<?php if($this->accounts) { $inc = 1; ?><br>
<div class="row">
<table width="98%" class="table table-
striped table-bordered table-hover">
<thead>
<tr>
<th
class="center">Si.no</th>
<th
class="center">Customer Info</th>
<th
class="center">Vehical Info</th>
<th
class="center">Insurance Info</th>
<th
class="center">Action</th>
</tr>
</thead>
<tbody>
<?php foreach ($this-
>accounts as $mkey=>$info){ ?>
<tr>
<td
class="center"><?php echo $inc; ?></td>
<td >
<strong>Name
: </strong> <?php echo ucfirst($info->customername); ?><br>
<strong>Email
: </strong> <?php echo $info->email; ?><br>
<td>
<td>
<?php if($info-
>claimstatus == 2) { ?>
<strong
style="color:red">Already claim rejected</strong>
<?php } ?>
<?php if($info-
>claimstatus == 1) { ?>
<strong
style="color:green">Already claim approved</strong>
<?php } ?>
<br><a
title="View info" class="blue " href="<?php echo $this-
>httphost.'customers/view?insid='.$info->insid; ?>">
<i
class="ace-icon fa fa-search bigger-130 fa-lg"></i>
</a>
</td>
</tr>
<?php $inc++; } ?>
</tbody>
</table>
</div>
<?php } else { ?>
<div class="row"><br><br>
<div class="col-sm-12">
<div class="alert alert-danger">
<strong>Customer insurance not
found</strong>
</div>
</div>
</div>
<?php } ?>
</div>
</div>
</div>
</div>
3. info
<?php
#Getting Objects
$commonobj = new Default_Models_Common();
$info = $this->accounts[0];
?>
<style>
.error{
color:red;
}
textarea{
border-radius: 0px;
}
</style>
<div class="row">
<div class="col-xs-12">
<!-- PAGE CONTENT BEGINS -->
<div class="row">
<div class="col-xs-12">
<h3 class="header smaller lighter blue" style=" text-align:
center;"><strong>Policy Details </strong></h3>
<div class="row">
<div class="col-xs-12" style="text-align: center;">
<form method="post" id="balform" >
<input name="inscode" value="<?php echo
$this->inscode; ?>" placeholder="Insurance Code" type="text"
style="width: 30%;">
<button class="btn btn-primary btn-sm
scshowfullloading" type="submit">
<i class="ace-icon fa fa-search icon-on-right
bigger-110 "></i> Search
</button>
</form>
</div>
</div>
</div>
<div class="form-group">
<label style="font-weight: bold;" class="col-sm-
2 control-label no-padding-right"> Date of Birth : </label>
<div class="col-sm-4" style="font-size: 15px;
padding-top: 6px;">
<?php if(isset($info->gender)) echo
$info->gender; ?>
</div>
<label style="font-weight: bold;" class="col-sm-2
control-label no-padding-right"> Address : </label>
<div class="col-sm-4" style="font-size: 15px;
padding-top: 6px;">
<?php if(isset($info->address)) echo
$info->address; ?>
</div>
</div>
</div>
<div class="form-group">
<label style="font-weight: bold;" class="col-
sm-2 control-label no-padding-right"> Vehical color : </label>
<div class="col-sm-4" style="font-size: 15px;
padding-top: 6px;">
<?php if(isset($info->color)) echo
$info->color; ?>
</div>
<label style="font-weight: bold;" class="col-
sm-2 control-label no-padding-right">Manufacture Date : </label>
<div class="col-sm-4" style="font-size: 15px;
padding-top: 6px;">
<?php if(isset($info-
>manufacturedate)) echo $info->manufacturedate; ?>
</div>
</div>
<div class="form-group ">
<label style="font-weight: bold;" class="col-sm-2
control-label no-padding-right"> Vehical cost : </label>
<div class="col-sm-4" style="font-size: 15px;
padding-top: 6px;">
<?php if(isset($info->vehicalcost)) echo
$info->vehicalcost; ?>
</div>
</div>
</div>
</div>
<div class="form-group">
<label style="font-weight: bold;" class="col-
sm-2 control-label no-padding-right">Vaild From : </label>
<div class="col-sm-4" style="font-size: 15px;
padding-top: 6px;">
<?php if(isset($info->insurefrom)) echo
$info->insurefrom; ?>
</div>
<label style="font-weight: bold;" class="col-
sm-2 control-label no-padding-right">Vaild To : </label>
<div class="col-sm-4" style="font-size: 15px;
padding-top: 6px;">
<?php if(isset($info->insureto)) echo
$info->insureto; ?>
</div>
</div>
</div>
<h3 class="header smaller lighter
blue"><strong>Claim Details</strong></h3>
<div class="form-group">
<?php if(empty($this->claimhistory)) { ?>
<div class="col-sm-12">
<div class="alert alert-danger">
<strong>Claim details not
found</strong>
</div>
</div>
<?php } else { ?>
<?php if($info->claimstatus == 0) { ?>
<div class="col-sm-12" style="padding-top:
15px;">
<div class="alert alert-success">
<strong>Claim Request
Received</strong>
</div>
</div>
<?php } ?>
<?php if($info->claimstatus == 1) { ?>
<div class="col-sm-12" style="padding-top:
15px;">
<div class="alert alert-success">
<strong>Claim Request Approved on
<?php echo date('d-m-Y', strtotime($info->claimdate));?> with Rs : <?php
echo $info->claimamt; ?></strong>
</div>
</div>
<?php } ?>
<?php if($info->claimstatus == 2) { ?>
<div class="col-sm-12" style="padding-top:
15px;">
<div class="alert alert-danger">
<strong>Claim Request Rejectedon <?
php echo date('d-m-Y', strtotime($info->claimdate));?></strong>
</div>
</div>
<?php } ?>
var response =
JSON.parse(resdata);
if(typeof response
=='object') {
if(response.code ==
200){
}
alert(response.msg);
location.reload();
} else {
alert('Error in
saving');
}
$('#fullloading').hide();
},
error: function(){
alert('Error in saving');
$('#fullloading').hide();
}
});
}
}
</script>
[2] Sana Ullah, Pervez Khan, Nimamat Ullah Sahnaz Saleem, Henry Higgins,
and kyung sap Kwak, “Review of wireless Body area Network for Medical
applications”, arXiv:1001.0831v3[cs.N1], pp. 1- 3, 3August 2020.
[4] Nabil Ali Alrajeh, Jaime Lloret, and Alejandro Canovas,"A Framework for
obesity control using a wireless Body sensor network”, International jouranl of
distribution sensor networks Volume 2014, pp. 2-3, July 2016