-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstate.php
More file actions
215 lines (187 loc) · 9.76 KB
/
state.php
File metadata and controls
215 lines (187 loc) · 9.76 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
<?php
include('./admin/inc/config.php');
// Check for 'url' parameter in GET request
if (isset($_GET['url'])) {
$url = $_GET['url'];
// Prepare SQL statement to fetch blog details by URL
$statement = $pdo->prepare("SELECT * FROM tbl_state WHERE state_cap_url = ? AND state_font_display = 1");
$statement->execute([$url]);
$blog = $statement->fetch(PDO::FETCH_ASSOC);
// If blog not found, redirect to main blog listing page
if (!$blog) {
header('Location: index.php');
exit;
}
// Assign Blog Details
$state_id = $blog['state_id'];
$state_capital = $blog['state_capital'];
$state_name = $blog['state_name'];
// Canonical URL (optional)
$canonicalUrl = "https://ctrlclick.com.au/state.php?url=" . urlencode($blog['state_cap_url']);
} else {
// Redirect if 'url' parameter is missing
header('Location: index.php');
exit;
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>CtrlClick - Smart Web Development Agency | Australia </title>
<meta name="description" content="Terms & Condition | Smart Web Design Agency| Australia">
<meta name="keywords" content="Terms & Condition | Smart Web Design Agency| Australia">
<!-- Canonical Tag -->
<link rel="canonical" href="<?= $canonicalUrl; ?>" />
<!-- Stylesheets -->
<link rel="preconnect" href="https://fonts.gstatic.com/">
<link href="https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&family=Teko:wght@300;400;500;600;700&display=swap" rel="stylesheet">
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/fontawesome-all.css" rel="stylesheet">
<link href="css/owl.css" rel="stylesheet">
<link href="css/flaticon.css" rel="stylesheet">
<link href="css/linoor-icons-2.css" rel="stylesheet">
<link href="css/animate.css" rel="stylesheet">
<link href="css/jquery-ui.css" rel="stylesheet">
<link href="css/jquery.fancybox.min.css" rel="stylesheet">
<link href="css/hover.css" rel="stylesheet">
<link rel="stylesheet" href="css/jarallax.css">
<link href="css/custom-animate.css" rel="stylesheet">
<link href="css/style.css" rel="stylesheet">
<link href="css/swiper.min.css" rel="stylesheet">
<!-- rtl css -->
<link href="css/rtl.css" rel="stylesheet">
<!-- Responsive File -->
<link href="css/responsive.css" rel="stylesheet">
<link href="css/mycss.css" rel="stylesheet">
<!-- Color css -->
<link rel="stylesheet" id="jssDefault" href="css/colors/color-default.css">
<link rel="shortcut icon" href="images/favicon.png" id="fav-shortcut" type="image/x-icon">
<link rel="icon" href="images/favicon.png" id="fav-icon" type="image/x-icon">
<!-- Responsive Settings -->
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<!-- fontawesome cnd links -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css" integrity="sha512-Evv84Mr4kqVGRNSgIGL/F/aIDqQb7xQ2vcrdIwxfjThSH8CSR7PBEakCr51Ck+w+/U6swU2Im1vVX0SVk9ABhg==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<style>
.sidebar .recent-posts .post-thumb {
width: 70px;
height: 70px;
border-radius: 50% !important;
}
.sidebar .recent-posts .post-thumb img {
border-radius: 50% !important;
width: 70px;
height: 70px;
object-fit: cover;
}
</style>
</head>
<body>
<div class="page-wrapper">
<!-- Main Header -->
<?php include('include/header.php'); ?>
<!-- End Main Header -->
<!-- Banner Section -->
<section class="page-banner">
<div class="image-layer" style="background-image:url(images/background/image-7.jpg);"></div>
<div class="shape-1"></div>
<div class="shape-2"></div>
<div class="banner-inner">
<div class="auto-container">
<div class="inner-container clearfix">
<h1 id="yellow-color">Website Designing In <?= $state_capital; ?> </h1>
<div class="page-nav">
<ul class="bread-crumb clearfix">
<li><a href="index.php">Home</a></li>
<li class="active">Website Designing In <?= $state_capital; ?> </li>
</ul>
</div>
</div>
</div>
</div>
</section>
<!--End Banner Section -->
<div class="sidebar-page-container">
<div class="auto-container">
<div class="row clearfix">
<!--Content Side-->
<div class="content-side col-lg-8 col-md-12 col-sm-12">
<div class="blog-details">
<!--News Block-->
<div class="post-details">
<div class="inner-box">
<div class="lower-box">
<h4>Website Designing In <?= $state_capital; ?></h4>
<div class="text" style="color: #01395c;">
<p>Website Development in Brisbane, Gold Coast & Sunshine Coast
As a leading <?= $state_capital; ?> website development company, Ctrl Click builds powerful, performance-driven websites tailored for local industries across Brisbane, Gold Coast, and the Sunshine Coast. From tourism operators to service-based businesses, we create fast, mobile-responsive, and visually compelling websites that help you connect, convert, and grow.
Proud to be recognized as an Australia trusted website design company, we combine clean code, local SEO strategy, and seamless functionality to ensure your site delivers results — not just traffic.</p>
</div>
<h5>Why Choose Ctrl Click?</h5>
<div class="text" style="color: #01395c;">
<p>
⦁ Australia’s Trusted Web Design Partner <br>
⦁ Secure, Scalable & Future-Ready<br>
⦁ Proven Results Across Industries<br>
⦁ Experts in WordPress, Shopify, Webflow & Custom CMS<br>
⦁ Fast, Responsive & SEO-Optimized<br>
</p>
</div>
</div>
</div>
</div>
</div>
</div>
<!--Sidebar Side-->
<div class="sidebar-side col-lg-4 col-md-12 col-sm-12">
<aside class="sidebar blog-sidebar">
<div class="sidebar-widget archives">
<div class="widget-inner" style="background-color: #01395c !important;">
<div class="sidebar-title">
<h4 style="color: white;"><?= $state_capital; ?> Belong - City </h4>
</div>
<ul>
<?php
$city_stmt = $pdo->prepare("SELECT * FROM tbl_city WHERE state_id = ? ORDER BY city_name ASC");
$city_stmt->execute([$state_id]);
$cities = $city_stmt->fetchAll(PDO::FETCH_ASSOC);
foreach ($cities as $city) {
?>
<li><a href="city-details.php?url=<?= $city['url']; ?>" style="color: #ffffff;"><?= $city['city_name']; ?></a></li>
<?php } ?>
<li><a href="city.php" style="color: #ffffff;">View All</a></li>
</ul>
</div>
</div>
</aside>
</div>
</div>
</div>
</div>
<!-- Main Footer Start -->
<?php include('include/footer.php'); ?>
<!-- Main Footer End -->
</div>
<!--End pagewrapper-->
<script src="js/jquery.js"></script>
<script src="js/popper.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/TweenMax.js"></script>
<script src="js/jquery-ui.js"></script>
<script src="js/jquery.fancybox.js"></script>
<script src="js/owl.js"></script>
<script src="js/mixitup.js"></script>
<script src="js/knob.js"></script>
<script src="js/appear.js"></script>
<script src="js/wow.js"></script>
<script src="js/jQuery.style.switcher.min.js"></script>
<script type="text/javascript" src="../../cdnjs.cloudflare.com/ajax/libs/js-cookie/2.1.2/js.cookie.min.js">
</script>
<script src="js/jquery.easing.min.js"></script>
<script src="js/custom-script.js"></script>
<script src="js/lang.js"></script>
<script src="../../translate.google.com/translate_a/elementa0d8.js?cb=googleTranslateElementInit"></script>
<script src="js/color-switcher.js"></script>
</body>
</html>