-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcertificate_ed.php
More file actions
235 lines (204 loc) · 7.74 KB
/
certificate_ed.php
File metadata and controls
235 lines (204 loc) · 7.74 KB
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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
<?php include('include/config.php'); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<style type="text/css">
.page{
width:1105px;
min-height:770px;
background:url('images/rd-certificate-BG.png') no-repeat center;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
border:1px solid #ccc;
font-family:"Trebuchet MS", Arial, Helvetica, sans-serif;
position:relative;
}
.clear{ clear:both;}
.alignright{ text-align:right;}
/* top bar*/
.green, .lightgreen, .red, .lightred{ height:15px; float:left;}
ul.topbar{ padding:0; margin:0;}
ul.topbar li{ margin:0; display:inline-block; width:25%;}
.green{ background-color:#00713d;}
.lightgreen{background-color:#118a61;}
.red{background-color:#8c0b05;}
.lightred{background-color:#e41b23;}
ul.rd-ref li{ list-style:none;}
ul.rd-ref li span{ color:#666; }
ul.rd-ref li:first-child{ margin-bottom:15px;}
/* top bar*/
/* header section*/
.rep-logo{background:url('images/rd-report-logo.png');}
.halfwidth{ width:48%; margin-right:1%; float:left;}
.largheading{ font-size:48px; color:#ffffff; background:#000; text-align:center;}
/* header section*/
/* body section*/
.certifytxt{
text-align:center;
font-size:20px;
color:#666666;
font-family:Arial, 'Helvetica', sans-serif;
}
.certifynam{
width:100%;
text-align:center;
font-size:32px;
color:#006633;
font-family:Arial, 'Helvetica', sans-serif;
}
.certifybag{
width:100%;
text-align:center;
font-size:32px;
color:#000000;
font-family:Arial, 'Helvetica', sans-serif;
}
.certifytxt span{ color:#000000;}
/* body section*/
.pinfor{ width:60%; margin:auto; font-style:italic; color:#666666; font-size:16px; border-top:2px solid #ccc; border-bottom:2px solid #ccc; padding-top:10px; padding-bottom:10px;}
.pinfor table tr td{ padding-bottom:10px;}
img.seal{ width: 200px;}
/*footer area*/
.repfooter{ background:#8c0b05; position:absolute; bottom:0; width:100%;}
.repfooter ul{ padding:0; margin:0;}
.repfooter li{ float:left; list-style:none; font-size:14px; text-align:center; color:#ffffff; padding:10px 5px;}
.phone{ width:20%;}
.email{ width:25%; }
.web{ width:50%;}
.web span{}
</style>
</head>
<body>
<?php
$case=false;
if(is_numeric($_REQUEST['id'])){
$case = $_REQUEST['id'];
}
if($case){
$db = new DB();
$varData = $db->select("ver_data","*","v_id=$case");
if(mysql_num_rows($varData)>0){
$varData = mysql_fetch_array($varData);
if(strtolower($varData['v_status'])=='close'){
$vSts = vs_Status(strtolower($varData['v_rlevel']));
if(strtolower($vSts) == 'green'){?>
<div class="page">
<!-- top bar -->
<ul class="topbar">
<li class="green"></li>
<li class="lightgreen"></li>
<li class="red"></li>
<li class="lightred"></li>
</ul>
<div class="clear"></div>
<!-- /top bar -->
<!-- /header section -->
<div class="report-hd">
<div class="halfwidth"><img src="images/rd-report-logo.png" width="153" /></div>
<div class="halfwidth alignright">
<ul class="rd-ref">
<li>Verification Code:<span> <?=bcplcode($varData['v_id'])?></span></li>
<li>Certification Date:<span> <?php
if($varData['v_stdate']!=""){
$varData['v_stdate'] = date("j-M-Y",strtotime($varData['v_stdate']));
}else{
$varData['v_stdate'] = date("j-M-Y",time());
}
echo $varData['v_stdate'];
?></span></li>
<li>Expiry Date: <span><?php
$month = date("m",strtotime($varData['v_stdate']));
$day = date("j",strtotime($varData['v_stdate']));
$year = date("Y",strtotime($varData['v_stdate']));
$timestamp = mktime(0, 0, 0, $month, $day, $year+1);
echo date("j-M-Y",$timestamp)?></span></li>
</ul>
</div>
<div class="clear"></div>
</div>
<div class="clear"></div>
<div class="largheading">Certificate of Verification</div>
<!-- /header section -->
<!-- body section -->
<?php
$asWhere = "v_id=$varData[v_id] AND vc.checks_id=1 AND as_status='Close' AND vc.as_isdlt=0";
$check = $db->select("ver_checks vc INNER JOIN checks ck ON ck.checks_id=vc.checks_id","*",$asWhere);
if(mysql_num_rows($check)>0){
$check = mysql_fetch_assoc($check);
$vuni = $db->select("add_data","*","as_id=$check[as_id] AND d_type='vuni' AND d_isdlt=0");
$vuni = mysql_fetch_array($vuni);
$dmain = $db->select("add_data","*","as_id=$check[as_id] AND d_type='dmain' AND d_isdlt=0");
$dmain = mysql_fetch_array($dmain);
?>
<div class="certifytxt" style="margin-top:15px;">RiskDiscovered has completed the </div>
<div class="certifybag">background verification</div>
<div class="certifytxt"> of </div>
<div class="certifynam"> <?=$varData['v_name']?> </div>
<div class="certifytxt" style="margin-bottom:15px;"> and found clear for:</div>
<div class="pinfor">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="30%">Name of Candidate:</td> <td><?=$varData['v_name']?></td>
</tr>
<tr>
<td width="30%">Father's Name:</td> <td><?=$varData['v_ftname']?></td>
</tr>
<tr>
<td width="30%">Name of Institute:</td> <td><?=$vuni['d_value']?></td>
</tr>
<tr>
<td width="30%">Qualification:</td> <td><?=$dmain['d_value']?></td>
</tr>
</table>
</div>
<?php }?>
<style>
.napbs{
bottom: 75px;
position: absolute;
right: 60px;
}
.disclaimer{
float: left;
font-size: 9px;
margin-left: 40px;
margin-top: 87px;
text-align: justify;
width: 70%;
}
</style>
<div>
<div>
<div class="disclaimer">
<strong> Disclaimer:</strong> This certificate only sets out information obtained from records examined by Background Check Pvt. Ltd. No opinion whatsoever is provided with respect to the individuals who are the subject of the report. It does not constitute recommendations as to what action should be taken. Due care has been exercised to ensure the accurateness of information herein. All personal data provided in this report is intended to be for the sole purpose of client's evaluation and not intended for public dissemination. No part of this publication may be reproduced, photo-copied, stored on a retrieval system, or transmitted without the express written consent from Background Check Pvt. Ltd.
</div>
<div class="napbs">
<img src="images/napbs-logo.png" class="seal" />
</div>
</div>
<!-- /body section -->
<!-- /footer section -->
<div class="repfooter">
<ul>
<li class="phone"> +92 (021) 111-92-92-92 </li>
<li class="email">info@riskdiscovered.com</li>
<li class="web">To verify this certificate please visit <span>http://www.riskdiscovered.com</span></li>
</ul>
</div>
</div>
</div>
<?php
}else{
echo "<h1>The BCPL issues this certificate only for positive case</h1>";
}
}else{
echo "<h1>Verification is under processing...</h1>";
}
}
}?>
</body>
</html>