NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

<?php
ob_start();
session_start();

if(!isset($_SESSION["login"])){
header('Location: index.php');
}

$baglan = NEW MySQLi('localhost','root','','musteriler');

$sql = "SELECT dukkan_ismi FROM musteri";
$sonuc = $baglan->query($sql);
?>
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
<title></title>
</head>
<h2 class="text-center bg-primary text-white">SATIŞ TAKİP</h2>
<h5 class="text-center bg-warning text-white">Dukkan İsmi</h5>
<form method="POST" action="Listele.php" id="piskevit">
<select class="browser-default custom-select mb-4" id="dukkanin_ismi">
<option disabled selected>Dukkan İsmi</option>
<?php
while($rows = $sonuc->fetch_assoc())
{
$dukkan_ismi = $rows['dukkan_ismi'];
echo "<option value='$dukkan_ismi'>$dukkan_ismi</option>";
}
?>
</select>
<button id="displaydata" class="btn btn-success btn-block" type="submit">Goster</button>
</form>

<table id="tablo" class="table table-striped table-bordered text-center">
<thead id="liste">
<th>Servis Tipi</th>
<th>Servis sayisi</th>
<th>Servis Adedi</th>
</thead>
</table>
<form action="arasayfa.php" method="POST">
<input class="btn btn-info btn-block" type="submit" name="arasayfaya_don" value="Geri Don" >
</form>
<form action="cikis.php" method="POST">
<input class="btn btn-danger btn-block" type="submit" name="cikis" value="Çıkış">
</form>


<script type="text/javascript">
var gelen;
var tiklanan=0;
document.getElementById("piskevit").addEventListener("submit", trans);

function trans(e){
e.preventDefault();

var sec = document.getElementById("dukkanin_ismi").value;
var secilen="secilen="+sec;
var xhr = new XMLHttpRequest();
xhr.open('POST', 'Listele.php', true);

xhr.setRequestHeader('Content-type', 'application/x-www-form-urlencoded');


var table = document.getElementById("tablo");
var rowCount = table.rows.length;
for (var i = 1; i < rowCount; i++) {
table.deleteRow(1);
}
xhr.onload = function(){
if(this.status == 200){
gelen = JSON.parse(this.responseText)
for (var i = 0; i < gelen.length; i++) {

var table = document.getElementById("tablo");
var row = table.insertRow(-1);
var cell1 = row.insertCell(0);
var cell2 = row.insertCell(1);
var cell3 = row.insertCell(2);

cell1.innerHTML = gelen[i]["servis_tipi"];
cell2.innerHTML = gelen[i]["servis_sayisi"];
cell3.innerHTML = gelen[i]["servis_adedi"];
}


}
}
xhr.send(secilen);
}
tiklanan++;


</script>


</html>
     
 
what is notes.io
 

Notes.io is a web-based application for 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 12 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

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.