-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
209 lines (169 loc) · 7.86 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
<?php
// Connecting to database
$db = mysqli_connect('localhost','root','','solarhomexwa')
or die('Error connecting to MySQL server.');
//mysql create good start
$query = "SELECT * FROM solarhome";
mysqli_query($db, $query);
$result = mysqli_query($db, $query);
$row = mysqli_fetch_array($result);
// trying to insert so far so good
// Sytax error problem=https://www.w3schools.com/php/php_mysql_insert.asp
//$insert_value="INSERT INTO solarhome (id, company, phone, email, location, dc, titlt, ratetype, tkrate, result, result_date) VALUES (NULL, '".$_POST["company"]."','".$_POST["email"]."','".$_POST["phone"]."','".$_POST["location"]."','".$_POST["dc"]."','".$_POST["titlt"]."','".$_POST["ratetype"]."','".$_POST["rate"]."','', '')";
//if (mysqli_query($db, $insert_value)) {
// echo "New record created successfully";
//} else {
// echo "Error: " . $insert_value . "<br>" . mysqli_error($db);
//}
// Hmm. now submit button click insert into database.
// closing database connection
// no need to close now mysqli_close($db);
?>
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no" />
<title>Solar Home BD </title>
<<<<<<< HEAD
=======
<link rel="shortcut icon" type="image/x-icon" href="images/SHNlogo.png" />
>>>>>>> 3b03daa5faa0af2d6862d3e19805b2af826d1aeb
<link rel='dns-prefetch' href='//fonts.googleapis.com' />
<link rel='dns-prefetch' href='//s.w.org' />
<link rel='stylesheet' id='edn-font-awesome-css' href='css/font-awesome.css' type='text/css' media='all' />
<link rel='stylesheet' id='edn-frontend-style-css' href='css/frontend.css?ver=4.9.7' type='text/css' media='all' />
<link rel='stylesheet' id='edn-google-fonts-style-css' href='//fonts.googleapis.com/css?family=Roboto&ver=4.9.7' type='text/css' media='all' />
<link rel='stylesheet' id='eight-sec-google-fonts-css' href='//fonts.googleapis.com/css?family=Open+Sans%3A400%2C300%2C300italic%2C400italic%2C600%2C600italic%2C700italic%2C700%2C800%2C800italic%7COswald%3A400%2C300%2C700%7CRaleway%3A400%2C300%2C300italic%2C400italic%2C500%2C500italic%2C600%2C600italic%2C700%2C700italic%2C800italic%2C800%2C900%2C900italic&ver=4.9.7' type='text/css' media='all' />
<link rel='stylesheet' id='bxslider-css-css' href='css/jquery.bxslider.css?ver=4.9.7' type='text/css' media='all' />
<link rel='stylesheet' id='awesomse-font-css-css' href='css/font-awesome.css?ver=4.9.7' type='text/css' media='all' />
<link rel='stylesheet' id='animate-css-css' href='css/animate.css' type='text/css' media='all' />
<link rel='stylesheet' id='eight-sec-style-css' href='css/style.css?ver=4.9.7' type='text/css' media='all' />
<link rel='stylesheet' id='eight-sec-responsive-css-css' href='css/responsive.css?ver=4.9.7' type='text/css' media='all' />
<link rel='stylesheet' id='calculator' href='css/calculator.css' type='text/css' media='all' />
<link rel="stylesheet" href="css/w3.css">
<script type='text/javascript' src='js/jquery/jquery.js'></script>
<script type='text/javascript' src='js/jquery/jquery-migrate.min.js'></script>
<script type='text/javascript' src='plugin/8-degree-notification-bar/js/frontend/jquery.bxslider.min.js?ver=4.1.2'></script>
<script type='text/javascript' src='plugin/8-degree-notification-bar/js/frontend/jquery.marquee.min.js?ver=1.0.0'></script>
<script type='text/javascript'>
/* <![CDATA[ */
<<<<<<< HEAD
var ajaxsubs = {"ajaxurl":"http:\/\/localhost\/Solar%20Home%20Bd\/wp-admin\/admin-ajax.php","check_show_once":"0","control_type":"1"};
=======
var ajaxsubs = {"ajaxurl":"","check_show_once":"0","control_type":"1"};
>>>>>>> 3b03daa5faa0af2d6862d3e19805b2af826d1aeb
/* ]]> */
</script>
<script type='text/javascript' src='plugin/8-degree-notification-bar/js/frontend/frontend.js?ver=1.1.7'></script>
<style>.post-thumbnail img[src$='.svg'] { width: 100%; height: auto; }</style><style type='text/css' media='all'>.site-header.fixed { background: url("images/SHNlogo.png") no-repeat scroll left top; background-size: cover; }
.site-header.fixed .header-sticky-overlay:before {
content: "";
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
z-index: -1;
}</style>
<script type="text/javascript">
jQuery(document).ready(function($){
smoothScroll.init();
});
</script>
<script>
jQuery(document).ready(function($){
//menu active
$('.menu .menu-item').each(function(){
$(this).find('li:first').addClass('active');
});
// smooth scroll with active menu class in header
$(window).scroll(function() {
var windscroll = $(window).scrollTop();
if (windscroll >= 100) {
//$('nav').addClass('fixed');
$('#content .section').each(function(i) {
if ($(this).position().top <= windscroll + 50 ) {
$('.menu > li.menu-item').removeClass('active');
$('.menu > li.menu-item').eq(i).addClass('active');
}
});
}
else {
$('.menu > li.menu-item').removeClass('active');
$('.menu > li.menu-item:first').addClass('active');
}
}).scroll();
});
</script>
<style type="text/css">.recentcomments a{display:inline !important;padding:0 !important;margin:0 !important;}</style>
<style type="text/css">
.site-title,
.site-description {
position: absolute;
clip: rect(1px, 1px, 1px, 1px);
}
/*
You can add your own CSS here.
Click the help icon above to learn more.
*/
</style>
</head>
<body>
<?php include 'views/header.php';?>
<!-- #masthead -->
<div id="content" class="site-content" style="margin-top: 20px;padding-top: 15px;">
<script type="text/javascript">
jQuery(function($){
$('.main-slider').bxSlider({
pager: true,
controls: true,
mode: 'fade',
auto : true
});
});
</script>
<!--slider -->
<?php include 'views/slider.php' ?>
<!-- end of slider section -->
<!-- about section -->
<?php include 'views/about.php' ?>
<!-- end of portfolio section -->
<!-- calculator section -->
<?php include 'views/calculator.php' ?>
<!-- end of calculator section -->
<!-- portfolio section -->
<?php include 'views/portfolio.php' ?>
<!-- end of portfolio section -->
<!-- blog section -->
<!-- testimonial section -->
<!-- end of testimonial section -->
<!-- contact section -->
<?php include 'views/contact.php' ?>
<!-- end of contact section -->
</div><!-- #content -->
<!--footer-->
<?php include 'views/footer.php'; ?>
<!-- #colophon -->
</div><!-- #page -->
<a href="#" id="go-to-top" title='Go to top'>⇧</a>
<div id="jiXlCTRtJCEE" class="DMSjIEUbYHwx" style="background:#dddddd;max-width:720px;z-index:9999999; "></div>
<?php include 'views/scripts.php' ?>
<script>
var modal = document.querySelector(".modal");
var trigger = document.querySelector(".trigger");
var closeButton = document.querySelector(".close-button");
function toggleModal() {
modal.classList.toggle("show-modal");
}
function windowOnClick(event) {
if (event.target === modal) {
toggleModal();
}
}
trigger.addEventListener("click", toggleModal);
closeButton.addEventListener("click", toggleModal);
window.addEventListener("click", windowOnClick);
</script>
</body>
</html>