This repository has been archived by the owner on Jan 25, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpaieska.js
executable file
·80 lines (79 loc) · 4.06 KB
/
paieska.js
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
function FindWordInDatabase(FindWhat){
var i=0;rasta=0;
var o=0;k=0;m=0;
FindWhat= ConvertToStandart(FindWhat);
str = new String();
for (i=0; i < MaxValue ; i++){
str=Koment[i]+Suliet[i] ;
str=str.toLowerCase();
FindWhat=FindWhat.toLowerCase();
o=str.search(FindWhat);
// document.write(Failai[i],' ',Suliet[i],' ',Dydis[i],' ',Koment[i],' ');
// document.write(Suliet[i],' ',o);
if (o==0){
k=str.charAt(0);
m=FindWhat.charAt(0);
if (k==m) o=1;
}
if (FindWhat=="all:") o=15;
if (o>0) rasta=rasta+1;
}
document.write(' <font color="#003366">Paieškos Rezultatai</font> ');
if (rasta==0) document.write('</b></font></p><p> Jokių įrašų duomenų bazėje nebuvo rasta.<font face="Georgia, Times New Roman, Times, serif"><b>'); else document.write('</b></font></p><p> Buvo rasta ', rasta,' įrašų duomenų bazėje.<br> Jeigu norite ką nors atsiųsti, tiesiog paspauskite ant to sulietuvinimo pavadinimo, kurį jūs norite atsisiųsti.<font face="Georgia, Times New Roman, Times, serif"><b>');
for (i=0; i < MaxValue ; i++){
str=Koment[i]+Suliet[i];
str=str.toLowerCase();
FindWhat=FindWhat.toLowerCase();
o=str.search(FindWhat);
// document.write(Failai[i],' ',Suliet[i],' ',Dydis[i],' ',Koment[i],' ');
// document.write(Suliet[i],' ',o);
if (o==0){
k=str.charAt(0);
m=FindWhat.charAt(0);
if (k==m) o=1;
}
if (FindWhat=="all:") o=15;
if (o>0){
document.write('<p><table width="98%" border="0" cellspacing="0" cellpadding="0" height="3" background="9854.png" align="left">');
document.write('<tr> ');
document.write('<td><img src="9642.png" width="183" height="3"></td>');
document.write('</tr>');
document.write('</table>');
document.write('<br>');
document.write('<table width="100%" border="0" cellspacing="0" cellpadding="0">');
document.write('<tr> ');
document.write('<td><font face="Georgia, Times New Roman, Times, serif"><b> <a href="',Failai[i],'" target="_blank">',Suliet[i],'</a></b></font></td>');
document.write('</tr>');
document.write('<tr>');
document.write('<td> </td>');
document.write('</tr>');
document.write('<tr> ');
document.write('<td> <font face="Georgia, Times New Roman, Times, serif" size="-1"><b> ');
document.write('</b></font><font color="#0099FF" size="-1">Kaina:</font><font color="#006699" size="-1">');
if (Money[i]=='-') document.write('Nemokama'); else document.write(Money[i]);
document.write('</font></td>');
document.write('</tr>');
document.write('<tr> ');
document.write('<td><font face="Georgia, Times New Roman, Times, serif" size="-1"><b> ');
document.write('</b></font><font color="#0099FF" size="-1">Dydis:</font> <font color="#006699" size="-1">',Dydis[i],'</font></td>');
document.write('</tr>');
document.write('<tr> ');
document.write('<td><font face="Georgia, Times New Roman, Times, serif" size="-1"><b> ');
document.write('</b></font><font color="#0099FF" size="-1">Įvertinimas:</font> ');
document.write('<font color="#006699" size="-1">',Taskai[i],'</font></td>');
document.write('</tr>');
document.write('<tr> ');
document.write('<td><font face="Georgia, Times New Roman, Times, serif" size="-1"><b> ');
document.write('</b></font><font color="#0099FF" size="-1">Svetainė:</font> ');
document.write('<font color="#006699" size="-1">',Page[i],'</font></td>');
document.write('</tr>');
document.write('<tr> ');
document.write('<td> </td>');
document.write('</tr>');
document.write('<tr> ');
document.write('<td> <font face="Times New Roman, Times, serif">', Koment[i],'</font></td>');
document.write('</tr>');
document.write('</table>');
}
}
}