Notes![what is notes.io? What is notes.io?](/theme/images/whatisnotesio.png)
![]() ![]() Notes - notes.io |
include_once "../server/rolecontrol.php";
$customCSS = array('<link href="../assets/plugins/DataTables/datatables.min.css" rel="stylesheet">');
$customJAVA = array(
'<script src="../assets/plugins/DataTables/datatables.min.js"></script>',
'<script src="../assets/plugins/printer/main.js"></script>',
'<script src="../assets/js/pages/datatables.js"></script>',
'<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/sweetalert2.all.min.js"></script>'
);
$page_title = 'Plaka';
include('inc/header_main.php');
include('inc/header_sidebar.php');
include('inc/header_native.php');
?>
<!--<div class="page-content">-->
<!--BAŞLANGIC-->
<div class="row">
<div class="col-xl-12 col-md-6">
<div class="col-lg-12">
<div class="card">
<div class="card-body">
<h4 class="card-title mb-4">Plaka Sorgu</h4>
<p class="mb-1">
<p>Sorgulanacak arabanın plakasını giriniz.</p>
<div class="block-content tab-content">
<div class="tab-pane active" id="tc" role="tabpanel">
<input require maxlength="11" class="form-control" type="text" name="tcno" id="tcno" placeholder="ÖRNEK : (61HF085)"><br>
<center>
<button onclick="checkNumber()" id="sorgula" name="yolla" class="btn btn-outline-success btn-border" style="width: 180px; height: 45px; outline: none; margin-left: 5px;"><i class="fas fa-search"></i> Sorgula <span id="sorgulanumber"></span></button>
<button onclick="clearAll()" id="durdurButon" type="button" class="btn btn-outline-danger btn-border" style="width: 180px; height: 45px; outline: none; margin-left: 5px;"><i class="fas fa-trash-alt"></i> Sıfırla </button>
<button onclick="printTable()" id="yazdirTable" type="button" class="btn btn-outline-warning btn-border" style="width: 180px; height: 45px; outline: none; margin-left: 5px;"><i class="fas fa-print"></i> Yazdır Detay </button><br><br>
</center>
<div class="table-responsive">
<table id="zero-conf" class="table table-hover" style="width:100%">
<thead>
<th>PLAKA</th>
<th>MARKA</th>
<th>MODEL</th>
<th>ÜRETİM YILI</th>
<th>RENK</th>
<th>YAKIT TÜRÜ</th>
</tr>
</thead>
<tbody id="jojjoojj">
</tbody>
</table>
<br>
<br>
<label class="form-label" for="basicInput">Back-Dev. CodeCracker / Main-Dev. aidenn. © Copyright By DIEUS TEAM
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script>
function clearResults() {
$("#jojjoojj").html(' <tr class="odd"><td valign="top" colspan="11" class="dataTables_empty">No data available in table</td></tr>');
}
function clearValues() {
document.getElementById("tcno").value = "";
document.getElementById("sorgulanumber").innerHTML = "";
}
function clearAll() {
clearResults()
clearValues()
}
function checkNumber() {
var roleNumber = "<?= $k_rol ?>";
if (parseInt(roleNumber) == 1 || parseInt(roleNumber) == 2 || parseInt(roleNumber) == 3 || parseInt(roleNumber) == 4) {
var tc = $("#tcno").val();
$.Toast.showToast({
"title": "Sorgulanıyor...",
"icon": "loading",
"duration": 30000
});
$.ajax({
url: "../api/plaka/api.php",
type: "POST",
data: {
tc: tc,
},
success: (res) => {
var json = res;
$.Toast.hideToast();
if (json.UserStatus.success === "true") {
$.Toast.hideToast();
clearResults();
$("#jojjoojj").html("");
document.getElementById("sorgulanumber").innerHTML = "(" + 0 + ")";
var array = [];
var data22 = json.Results.data;
var plaka = data22.plaka;
var marka = data22.marka;
var model = data22.model;
var aracyil = data22.aracyil;
var renk = data22.renk;
var yakit = data22.yakit;
result = "<tr>" +
"<th>" +plaka +"</th>" +
"<th>" +marka +"</th>" +
"<th>" +model +"</th>" +
"<th>" +aracyil +"</th>" +
"<th>" +renk +"</th>" +
"<th>" +yakit +"</th>";
"</tr>"
array.push(result);
$("#jojjoojj").html(array)
} else {
$.Toast.hideToast();
Swal.fire({
icon: 'error',
title: 'Bulunamadı!',
text: 'Girdiğiniz PLAKA ile eşleşen bir araba bulunamadı.',
})
return;
}
},
error: () => {
$.Toast.hideToast();
Swal.fire({
icon: 'error',
title: "Sunucu hatası!",
text: 'Lütfen yönetici ile iletişime geçin.'
})
return;
}
})
} else {
Swal.fire({
icon: 'error',
title: 'Oops...',
text: 'Bilinmeyen bir hata oluştu... H.K : 700X',
})
return;
}
}
</script>
<!--BİTİŞ-->
<?php
include('inc/footer_native.php');
include('inc/footer_main.php');
?>
![]() |
Notes is a web-based application for online taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000+ notes created and continuing...
With notes.io;
- * You can take a note from anywhere and any device with internet connection.
- * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
- * You can quickly share your contents without website, blog and e-mail.
- * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
- * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.
Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.
Easy: Notes.io doesn’t require installation. Just write and share note!
Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )
Free: Notes.io works for 14 years and has been free since the day it was started.
You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;
Email: [email protected]
Twitter: http://twitter.com/notesio
Instagram: http://instagram.com/notes.io
Facebook: http://facebook.com/notesio
Regards;
Notes.io Team