2007-10-10 19:15:47 +04:00
|
|
|
<?php
|
|
|
|
/*
|
|
|
|
* This file is part of Web Instant Messenger project.
|
|
|
|
*
|
2008-05-05 20:57:46 +04:00
|
|
|
* Copyright (c) 2005-2008 Internet Services Ltd.
|
2007-10-10 19:15:47 +04:00
|
|
|
* All rights reserved. This program and the accompanying materials
|
|
|
|
* are made available under the terms of the Eclipse Public License v1.0
|
|
|
|
* which accompanies this distribution, and is available at
|
|
|
|
* http://www.eclipse.org/legal/epl-v10.html
|
|
|
|
*
|
|
|
|
* Contributors:
|
|
|
|
* Evgeny Gryaznov - initial API and implementation
|
|
|
|
*/
|
|
|
|
?>
|
|
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
|
|
<html>
|
|
|
|
<head>
|
2008-05-06 15:08:21 +04:00
|
|
|
<title><?php echo getlocal("chat.window.title.user") ?></title>
|
2007-10-30 15:13:04 +03:00
|
|
|
<link rel="shortcut icon" href="<?php echo $webimroot ?>/images/favicon.ico" type="image/x-icon"/>
|
2007-10-10 19:15:47 +04:00
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1251">
|
2007-10-30 15:13:04 +03:00
|
|
|
<link rel="stylesheet" type="text/css" href="<?php echo $webimroot ?>/chat.css" />
|
|
|
|
<script type="text/javascript" language="javascript" src="<?php echo $webimroot ?>/js/brws.js"></script>
|
2007-10-10 19:15:47 +04:00
|
|
|
</head>
|
|
|
|
|
2007-10-30 15:13:04 +03:00
|
|
|
<body bgcolor="#FFFFFF" background="<?php echo $webimroot ?>/images/bg.gif" text="#000000" link="#C28400" vlink="#C28400" alink="#C28400" marginwidth="0" marginheight="0" leftmargin="0" rightmargin="0" topmargin="0" bottommargin="0">
|
2007-10-10 19:15:47 +04:00
|
|
|
|
|
|
|
<table width="600" cellspacing="0" cellpadding="0" border="0">
|
|
|
|
<tr>
|
|
|
|
<td valign="top">
|
|
|
|
|
|
|
|
<table width="600" cellspacing="0" cellpadding="0" border="0">
|
|
|
|
<tr>
|
|
|
|
<td></td>
|
2007-10-30 15:13:04 +03:00
|
|
|
<td colspan="2" height="100" background="<?php echo $webimroot ?>/images/banner.gif" valign="top" class="bgrn">
|
2007-10-10 19:15:47 +04:00
|
|
|
<table width="590" cellspacing="0" cellpadding="0" border="0">
|
|
|
|
<tr>
|
|
|
|
<td width="135" valign="top">
|
|
|
|
<table width="135" cellspacing="0" cellpadding="0" border="0">
|
|
|
|
<tr>
|
|
|
|
<td height="25"></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td align="center"><?php if( $page['ct.company.chatLogoURL'] ) { ?><img src="<?php echo $page['ct.company.chatLogoURL'] ?>" width="85" height="45" border="0" alt="<?php echo $page['ct.company.name'] ?>"><?php } ?></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td height="5"></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td align="center" class="text"><?php echo $page['ct.company.name'] ?></td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</td>
|
|
|
|
<td width="455" align="right" valign="top">
|
|
|
|
<table cellspacing="0" cellpadding="0" border="0">
|
|
|
|
<tr>
|
|
|
|
<td height="25" align="right">
|
|
|
|
|
|
|
|
<table cellspacing="0" cellpadding="0" border="0">
|
|
|
|
<tr>
|
2008-05-06 15:08:21 +04:00
|
|
|
<td class="text"><?php echo getlocal("chat.window.product_name") ?></td>
|
2007-10-10 19:15:47 +04:00
|
|
|
<td width="5"></td>
|
|
|
|
<td>
|
|
|
|
<table cellspacing="0" cellpadding="0" border="0">
|
|
|
|
<tr>
|
2008-05-06 15:08:21 +04:00
|
|
|
<td width="95" height="13" bgcolor="#D09221" align="center" class="www"><a href="<?php echo getlocal("site.url") ?>" title="<?php echo getlocal("company.title") ?>" target="_blank"><?php echo getlocal("site.title") ?></a></td>
|
2007-10-10 19:15:47 +04:00
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</td>
|
|
|
|
<td width="5"></td>
|
2008-05-06 15:08:21 +04:00
|
|
|
<td><a class="closethread" href="javascript:void(0)" onclick="return false;" title="<?php echo getlocal("chat.window.close_title") ?>"><img src='<?php echo $webimroot ?>/images/buttons/closewin.gif' width="15" height="15" border="0" altKey="chat.window.close_title"/></a></td>
|
2007-10-10 19:15:47 +04:00
|
|
|
<td width="5"></td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<td height="60" align="right">
|
|
|
|
|
|
|
|
<table cellspacing="0" cellpadding="0" border="0">
|
|
|
|
<tr>
|
|
|
|
|
2008-05-06 15:08:21 +04:00
|
|
|
<td class="text" nowrap><?php echo getlocal("chat.client.name") ?></td>
|
2007-10-30 15:13:04 +03:00
|
|
|
<td width="10" valign="top"><img src='<?php echo $webimroot ?>/images/free.gif' width="10" height="1" border="0" alt="" /></td>
|
2007-10-10 19:15:47 +04:00
|
|
|
<td><input id="uname" type="text" size="12" value="<?php echo $page['ct.user.name'] ?>" class="username"></td>
|
2007-10-30 15:13:04 +03:00
|
|
|
<td width="5" valign="top"><img src='<?php echo $webimroot ?>/images/free.gif' width="5" height="1" border="0" alt="" /></td>
|
2008-05-06 15:08:21 +04:00
|
|
|
<td><a href="javascript:void(0)" onclick="return false;" title="<?php echo getlocal("chat.client.changename") ?>"><img src='<?php echo $webimroot ?>/images/buttons/exec.gif' width="25" height="25" border="0" alt=">>" /></a></td>
|
2007-10-10 19:15:47 +04:00
|
|
|
|
2007-10-30 15:13:04 +03:00
|
|
|
<td><img src='<?php echo $webimroot ?>/images/buttondiv.gif' width="35" height="45" border="0" alt="" /></td>
|
2007-10-10 19:15:47 +04:00
|
|
|
|
2008-05-06 15:08:21 +04:00
|
|
|
<td><a href="<?php echo $page['selfLink'] ?>&act=mailthread" target="_blank" title="<?php echo getlocal("chat.window.toolbar.mail_history") ?>" onclick="this.newWindow = window.open('<?php echo $page['selfLink'] ?>&act=mailthread', 'ForwardMail', 'toolbar=0,scrollbars=0,location=0,statusbar=1,menubar=0,width=603,height=254,resizable=0');this.newWindow.focus();this.newWindow.opener=window;return false;"><img src='<?php echo $webimroot ?>/images/buttons/email.gif' width="25" height="25" border="0" alt="Mail" /></a></td>
|
2007-10-10 19:15:47 +04:00
|
|
|
|
2008-05-06 15:08:21 +04:00
|
|
|
<td><a id="refresh" href="javascript:void(0)" onclick="return false;" title="<?php echo getlocal("chat.window.toolbar.refresh") ?>">
|
2007-10-30 15:13:04 +03:00
|
|
|
<img src='<?php echo $webimroot ?>/images/buttons/refresh.gif' width="25" height="25" border="0" alt="Refresh" /></a></td>
|
2007-10-10 19:15:47 +04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<td width="20"></td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<td></td>
|
|
|
|
<td valign="top">
|
|
|
|
|
|
|
|
<table width="585" cellspacing="0" cellpadding="0" border="0">
|
|
|
|
<tr>
|
2008-05-06 15:08:21 +04:00
|
|
|
<td width="20" valign="top"><img src='<?php echo $webimroot.getlocal("image.chat.history") ?>' width="20" height="80" border="0" alt="History" /></td>
|
2007-10-10 19:15:47 +04:00
|
|
|
<td width="565" valign="top" id="chatwndtd">
|
|
|
|
<table width="100%" cellspacing="0" cellpadding="0" border="0">
|
|
|
|
<tr>
|
2007-10-30 15:13:04 +03:00
|
|
|
<td colspan="3" bgcolor="#A1A1A1"><img src='<?php echo $webimroot ?>/images/free.gif' width="1" height="1" border="0" alt="" /></td>
|
2007-10-10 19:15:47 +04:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2007-10-30 15:13:04 +03:00
|
|
|
<td bgcolor="#A1A1A1"><img src='<?php echo $webimroot ?>/images/free.gif' width="1" height="1" border="0" alt="" /></td>
|
2007-10-10 19:15:47 +04:00
|
|
|
<td width="100%" bgcolor="#FFFFFF" valign="top">
|
2007-10-30 15:13:04 +03:00
|
|
|
<iframe name="chatwndiframe" width="100%" height="175" src="<?php echo $webimroot ?>/thread.php?act=refresh&thread=<?php echo $page['ct.chatThreadId'] ?>&token=<?php echo $page['ct.token'] ?>&html=on&user=true" frameborder="0" style="overflow:auto;">
|
2007-10-10 19:15:47 +04:00
|
|
|
Sorry, your browser does not support iframes; try a browser that supports W3 standards.
|
|
|
|
</iframe>
|
|
|
|
</td>
|
2007-10-30 15:13:04 +03:00
|
|
|
<td bgcolor="#A1A1A1"><img src='<?php echo $webimroot ?>/images/free.gif' width="1" height="1" border="0" alt="" /></td>
|
2007-10-10 19:15:47 +04:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2007-10-30 15:13:04 +03:00
|
|
|
<td colspan="3" bgcolor="#A1A1A1"><img src='<?php echo $webimroot ?>/images/free.gif' width="1" height="1" border="0" alt="" /></td>
|
2007-10-10 19:15:47 +04:00
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<td colspan="2" height="5"></td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
2008-05-06 15:08:21 +04:00
|
|
|
<td width="20" valign="top"><img src='<?php echo $webimroot.getlocal("image.chat.message") ?>' width="20" height="85" border="0" alt="Message" /></td>
|
2007-10-10 19:15:47 +04:00
|
|
|
<td width="565" valign="top">
|
|
|
|
<table width="100%" cellspacing="0" cellpadding="0" border="0">
|
|
|
|
<tr>
|
2007-10-30 15:13:04 +03:00
|
|
|
<td colspan="3" bgcolor="#A1A1A1"><img src='<?php echo $webimroot ?>/images/free.gif' width="1" height="1" border="0" alt="" /></td>
|
2007-10-10 19:15:47 +04:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2007-10-30 15:13:04 +03:00
|
|
|
<td bgcolor="#A1A1A1"><img src='<?php echo $webimroot ?>/images/free.gif' width="1" height="1" border="0" alt="" /></td>
|
2007-10-10 19:15:47 +04:00
|
|
|
<td width="565" height="85" bgcolor="#FFFFFF" valign="top">
|
2007-10-30 15:13:04 +03:00
|
|
|
<form id="messageform" method="post" action="<?php echo $webimroot ?>/thread.php" target="chatwndiframe" width="565" height="85">
|
2007-10-10 19:15:47 +04:00
|
|
|
<input type="hidden" name="act" value="post"/><input type="hidden" name="html" value="on"/><input type="hidden" name="thread" value="<?php echo $page['ct.chatThreadId'] ?>"/><input type="hidden" name="token" value="<?php echo $page['ct.token'] ?>"/><input type="hidden" name="user" value="true"/>
|
|
|
|
<input type="hidden" id="message" name="message" value=""/>
|
|
|
|
<textarea id="messagetext" cols="50" rows="4" class="message" style="width:550px;" tabindex="0"></textarea>
|
|
|
|
</form>
|
|
|
|
</td>
|
2007-10-30 15:13:04 +03:00
|
|
|
<td bgcolor="#A1A1A1"><img src='<?php echo $webimroot ?>/images/free.gif' width="1" height="1" border="0" alt="" /></td>
|
2007-10-10 19:15:47 +04:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2007-10-30 15:13:04 +03:00
|
|
|
<td colspan="3" bgcolor="#A1A1A1"><img src='<?php echo $webimroot ?>/images/free.gif' width="1" height="1" border="0" alt="" /></td>
|
2007-10-10 19:15:47 +04:00
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<td height="45"></td>
|
|
|
|
<td>
|
|
|
|
<table width="100%" cellspacing="0" cellpadding="0" border="0">
|
|
|
|
<tr>
|
|
|
|
<td width="33%">
|
|
|
|
<table cellspacing="0" cellpadding="0" border="0">
|
|
|
|
<tr>
|
|
|
|
<td width="20"></td>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</td>
|
2008-05-06 15:08:21 +04:00
|
|
|
<td width="33%" align="center" class="copyr"><?php echo getlocal("chat.window.poweredby") ?> <a href="<?php echo getlocal("site.url") ?>" title="<?php echo getlocal("company.title") ?>" target="_blank"><?php echo getlocal("chat.window.poweredreftext") ?></a></td>
|
2007-10-10 19:15:47 +04:00
|
|
|
<td width="33%" align="right">
|
|
|
|
<table cellspacing="0" cellpadding="0" border="0" id="postmessage">
|
|
|
|
|
|
|
|
<tr>
|
2008-05-06 15:08:21 +04:00
|
|
|
<td><a href="javascript:void(0)" onclick="return false;" title="<?php echo getlocal("chat.window.send_message") ?>"><img src='<?php echo $webimroot ?>/images/submit.gif' width="40" height="35" border="0" alt=""/></a></td>
|
2007-10-30 15:13:04 +03:00
|
|
|
<td background="<?php echo $webimroot ?>/images/submitbg.gif" valign="top" class="submit">
|
|
|
|
<img src='<?php echo $webimroot ?>/images/free.gif' width="1" height="10" border="0" alt="" /><br>
|
2008-05-06 15:08:21 +04:00
|
|
|
<a id="msgsend1" href="javascript:void(0)" onclick="return false;" title="<?php echo getlocal("chat.window.send_message") ?>"><?php echo getlocal2("chat.window.send_message_short",array($page['send_shortcut'])) ?></a><br>
|
2007-10-10 19:15:47 +04:00
|
|
|
</td>
|
2008-05-06 15:08:21 +04:00
|
|
|
<td width="10"><a href="javascript:void(0)" onclick="return false;" title="<?php echo getlocal("chat.window.send_message") ?>"><img src='<?php echo $webimroot ?>/images/submitrest.gif' width="10" height="35" border="0" alt=""/></a></td>
|
2007-10-10 19:15:47 +04:00
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
2007-10-30 15:13:04 +03:00
|
|
|
<td width="10"><img src='<?php echo $webimroot ?>/images/free.gif' width="10" height="1" border="0" alt="" /></td>
|
|
|
|
<td width="585"><img src='<?php echo $webimroot ?>/images/free.gif' width="585" height="1" border="0" alt="" /></td>
|
|
|
|
<td width="5"><img src='<?php echo $webimroot ?>/images/free.gif' width="5" height="1" border="0" alt="" /></td>
|
2007-10-10 19:15:47 +04:00
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<script type="text/javascript"><!--
|
|
|
|
function sendmessage(){
|
|
|
|
getEl('message').value = getEl('messagetext').value;
|
|
|
|
getEl('messagetext').value = '';
|
|
|
|
getEl('messageform').submit();
|
|
|
|
}
|
|
|
|
getEl('messagetext').onkeydown = function(k) {
|
|
|
|
if( k ){ ctrl=k.ctrlKey;k=k.which; } else { k=event.keyCode;ctrl=event.ctrlKey; }
|
|
|
|
if( (k==13 && ctrl) || (k==10) ) {
|
|
|
|
sendmessage();
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
getEl('msgsend1').onclick = function() {
|
|
|
|
sendmessage();
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
//--></script>
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|