| author | indvdum (gotoindvdum[at]gmail[dot]com) |
| Thu, 08 Mar 2012 01:28:49 +0400 | |
| changeset 10 | 2829504a06be |
| permissions | -rw-r--r-- |
| indvdum@10 | 1 |
<!-- INCLUDE simple_header.html --> |
| indvdum@10 | 2 |
|
| indvdum@10 | 3 |
<!-- MSNM info from http://www.cdolive.net/ - doesn't seem to work with MSN Messenger --> |
| indvdum@10 | 4 |
<h2 class="solo">{L_SEND_IM}</h2>
|
| indvdum@10 | 5 |
|
| indvdum@10 | 6 |
<form method="post" action="{S_IM_ACTION}">
|
| indvdum@10 | 7 |
|
| indvdum@10 | 8 |
<div class="panel bg2"> |
| indvdum@10 | 9 |
<div class="inner"><span class="corners-top"><span></span></span> |
| indvdum@10 | 10 |
|
| indvdum@10 | 11 |
<p>{L_SEND_IM_EXPLAIN}</p>
|
| indvdum@10 | 12 |
|
| indvdum@10 | 13 |
<fieldset> |
| indvdum@10 | 14 |
<dl class="fields2"> |
| indvdum@10 | 15 |
<dt><label>{L_IM_RECIPIENT}:</label></dt>
|
| indvdum@10 | 16 |
<dd><strong>{USERNAME}</strong><!-- IF S_SEND_ICQ or S_SEND_AIM or S_SEND_MSNM or S_NO_SEND_JABBER --> [ {IM_CONTACT} ]<!-- ENDIF --><!-- IF PRESENCE_IMG --> {PRESENCE_IMG}<!-- ENDIF --></dd>
|
| indvdum@10 | 17 |
</dl> |
| indvdum@10 | 18 |
|
| indvdum@10 | 19 |
<!-- IF S_SEND_ICQ --> |
| indvdum@10 | 20 |
<dl class="fields2"> |
| indvdum@10 | 21 |
<dt><label for="from">{L_IM_NAME}:</label></dt>
|
| indvdum@10 | 22 |
<dd><input class="inputbox autowidth" type="text" name="from" id="from" size="20" /></dd> |
| indvdum@10 | 23 |
</dl> |
| indvdum@10 | 24 |
<dl class="fields2"> |
| indvdum@10 | 25 |
<dt><label for="body">{L_IM_MESSAGE}:</label></dt>
|
| indvdum@10 | 26 |
<dd><textarea class="inputbox autowidth" name="body" id="body" rows="5" cols="45"></textarea></dd> |
| indvdum@10 | 27 |
</dl> |
| indvdum@10 | 28 |
<dl class="fields2"> |
| indvdum@10 | 29 |
<dt> </dt> |
| indvdum@10 | 30 |
<dd><input class="button1" name="submit" type="submit" value="{L_IM_SEND}" /></dd>
|
| indvdum@10 | 31 |
</dl> |
| indvdum@10 | 32 |
<input type="hidden" name="fromemail" value="{EMAIL}" />
|
| indvdum@10 | 33 |
<input type="hidden" name="subject" value="{SITENAME}" />
|
| indvdum@10 | 34 |
<input type="hidden" name="to" value="{IM_CONTACT}" />
|
| indvdum@10 | 35 |
<!-- ENDIF --> |
| indvdum@10 | 36 |
|
| indvdum@10 | 37 |
<!-- IF S_SEND_AIM --> |
| indvdum@10 | 38 |
<dl class="fields2"> |
| indvdum@10 | 39 |
<dt> </dt> |
| indvdum@10 | 40 |
<dd><a href="{U_AIM_CONTACT}">{L_IM_ADD_CONTACT}</a></dd>
|
| indvdum@10 | 41 |
<dd><a href="{U_AIM_MESSAGE}">{L_IM_SEND_MESSAGE}</a></dd>
|
| indvdum@10 | 42 |
<dd><a href="http://www.aim.com">{L_IM_DOWNLOAD_APP}</a> | <a href="http://www.aim.com/products/express">{L_IM_AIM_EXPRESS}</a></dd>
|
| indvdum@10 | 43 |
</dl> |
| indvdum@10 | 44 |
<!-- ENDIF --> |
| indvdum@10 | 45 |
|
| indvdum@10 | 46 |
<!-- IF S_SEND_MSNM --> |
| indvdum@10 | 47 |
<dl class="fields2"> |
| indvdum@10 | 48 |
<dt> </dt> |
| indvdum@10 | 49 |
<dd><object classid="clsid:B69003B3-C55E-4B48-836C-BC5946FC3B28" codetype="application/x-oleobject" id="objMessengerApp" width="0" height="0"></object></dd> |
| indvdum@10 | 50 |
<dd><a href="#" onclick="add_contact('{A_IM_CONTACT}'); return false;">{L_IM_ADD_CONTACT}</a></dd>
|
| indvdum@10 | 51 |
<dd><a href="#" onclick="im_contact('{A_IM_CONTACT}'); return false;">{L_IM_SEND_MESSAGE}</a></dd>
|
| indvdum@10 | 52 |
</dl> |
| indvdum@10 | 53 |
<!-- ENDIF --> |
| indvdum@10 | 54 |
|
| indvdum@10 | 55 |
<!-- IF S_SEND_JABBER --> |
| indvdum@10 | 56 |
<dl class="fields2"> |
| indvdum@10 | 57 |
<dt><label for="message">{L_IM_MESSAGE}:</label></dt>
|
| indvdum@10 | 58 |
<dd><textarea class="inputbox autowidth" name="message" id="message" rows="5" cols="45"></textarea></dd> |
| indvdum@10 | 59 |
</dl> |
| indvdum@10 | 60 |
<dl class="fields2"> |
| indvdum@10 | 61 |
<dt> </dt> |
| indvdum@10 | 62 |
<dd><input class="button1" name="submit" type="submit" value="{L_IM_SEND}" /></dd>
|
| indvdum@10 | 63 |
</dl> |
| indvdum@10 | 64 |
<!-- ENDIF --> |
| indvdum@10 | 65 |
|
| indvdum@10 | 66 |
<!-- IF S_NO_SEND_JABBER --> |
| indvdum@10 | 67 |
<dl class="fields2"> |
| indvdum@10 | 68 |
<dt> </dt> |
| indvdum@10 | 69 |
<dd>{L_IM_NO_JABBER}</dd>
|
| indvdum@10 | 70 |
</dl> |
| indvdum@10 | 71 |
<!-- ENDIF --> |
| indvdum@10 | 72 |
|
| indvdum@10 | 73 |
<!-- IF S_SENT_JABBER --> |
| indvdum@10 | 74 |
<dl class="fields2"> |
| indvdum@10 | 75 |
<dt> </dt> |
| indvdum@10 | 76 |
<dd>{L_IM_SENT_JABBER}</dd>
|
| indvdum@10 | 77 |
</dl> |
| indvdum@10 | 78 |
<!-- ENDIF --> |
| indvdum@10 | 79 |
{S_FORM_TOKEN}
|
| indvdum@10 | 80 |
</fieldset> |
| indvdum@10 | 81 |
|
| indvdum@10 | 82 |
<span class="corners-bottom"><span></span></span></div> |
| indvdum@10 | 83 |
</div> |
| indvdum@10 | 84 |
</form> |
| indvdum@10 | 85 |
|
| indvdum@10 | 86 |
<a href="#" onclick="window.close(); return false;">{L_CLOSE_WINDOW}</a>
|
| indvdum@10 | 87 |
|
| indvdum@10 | 88 |
<script type="text/javascript"> |
| indvdum@10 | 89 |
// <![CDATA[ |
| indvdum@10 | 90 |
|
| indvdum@10 | 91 |
/** The following will not work with Windows Vista **/ |
| indvdum@10 | 92 |
|
| indvdum@10 | 93 |
var app = document.getElementById('objMessengerApp');
|
| indvdum@10 | 94 |
|
| indvdum@10 | 95 |
/** |
| indvdum@10 | 96 |
* Check whether the browser supports this and whether MSNM is connected |
| indvdum@10 | 97 |
*/ |
| indvdum@10 | 98 |
function msn_supported() |
| indvdum@10 | 99 |
{
|
| indvdum@10 | 100 |
// Does the browser support the MSNM object? |
| indvdum@10 | 101 |
if (app.MyStatus) |
| indvdum@10 | 102 |
{
|
| indvdum@10 | 103 |
// Is MSNM connected? |
| indvdum@10 | 104 |
if (app.MyStatus == 1) |
| indvdum@10 | 105 |
{
|
| indvdum@10 | 106 |
alert('{LA_IM_MSNM_CONNECT}');
|
| indvdum@10 | 107 |
return false; |
| indvdum@10 | 108 |
} |
| indvdum@10 | 109 |
} |
| indvdum@10 | 110 |
else |
| indvdum@10 | 111 |
{
|
| indvdum@10 | 112 |
alert('{LA_IM_MSNM_BROWSER}');
|
| indvdum@10 | 113 |
return false; |
| indvdum@10 | 114 |
} |
| indvdum@10 | 115 |
return true; |
| indvdum@10 | 116 |
} |
| indvdum@10 | 117 |
|
| indvdum@10 | 118 |
/** |
| indvdum@10 | 119 |
* Add to your contact list |
| indvdum@10 | 120 |
*/ |
| indvdum@10 | 121 |
function add_contact(address) |
| indvdum@10 | 122 |
{
|
| indvdum@10 | 123 |
if (msn_supported()) |
| indvdum@10 | 124 |
{
|
| indvdum@10 | 125 |
// Could return an error while MSNM is connecting, don't want that |
| indvdum@10 | 126 |
try |
| indvdum@10 | 127 |
{
|
| indvdum@10 | 128 |
app.AddContact(0, address); |
| indvdum@10 | 129 |
} |
| indvdum@10 | 130 |
catch (e) |
| indvdum@10 | 131 |
{
|
| indvdum@10 | 132 |
return; |
| indvdum@10 | 133 |
} |
| indvdum@10 | 134 |
} |
| indvdum@10 | 135 |
} |
| indvdum@10 | 136 |
|
| indvdum@10 | 137 |
/** |
| indvdum@10 | 138 |
* Write IM to contact |
| indvdum@10 | 139 |
*/ |
| indvdum@10 | 140 |
function im_contact(address) |
| indvdum@10 | 141 |
{
|
| indvdum@10 | 142 |
if (msn_supported()) |
| indvdum@10 | 143 |
{
|
| indvdum@10 | 144 |
// Could return an error while MSNM is connecting, don't want that |
| indvdum@10 | 145 |
try |
| indvdum@10 | 146 |
{
|
| indvdum@10 | 147 |
app.InstantMessage(address); |
| indvdum@10 | 148 |
} |
| indvdum@10 | 149 |
catch (e) |
| indvdum@10 | 150 |
{
|
| indvdum@10 | 151 |
return; |
| indvdum@10 | 152 |
} |
| indvdum@10 | 153 |
} |
| indvdum@10 | 154 |
} |
| indvdum@10 | 155 |
// ]]> |
| indvdum@10 | 156 |
</script> |
| indvdum@10 | 157 |
|
| indvdum@10 | 158 |
<!-- INCLUDE simple_footer.html --> |