-
Notifications
You must be signed in to change notification settings - Fork 3
/
detail-mobil.php
296 lines (273 loc) · 11 KB
/
detail-mobil.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
<?php
session_start();
include 'dbconf.php';
if (!isset($_SESSION['login']))
header('Location: login-ui.php');
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title><?php echo $_SESSION['judul'];?> | <?php echo $_SESSION['desc'];?></title>
<!-- Tell the browser to be responsive to screen width -->
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<!-- Bootstrap 3.3.6 -->
<link rel="stylesheet" href="lte/bootstrap/css/bootstrap.min.css">
<!-- Font Awesome -->
<link rel="stylesheet" href="lte/dist/css/font-awesome.min.css">
<!-- Ionicons -->
<link rel="stylesheet" href="lte/dist/css/ionicons.min.css">
<!-- Theme style -->
<link rel="stylesheet" href="lte/dist/css/AdminLTE.min.css">
<!-- AdminLTE Skins. Choose a skin from the css/skins
folder instead of downloading all of them to reduce the load. -->
<link rel="stylesheet" href="lte/dist/css/skins/_all-skins.min.css">
<!-- HTML5 Shim and Respond.js 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.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body class="hold-transition fixed skin-blue sidebar-mini">
<!-- Site wrapper -->
<div class="wrapper">
<header class="main-header">
<!-- Logo -->
<a href="#" class="logo">
<!-- mini logo for sidebar mini 50x50 pixels -->
<span class="logo-mini"><b><?php echo $_SESSION['judul'];?></b></span>
<!-- logo for regular state and mobile devices -->
<span class="logo-lg"><b><?php echo $_SESSION['judul'];?></b></span>
</a>
<!-- Header Navbar: style can be found in header.less -->
<nav class="navbar navbar-static-top">
<!-- Sidebar toggle button-->
<a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<div class="navbar-custom-menu">
<ul class="nav navbar-nav">
<!-- User Account: style can be found in dropdown.less -->
<li class="dropdown user user-menu">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
<img src="<?php echo $_SESSION['foto'];?>" class="user-image" alt="User Image">
<span class="hidden-xs"><?php echo ucwords($_SESSION['user']);?></span>
</a>
<ul class="dropdown-menu">
<!-- User image -->
<li class="user-header">
<img src="<?php echo $_SESSION['foto'];?>" class="img-circle" alt="User Image">
<p>
<?php
echo ucwords($_SESSION['user']);?> - <?php echo ucwords($_SESSION['level']);
$date = date_create($_SESSION['since']);
?>
<small>Member Since, <?php echo date_format($date, 'd M Y');?></small>
</p>
</li>
<!-- Menu Footer-->
<li class="user-footer">
<div class="pull-left">
<!--a href="#" class="btn btn-default btn-flat">Profile</a-->
</div>
<div class="pull-right">
<a href="logout.php" class="btn btn-default btn-flat">Logout</a>
</div>
</li>
</ul>
</li>
</ul>
</div>
</nav>
</header>
<!-- =============================================== -->
<!-- Left side column. contains the sidebar -->
<aside class="main-sidebar">
<!-- sidebar: style can be found in sidebar.less -->
<section class="sidebar">
<!-- Sidebar user panel -->
<div class="user-panel">
<div class="pull-left image">
<img src="<?php echo $_SESSION['foto'];?>" class="img-circle" alt="User Image">
</div>
<div class="pull-left info">
<p><?php echo ucwords($_SESSION['user']);?></p>
<a href="#"><i class="fa fa-circle text-success"></i> Online</a>
</div>
</div>
<!-- /.search form -->
<!-- sidebar menu: : style can be found in sidebar.less -->
<ul class="sidebar-menu">
<li class="header">MAIN NAVIGATION</li>
<li>
<a href="dashboard-ui.php">
<i class="fa fa-windows"></i> <span>Dashboard</span>
</a>
</li>
<li class="treeview active">
<a href="#">
<i class="fa fa-truck"></i> <span>Mobil</span> <i class="fa fa-angle-left pull-right"></i>
</a>
<ul class="treeview-menu">
<li><a href="mobil.php"><i class="fa fa-circle-o"></i> Data Mobil</a></li>
<?php if($_SESSION['level']=='satpam'){?>
<li><a href="daftar-mobil.php"><i class="fa fa-circle-o"></i> Daftar Baru</a></li>
<?php } ?>
</ul>
</li>
<?php if($_SESSION['level']=='admin gudang'){?>
<li>
<a href="muat.php">
<i class="fa fa-plus-square"></i> <span>Muat</span>
</a>
</li>
<li>
<a href="keluar.php">
<i class="fa fa-check-square"></i> <span>Keluar</span>
</a>
</li>
<?php } ?>
<?php if($_SESSION['level']=='admin'){?>
<li>
<a href="cetak.php">
<i class="fa fa-print"></i> <span>Cetak Laporan</span>
</a>
</li>
<li>
<a href="user.php">
<i class="fa fa-users"></i> <span>Data User</span>
</a>
</li>
<li>
<a href="setting.php">
<i class="fa fa-laptop"></i> <span>Setting</span>
</a>
</li>
<?php } ?>
</ul>
</section>
<!-- /.sidebar -->
</aside>
<!-- =============================================== -->
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
Dashboard
<small><?php echo $_SESSION['desc'];?></small>
</h1>
<ol class="breadcrumb">
<li><a href="dashboard-ui.php"><i class="fa fa-dashboard"></i> Dashboard</a></li>
<li><a href="daftar-mobil.php">Daftar Mobil</a></li>
<li class="active">Detail Mobil</li>
</ol>
</section>
<!-- Main content -->
<section class="content">
<!-- Default box -->
<div class="box box-primary">
<div class="box-header with-border">
<h3 class="box-title text-primary"><i class="fa fa-bus"> </i> Detail Mobil</h3>
<div class="box-tools pull-right">
<button type="button" class="btn btn-box-tool" data-widget="collapse" data-toggle="tooltip" title="Collapse">
<i class="fa fa-minus"></i></button>
<!--button type="button" class="btn btn-box-tool" data-widget="remove" data-toggle="tooltip" title="Remove">
<i class="fa fa-times"></i></button-->
</div>
</div>
<!-- form start -->
<form class="form-horizontal" method="post" action="daftar.php">
<div class="row">
<div class="col-lg-6 col-xs-12">
<div class="box-body">
<?php
$result = $mysqli->query("SELECT * FROM `mobil` WHERE `id_mobil` = ".$_GET['id']."");
while ($row = $result->fetch_assoc()) {
?>
<div class="form-group">
<label for="ekspedisi" class="col-sm-2 control-label">Ekspedisi</label>
<div class="col-sm-10">
<input type="text" class="form-control" name="ekspedisi" id="ekspedisi" value="<?php echo $row['ekspedisi'];?>" placeholder="Nama Ekspedisi" disabled />
</div>
</div>
<div class="form-group">
<label for="Jenis Mobil" class="col-sm-2 control-label">Jenis</label>
<div class="col-sm-10">
<input type="text" class="form-control" name="jenis" id="jenis" value="<?php echo $row['jenis'];?>" placeholder="Jenis Mobil" disabled />
</div>
</div>
<div class="form-group">
<label for="nopol" class="col-sm-2 control-label">No. Polisi</label>
<div class="col-sm-10">
<input type="text" class="form-control" name="nopol" id="nopol" value="<?php echo $row['nopol'];?>" placeholder="No. Polisi" disabled />
</div>
</div>
<div class="form-group">
<label for="supir" class="col-sm-2 control-label">Supir</label>
<div class="col-sm-10">
<input type="text" class="form-control" name="supir" id="supir" value="<?php echo $row['supir'];?>" placeholder="Nama Supir" disabled />
</div>
</div>
<div class="form-group">
<label for="hp" class="col-sm-2 control-label">No. HP</label>
<div class="col-sm-10">
<input type="text" class="form-control" name="hp" id="hp" value="<?php echo $row['hp'];?>" placeholder="No. HP" disabled />
</div>
</div>
<div class="form-group">
<label for="tujuan" class="col-sm-2 control-label">Tujuan</label>
<div class="col-sm-10">
<input type="text" class="form-control" name="tujuan" id="tujuan" value="<?php echo $row['tujuan'];?>" placeholder="Tujuan" disabled />
</div>
</div>
</div>
<!-- /.box-body -->
<div class="box-footer">
<a href="mobil.php" class="btn btn-warning pull-right">Back</a>
</div>
<!-- /.box-footer -->
</div>
</div><!-- row -->
<?php
}
?>
</form>
</div>
<!-- /.box -->
</section>
<!-- /.content -->
</div>
<!-- /.content-wrapper -->
<footer class="main-footer">
<div class="pull-right hidden-xs">
<b>Version</b> <?php echo $_SESSION['judul'].".".date('Y').".a"?>
</div>
<strong>Copyright © <?php echo date('Y');?></strong> <?php echo $_SESSION['creator']?>. All rights
reserved.
</footer>
<!-- /.control-sidebar -->
<!-- Add the sidebar's background. This div must be placed
immediately after the control sidebar -->
<div class="control-sidebar-bg"></div>
</div>
<!-- ./wrapper -->
<!-- jQuery 2.2.0 -->
<script src="lte/plugins/jQuery/jQuery-2.2.0.min.js"></script>
<!-- Bootstrap 3.3.6 -->
<script src="lte/bootstrap/js/bootstrap.min.js"></script>
<!-- SlimScroll -->
<script src="lte/plugins/slimScroll/jquery.slimscroll.min.js"></script>
<!-- FastClick -->
<script src="lte/plugins/fastclick/fastclick.js"></script>
<!-- AdminLTE App -->
<script src="lte/dist/js/app.min.js"></script>
<!-- AdminLTE for demo purposes -->
<script src="lte/dist/js/demo.js"></script>
</body>
</html>