1 | <!-- INCLUDE simple_header.html -->
|
---|
2 |
|
---|
3 | <br clear="all" />
|
---|
4 |
|
---|
5 | <!-- MSNM info from http://www.cdolive.net/ - doesn't seem to work with MSN Messenger -->
|
---|
6 |
|
---|
7 | <form method="post" action="{S_IM_ACTION}">
|
---|
8 | <table class="tablebg" width="95%" cellspacing="1" cellpadding="4" border="0" align="center">
|
---|
9 | <tr>
|
---|
10 | <th colspan="2">{L_SEND_IM}</th>
|
---|
11 | </tr>
|
---|
12 | <tr>
|
---|
13 | <td class="row3" colspan="2"><span class="gensmall">{L_SEND_IM_EXPLAIN}</span></td>
|
---|
14 | </tr>
|
---|
15 | <tr>
|
---|
16 | <td class="row1"><b class="genmed">{L_IM_RECIPIENT}: </b></td>
|
---|
17 | <td class="row2"><span class="gen"><b>{USERNAME}</b><!-- IF S_SEND_ICQ or S_SEND_AIM or S_SEND_MSNM --> [ {IM_CONTACT} ]<!-- ENDIF --></span> <!-- IF PRESENCE_IMG -->{PRESENCE_IMG}<!-- ENDIF --></td>
|
---|
18 | </tr>
|
---|
19 |
|
---|
20 | <!-- IF S_SEND_AIM -->
|
---|
21 | <tr>
|
---|
22 | <td class="row1" colspan="2" align="center"><br /><a class="gen" href="{U_AIM_CONTACT}">{L_IM_ADD_CONTACT}</a><br /><a class="gen" href="{U_AIM_MESSAGE}">{L_IM_SEND_MESSAGE}</a><br /><br /><a class="gensmall" href="http://www.aim.com/download.adp">{L_IM_DOWNLOAD_APP}</a> | <a class="gensmall" href="http://aimexpress.oscar.aol.com/aimexpress/launch.adp?Brand=AIM">{L_IM_AIM_EXPRESS}</a> </td>
|
---|
23 | </tr>
|
---|
24 | <tr>
|
---|
25 | <td class="cat" colspan="2" align="center"> </td>
|
---|
26 | </tr>
|
---|
27 | <!-- ENDIF -->
|
---|
28 |
|
---|
29 | <!-- IF S_SEND_MSNM -->
|
---|
30 | <tr>
|
---|
31 | <td class="row1" colspan="2" align="center">
|
---|
32 | <object classid="clsid:B69003B3-C55E-4B48-836C-BC5946FC3B28" codetype="application/x-oleobject" id="objMessengerApp" width="0" height="0"></object>
|
---|
33 | <script type="text/javascript">
|
---|
34 | // <![CDATA[
|
---|
35 | var app = document.getElementById('objMessengerApp');
|
---|
36 |
|
---|
37 | /**
|
---|
38 | * Check whether the browser supports this and whether MSNM is connected
|
---|
39 | */
|
---|
40 | function msn_supported()
|
---|
41 | {
|
---|
42 | // Does the browser support the MSNM object?
|
---|
43 | if (app.MyStatus)
|
---|
44 | {
|
---|
45 | // Is MSNM connected?
|
---|
46 | if (app.MyStatus == 1)
|
---|
47 | {
|
---|
48 | alert('{LA_IM_MSNM_CONNECT}');
|
---|
49 | return false;
|
---|
50 | }
|
---|
51 | }
|
---|
52 | else
|
---|
53 | {
|
---|
54 | alert('{LA_IM_MSNM_BROWSER}');
|
---|
55 | return false;
|
---|
56 | }
|
---|
57 | return true;
|
---|
58 | }
|
---|
59 |
|
---|
60 | /**
|
---|
61 | * Add to your contact list
|
---|
62 | */
|
---|
63 | function add_contact(address)
|
---|
64 | {
|
---|
65 | if (msn_supported())
|
---|
66 | {
|
---|
67 | // Could return an error while MSNM is connecting, don't want that
|
---|
68 | try
|
---|
69 | {
|
---|
70 | app.AddContact(0, address);
|
---|
71 | }
|
---|
72 | catch (e)
|
---|
73 | {
|
---|
74 | return;
|
---|
75 | }
|
---|
76 | }
|
---|
77 | }
|
---|
78 |
|
---|
79 | /**
|
---|
80 | * Write IM to contact
|
---|
81 | */
|
---|
82 | function im_contact(address)
|
---|
83 | {
|
---|
84 | if (msn_supported())
|
---|
85 | {
|
---|
86 | // Could return an error while MSNM is connecting, don't want that
|
---|
87 | try
|
---|
88 | {
|
---|
89 | app.InstantMessage(address);
|
---|
90 | }
|
---|
91 | catch (e)
|
---|
92 | {
|
---|
93 | return;
|
---|
94 | }
|
---|
95 | }
|
---|
96 | }
|
---|
97 | // ]]>
|
---|
98 | </script>
|
---|
99 |
|
---|
100 | <a class="gen" href="#" onclick="add_contact('{A_IM_CONTACT}'); return false;">{L_IM_ADD_CONTACT}</a><br /><a class="gen" href="#" onclick="im_contact('{A_IM_CONTACT}'); return false;">{L_IM_SEND_MESSAGE}</a>
|
---|
101 | </td>
|
---|
102 | </tr>
|
---|
103 | <tr>
|
---|
104 | <td class="cat" colspan="2" align="center"> </td>
|
---|
105 | </tr>
|
---|
106 | <!-- ENDIF -->
|
---|
107 |
|
---|
108 | <!-- IF S_SEND_JABBER -->
|
---|
109 | <tr>
|
---|
110 | <td class="row1"><b class="genmed">{L_IM_MESSAGE}: </b></td>
|
---|
111 | <td class="row2"><textarea class="post" name="message" rows="5" cols="45"></textarea></td>
|
---|
112 | </tr>
|
---|
113 | <tr>
|
---|
114 | <td class="cat" colspan="2" align="center"><input class="btnmain" name="submit" type="submit" value="{L_IM_SEND}" /></td>
|
---|
115 | </tr>
|
---|
116 | <!-- ENDIF -->
|
---|
117 |
|
---|
118 | <!-- IF S_NO_SEND_JABBER -->
|
---|
119 | <tr>
|
---|
120 | <td class="row1" colspan="2"><span class="genmed">{L_IM_NO_JABBER}</span></td>
|
---|
121 | </tr>
|
---|
122 | <!-- ENDIF -->
|
---|
123 |
|
---|
124 | <!-- IF S_SENT_JABBER -->
|
---|
125 | <tr>
|
---|
126 | <td class="row1" colspan="2" align="center"><span class="gen">{L_IM_SENT_JABBER}</span></td>
|
---|
127 | </tr>
|
---|
128 | <tr>
|
---|
129 | <td class="cat" colspan="2" align="center"></td>
|
---|
130 | </tr>
|
---|
131 | <!-- ENDIF -->
|
---|
132 |
|
---|
133 | </table>
|
---|
134 | <a class="nav" href="#" onclick="window.close(); return false;">{L_CLOSE_WINDOW}</a>
|
---|
135 | {S_FORM_TOKEN}
|
---|
136 | </form>
|
---|
137 |
|
---|
138 |
|
---|
139 | <!-- INCLUDE simple_footer.html -->
|
---|