/
detil.sitak.php
136 lines (134 loc) · 5.22 KB
/
detil.sitak.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
<?php
session_start();
if(empty($_SESSION['privilege']))
{
echo "<script language=javascript>
parent.location.href='login.php';
</script>";
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" href="fav.ico" type="image/png">
<title>MICRO POI TELKOMSEL - Detil SITAC</title>
<script src="js/jquery.min.js"></script>
<script src="js/jquery-1.10.2.js"></script>
<script src="js/jquery-ui.js"></script>
<link href="css/bootstrap.css" rel="stylesheet">
<link href="css/font-awesome.min.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="css/jquery.dataTables.css">
<style>
body{padding-top:80px}
footer{
margin:5em 0
}
footer li{
float:left;
margin-right:1.5em;
margin-bottom:1.5em
}
footer p{
clear:left;
margin-bottom:0
}
</style>
</head>
<body>
<?php
include "mod/nav.php";
include "config/connect.php";
include "func/sitac.logic.list.php";
include "func/sitac.logic.var.php";
include './func/indihome.list.php';
$sql = OCIParse($connect,
"SELECT ID,WITEL,ID_SITE,NAMA_SITE,ALAMAT,STATUS_SITAC,MITRA_AP,STATUS_DATA,KET_STATUS_SITAC,ID_WS,KOMENTAR"
. " FROM ".$table." WHERE ".$witel." AND (".$jenis.") ".$tipe_site
."ORDER BY PRIORITAS");
ociexecute($sql);
?>
<div class="container">
<h3 align="center"><strong>DETIL DATA <?php echo $detail ?><br> SITAC - WITEL <?php echo strtoupper($_GET['witel']); ?></strong></h3><br />
<div class="panel panel-default">
<div class="panel-body">
<div class="row">
<?php
if(!empty($_GET['status_update'])){
if($_GET['status_update']==1)
$alert = "<div id =\"error\" class=\"col-md-12\"><div class=\"form-group\"><div class=\"alert alert-dismissable alert-success\" style=\"background-color: green;\">
<button type=\"button\" class=\"close\" data-dismiss=\"alert\">×</button>
<strong>SUKSES!</strong> DATA BERHASIL DIUPDATE !
</div></div></div>";
else $alert = "<div id =\"error\" class=\"col-md-12\"><div class=\"form-group\"><div class=\"alert alert-dismissable alert-success\" style=\"background-color: red;\">
<button type=\"button\" class=\"close\" data-dismiss=\"alert\">×</button>
<strong>ERROR!</strong> DATA GAGAL DIUPDATE !
</div></div></div>";
echo $alert;
}
?>
</div>
<div class="row">
<div class="col-md-12">
<p><a href="get.sitak.php?jenis=<?php echo $_GET['jenis']; ?>&witel=<?php echo $_GET['witel']; ?>&tgl=<?php echo $_GET['tgl']; ?>" style="text-decoration:none"><font color="green"><strong><i class="fa fa-file-excel-o"></i> EXPORT TO EXCEL</strong></font></a></p>
<table class="table table-bordered" id="table_id">
<thead bgcolor="#E12E32" style="color:#FFFFFF">
<tr>
<td align="center" width="5%"><strong>ACT</strong></td>
<td><center><strong>ID WS</strong></center></td>
<td><center><strong>NAMA SITE</strong></center></td>
<td><center><strong>ALAMAT</strong></center></td>
<td><center><strong>STATUS SITAC</strong></center></td>
<td><center><strong>MITRA</strong></center></td>
<td><center><strong>KET. STATUS SITAC</strong></center></td>
<td><center><strong>KOMENTAR</strong></center></td>
</tr>
</thead>
<tbody>
<?php while($row = oci_fetch_array($sql)) { ?>
<tr>
<td align="center">
<a href="edit.sitak.php?site_id=<?php echo $row[0] ?>&witel=<?php echo $row[1] ?>&jenis=<?php echo $_GET['jenis'] ?>" style="text-decoration:none"><font color="#E12E32"><i class="fa fa-pencil"></i></font></a>
</td>
<td><?php echo $row['ID_WS']; ?></td>
<td><?php echo $row['NAMA_SITE']; ?></td>
<td><?php echo $row['ALAMAT']; ?></td>
<td><?php echo $row['STATUS_SITAC']; ?></td>
<td><?php echo $row['MITRA_AP']; ?></td>
<td><?php echo $row['KET_STATUS_SITAC']; ?></td>
<td><?php echo $row['KOMENTAR']; ?></td>
</tr>
<?php } ?>
</table>
</div>
</div>
<?php
if(!empty($_GET['to_do_list']))$link = "to_do_list.php";
else $link = 'index.php';
?>
<a onclick="window.location.href='<?php echo $link; ?>'" class="btn btn-primary btn-sm">Kembali</a>
<a onclick="DeleteConf('sitac')" id="demo" class="btn btn-danger btn-sm">Hapus Data</a>
</div>
</div>
<?php include "mod/footer.php"; ?>
</div>
<script src="js/jquery-2.1.1.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script type="text/javascript" charset="utf8" src="js/jquery.dataTables.js"></script>
<script type="text/javascript" src="js/simontor.js"></script>
<script>
function DeleteConf(before_page){
var witel = getUrlVars()['witel'];
var tipe_site = getUrlVars()['tipe_site'];
var jenis = getUrlVars()['jenis'];
window.location.assign('delete.sitac.php?witel='+witel+'&tipe_site='+tipe_site+'&before_page='+before_page+'&jenis='+jenis);
}
$('#table_id').DataTable({
"scrollX": false,
"autoWidth": false
});
</script>
</body>
</html>