~ubuntu-branches/ubuntu/trusty/jwchat/trusty

« back to all changes in this revision

Viewing changes to subscriptionRequest.html.zh_CN

  • Committer: Bazaar Package Importer
  • Author(s): Lincoln de Sousa, Lincoln de Sousa, Marcelo Jorge Vieira
  • Date: 2010-09-16 11:42:28 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20100916114228-5s5ne28n1w6wrfbl
Tags: 1.0+dfsg-1
[Lincoln de Sousa]

* Switch to dpkg-source 3.0 (quilt) format
* Migrating package from cdbs to debhelper 7.0.50~
* Changing the rule get-orig-source to generate a dfsg compatible
  package striping swf files from the orig (Closes: #591962)
* Updated Standards-Version to 3.9.1
* Removing po-debconf from the Build-Depends-Indep list.

[Marcelo Jorge Vieira]

* Fixing the default backend
* Fixing Debugger dependency
* Changing information about packaging from old maintainers to
  Debian XMPP Team.
* Removing sound support.
* Setting a port for apache VirtualHost.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
 
<html>
3
 
  <head>
4
 
    <title>JWChat - 用户邀请请求</title>
5
 
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
6
 
    <script src="shared.js"></script>
7
 
    <script src="emoticons.js"></script>
8
 
    <script src="switchStyle.js"></script>
9
 
    <script src="jsjac.js"></script>
10
 
    <script>
11
 
      <!--
12
 
var jid;
13
 
var msg;
14
 
var srcW; // the source window with necessary data
15
 
 
16
 
function sendSub() {
17
 
  var aPresence = new JSJaCPresence();
18
 
  aPresence.setTo(jid);
19
 
  aPresence.setType('subscribed');
20
 
 
21
 
  srcW.con.send(aPresence);
22
 
 
23
 
  // maybe we want to subscribe to?
24
 
 
25
 
  var user = srcW.roster.getUserByJID(jid);
26
 
  if (!user || (user.subscription != 'both' && user.subscription != 'to'))
27
 
    srcW.openSubscription(jid);
28
 
 
29
 
  window.close();
30
 
}
31
 
 
32
 
function sendUnsub() {
33
 
  var aPresence = new JSJaCPresence();
34
 
  aPresence.setTo(jid);
35
 
  aPresence.setType('unsubscribed');
36
 
 
37
 
  window.close();
38
 
}    
39
 
 
40
 
function init() {
41
 
  // determine source window
42
 
  srcW = opener;
43
 
                        
44
 
  getArgs();
45
 
  jid = passedArgs['jid'];
46
 
  if (typeof(passedArgs['msg']) != 'undefined')
47
 
    msg = passedArgs['msg'];
48
 
 
49
 
  document.title = "从 "+jid+" 来的邀请请求";
50
 
 
51
 
  var from = "<b><span class=\"link\" onClick=\"return srcW.openUserInfo('"+jid+"');\" title=\""+"显示用户 "+jid+" 的信息"+"\">"+jid.substring(0,jid.indexOf('@'))+"</a></b> ";
52
 
  
53
 
  document.getElementById("requestingUser").innerHTML = from;
54
 
  if (msg)
55
 
    msgbox.document.body.innerHTML = msgFormat(msg);
56
 
}
57
 
                
58
 
function keyPressed(e) {
59
 
  if (e.ctrlKey && e.keyCode == 13)
60
 
    sendSub();
61
 
  else if (e.keyCode == 27)
62
 
    window.close();
63
 
}
64
 
 
65
 
onkeydown = keyPressed;
66
 
onload = init;
67
 
      //-->
68
 
    </script>
69
 
    <script for="document" event="onkeydown()" language="JScript">
70
 
      <!--
71
 
      if (window.event.ctrlKey && window.event.keyCode == 13)
72
 
      sendSub();
73
 
      if (window.event.keyCode == 27)
74
 
      window.close();
75
 
      //-->
76
 
    </script>
77
 
  </head>
78
 
  <body style="margin:8px;">
79
 
    <table  width="100%" height="100%" border=0 cellpadding=0 cellspacing=0 style="margin-bottom: 8px;">
80
 
      <tr><td>
81
 
        <span id="requestingUser"></span> 想加您为他/她的联系人:
82
 
      </td></tr>
83
 
      <tr height="100%"><td style="padding-top: 4px;"><iframe src="chat_iframe.html" id="msgbox" name="msgbox" scrolling="yes" class="msgbox"></iframe></td></tr>
84
 
      <form name="sub">
85
 
      <tr><td><hr noshade size="1" size="100%"></td></tr>
86
 
      <tr><td align="right">
87
 
          <button onClick="return sendUnsub();">阻止</button>&nbsp;<button onClick="return sendSub();" tabindex=1>允许</button>
88
 
        </td></tr>
89
 
      </form>
90
 
    </table>
91
 
  </body>
92
 
</html>