1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/styles/subsilver2/template/memberlist_im.html Wed Mar 07 16:41:10 2012 +0400
1.3 @@ -0,0 +1,139 @@
1.4 +<!-- INCLUDE simple_header.html -->
1.5 +
1.6 +<br clear="all" />
1.7 +
1.8 +<!-- MSNM info from http://www.cdolive.net/ - doesn't seem to work with MSN Messenger -->
1.9 +
1.10 +<form method="post" action="{S_IM_ACTION}">
1.11 + <table class="tablebg" width="95%" cellspacing="1" cellpadding="4" border="0" align="center">
1.12 + <tr>
1.13 + <th colspan="2">{L_SEND_IM}</th>
1.14 + </tr>
1.15 + <tr>
1.16 + <td class="row3" colspan="2"><span class="gensmall">{L_SEND_IM_EXPLAIN}</span></td>
1.17 + </tr>
1.18 + <tr>
1.19 + <td class="row1"><b class="genmed">{L_IM_RECIPIENT}: </b></td>
1.20 + <td class="row2"><span class="gen"><b>{USERNAME}</b><!-- IF S_SEND_ICQ or S_SEND_AIM or S_SEND_MSNM or S_NO_SEND_JABBER --> [ {IM_CONTACT} ]<!-- ENDIF --></span> <!-- IF PRESENCE_IMG -->{PRESENCE_IMG}<!-- ENDIF --></td>
1.21 + </tr>
1.22 +
1.23 + <!-- IF S_SEND_AIM -->
1.24 + <tr>
1.25 + <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">{L_IM_DOWNLOAD_APP}</a> | <a class="gensmall" href="http://www.aim.com/products/express">{L_IM_AIM_EXPRESS}</a> </td>
1.26 + </tr>
1.27 + <tr>
1.28 + <td class="cat" colspan="2" align="center"> </td>
1.29 + </tr>
1.30 + <!-- ENDIF -->
1.31 +
1.32 + <!-- IF S_SEND_MSNM -->
1.33 + <tr>
1.34 + <td class="row1" colspan="2" align="center">
1.35 + <object classid="clsid:B69003B3-C55E-4B48-836C-BC5946FC3B28" codetype="application/x-oleobject" id="objMessengerApp" width="0" height="0"></object>
1.36 + <script type="text/javascript">
1.37 + // <![CDATA[
1.38 + var app = document.getElementById('objMessengerApp');
1.39 +
1.40 + /**
1.41 + * Check whether the browser supports this and whether MSNM is connected
1.42 + */
1.43 + function msn_supported()
1.44 + {
1.45 + // Does the browser support the MSNM object?
1.46 + if (app.MyStatus)
1.47 + {
1.48 + // Is MSNM connected?
1.49 + if (app.MyStatus == 1)
1.50 + {
1.51 + alert('{LA_IM_MSNM_CONNECT}');
1.52 + return false;
1.53 + }
1.54 + }
1.55 + else
1.56 + {
1.57 + alert('{LA_IM_MSNM_BROWSER}');
1.58 + return false;
1.59 + }
1.60 + return true;
1.61 + }
1.62 +
1.63 + /**
1.64 + * Add to your contact list
1.65 + */
1.66 + function add_contact(address)
1.67 + {
1.68 + if (msn_supported())
1.69 + {
1.70 + // Could return an error while MSNM is connecting, don't want that
1.71 + try
1.72 + {
1.73 + app.AddContact(0, address);
1.74 + }
1.75 + catch (e)
1.76 + {
1.77 + return;
1.78 + }
1.79 + }
1.80 + }
1.81 +
1.82 + /**
1.83 + * Write IM to contact
1.84 + */
1.85 + function im_contact(address)
1.86 + {
1.87 + if (msn_supported())
1.88 + {
1.89 + // Could return an error while MSNM is connecting, don't want that
1.90 + try
1.91 + {
1.92 + app.InstantMessage(address);
1.93 + }
1.94 + catch (e)
1.95 + {
1.96 + return;
1.97 + }
1.98 + }
1.99 + }
1.100 + // ]]>
1.101 + </script>
1.102 +
1.103 + <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>
1.104 + </td>
1.105 + </tr>
1.106 + <tr>
1.107 + <td class="cat" colspan="2" align="center"> </td>
1.108 + </tr>
1.109 + <!-- ENDIF -->
1.110 +
1.111 + <!-- IF S_SEND_JABBER -->
1.112 + <tr>
1.113 + <td class="row1"><b class="genmed">{L_IM_MESSAGE}: </b></td>
1.114 + <td class="row2"><textarea class="post" name="message" rows="5" cols="45"></textarea></td>
1.115 + </tr>
1.116 + <tr>
1.117 + <td class="cat" colspan="2" align="center"><input class="btnmain" name="submit" type="submit" value="{L_IM_SEND}" /></td>
1.118 + </tr>
1.119 + <!-- ENDIF -->
1.120 +
1.121 + <!-- IF S_NO_SEND_JABBER -->
1.122 + <tr>
1.123 + <td class="row1" colspan="2"><span class="genmed">{L_IM_NO_JABBER}</span></td>
1.124 + </tr>
1.125 + <!-- ENDIF -->
1.126 +
1.127 + <!-- IF S_SENT_JABBER -->
1.128 + <tr>
1.129 + <td class="row1" colspan="2" align="center"><span class="gen">{L_IM_SENT_JABBER}</span></td>
1.130 + </tr>
1.131 + <tr>
1.132 + <td class="cat" colspan="2" align="center"></td>
1.133 + </tr>
1.134 + <!-- ENDIF -->
1.135 +
1.136 + </table>
1.137 +{S_FORM_TOKEN}
1.138 +</form>
1.139 +
1.140 +<a class="nav" href="#" onclick="window.close(); return false;">{L_CLOSE_WINDOW}</a>
1.141 +
1.142 +<!-- INCLUDE simple_footer.html -->
1.143 \ No newline at end of file