home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2000 May
/
Chip_2000-05_cd1.bin
/
tema
/
SW602
/
Winbase
/
EShop_demo
/
OLOGIN.WWW
< prev
next >
Wrap
Text File
|
2000-03-16
|
2KB
|
60 lines
{$$3220259816 . }Template: infologin.htw
ErrorTemplate: err.htw
SQLStatement: niclogin
#ifexists
+ SELECT intr_user,intr_pswd,nazev1
+ FROM obchodni_partneri
+ WHERE (intr_user="") AND (intr_pswd="")
#then
+ DELETE FROM obchodni_partneri WHERE (intr_user="") AND (intr_pswd="")
#endif
SQLStatement: oprava
#ifexists
+ SELECT intr_user,intr_pswd,nazev1
+ FROM obchodni_partneri
+ WHERE (intr_user<>"demo") AND (intr_user="%jmeno%") AND (intr_pswd="%heslo%")
#then
+ UPDATE obchodni_partneri
+ SET PSC= "%w_psc%",mesto= "%w_mesto%",ulice= "%w_ulice%", kont_osoba= "%w_kont_osoba%", mail_adres="%w_mail_adres%" , telef= "%w_telef%" , intr_pswd= "%w_heslo%"
+ WHERE (intr_user="%jmeno%") AND (intr_pswd="%heslo%")
#endif
SQLStatement: oprava2
#ifexists
+ SELECT intr_user,intr_pswd,nazev1
+ FROM obchodni_partneri
+ WHERE (intr_user="%jmeno%") AND (intr_pswd="")
#then
+ UPDATE obchodni_partneri
+ SET intr_pswd= "%heslo%"
+ WHERE (intr_user="%jmeno%") AND (intr_pswd="")
#endif
SQLStatement: login
#ifexists
+ SELECT intr_user,intr_pswd,nazev1
+ FROM obchodni_partneri
+ WHERE (intr_user="%jmeno%")AND(intr_pswd="%heslo%")
#then
+ SELECT Obchodni_partneri.nazev1, Obchodni_partneri.kont_osoba, Obchodni_partneri.ulice,
+ Obchodni_partneri.psc, Obchodni_partneri.mesto, Obchodni_partneri.zeme, Obchodni_partneri.telef,
+ Obchodni_partneri.fax, Obchodni_partneri.mail_adres, Obchodnici.jmeno, Obchodnici.prijmeni,
+ Obchodnici.titl,Obchodnici.telef AS nastel,Obchodnici.mail_adres as nasmail, S_deal_sk.deal_skupina,Obchodnici.fotka as foto
+ FROM Obchodni_partneri, S_deal_sk, Obchodnici
+ WHERE Obchodnici.id_obchodnika=Obchodni_partneri.id_obchodnika
+ AND S_deal_sk.deal_id=Obchodni_partneri.deal_sk
+ AND (Obchodni_partneri.intr_user="%jmeno%" AND Obchodni_partneri.intr_pswd="%heslo%")
#else
+ SELECT intr_user,intr_pswd,nazev1
+ FROM obchodni_partneri
+ WHERE (intr_user="%jmeno%")AND(intr_pswd="%heslo%")
#endif
BeginProgram: www_login
W_delobj();
EndProgram;