Skip to content

Commit cfe09b1

Browse files
committed
apps created
1 parent fed152f commit cfe09b1

File tree

201 files changed

+115523
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

201 files changed

+115523
-0
lines changed

about.php

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
<?php session_start();error_reporting(0);?>
2+
<!DOCTYPE html>
3+
<html lang="en">
4+
<head>
5+
<?php include 'res/meta.html';?>
6+
<title>Tukangtipu: About Page</title>
7+
<link rel="stylesheet" type="text/css" href="lib/css/bootstrap.css">
8+
<link rel="stylesheet" type="text/css" href="lib/css/myapp.css">
9+
</head>
10+
<body>
11+
<?php include 'res/header.php';?>
12+
<div style="margin-bottom:80px" class="top-navbar container">
13+
<div class="container">
14+
<h4 class="text-color-theme">SEKILAS TENTANG TUKANGTIPU</h4>
15+
<p class="text-justify">
16+
Tukangtipu.ostryan.id merupakan web referensi untuk melakukan <i>crosscheck</i> terhadap pelaku
17+
transaksi berbasis online yang belum terjamin pengamanan dari pihak ke 3 selaku toko online ataupun iklan baris online.
18+
Dengan melakukan <i>crosscheck</i> terlebih dahulu diharapkan calon pembeli akan merasa lebih nyaman dalam bertransaksi.
19+
</p>
20+
<p class="text-justify">
21+
Melihat angka transaksi jual beli online yang terus meninggi, menyebabkan banyak dampak positif dan negatif.
22+
Salah satunya adalah meningkatnya angka penipuan entah modus transaksi jual beli ataupun penipuan undian berhadiah.
23+
</p>
24+
<p class="text-justify">
25+
Tukangtipu berusaha untuk mengurangi kemungkinan penipuan terjadi dengan menyajikan informasi terkait kontak,
26+
nama dan juga nomor rekening pelaku penipuan. Dalam penggunaannya tukangtipu dibuat sesimple mungkin agar terasa mudah untuk dipakai.
27+
Mengenai pelapor data, kami melakukan <i>crosscheck</i> terhadap identitas pelapor agar data yang masuk ke dalam repository kami
28+
dapat dipertanggung jawabkan.
29+
</p>
30+
<p>Tukangtipu.ostryan.id terinspirasi dari web penipu.id yang dapat diakses<a href="http://penipu.id" target="_blank"> disini.</a></p>
31+
<p style="padding-top:50px" class="text-right">Regards, Ostryan team</p>
32+
</div>
33+
</div>
34+
<?php include 'res/footer-fixed.html';?>
35+
</body>
36+
<script type="text/javascript" src="lib/js/jquery.js"></script>
37+
<script type="text/javascript" src="lib/js/bootstrap.js"></script>
38+
<script type="text/javascript" src="lib/js/myapp.js"></script>
39+
</html>

admin/index.php

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<?php
2+
error_reporting(0);
3+
require_once('../lib/php/core.php');
4+
if ($_SESSION['login']==true && $_SESSION['admin']==true) {
5+
header('Location:adminview.php');
6+
}elseif ($_SESSION['login']==true) {
7+
header('Location:../');
8+
}
9+
$koneksi=conn('localhost','root','','kenatipudb');
10+
?>
11+
<!DOCTYPE html>
12+
<html lang="en">
13+
<head>
14+
<?php include '../res/meta.html';?>
15+
<title>Admin: Login!</title>
16+
<link rel="icon" href="">
17+
<link rel="stylesheet" type="text/css" href="../lib/css/bootstrap.css">
18+
<link rel="stylesheet" type="text/css" href="../lib/css/myapp.css">
19+
</head>
20+
<body class="color-theme white">
21+
<nav class="navbar navbarku"></nav>
22+
<div class="container-fluid">
23+
<div class="row">
24+
<div class="col-sm-4"></div>
25+
<div class="col-sm-4 login-panel">
26+
<center><a href="../index.php"><img class="img-responsive" src="../media/img-source/logo2.png"></a></center><br>
27+
<form action="sys/login.php" role="form" method="post">
28+
<small class="text-danger"><?php echo $_GET['usr'];?></small>
29+
<input type="text" class="form-control" id="usrname" name="adm" placeholder="Username" required autofocus><small class="text-danger"><?php echo $_GET['pas'];?></small><br>
30+
<input type="password" class="form-control" id="psw" name="admpass" placeholder="Password" required><br>
31+
<button type="submit" class="btn btn-info btn-block">Login Now!</button>
32+
</form>
33+
</div>
34+
<div class="col-sm-4"></div>
35+
</div>
36+
</div>
37+
<nav class="navbar navbar-fixed-bottom text-center">
38+
<p>tukangtipu.id</p>
39+
</nav>
40+
</body>
41+
</html>

