mirror of
				https://github.com/Mibew/i18n.git
				synced 2025-11-04 10:35:08 +03:00 
			
		
		
		
	git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@121 c66351dc-e62f-0410-b875-e3a5c0b9693f
		
			
				
	
	
		
			284 lines
		
	
	
		
			13 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			284 lines
		
	
	
		
			13 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
/*
 | 
						|
 * This file is part of Web Instant Messenger project.
 | 
						|
 *
 | 
						|
 * Copyright (c) 2005-2008 Internet Services Ltd.
 | 
						|
 * 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>
 | 
						|
<title><?php echo getlocal("chat.window.title.agent") ?></title>
 | 
						|
<link rel="shortcut icon" href="<?php echo $webimroot ?>/images/favicon.ico" type="image/x-icon"/>
 | 
						|
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1251">
 | 
						|
<link rel="stylesheet" type="text/css" href="<?php echo $webimroot ?>/chat.css" />
 | 
						|
<script type="text/javascript" language="javascript" src="<?php echo $webimroot ?>/js/common.js"></script>
 | 
						|
<script type="text/javascript" language="javascript" src="<?php echo $webimroot ?>/js/brws.js"></script>
 | 
						|
<script language="javascript"><!--
 | 
						|
var threadParams = { servl:"<?php echo $webimroot ?>/thread.php",wroot:"<?php echo $webimroot ?>",frequency:2,<?php if( $page['user'] ) { ?>user:"true",<?php } ?>threadid:<?php echo $page['ct.chatThreadId'] ?>,token:<?php echo $page['ct.token'] ?> };
 | 
						|
//--></script>
 | 
						|
<script type="text/javascript" language="javascript" src="<?php echo $webimroot ?>/js/chat.js"></script>
 | 
						|
</head>
 | 
						|
 | 
						|
<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">
 | 
						|
 | 
						|
<table width="100%" height="100%" cellspacing="0" cellpadding="0" border="0">
 | 
						|
<tr>
 | 
						|
<td valign="top">
 | 
						|
 | 
						|
	<table width="100%" height="100%" cellspacing="0" cellpadding="0" border="0">
 | 
						|
	<tr>
 | 
						|
    <td></td>
 | 
						|
    <td colspan="2" height="100" background="<?php echo $webimroot ?>/images/banner.gif" valign="top" class="bgrn">
 | 
						|
		<table width="100%" cellspacing="0" cellpadding="0" border="0">
 | 
						|
		<tr>
 | 
						|
	    <td width="50%" valign="top">
 | 
						|
			<table width="135" cellspacing="0" cellpadding="0" border="0">
 | 
						|
			<tr>
 | 
						|
		    <td height="10"></td>
 | 
						|
			</tr>
 | 
						|
			<tr>
 | 
						|
		    <td align="center">
 | 
						|
		    	<?php if( $page['ct.company.chatLogoURL'] ) { ?>
 | 
						|
		    		<?php if( $page['webimHost'] ) { ?>
 | 
						|
		            	<a onclick="window.open('<?php echo $page['webimHost'] ?>');return false;" href="_blank">
 | 
						|
			            	<img src="<?php echo $page['ct.company.chatLogoURL'] ?>" border="0" alt="">
 | 
						|
			            </a>
 | 
						|
			        <?php } ?>
 | 
						|
		    		<?php if( !$page['webimHost'] ) { ?>
 | 
						|
		            	<img src="<?php echo $page['ct.company.chatLogoURL'] ?>" border="0" alt="">
 | 
						|
			        <?php } ?>
 | 
						|
		        <?php } ?>
 | 
						|
		    </td>
 | 
						|
			</tr>
 | 
						|
			<tr>
 | 
						|
		    <td height="5"></td>
 | 
						|
			</tr>
 | 
						|
            <?php if( !$page['ct.company.chatLogoURL'] ) { ?>
 | 
						|
			<tr>
 | 
						|
		    <td align="center" class="text">
 | 
						|
	    		<?php if( $page['webimHost'] ) { ?>
 | 
						|
	            	<a onclick="window.open('<?php echo $page['webimHost'] ?>');return false;" href="_blank"><?php echo $page['ct.company.name'] ?></a><?php } ?>
 | 
						|
			    <?php if( !$page['webimHost'] ) { ?><?php echo $page['ct.company.name'] ?><?php } ?></td>
 | 
						|
			</tr>
 | 
						|
            <?php } ?>
 | 
						|
			</table>
 | 
						|
		</td>
 | 
						|
    	<td width="50%" 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>
 | 
						|
			    <td class="text"><?php echo getlocal("chat.window.product_name") ?></td>
 | 
						|
			    <td width="5"></td>
 | 
						|
			    <td>
 | 
						|
					<table cellspacing="0" cellpadding="0" border="0">
 | 
						|
					<tr>
 | 
						|
				    <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>
 | 
						|
					</tr>
 | 
						|
					</table>
 | 
						|
				</td>
 | 
						|
			    <td width="5"></td>
 | 
						|
			    <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_link_text"/></a></td>
 | 
						|
			    <td width="5"></td>
 | 
						|
				</tr>
 | 
						|
				</table>
 | 
						|
 | 
						|
			</td>
 | 
						|
			</tr>
 | 
						|
 | 
						|
			<tr>
 | 
						|
		    <td height="60" align="right">
 | 
						|
 | 
						|
				<table cellspacing="0" cellpadding="0" border="0">
 | 
						|
				<tr>
 | 
						|
<?php if( $page['agent'] ) { ?>
 | 
						|
				<td class="text" nowrap>
 | 
						|
				<?php echo getlocal("chat.window.chatting_with") ?> <b><?php echo htmlspecialchars($page['ct.user.name']) ?></b>
 | 
						|
			</td>
 | 
						|
<?php } ?>
 | 
						|
<?php if( $page['user'] && $page['canChangeName'] ) { ?>
 | 
						|
				<td class="text" nowrap>
 | 
						|
				<div id="changename1" style="display:<?php echo $page['displ1'] ?>;">
 | 
						|
					<table cellspacing="0" cellpadding="0" border="0"><tr>
 | 
						|
					<td class="text" nowrap><?php echo getlocal("chat.client.name") ?></td>
 | 
						|
					<td width="10" valign="top"><img src='<?php echo $webimroot ?>/images/free.gif' width="10" height="1" border="0" alt="" /></td>
 | 
						|
					<td><input id="uname" type="text" size="12" value="<?php echo $page['ct.user.name'] ?>" class="username"></td>
 | 
						|
					<td width="5" valign="top"><img src='<?php echo $webimroot ?>/images/free.gif' width="5" height="1" border="0" alt="" /></td>
 | 
						|
					<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>
 | 
						|
					</tr></table>
 | 
						|
				</div>
 | 
						|
				<div id="changename2" style="display:<?php echo $page['displ2'] ?>;">
 | 
						|
					<table cellspacing="0" cellpadding="0" border="0"><tr>
 | 
						|
					<td class="text" nowrap><a id="unamelink" href="javascript:void(0)" onclick="return false;" title="<?php echo getlocal("chat.client.changename") ?>"><?php echo $page['ct.user.name'] ?></a></td>
 | 
						|
					<td width="10" valign="top"><img src='<?php echo $webimroot ?>/images/free.gif' width="10" height="1" border="0" alt="" /></td>
 | 
						|
					<td><a href="javascript:void(0)" onclick="return false;" title="<?php echo getlocal("chat.client.changename") ?>"><img src='<?php echo $webimroot ?>/images/buttons/changeuser.gif' width="25" height="25" border="0" alt="" /></a></td>
 | 
						|
					</tr></table>
 | 
						|
				</div>
 | 
						|
				</td>
 | 
						|
<?php } ?>
 | 
						|
<?php if( $page['user'] && !$page['canChangeName'] ) { ?>
 | 
						|
				<td class="text" nowrap>
 | 
						|
				<?php echo getlocal("chat.client.name") ?> <?php echo $page['ct.user.name'] ?>
 | 
						|
				</td>
 | 
						|
<?php } ?>
 | 
						|
 | 
						|
 | 
						|
<?php if( $page['agent'] ) { ?>
 | 
						|
				<td width="10" valign="top"><img src='<?php echo $webimroot ?>/images/free.gif' width="10" height="1" border="0" alt="" /></td>
 | 
						|
				<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/close.gif' width="25" height="25" border="0" altKey="chat.window.close_link_text"/></a></td>
 | 
						|
<?php } ?>
 | 
						|
<!--
 | 
						|
				<td><img src='<?php echo $webimroot ?>/images/buttons/changeuser.gif' width="25" height="25" border="0" alt="Change User" /></td>
 | 
						|
 -->
 | 
						|
 | 
						|
			    <td><img src='<?php echo $webimroot ?>/images/buttondiv.gif' width="35" height="45" border="0" alt="" /></td>
 | 
						|
<?php if( $page['user'] ) { ?>
 | 
						|
				<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>
 | 
						|
<?php } ?>
 | 
						|
 | 
						|
				<td><a id="refresh" href="javascript:void(0)" onclick="return false;" title="<?php echo getlocal("chat.window.toolbar.refresh") ?>">
 | 
						|
				<img src='<?php echo $webimroot ?>/images/buttons/refresh.gif' width="25" height="25" border="0" alt="Refresh " /></a></td>
 | 
						|
 | 
						|
				<td width="20" valign="top"><img src='<?php echo $webimroot ?>/images/free.gif' width="20" height="1" border="0" alt="" /></td>
 | 
						|
				</tr>
 | 
						|
				</table>
 | 
						|
 | 
						|
			</td>
 | 
						|
			</tr>
 | 
						|
 | 
						|
			<tr>
 | 
						|
		    <td height="15" align="right">
 | 
						|
		    	<div id="engineinfo" style="display:none;">
 | 
						|
		    	</div>
 | 
						|
				<div id="typingdiv" style="display:none;">
 | 
						|
					<?php echo getlocal("typing.remote") ?>
 | 
						|
				</div>
 | 
						|
			</td>
 | 
						|
			</tr>
 | 
						|
 | 
						|
			</table>
 | 
						|
		</td>
 | 
						|
		</tr>
 | 
						|
		</table>
 | 
						|
	</td>
 | 
						|
	</tr>
 | 
						|
 | 
						|
	<tr>
 | 
						|
    <td></td>
 | 
						|
    <td valign="top">
 | 
						|
 | 
						|
		<table width="100%" height="100%" cellspacing="0" cellpadding="0" border="0">
 | 
						|
		<tr>
 | 
						|
	    <td width="20" valign="top"><img src='<?php echo $webimroot.getlocal("image.chat.history") ?>' width="20" height="80" border="0" alt="" /></td>
 | 
						|
    	<td colspan="2" width="100%" height="100%" valign="top" id="chatwndtd">
 | 
						|
			<table width="100%" height="100%" cellspacing="0" cellpadding="0" border="0">
 | 
						|
			<tr>
 | 
						|
		    <td colspan="3" bgcolor="#A1A1A1"><img src='<?php echo $webimroot ?>/images/free.gif' width="1" height="1" border="0" alt="" /></td>
 | 
						|
			</tr>
 | 
						|
			<tr>
 | 
						|
		    <td bgcolor="#A1A1A1"><img src='<?php echo $webimroot ?>/images/free.gif' width="1" height="1" border="0" alt="" /></td>
 | 
						|
		    <td width="100%" height="100%" bgcolor="#FFFFFF" valign="top">
 | 
						|
				<iframe id="chatwnd" width="100%" height="100%" src="<?php if( $page['neediframesrc'] ) { ?><?php echo $webimroot ?>/images/blank.html<?php } ?>" frameborder="0" style="overflow:auto;">
 | 
						|
				Sorry, your browser does not support iframes; try a browser that supports W3 standards.
 | 
						|
				</iframe>
 | 
						|
			</td>
 | 
						|
		    <td bgcolor="#A1A1A1"><img src='<?php echo $webimroot ?>/images/free.gif' width="1" height="1" border="0" alt="" /></td>
 | 
						|
			</tr>
 | 
						|
			<tr>
 | 
						|
		    <td colspan="3" bgcolor="#A1A1A1"><img src='<?php echo $webimroot ?>/images/free.gif' width="1" height="1" border="0" alt="" /></td>
 | 
						|
			</tr>
 | 
						|
			</table>
 | 
						|
		</td>
 | 
						|
		</tr>
 | 
						|
<?php if( $page['canpost'] ) { ?>
 | 
						|
		<tr>
 | 
						|
	    <td colspan="3" height="5" style="cursor:n-resize;" id="spl1"></td>
 | 
						|
		</tr>
 | 
						|
 | 
						|
		<tr>
 | 
						|
	    <td width="20" valign="top"><img src='<?php echo $webimroot.getlocal("image.chat.message") ?>' width="20" height="85" border="0" alt="" /></td>
 | 
						|
	    <?php if( $page['isOpera95'] ) { ?>
 | 
						|
    	<td width="100%" height="60%" valign="top" id="msgwndtd">
 | 
						|
    	<?php } ?>
 | 
						|
	    <?php if( !$page['isOpera95'] ) { ?>
 | 
						|
    	<td width="100%" height="100" valign="top" id="msgwndtd">
 | 
						|
    	<?php } ?>
 | 
						|
			<table width="100%" height="100%" cellspacing="0" cellpadding="0" border="0"><tr><td colspan="3" bgcolor="#A1A1A1"><img src="<?php echo $webimroot ?>/images/free.gif" width="1" height="1" border="0" alt="" /></td></tr><tr><td bgcolor="#A1A1A1"><img src="<?php echo $webimroot ?>/images/free.gif" width="1" height="1" border="0" alt="" /></td><td width="100%" height="100%" bgcolor="#FFFFFF" valign="top">
 | 
						|
				<textarea id="msgwnd" class="message" tabindex="0"></textarea>
 | 
						|
			</td><td bgcolor="#A1A1A1"><img src="<?php echo $webimroot ?>/images/free.gif" width="1" height="1" border="0" alt="" /></td></tr><tr><td colspan="3" bgcolor="#A1A1A1"><img src="<?php echo $webimroot ?>/images/free.gif" width="1" height="1" border="0" alt="" /></td></tr></table>
 | 
						|
		</td>
 | 
						|
	    <td valign="center" id="avatarwnd"></td>
 | 
						|
		</tr>
 | 
						|
<?php } ?>
 | 
						|
		</table>
 | 
						|
 | 
						|
	</td>
 | 
						|
    <td></td>
 | 
						|
	</tr>
 | 
						|
 | 
						|
	<tr>
 | 
						|
    <td height="45"></td>
 | 
						|
    <td>
 | 
						|
		<table width="100%" cellspacing="0" cellpadding="0" border="0">
 | 
						|
		<tr>
 | 
						|
	    <td align="left">
 | 
						|
			<table cellspacing="0" cellpadding="0" border="0">
 | 
						|
			<tr>
 | 
						|
		    <td width="20"></td>
 | 
						|
 | 
						|
 | 
						|
			</tr>
 | 
						|
			</table>
 | 
						|
		</td>
 | 
						|
		<td 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>
 | 
						|
		<td align="right">
 | 
						|
 | 
						|
<?php if( $page['canpost'] ) { ?>
 | 
						|
			<table cellspacing="0" cellpadding="0" border="0" id="postmessage">
 | 
						|
 | 
						|
			<tr>
 | 
						|
            <td>
 | 
						|
 | 
						|
            </td>
 | 
						|
		    <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>
 | 
						|
		    <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>
 | 
						|
				<a id="sndmessagelnk" 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>
 | 
						|
			</td>
 | 
						|
			<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>
 | 
						|
			</tr>
 | 
						|
			</table>
 | 
						|
<?php } ?>
 | 
						|
		</td>
 | 
						|
		</tr>
 | 
						|
		</table>
 | 
						|
	</td>
 | 
						|
    <td></td>
 | 
						|
	</tr>
 | 
						|
 | 
						|
	<tr>
 | 
						|
    <td width="10"><img src='<?php echo $webimroot ?>/images/free.gif' width="10" height="1" border="0" alt="" /></td>
 | 
						|
    <td width="100%"><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>
 | 
						|
	</tr>
 | 
						|
	</table>
 | 
						|
 | 
						|
</td>
 | 
						|
</tr>
 | 
						|
</table>
 | 
						|
 | 
						|
</body>
 | 
						|
</html>
 | 
						|
 |