styles/cubometry-style/template/memberlist_im.html
changeset 10 2829504a06be
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/styles/cubometry-style/template/memberlist_im.html	Thu Mar 08 01:28:49 2012 +0400
     1.3 @@ -0,0 +1,158 @@
     1.4 +<!-- INCLUDE simple_header.html -->
     1.5 +
     1.6 +<!-- MSNM info from http://www.cdolive.net/ - doesn't seem to work with MSN Messenger -->
     1.7 +<h2 class="solo">{L_SEND_IM}</h2>
     1.8 +
     1.9 +<form method="post" action="{S_IM_ACTION}">
    1.10 +
    1.11 +<div class="panel bg2">
    1.12 +	<div class="inner"><span class="corners-top"><span></span></span>
    1.13 +
    1.14 +	<p>{L_SEND_IM_EXPLAIN}</p>
    1.15 +
    1.16 +	<fieldset>
    1.17 +	<dl class="fields2">
    1.18 +		<dt><label>{L_IM_RECIPIENT}:</label></dt>
    1.19 +		<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>
    1.20 +	</dl>
    1.21 +
    1.22 +	<!-- IF S_SEND_ICQ -->
    1.23 +		<dl class="fields2">
    1.24 +			<dt><label for="from">{L_IM_NAME}:</label></dt>
    1.25 +			<dd><input class="inputbox autowidth" type="text" name="from" id="from" size="20" /></dd>
    1.26 +		</dl>
    1.27 +		<dl class="fields2">
    1.28 +			<dt><label for="body">{L_IM_MESSAGE}:</label></dt>
    1.29 +			<dd><textarea class="inputbox autowidth" name="body" id="body" rows="5" cols="45"></textarea></dd>
    1.30 +		</dl>
    1.31 +		<dl class="fields2">
    1.32 +			<dt>&nbsp;</dt>
    1.33 +			<dd><input class="button1" name="submit" type="submit" value="{L_IM_SEND}" /></dd>
    1.34 +		</dl>
    1.35 +		<input type="hidden" name="fromemail" value="{EMAIL}" />
    1.36 +		<input type="hidden" name="subject" value="{SITENAME}" />
    1.37 +		<input type="hidden" name="to" value="{IM_CONTACT}" />
    1.38 +	<!-- ENDIF -->
    1.39 +
    1.40 +	<!-- IF S_SEND_AIM -->
    1.41 +		<dl class="fields2">
    1.42 +			<dt>&nbsp;</dt>
    1.43 +			<dd><a href="{U_AIM_CONTACT}">{L_IM_ADD_CONTACT}</a></dd>
    1.44 +			<dd><a href="{U_AIM_MESSAGE}">{L_IM_SEND_MESSAGE}</a></dd>
    1.45 +			<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>
    1.46 +		</dl>
    1.47 +	<!-- ENDIF -->
    1.48 +
    1.49 +	<!-- IF S_SEND_MSNM -->
    1.50 +		<dl class="fields2">
    1.51 +			<dt>&nbsp;</dt>
    1.52 +			<dd><object classid="clsid:B69003B3-C55E-4B48-836C-BC5946FC3B28" codetype="application/x-oleobject" id="objMessengerApp" width="0" height="0"></object></dd>
    1.53 +			<dd><a href="#" onclick="add_contact('{A_IM_CONTACT}'); return false;">{L_IM_ADD_CONTACT}</a></dd>
    1.54 +			<dd><a href="#" onclick="im_contact('{A_IM_CONTACT}'); return false;">{L_IM_SEND_MESSAGE}</a></dd>
    1.55 +		</dl>
    1.56 +	<!-- ENDIF -->
    1.57 +
    1.58 +	<!-- IF S_SEND_JABBER -->
    1.59 +		<dl class="fields2">
    1.60 +			<dt><label for="message">{L_IM_MESSAGE}:</label></dt>
    1.61 +			<dd><textarea class="inputbox autowidth" name="message" id="message" rows="5" cols="45"></textarea></dd>
    1.62 +		</dl>
    1.63 +		<dl class="fields2">
    1.64 +			<dt>&nbsp;</dt>
    1.65 +			<dd><input class="button1" name="submit" type="submit" value="{L_IM_SEND}" /></dd>
    1.66 +		</dl>
    1.67 +	<!-- ENDIF -->
    1.68 +
    1.69 +	<!-- IF S_NO_SEND_JABBER -->
    1.70 +		<dl class="fields2">
    1.71 +			<dt>&nbsp;</dt>
    1.72 +			<dd>{L_IM_NO_JABBER}</dd>
    1.73 +		</dl>
    1.74 +	<!-- ENDIF -->
    1.75 +
    1.76 +	<!-- IF S_SENT_JABBER -->
    1.77 +		<dl class="fields2">
    1.78 +			<dt>&nbsp;</dt>
    1.79 +			<dd>{L_IM_SENT_JABBER}</dd>
    1.80 +		</dl>
    1.81 +	<!-- ENDIF -->
    1.82 +	{S_FORM_TOKEN}
    1.83 +	</fieldset>
    1.84 +
    1.85 +	<span class="corners-bottom"><span></span></span></div>
    1.86 +</div>
    1.87 +</form>
    1.88 +
    1.89 +<a href="#" onclick="window.close(); return false;">{L_CLOSE_WINDOW}</a>
    1.90 +
    1.91 +<script type="text/javascript">
    1.92 +// <![CDATA[
    1.93 +
    1.94 +	/** The following will not work with Windows Vista **/
    1.95 +
    1.96 +	var app = document.getElementById('objMessengerApp');
    1.97 +
    1.98 +	/**
    1.99 +	* Check whether the browser supports this and whether MSNM is connected
   1.100 +	*/
   1.101 +	function msn_supported()
   1.102 +	{
   1.103 +		// Does the browser support the MSNM object?
   1.104 +		if (app.MyStatus)
   1.105 +		{
   1.106 +			// Is MSNM connected?
   1.107 +			if (app.MyStatus == 1)
   1.108 +			{
   1.109 +				alert('{LA_IM_MSNM_CONNECT}');
   1.110 +				return false;
   1.111 +			}
   1.112 +		}
   1.113 +		else
   1.114 +		{
   1.115 +			alert('{LA_IM_MSNM_BROWSER}');
   1.116 +			return false;
   1.117 +		}
   1.118 +		return true;
   1.119 +	}
   1.120 +
   1.121 +	/**
   1.122 +	* Add to your contact list
   1.123 +	*/
   1.124 +	function add_contact(address) 
   1.125 +	{
   1.126 +		if (msn_supported()) 
   1.127 +		{
   1.128 +			// Could return an error while MSNM is connecting, don't want that
   1.129 +			try
   1.130 +			{
   1.131 +				app.AddContact(0, address);
   1.132 +			}
   1.133 +			catch (e)
   1.134 +			{
   1.135 +				return;
   1.136 +			}
   1.137 +	}
   1.138 +}
   1.139 +
   1.140 +/**
   1.141 +* Write IM to contact
   1.142 +*/
   1.143 +function im_contact(address)
   1.144 +{
   1.145 +	if (msn_supported())
   1.146 +	{
   1.147 +		// Could return an error while MSNM is connecting, don't want that
   1.148 +		try
   1.149 +		{
   1.150 +			app.InstantMessage(address);
   1.151 +		}
   1.152 +		catch (e)
   1.153 +		{
   1.154 +			return;
   1.155 +		}
   1.156 +	}
   1.157 +}
   1.158 +// ]]>
   1.159 +</script>
   1.160 +
   1.161 +<!-- INCLUDE simple_footer.html -->
   1.162 \ No newline at end of file