admin/pages/index.php

+117
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,117 @@
1+
<?php
2+
error_reporting(0);
3+
require_once('../../lib/php/core.php');
4+
if ($_SESSION['admin']!=true) {
5+
header('Location:../');
6+
}
7+
$koneksi=conn($server,$username,$pass,$db);
8+
?>
9+
<!DOCTYPE html>
10+
<html lang="en">
11+
<head>
12+
<?php include("../res/meta.html");?>
13+
<meta charset="UTF-8">
14+
<title>Admin : Dashboard</title>
15+
<link rel="stylesheet" type="text/css" href="../../lib/css/bootstrap.css">
16+
<link rel="stylesheet" type="text/css" href="../../lib/css/myapp.css">
17+
</head>
18+
<body>
19+
<?PHP include("../res/navbar.php");?>
20+
<div class="container">
21+
<h3 class="text-success">DASHBOARD</h3>
22+
<?php include('../res/nav.php');?>
23+
<?php
24+
if (!isset($_GET['page'])) {
25+
include('../res/quick_access.php');
26+
include('../res/edit_data_user.php');
27+
include('../res/edit_data_admin.php');
28+
}elseif($_GET['page']=="laporan"){
29+
include('../res/laporan_masuk.php');
30+
}elseif($_GET['page']=="setuser"){
31+
include('../res/setuser.php');
32+
include('../res/edit_data_user.php');
33+
}elseif($_GET['page']=="setadmin"){
34+
include('../res/setadmin.php');
35+
include('../res/edit_data_admin.php');
36+
}elseif($_GET['page']=="dtpelapor"){
37+
include('../res/dtpelapor.php');
38+
}elseif($_GET['page']=="dtpenipu"){
39+
include('../res/dtpenipu.php');
40+
}elseif($_GET['page']=="statistik"){
41+
include('../res/statistik.php');
42+
}elseif($_GET['page']=="lihat_data"){
43+
include('../res/lihat_data.php');
44+
}elseif($_GET['page']=="edit_data_penipu"){
45+
include('../res/edit_data_penipu.php');
46+
}
47+
?>
48+
</div>
49+
<?php
50+
include("../res/footer.html");
51+
include("../res/add_modal.php");
52+
include("../res/modal_alert.php");
53+
?>
54+
</body>
55+
<script type="text/javascript" src="../../lib/js/jquery.js"></script>
56+
<script type="text/javascript" src="../../lib/js/bootstrap.js"></script>
57+
<script src="../../lib/js/chart.js"></script>
58+
<script>
59+
$(document).ready(function(){
60+
//confirmation delete user
61+
$(".hapus").click(function(){
62+
$("#delete").modal();
63+
$("#del").attr("href",$(this).data().value);
64+
});
65+
$(".edit_user").click(function(){
66+
$("#edit_usr").modal();
67+
$("#edit_id_usr").val($(this).data().value);
68+
});
69+
$(".edit_admin").click(function(){
70+
$("#edit_adm").modal();
71+
$("#id_admin").val($(this).data().value);
72+
});
73+
var dt1 = Number($('#lpmasuk').data().value);
74+
var dt2 = Number($('#stuser').data().value);
75+
var dt3 = Number($('#stadmin').data().value);
76+
var dt4 = Number($('#dtpelapor').data().value);
77+
var dt5 = Number($('#dtpenipu').data().value);
78+
var ctx = document.getElementById("chart");
79+
var myChart = new Chart(ctx, {
80+
type: 'bar',
81+
data: {
82+
labels: ["Jumlah Laporan Masuk", "Jumlah User Data", "Jumlah Admin", "Jumlah Data Pelapor", "Jumlah Data Penipu"],
83+
datasets: [{
84+
label: 'statistik',
85+
data: [dt1, dt2, dt3, dt4, dt5],
86+
backgroundColor: [
87+
'rgb(92, 184, 92)',
88+
'rgb(91, 192, 222)',
89+
'rgb(240, 173, 78)',
90+
'rgb(217, 83, 79)',
91+
'rgb(0, 80, 73)'
92+
],
93+
borderColor: [
94+
'rgba(0,0,0,1)',
95+
'rgba(0, 0, 0, 1)',
96+
'rgba(0, 0, 0, 1)',
97+
'rgba(0, 0, 0, 1)',
98+
'rgba(0, 0, 0, 1)'
99+
],
100+
borderWidth: 0
101+
}]
102+
},
103+
options: {
104+
scales: {
105+
yAxes: [{
106+
ticks: {
107+
beginAtZero:true
108+
}
109+
}]
110+
}
111+
}
112+
});
113+
114+
});
115+
</script>
116+
</html>
117+
<?php mysqli_close($koneksi);?>

