Handle basic HTTP auth using PHP instead of using webserver configuration = better...
[mirrors/Kyberia-bloodline.git] / data / templates / own_templates / 1515428.tpl
CommitLineData
51ff3226 1function stswitch() {
2 document.forms[0].submit();
3}
4
5submenuTimer = false;
6timer = 500;
7
8var IE = document.all?true:false
9if (!IE) document.captureEvents(Event.MOUSEMOVE)
10document.onmousemove = getMouseXY;
11var tempX = 0
12var tempY = 0
13
14function getMouseXY(e) {
15 if (navigator.userAgent.indexOf("Konqueror")!=-1) { // grab the x-y pos.s if browser is Konqueror
16 tempX = e.clientX
17 tempY = e.clientY
18 } else if (IE) { // grab the x-y pos.s if browser is IE
19 tempX = event.clientX + document.body.scrollLeft
20 tempY = event.clientY + document.body.scrollTop
21 } else { // grab the x-y pos.s if browser is NS
22 tempX = e.pageX
23 tempY = e.pageY
24 }
25 if (tempX < 0){tempX = 0}
26 if (tempY < 0){tempY = 0}
27 return true
28}
29
30function sm(name,id,node) {
31 var t = tempY - 10;
32 var l = tempX - 10;
33
34 var cnt = "";
35 cnt += "<a href='/id/" + id + "' title='" + name + "' class='panel_btn'>userinfo</a>";
36 cnt += "<form action='/id/24' method='post'>";
37 cnt += "<input type='hidden' value='" + name + "' name='mailto'>";
38 cnt += "<input type='submit' value='posta' value='posta' class='panel_btn'></form>";
39 cnt += "<form action='/id/" + node +"' method='post'>";
40 cnt += "<input type='hidden' name='node_content' value='" + name + "'>";
41 cnt += "<input type='hidden' name='search_type' value='user'>";
42 cnt += "<input type='submit' name='template_event' value='filter_by' class='panel_btn'></form>";
43
44 if (p) {
45 p.innerHTML = cnt;
46 p.style.top = t + "px";
47 p.style.left = l + "px";
48 p.style.display = "block";
49 }
50}
51
52function sm_mail(name,id,node) {
53 var t = tempY - 10;
54 var l = tempX - 10;
55
56 var cnt = "";
57 cnt += "<a href='/id/" + id + "' title='" + name + "' class='panel_btn'>userinfo</a>";
58 cnt += "<a href='javascript:chngto('" + name + "','" + id + "')' class='panel_btn'>posta</a>";
59 cnt += "filter_by";
60 cnt += "<form action='/id/" + node +"' method='post'>";
61 cnt += "<input type='hidden' name='node_content' value='" + name + "'>";
62 cnt += "<input type='submit' name='search_type' value='mail_from' class='panel_btn'>";
63 cnt += "<input type='submit' name='search_type' value='mail_to' class='panel_btn'>";
64 cnt += "<input type='hidden' name='template_event' value='filter_by'></form>";
65
66 if (p) {
67 p.innerHTML = cnt;
68 p.style.top = t + "px";
69 p.style.left = l + "px";
70 p.style.display = "block";
71 }
72}
73
74function hideSubmenu() {
75 submenuTimer = setTimeout("hideSubmenu2()", timer);
76}
77
78function hideSubmenu2() {
79 if (p) {
80 p.style.display = "none";
81 }
82}
83
84function km() {
85 if (submenuTimer) {
86 clearTimeout(submenuTimer);
87 }
88}
This page took 0.188141 seconds and 4 git commands to generate.