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