-
Notifications
You must be signed in to change notification settings - Fork 0
/
giris.php
119 lines (81 loc) · 3.12 KB
/
giris.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
<div class=giris-dis><div class=giris>
<?
if(giris()){
$sqlm=mysql_query("SELECT * FROM mesajlar WHERE uye_no=$session->UYE_no AND uye_ziyaret=0");
$mesaj=mysql_num_rows($sqlm);
$sqls=mysql_query("SELECT * FROM sepet WHERE uye='$session->UYE_no'");
$sepet=mysql_num_rows($sqls);
$sqlk=mysql_query("SELECT * FROM uyeler WHERE no='$session->UYE_no'");
$s=mysql_fetch_object($sqlk);
$sqlq=mysql_query("SELECT * FROM mesajlar WHERE yonetim_ziyaret=0 ");
$yonetim_mesaj=mysql_num_rows($sqlq);
$sqlb=mysql_query("SELECT * FROM siparisler WHERE siparis_durum<3 ");
$yonetim_siparisler=mysql_num_rows($sqlb);
$sqlc=mysql_query("SELECT * FROM siparisler WHERE siparis_durum=0 ");
$yonetim_siparis_yeni=mysql_num_rows($sqlc);
echo "<a class=giris-dugme-sol href=profil.php>$s->ad $s->soyad</a>";
echo "<a class=giris-dugme-sol href=siparisler.php>Siparişlerim</a>";
echo "<a class=giris-dugme-sol href=sepetim.php>Sepetim<span class=giris-dugme-kutu>$sepet</span></a>";
echo "<a class=giris-dugme-sol href=mesajlarim.php>Mesajlar<span class=giris-dugme-kutu>$mesaj</span></a>";
if(yonetim()){
echo "<a class=giris-dugme-sol href=yonetim/>Yönetim</a>";
echo "<a class=giris-dugme-sol href=yonetim/mesajlar.php>Yönetim Mesajlar<span class=giris-dugme-kutu>$yonetim_mesaj</span></a>";
if($yonetim_siparis_yeni>0)
echo "<a class=giris-dugme-sol href=yonetim/siparisler.php>Yönetim Siparişler<span class=giris-dugme-kutu-yesil>$yonetim_siparisler</span></a>";
else
echo "<a class=giris-dugme-sol href=yonetim/siparisler.php>Yönetim Siparişler<span class=giris-dugme-kutu>$yonetim_siparisler</span></a>";
}
echo "<a title=Çıkış class='giris-dugme-sag giris-dugme-cikis' href=islem.php?islem=uye_cikis>Çıkış</a>";
}
else
{
echo "
<script>
function giris()
{
var ad;
var deger;
var dizi=\"islem.php?islem=uye_giris\";
var x=document.getElementById(\"giris\");
for (var i=0;i<x.length;i++)
{
ad=x.elements[i].name;
deger=x.elements[i].value;
dizi+=\"&\"+ad+\"=\"+deger;
}
location=dizi;
}
</script>
";
print "
<div class=giris-giris>
<form id=giris action=islem.php?islem=uye_giris method=post>
<input class='giris-girdi girdi'
value='Kullanıcı Adı'
onblur=\"if(this.value=='')this.value='Kullanıcı Adı';\"
onfocus=\"if(this.value=='Kullanıcı Adı')this.value='';\"
onkeypress=\"if (window.event && window.event.keyCode == 13) {
giris();
} else if (evn && evn.keyCode == 13) {
giris();
}\"
type=text size=13 name=kullanici>
<input class='giris-girdi girdi'
value='Parola'
onblur=\"if(this.value=='')this.value='Parola';\"
onfocus=\"if(this.value=='Parola')this.value='';\"
onkeypress=\"if (window.event && window.event.keyCode == 13) {
giris();
} else if (evn && evn.keyCode == 13) {
giris();
}\"
type=password size=13 name=parola>
<a class=dugme onclick=\"giris()\"><span class=dugme-simge style=\"background:url('tema/giris.png')\"></span>Giriş</a>
</form>
</div>
<a class=giris-dugme-sag href=uyeol.php>Üye Ol</a>
<a class=giris-dugme-sag href=sifre_yenile.php>Şifremi Unuuttum</a>
";
}
?> </div>
</div>