-
Notifications
You must be signed in to change notification settings - Fork 24
/
addborrower.php
105 lines (100 loc) · 5.25 KB
/
addborrower.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<?php
include_once "inc/header.php";
include_once "inc/sidebar.php";
?>
<?php
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
$inserted = $emp->addBorrower($_POST,$_FILES);
}
?>
<h3 class="page-heading mb-4">Add Borrower</h3>
<h5 class="card-title p-3 bg-info text-white rounded">Borrower Personal Details</h5>
<div class="container">
<?php
if (isset($inserted)){
?>
<div id="successMessage" class="alert alert-success alert-dismissible">
<a href="#" class="close" data-dismiss="alert" aria-label="close">×</a>
<?php echo $inserted; ?>
</div>
<?php
}
?>
<form action="" method="post" enctype="multipart/form-data" id="add_borrower_form">
<div class="form-group row">
<label for="inputBorrowerFirstName" class="text-right col-2 font-weight-bold col-form-label">Full Name</label>
<div class="col-sm-9">
<input type="text" name="borrower_name" class="form-control" id="inputBorrowerFirstName" placeholder="Enter First Name Only" value="">
</div>
</div>
<div class="form-group row">
<label for="inputBorrowerUniqueNumber" class="text-right col-2 font-weight-bold col-form-label">National ID number</label>
<div class="col-sm-9">
<input type="text" name="borrower_nid" class="form-control" id="inputBorrowerUniqueNumber" placeholder="Unique Number" value="">
<p class="text-muted">this id number must be unique otherwise you get error message</p>
</div>
</div>
<div class="form-group row">
<label for="inputBorrowerGender" class="text-right col-2 font-weight-bold col-form-label">Gender</label>
<div class="col-sm-6">
<select class="form-control" name="borrower_gender">
<option value="Male">Male</option>
<option value="Female">Female</option>
</select>
</div>
</div>
<div class="form-group row">
<label for="inputBorrowerMobile" class="text-right col-2 font-weight-bold col-form-label">Mobile</label>
<div class="col-sm-9">
<input type="text" name="borrower_mobile" class="form-control positive-integer" id="inputBorrowerMobile" placeholder="Numbers Only" value="">
</div>
</div>
<div class="form-group row">
<label for="inputBorrowerEmail" class="text-right col-2 font-weight-bold col-form-label">Email</label>
<div class="col-sm-9">
<input type="text" name="borrower_email" class="form-control" id="inputBorrowerEmail" placeholder="Email" value="">
</div>
</div>
<div class="form-group row">
<!-- list($day,$mon,$year) = explode('/', $launch_date);
$launch_date = "$year-$mon-$day"; -->
<label for="inputBorrowerDob" class="text-right col-2 font-weight-bold col-form-label">Date of Birth</label>
<div class="col-sm-6">
<input type="date" name="borrower_dob" class="form-control is-datepick" id="inputBorrowerDob" value="">
</div>
</div>
<hr>
<div class="form-group row">
<label for="inputBorrowerAddress" class="text-right font-weight-bold col-2 col-form-label">Address</label>
<div class="col-sm-9">
<input type="text" name="borrower_address" class="form-control" id="inputBorrowerAddress" placeholder="Address" value="">
</div>
</div>
<div class="form-group row">
<label for="inputBorrowerEORS" class="text-right font-weight-bold col-2 col-form-label">Working Status</label>
<div class="col-sm-4">
<select class="form-control" name="borrower_working_status" id="inputBorrowerEORS">
<option value="Employee">Employee</option>
<option value="Owner">Owner</option>
<option value="Student">Student</option>
<option value="Unemployed">Unemployed</option>
<option value="other">Other</option>
</select>
</div>
</div>
<hr>
<div class="form-group row">
<label for="user_picture" class="text-right font-weight-bold col-2 col-form-label">Borrower Photo</label>
<div class="col-sm-9">
<input type="file" id="photo_file" name="image">
</div>
</div>
<hr>
<div class="box-footer">
<button type="submit" name="submit" class="btn btn-info pull-right" data-loading-text="<i class='fa fa-spinner fa-spin '></i> Please Wait">Submit</button>
</div><!-- /.box-footer -->
</form>
</div>
<?php
include_once "inc/footer.php";
?>