-
Notifications
You must be signed in to change notification settings - Fork 0
/
customertemp.php
253 lines (220 loc) · 10.7 KB
/
customertemp.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
<?php
require_once 'config.php';
require_once 'function.php';
$query=$pdo->query("select * from about");
$query->execute();
$data=$query->fetchAll();
if($_SESSION['logincustomer']){
echo'
<script>
alert("Anda Sudah login sebagai customer");
</script>
';
}
else{
echo'
<script>
alert("Anda belum login sebagai customer");
window.location.href="logincustomer.php";
</script>
';
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta content="width=device-width, initial-scale=1.0" name="viewport">
<title>MYKI</title>
<meta content="" name="description">
<meta content="" name="keywords">
<link href="assets/img/logomyki.png" rel="icon">
<link href="assets/img/apple-touch-icon.png" rel="apple-touch-icon">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,600;1,700&family=Roboto:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&family=Work+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap" rel="stylesheet">
<link href="assets/vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="assets/vendor/bootstrap-icons/bootstrap-icons.css" rel="stylesheet">
<link href="assets/vendor/fontawesome-free/css/all.min.css" rel="stylesheet">
<link href="assets/vendor/aos/aos.css" rel="stylesheet">
<link href="assets/vendor/glightbox/css/glightbox.min.css" rel="stylesheet">
<link href="assets/vendor/swiper/swiper-bundle.min.css" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.js"></script>
<link href="assets/css/coba.css" rel="stylesheet">
</head>
<body>
<!-- ======= Header ======= -->
<header id="header" class="header d-flex align-items-center">
<div class="container-fluid container-xl d-flex align-items-center justify-content-between">
<a href="indexresponsive.php" class="logo d-flex align-items-center">
<!-- Uncomment the line below if you also wish to use an image logo -->
<img src="assets/img/logomyki.png" style="width:Auto" alt="">
<h1> <?php echo $lang['judul']?></h1>
</a>
<i class="mobile-nav-toggle mobile-nav-show bi bi-list"></i>
<i class="mobile-nav-toggle mobile-nav-hide d-none bi bi-x"></i>
<nav id="navbar" class="navbar">
<ul>
<li><a href="indexresponsive.php"><span> <?php echo $lang ['home']?></span></a>
<!-- <ul>
<li><a href="index.html#home-welcome">About</a></li>
<li><a href="index.html#constructions">Our Service</a></li>
<li><a href="index.html#projects">Current Project</a></li>
</ul> -->
</li>
<li class="dropdown"><a href="aboutresponsive.php"><span> <?php echo $lang ['about']?></span> </i></a>
<ul>
<li><a href="aboutresponsive.php#aboutus"><?php echo $lang ['#about']?></a></li>
<li><a href="aboutresponsive.php#legalitasrespon"><?php echo $lang ['#legalitas']?></a></li>
<li><a href="aboutresponsive.php#targetfokusrespon"><?php echo $lang ['#targetfokus']?></a></li>
<!-- -->
</ul>
</li>
<li><a href="project.php"><?php echo $lang ['project']?></a></li>
<li> <a href="services.php"><span><?php echo $lang ['service']?></span> </a></li>
<li><a href="careerori2.php"><?php echo $lang ['career']?></a></li>
<li class="dropdown" class="active"><a href="#"><span><?php echo $lang ['eproc']?></span> </i></a>
<ul>
<li><a href="loginvendor.php">Vendor / Subcon </a></li>
<li><a href="logincustomer.php">Customer </a></li>
</ul>
</li>
<li><a href="contactus.php"><?php echo $lang['kontak']?></a></li>
<li><a href="logout.php">logout</a></li>
<li><a href="customer2.php?lang=idn"><img class="logoindo" src="assets/img/icon/indonesia.png" alt=""></a></li>
<li><a href="customer2.php?lang=en"><img class="logoeng" src="assets/img/icon/united-kingdom.png" alt=""></a></li>
</nav><!-- .navbar -->
</div>
</header>
<section class="formsupply">
<div class="container supplycontainer">
<h1><?php echo $lang['formrequestproject']?></h1>
<hr>
<form action="insertcustomer.php" method="POST" enctype="multipart/formdata" >
<div class="row">
<div class="col-lg-12">
<button type="button" class="btn btn-primary" id="btn-tambah">Tambah Projek</button>
</div>
</div>
<div class="row">
<div class="col-lg-12">
<table class="table-responsive" style="width:100%;">
<thead>
<th><?php echo $lang['no-request']?></th>
<th><?php echo $lang['namaprojek']?></th>
<th><?php echo $lang['gambar']?></th>
<th><?php echo $lang['boq']?></th>
</thead>
<tbody id="tbl-barang-body">
</tbody>
</table>
</div>
</div>
<div class="row btnSave" style="display:none;">
<div class="col-lg-12">
<button type="submit" class="btn btn-primary"><?php echo $lang['simpan']?></button>
</div>
</div>
</form>
</div>
</section>
<!-- <footer class="ori">
<div class="container">
<div class="row-info">
<div class="col-12">
<B><P>PT MARGA YASA KONSTRUKSI INDONESIA</P></B>
<div class="col">
JL.RADEN PATAH NO. 10, MOJOSARI
</div>
</div>
<div class="col-12">
MOJOKERTO, INDONESIA
</div>
</div>
</div>
<div class="container-social-con">
<div class="row social">
<div class="col-12">
<h3>Contact Us :</h3>
<img class="insta" src="assets/img/footer/instagram-removebg-preview (6).png"><a class="ig" href="https://www.instagram.com/gayakonin/">gayakonin</a>
<img class="hp" src="assets/img/footer/call-removebg-preview (1).png" alt=""><a class="phone"href="">(031)99841021</a>
<img class="mail" src="assets/img/footer/Asset 1.png" alt=""><a class="email"href="">[email protected]</a>
</div>
</div>
</div>
<div class="footero">
© Copyright <strong><span>PT Marga Yasa Konstruksi Indonesia</span></strong>. All Rights Reserved
</div>
</footer>
</body> -->
<footer class="footer-respon fixed-bottom" >
<div class="container-md container-lg-fluid footerbaru">
<div class="atas">
<p>PT MARGA YASA KONSTRUKSI INDONESIA</p>
<p class="alamat1b">JL.RADEN PATAH NO. 10, MOJOSARI</p>
<p class="alamat2b">MOJOKERTO, INDONESIA</p>
</div>
<div class="tengah align-self-end">
© Copyright <strong><span>PT Marga Yasa Konstruksi Indonesia</span></strong>. All Rights Reserved
</div>
<div class="bawah">
<p><?php echo $lang['contact_us']?></p>
<img class="img-ig" src="assets/img/footer/instagram-removebg-preview (6).png"><a class="link-ig" href="https://www.instagram.com/gayakonin/">gayakonin</a>
<img class="img-hp" src="assets/img/footer/call-removebg-preview (1).png" alt=""><a class="link-phone">(031)99841021</a>
<img class="img-mail" src="assets/img/footer/Asset 1.png" alt=""><a class="link-email">[email protected]</a>
</div>
</div>
</footer>
<script src="assets/vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<script src="assets/vendor/aos/aos.js"></script>
<script src="assets/vendor/glightbox/js/glightbox.min.js"></script>
<script src="assets/vendor/isotope-layout/isotope.pkgd.min.js"></script>
<script src="assets/vendor/swiper/swiper-bundle.min.js"></script>
<script src="assets/vendor/purecounter/purecounter_vanilla.js"></script>
<script src="assets/vendor/php-email-form/validate.js"></script>
<script src="assets/js/main.js"></script>
<script src="https://code.jquery.com/jquery-3.6.0.slim.js" integrity="sha256-HwWONEZrpuoh951cQD1ov2HUK5zA5DwJ1DNUXaM6FsY=" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-gtEjrD/SeCtmISkJkNUaaKMoLD0//ElJ19smozuHV6z3Iehds+3Ulb9Bn9Plx0x4" crossorigin="anonymous"></script>
<script>
$(function(){
var count = 0;
if(count == 0){
$('.btnSave').hide();
}
$('#btn-tambah').on('click', function(){
count +=1;
$('#tbl-barang-body').append(`
<tr>
<td>` + count + `</td>
<td>
<input type="text" name="nama[]" class="form-control">
</td>
<td>
<input type="file" name="file1[]" class="form-control">
</td>
<td>
<input type="file" name="file2[]" class="form-control">
</td>
<td>
<button type="button" class="btn btn-danger removeItem">HAPUS</button>
</td>
</tr>
`);
if(count > 0){
$('.btnSave').show();
}
$('.removeItem').off().on('click', function(){
$(this).closest("tr").remove();
count--;
// count -=1;
if(count == 0){
$('.btnSave').hide();
}
})
});
})
</script>
</body>
</html>