admin/res/add_modal.php

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
<!--add user-->
2+
<div class="modal fade" id="add_user" role="dialog">
3+
<div class="modal-dialog modal-md">
4+
<!-- Modal content-->
5+
<div class="modal-content">
6+
<div class="modal-header theme-btn">
7+
<button type="button" class="close" data-dismiss="modal">&times;</button>
8+
<h4 class="modal-title">Add New User</h4>
9+
</div>
10+
<div class="modal-body bol">
11+
<form role="form" action="../sys/add_user.php" method="post">
12+
<label for="id_usr">User ID</label>
13+
<input type="text" class="form-control" id="id_usr" name="id_usr" placeholder="User Id" maxlength="10" required autofocus><br>
14+
<label for="email">Email Address</label>
15+
<input type="email" class="form-control" id="email" name="email" placeholder="Email Address" required autofocus><br>
16+
<label for="Password">Password</label>
17+
<input type="password" class="form-control" id="password" name="password" placeholder="Password" required autofocus>
18+
</div>
19+
<div class="modal-footer">
20+
<button type="submit" class="btn btn-default btn-success"><span class="glyphicon glyphicon-plus-sign"></span></button>
21+
<button type="button" class="btn btn-default btn-danger" data-dismiss="modal"><span class="glyphicon glyphicon-remove "></span></button>
22+
</div>
23+
</form>
24+
</div>
25+
</div>
26+
</div>
27+
28+
<!--add admin-->
29+
<div class="modal fade" id="add_admin" role="dialog">
30+
<div class="modal-dialog modal-md">
31+
<!-- Modal content-->
32+
<div class="modal-content">
33+
<div class="modal-header theme-btn">
34+
<button type="button" class="close" data-dismiss="modal">&times;</button>
35+
<h4 class="modal-title">Add New Admin</h4>
36+
</div>
37+
<div class="modal-body bol">
38+
<form role="form" action="../sys/add_admin.php" method="post">
39+
<label for="username">Username</label>
40+
<input type="text" class="form-control" id="id_adm" name="username" placeholder="Username" maxlength="10" required autofocus><br>
41+
<label for="password">Password</label>
42+
<input type="password" class="form-control" id="password" name="password" placeholder="Password" required autofocus>
43+
</div>
44+
<div class="modal-footer">
45+
<button type="submit" class="btn btn-default btn-success"><span class="glyphicon glyphicon-plus-sign"></span></button>
46+
<button type="button" class="btn btn-default btn-danger" data-dismiss="modal"><span class="glyphicon glyphicon-remove "></span></button>
47+
</div>
48+
</form>
49+
</div>
50+
</div>
51+
</div>
52+

admin/res/dtpelapor.php

