File: groupchat_invite.html.ca_ES

package info (click to toggle)
jwchat 1.0beta3-3
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 6,288 kB
  • ctags: 382
  • sloc: xml: 462; sh: 80; makefile: 6
file content (83 lines) | stat: -rw-r--r-- 2,829 bytes parent folder | download | duplicates (4)
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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>JWChat - Invite</title>
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
    <script src="shared.js"></script>
    <script src="switchStyle.js"></script>
    <script src="xmlextras.js"></script>
    <script src="jsjac.js"></script>
    <script>
      <!--

function doSub() {
	if (document.forms[0].invite[0].checked) {
		srcW.openGroupchat(to,srcW.jid.substring(0,srcW.jid.indexOf('@')),pass);
	} else { // decline
		var aMessage = new JSJaCMessage();
		aMessage.setTo(to);
		var x = aMessage.getNode().appendChild(aMessage.getDoc().createElement('x'));
		x.setAttribute('xmlns','http://jabber.org/protocol/muc#user');
		var decline = x.appendChild(aMessage.getDoc().createElement('decline'));
		decline.setAttribute('to',from);
		if (document.forms[0].reason.value != '')
			decline.appendChild(aMessage.getDoc().createElement('reason')).appendChild(aMessage.getDoc().createTextNode(document.forms[0].reason.value));
		srcW.con.send(aMessage);
	}
	window.close();
}

var srcW, to, from, pass;
function init() {
	srcW = opener;

	getArgs();
	
	to = passedArgs['to'];
	from = passedArgs['from'];
	pass = passedArgs['pass'];
	var reason = passedArgs['reason'];

	document.getElementById('to').innerHTML = to;
	document.getElementById('from').innerHTML = "<span class=\"link\" onClick=\"return srcW.openUserInfo('"+from+"');\">"+from+"</span>";

	if (typeof(reason) != 'undefined' && reason != 'undefined')
		document.getElementById('reason').innerHTML = htmlEnc(reason);
	else
		document.getElementById('reason').innerHTML = "None Given";

	document.title = "Invitation to "+to;
}

onload = init;
      //-->
    </script>
  <body style="margin:8px;">
		<table width="100%" height="100%">
		<tr><td colspan=2><h2 id="title">Groupchat Invitation</h2></td></tr>
		<tr><td>Room:</td><td id="to"></td></tr>
		<tr><td>From:</td><td id="from"></td></tr>
		<tr><td>Reason:</td><td id="reason"></td></tr>
		<tr><td colspan=2><hr noshade size=1></td></tr>
    <form name="sub" onsubmit="return doSub();">
		<tr><td colspan=2 width="100%" height="100%">
		<table width="100%" height="100%">
		<tr><td><input type=radio name="invite" value="join" id="join" checked></td><td><label for="join">Join</label></td></tr>
		<tr><td><input type=radio name="invite" value="decline" id="decline"></td><td><label for="decline">Decline</label></td></tr>
		<tr><td>&nbsp;</td><td>Reason:</td></tr>
		<tr>
		<td>&nbsp;</td>
		<td width="100%" height="100%">
		<textarea name="reason" style="width:100%;height:100%"></textarea>
		</td>
		</tr>
		</table>
		</td></tr>
		<tr><td colspan=2><hr noshade size=1></td></tr>
		<tr><td colspan=2 align=right>
		<button type=submit>Submit</button>
    </form>
		<td></tr>
		</table>
  </body>
</html>