NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Başlıksız Belge</title>
<script>
function islemSecenek() // işlem seçeneği değiştirildiğinde çalışacak fonksiyon
{
islem=document.getElementsByName("islem")[0].value;
document.getElementsByName("gonder")[0].value= islem;
document.getElementById("uyariG").innerHTML="";
if(islem=="Kayıt Güncelle")
{
document.getElementById("uyariG").innerHTML="Tablodan güncellemek istediğiniz kayda tıklayınız!";
}
if(islem=="Kayıt Sil")
{
document.getElementById("uyariG").innerHTML="Tablodan silmek istediğiniz kayda tıklayınız!";
}
}

var satir=-1; // tıklanan bir önceki satır numarasını tutan değişken

function kayitAl(sat) // tablodaki kayıt satırlarına tıklandığında çalışacak fonksiyon
{
if(document.getElementsByName("islem")[0].value=="Kayıt Güncelle" || document.getElementsByName("islem")[0].value=="Kayıt Sil" )
{
n=document.getElementById("h"+sat+"-0").innerHTML; // Tıklanan satırdaki
ad=document.getElementById("h"+sat+"-1").innerHTML; // hücrelerden değerler
adr=document.getElementById("h"+sat+"-2").innerHTML; // değişkenlere
m=document.getElementById("h"+sat+"-3").innerHTML; // alınıyor

document.getElementsByName("num")[0].value = n; // değişeknlerdeki değerler
document.getElementsByName("ad")[0].value = ad; // metin kutularına aktarılıyor
document.getElementsByName("adr")[0].value = adr;
document.getElementsByName("maas")[0].value = m;
document.getElementsByName("numD")[0].value = n;

if(satir!=-1) // tıklanan bir önceki satırın zemin rengi default renge dönüşüyor
{
document.getElementById("s"+satir).style.backgroundColor="";
}
document.getElementById("s"+sat).style.backgroundColor="yellow"; // tıklanan satırın zemin rengi sarı renge dönüşüyor

satir=sat; // tıklanan satır numarası bir önceki satır numarası değişkenine alınıyor

}
}
</script>
<?php include "fonksiyonlar.php"; ?>
</head>
<body>
<h2>KAYIT İŞLEMLERİ</h2>
<table style="border: 1px solid; width:100%">
<tr>
<td style="text-align: right; vertical-align: top; width:35%">
<form action="index.php" method="POST">
İşlem:<select size="1" name="islem" onChange="islemSecenek()">
<option hidden>İşlem seçiniz</option>
<option>Kayıt Listele</option>
<option>Kayıt Ara</option>
<option>Kayıt Ekle</option>
<option>Kayıt Güncelle</option>
<option>Kayıt Sil</option>
</select> <br/>
<span id="uyariG"></span> <br/>
<input type="submit" value="Kayıt Listele" name="gonder"/> <br/><br/>
Numara: <input type="text" name="num" /><br/>
Ad: <input type="text" name="ad" /><br/>
Adres: <input type="text" name="adr" /><br/>
Maaş: <input type="text" name="maas" /><br/>
<input type="text" name="numD" hidden />
</form>

</td>
<td id="sonuc" style="vertical-align: top; padding-left: 30px;">
<?php
$islem="";
if(isset($_POST["islem"])) $islem=$_POST["islem"];

$num="0"; if(!empty($_POST["num"])) $num=$_POST["num"];
$ad=""; if(!empty($_POST["ad"])) $ad=$_POST["ad"];
$adr=""; if(!empty($_POST["adr"])) $adr=$_POST["adr"];
$maas="0"; if(!empty($_POST["maas"])) $maas=$_POST["maas"];
$numD="0"; if(!empty($_POST["numD"])) $numD=$_POST["numD"];

$aK[0]=$num; $aK[1]=$ad; $aK[2]=$adr; $aK[3]=$maas;

switch($islem)
{
case "Kayıt Ara":
if($ad=="") $aK[1]="%";
if($adr=="") $aK[2]="%"; break;
case "Kayıt Ekle":
ekle($aK); break;
case "Kayıt Güncelle":
guncelle($numD,$aK); break;
case "Kayıt Sil":
sil($numD); break;
}
listele($islem,$aK);
?>
</td>
</tr>
</table>
</body>
</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.