+98
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
<?php
2+
$BatasAwal = 30;
3+
if (!empty($_GET['hal'])) {
4+
$hal = $_GET['hal'] - 1;
5+
$MulaiAwal = $BatasAwal * $hal;
6+
} else if (!empty($_GET['hal']) and $_GET['hal'] == 1) {
7+
$MulaiAwal = 0;
8+
} else if (empty($_GET['hal'])) {
9+
$MulaiAwal = 0;
10+
}//tampil data
11+
$data_usr=mysql_query("SELECT * FROM data_pelapor ORDER BY nama_pelapor ASC LIMIT $MulaiAwal, $BatasAwal") or die(mysql_error());
12+
?>
13+
<h3 class="text-success">Setting User</h3>
14+
<div style="padding:10px" class="with-border">
15+
<div class="panel panel-default">
16+
<div class="panel-heading">
17+
<b>Data Pelapor</b>
18+
</div>
19+
<div class="table-responsive">
20+
<table class="table table-bordered table-striped table-hover">
21+
<tr class="white">
22+
<th class="text-center color-theme">Id User</th>
23+
<th class="text-center color-theme">Nama</th>
24+
<th class="text-center color-theme">Gender</th>
25+
<th class="text-center color-theme">Alamat</th>
26+
<th class="text-center color-theme">No dentitas</th>
27+
<th class="text-center color-theme">Pekerjaan</th>
28+
<th class="text-center color-theme">Tanggal Lahir</th>
29+
<th class="text-center color-theme">Sosial Media</th>
30+
<th class="text-center color-theme">Foto Profile</th>
31+
<th class="text-center color-theme">Tindakan</th>
32+
</tr>
33+
<?php
34+
if (mysql_num_rows($data_usr)==0) {?>
35+
<tr>
36+
<td class="text-center" colspan="10">
37+
No Data
38+
</td>
39+
</tr>
40+
<?php }else{
41+
while ($data_user=mysql_fetch_array($data_usr)) {?>
42+
<tr>
43+
<td class="text-center"><?php echo $data_user['id_usr'];?></td>
44+
<td class="text-center"><?php echo $data_user['nama_pelapor'];?></td>
45+
<td class="text-center"><?php echo $data_user['gender'];?></td>
46+
<td class="text-center"><?php echo $data_user['alamat_pelapor'];?></td>
47+
<td class="text-center"><?php echo $data_user['no_identitas'];?></td>
48+
<td class="text-center"><?php echo $data_user['pekerjaan'];?></td>
49+
<td class="text-center"><?php echo $data_user['tgl_lhr'];?></td>
50+
<td class="text-center"><?php echo $data_user['sosmed'];?></td>
51+
<td class="text-center">
52+
<?php
53+
$cekpic=cekpic($data_user['foto'],$defaultpics);
54+
if ($cekpic==true){
55+
echo "<a target='_blank' href='../../media/upload/default_profile/".$data_user['foto']."'><img style='width:25px;height:25px' src='../../media/upload/default_profile/".$data_user['foto']."'></a>";
56+
}else{
57+
echo "<a target='_blank' href='../../media/upload/pelapor_img/".$data_user['foto']."'><img style='width:25px;height:25px' src='../../media/upload/pelapor_img/".$data_user['foto']."'></a>";
58+
}
59+
?>
60+
</td>
61+
<td class="text-center">
62+
<a target="_blank" style="margin:5px" class="edit_dtpelapor btn-warning btn-sm" href="../../viewprofile.php?id=<?php echo $data_user['id_usr'];?>">
63+
<span class="glyphicon glyphicon-eye-open"></span></a>
64+
<a data-value='../sys/hapus_dtpelapor.php?page=dtpelapor&id=<?php echo $data_user['id_usr'];?>' style="margin:5px" class="hapus btn-danger btn-sm" href="#">
65+
<span class="glyphicon glyphicon-trash"></span></a>
66+
</td>
67+
</tr>
68+
<?php }}?>
69+
</table>
70+
</div>
71+
<div class="panel-footer text-center">
72+
<ul class="pagination pagination-sm">
73+
<?php
74+
$jumlahData=mysql_num_rows(mysql_query("SELECT id_usr FROM data_pelapor"));
75+
if ($jumlahData > $BatasAwal) {
76+
$a = explode(".", $jumlahData / $BatasAwal);
77+
$b = $a[0];
78+
if ($BatasAwal%2==0) {
79+
$c=$b;
80+
}else{
81+
$c = $b+1;
82+
}
83+
for ($i = 1; $i <= $c; $i++) {
84+
echo '<li ';
85+
if ($_GET['hal'] == $i) {
86+
echo " class='active'";
87+
}
88+
echo '" ><a href="?page=dtpelapor&hal=' . $i . '">' . $i . '</a> ';
89+
}
90+
echo '</li>';
91+
}else{
92+
echo "<small>Page 1 of 1</small>";
93+
}
94+
?>
95+
</ul>
96+
</div>
97+
</div>
98+
</div>

0 commit comments

Comments
 (0)