-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
345 lines (328 loc) · 13.4 KB
/
index.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
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
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
<!DOCTYPE html>
<?php
header('Content-Type: text/html; charset=iso-8859-1');
//ini_set('display_errors', '1');
include 'functions.php';
if (isset($_GET['id'])) {
$vid = $_GET['id'];
loadresult("http://canadawhiz.com/api/?type=readresult&value=$vid");
}
if (isset($_GET['search'])) {
$search = $_GET['search'];
}?>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="Cache-control" content="public">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<?php if (isset($vid)) {
?>
<?php if (strlen(company_name) == 0) {
} else {
echo '<title>'.company_name.' - '.(substr(telephone_number, 0, -3).'xxx').' Information provided by Canadawhiz.com</title>';
}
?>
<?php
}; ?>
<!-- Bootstrap -->
<link rel="stylesheet" href="http://canadawhiz.com/css/bootstrap.css">
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<nav class="navbar navbar-default">
<div class="container-fluid">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button>
<a class="navbar-brand" href="http://canadawhiz.com">canadawhiz.com</a> </div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<!-- <ul class="nav navbar-nav">
<li class="active"><a href="#">Link <span class="sr-only">(current)</span></a> </li>
<li><a href="#">Link</a> </li>
</ul>
-->
<form action="http://canadawhiz.com/" method="get" class="navbar-form navbar-right" role="search">
<div class="form-group">
<input name="search" type="text" class="form-control" id="search" placeholder="Search">
</div>
<button type="submit" class="btn btn-default">Submit</button>
</form>
<!-- <ul class="nav navbar-nav navbar-right">
<li><a href="#">Link</a> </li>
<li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Dropdown <span class="caret"></span></a>
<ul class="dropdown-menu" role="menu">
<li><a href="#">Action</a> </li>
<li><a href="#">Another action</a> </li>
<li><a href="#">Something else here</a> </li>
<li class="divider"></li>
<li><a href="#">Separated link</a> </li>
</ul>
</li>
</ul>-->
</div>
<!-- /.navbar-collapse -->
</div>
<!-- /.container-fluid -->
</nav>
<?php if (isset($vid)) {
?>
<!-- If the company id is set -->
<header>
<div class="jumbotron">
<div class="container">
<div class="row">
<div class="col-xs-12">
<h1 class="text-center"><?php echo company_name;
?></h1>
<?php
$prof = profile;
$array = explode('.', $prof);
$prof = $array[0];
?>
<p class="text-center">
<?php if (strlen(profile) == 0) {
} else {
echo $prof;
}
?>
</p>
<p> </p>
<p class="text-center">
<?php if (strlen(telephone_number) == 0) {
} else {
echo '<a class="btn btn-primary btn-lg" href="tel:'.telephone_number.'" role="button">'.telephone_number.'</a>';
}
?>
<?php if (strlen(email) == 0) {
} else {
echo '<a class="btn btn-primary btn-lg" href="mailto:'.email.'" role="button">'.email.'</a>';
}
?>
<?php if (strlen(website) == 0) {
} else {
echo '<a class="btn btn-primary btn-lg" href="'.website.'" role="button">'.website.'</a>';
}
?>
</p>
</div>
</div>
</div>
</div>
</header>
<!-- / HEADER -->
<!-- SECTION-1 -->
<section>
<div class="container ">
<div class="row">
<div class="col-lg-12 page-header text-center">
<h2>Everything we have on <?php echo company_name;
?></h2>
</div>
</div>
<div class="row">
<organization itemscope itemtype="http://schema.org/Organization">
<?php if (strlen(company_name) == 0) {
} else {
echo '<div class="col-6 col-lg-6"><blockquote><p><span itemprop="name" content="'.company_name.'">'.company_name.'</span></p><small>company name</small></blockquote></div>';
}
?>
<?php if (strlen(telephone_number) == 0) {
} else {
echo '<div class="col-6 col-lg-6"><blockquote><p><span itemprop="telephone" content="'.telephone_number.'">'.telephone_number.'</span></p><small>telephone number</small></blockquote></div>';
}
?>
<?php if (strlen(fax_number) == 0) {
} else {
echo '<div class="col-6 col-lg-6"><blockquote><p><span itemprop="faxNumber" content="'.fax_number.'">'.fax_number.'</span></p><small>fax number</small></blockquote></div>';
}
?>
<?php if (strlen(email) == 0) {
} else {
echo '<div class="col-6 col-lg-6"><blockquote><p><span itemprop="email" content="'.email.'"><a href="mailto:'.email.'" >'.email.'</a></span></p><small>email</small></blockquote></div>';
}
?>
<?php if (strlen(website) == 0) {
} else {
echo '<div class="col-6 col-lg-6"><blockquote><p><a href="'.website.'" itemprop="url" rel="nofollow target="_new" content="'.website.'">'.website.'</a></p><small>website</small></blockquote></div>';
}
?>
</organization>
<address itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">
<?php if (strlen(mailing_address) == 0) {
} else {
echo '<div class="col-6 col-lg-6"><blockquote><p><span itemprop="streetAddress" content="'.mailing_address.'">'.mailing_address.'</span>, <span itemprop="addressRegion" content="'.mailing_province.'">'.mailing_province.'</span>, <span itemprop="postalCode" content="'.mailing_postal.'">'.mailing_postal.'</span>, <span itemprop="addressCountry" content="Canada">Canada</span></p><small>mailing address</small></blockquote></div>';
}
?>
</address>
<?php if (strlen(average_earning) == 0) {
} else {
echo '<div class="col-6 col-lg-6"><blockquote><p>'.average_earning.'</p><small>average earning</small></blockquote></div>';
}
?>
<?php if (strlen(primary_contact_name) == 0) {
} else {
echo '<div class="col-6 col-lg-6"><blockquote><p>'.primary_contact_name.'</p><small>primary contact name</small></blockquote></div>';
}
?>
<?php if (strlen(primary_contact_phone) == 0) {
} else {
echo '<div class="col-6 col-lg-6"><blockquote><p>'.primary_contact_phone.'</p><small>primary contact phone</small></blockquote></div>';
}
?>
<?php if (strlen(primary_contact_email) == 0) {
} else {
echo '<div class="col-6 col-lg-6"><blockquote><p>'.primary_contact_email.'</p><small>primary contact email</small></blockquote></div>';
}
?>
<?php if (strlen(other_contacts) == 0) {
} else {
echo '<div class="col-6 col-lg-6"><blockquote><p>'.other_contacts.'</p><small>other contacts</small></blockquote></div>';
}
?>
<?php if (strlen(year_founded) == 0) {
} else {
echo '<div class="col-6 col-lg-6"><blockquote><p>'.year_founded.'</p><small>year founded</small></blockquote></div>';
}
?>
<?php if (strlen(industry) == 0) {
} else {
echo '<div class="col-6 col-lg-6"><blockquote><p>'.industry.'</p><small>industry</small></blockquote></div>';
}
?>
<?php if (strlen(naics_primary) == 0) {
} else {
echo '<div class="col-6 col-lg-6"><blockquote><p>'.naics_primary.'</p><small>naics primary</small></blockquote></div>';
}
?>
<?php if (strlen(naics_secondary) == 0) {
} else {
echo '<div class="col-6 col-lg-6"><blockquote><p>'.naics_secondary.'</p><small>naics secondary</small></blockquote></div>';
}
?>
<?php if (strlen(sic_primary) == 0) {
} else {
echo '<div class="col-6 col-lg-6"><blockquote><p>'.sic_primary.'</p><small>sic primary</small></blockquote></div>';
}
?>
<?php if (strlen(sic_secondary) == 0) {
} else {
echo '<div class="col-6 col-lg-6"><blockquote><p>'.sic_secondary.'</p><small>sic secondary</small></blockquote></div>';
}
?>
<?php if (strlen(sales_volume) == 0) {
} else {
echo '<div class="col-6 col-lg-6"><blockquote><p>'.sales_volume.'</p><small>sales volume</small></blockquote></div>';
}
?>
<?php if (strlen(number_of_employees) == 0) {
} else {
echo '<div class="col-6 col-lg-6"><blockquote><p>'.number_of_employees.'</p><small>number of employees</small></blockquote></div>';
}
?>
<?php if (strlen(products_services) == 0) {
} else {
echo '<div class="col-6 col-lg-6"><blockquote><p>'.products_services.'</p><small>products services</small></blockquote></div>';
}
?>
<?php if (strlen(business_activity) == 0) {
} else {
echo '<div class="col-6 col-lg-6"><blockquote><p>'.business_activity.'</p><small>business activity</small></blockquote></div>';
}
?>
<?php if (strlen(profile) == 0) {
} else {
echo '<div class="col-6 col-lg-6"><blockquote><p>'.profile.'</p><small>profile</small></blockquote></div>';
}
?>
</div>
</div>
<!-- If the company id is set -->
<?php
}; ?>
<?php if (isset($search)) {
?>
<!-- If search is used -->
<div class="container ">
<div class="row">
<div class="col-lg-12 page-header text-center">
<h2>Search Results</h2>
</div>
</div>
<?php loadresults("http://canadawhiz.com/api/?type=search&value=$search");
?>
</div>
<!-- If search is used -->
<?php
}; ?>
<div class="container ">
<div class="row">
<div class="col-lg-12 page-header text-center">
<h2>Companies of the Day</h2>
</div>
</div>
<?php loadrandomresults('http://canadawhiz.com/api/?type=random&value=6');?>
</div>
<!--
<div class="jumbotron">
<div class="container">
<div class="row">
<div class="col-xs-12 col-md-9 col-lg-9">
<p class="lead">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Tempore, praesentium, autem, veritatis error quidem eos fuga atque asperiores magnam deleniti necessitatibus sequi quo</p>
</div>
<div class=" text-center col-sm-6 col-lg-3 col-sm-offset-3 col-md-3 col-xs-offset-4 col-xs-5 col-lg-offset-0"> <a class="btn btn-block btn-lg btn-success" href="#" title="">Sign up now!</a> </div>
</div>
</div>
</div>
-->
<!-- /container -->
<div class="container">
<div class="row">
<div class="col-lg-12 page-header text-center">
<h2>Our Services</h2>
</div>
</div>
<div class="row">
<div class="col-xs-6 col-lg-4">
<h3>Add your Business</h3>
<p> <em class="icon-desktop "></em>If you wish to be part of our directory or want to add your business or contact us for any other enquiry - like featured ads use the link bellow</p>
<p><a class="btn btn-default" href="mailto:info@upg.gr?subject=add entry on canadawhiz.com&body=Hi,please add my company on your database : Here are the details :">Add Business </a></p>
</div>
<div class="col-xs-6 col-lg-4">
<h3>Claim / Edit your Business</h3>
<p> <i class="icon-desktop "></i> Do you something not correct in your entry? We charge an administration fee of 10$ per change (currently free). Click the link bellow to pay the fee via Paypal and your change will be implemented in the next 5 business days.</p>
<?php echo isset($vid) ? '<p><a class="btn btn-default" href="mailto:info@upg.gr?subject=edit entry from canadawhiz.com&body=Hi,please edit my company on your database : '.$_SERVER['REQUEST_URI'].' Here are the changes I need :">Edit Entry </a></p>' : ' '; ?>
</div>
<div class="col-xs-6 col-lg-4">
<h3>Request Removal</h3>
<p> <i class="icon-desktop "></i> Our Database comes from the official governemental Canadian website. If you do not wish to be listed on this directory any more, click bello and provide some justification / proof of ownership</p>
<?php echo isset($vid) ? '<p><a class="btn btn-default" href="mailto:info@upg.gr?subject=remove entry from canadawhiz.com&body=Hi,please remove my company from your database : '.$_SERVER['REQUEST_URI'].'">Remove Entry </a></p>' : ' '; ?>
</div>
</div>
</div>
<!-- / CONTAINER-->
</section>
<div class="well"> </div>
<!-- FOOTER -->
<footer class="text-center">
<div class="container">
<div class="row">
<div class="col-xs-12">
<p>© Canada Business Directory | Operated by <a href="http://upg.gr" rel="nofollow">upg.gr</a> <?php echo isset($vid) ? '<a HREF="mailto:info@upg.gr?subject=remove entry from canadawhiz.com&body=Hi,please remove my company from your database : '.$_SERVER['REQUEST_URI'].'">Remove Entry</a>' : ' '; ?></p>
</div>
</div>
</div>
</footer>
<!-- / FOOTER -->
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
</body>
</html>