mirror of
				https://github.com/Mibew/i18n.git
				synced 2025-10-31 17:31:05 +03:00 
			
		
		
		
	use templates instead of static views
git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@170 c66351dc-e62f-0410-b875-e3a5c0b9693f
This commit is contained in:
		
							parent
							
								
									918a3d7735
								
							
						
					
					
						commit
						9ce1e28226
					
				| @ -63,17 +63,16 @@ if( !$thread || !isset($thread['ltoken']) || $token != $thread['ltoken'] ) { | ||||
| } | ||||
| 
 | ||||
| setup_chatview_for_user($thread, $level); | ||||
| start_html_output(); | ||||
| 
 | ||||
| $pparam = verifyparam( "act", "/^(mailthread)$/", "default"); | ||||
| if( $pparam == "mailthread" ) { | ||||
| 	require('view/chat_mailthread.php'); | ||||
| 	expand("design/default/mail.tpl"); | ||||
| } else if( $level == "ajaxed" ) { | ||||
| 	expand("design/default/chat.tpl"); | ||||
| } else if( $level == "simple" ) { | ||||
| 	require('view/chat_simple.php'); | ||||
| 	expand("design/default/chatsimple.tpl"); | ||||
| } else if( $level == "old" ) { | ||||
| 	require('view/chat_oldbrowser.php'); | ||||
| 	expand("design/default/nochat.tpl"); | ||||
| } | ||||
| 
 | ||||
| ?>
 | ||||
| @ -93,7 +93,7 @@ ${if:agent} | ||||
| 				<td class="text" nowrap> | ||||
|             ${if:historyParams} | ||||
| 				${msg:chat.window.chatting_with} | ||||
| 				<a href="${historyParamsLink}" target="_blank" title="${msg:page.analysis.userhistory.title}" onclick="this.newWindow = window.open('${historyParamsLink}', 'UserHistory', 'toolbar=0,scrollbars=0,location=0,statusbar=1,menubar=0,width=703,height=380,resizable=1');this.newWindow.focus();this.newWindow.opener=window;return false;">${print:ct.user.name}</a> | ||||
| 				<a href="${page:historyParamsLink}" target="_blank" title="${msg:page.analysis.userhistory.title}" onclick="this.newWindow = window.open('${page:historyParamsLink}', 'UserHistory', 'toolbar=0,scrollbars=0,location=0,statusbar=1,menubar=0,width=703,height=380,resizable=1');this.newWindow.focus();this.newWindow.opener=window;return false;">${print:ct.user.name}</a> | ||||
| 			${else:historyParams} | ||||
| 				${msg:chat.window.chatting_with} <b>${print:ct.user.name}</b> | ||||
| 			${endif:historyParams} | ||||
| @ -141,7 +141,7 @@ ${if:canpost} | ||||
| 				<img src='${webimroot}/images/buttons/send.gif' width="25" height="25" border="0" alt="Redirect " /></a></td> | ||||
| ${endif:canpost} | ||||
| ${if:historyParams} | ||||
| 				<td><a href="${historyParamsLink}" target="_blank" title="${msg:page.analysis.userhistory.title}" onclick="this.newWindow = window.open('${historyParamsLink}', 'UserHistory', 'toolbar=0,scrollbars=0,location=0,statusbar=1,menubar=0,width=703,height=380,resizable=1');this.newWindow.focus();this.newWindow.opener=window;return false;"><img src='${webimroot}/images/buttons/history.gif' width="25" height="25" border="0" alt="History "/></a></td> | ||||
| 				<td><a href="${page:historyParamsLink}" target="_blank" title="${msg:page.analysis.userhistory.title}" onclick="this.newWindow = window.open('${page:historyParamsLink}', 'UserHistory', 'toolbar=0,scrollbars=0,location=0,statusbar=1,menubar=0,width=703,height=380,resizable=1');this.newWindow.focus();this.newWindow.opener=window;return false;"><img src='${webimroot}/images/buttons/history.gif' width="25" height="25" border="0" alt="History "/></a></td> | ||||
| ${endif:historyParams} | ||||
| ${endif:agent} | ||||
| 				<td><a id="refresh" href="javascript:void(0)" onclick="return false;" title="${msg:chat.window.toolbar.refresh}"> | ||||
|  | ||||
| @ -60,9 +60,11 @@ function expand_var($matches) { | ||||
| 		} | ||||
| 		return getlocal($var); | ||||
| 	} else if($prefix == 'form:') { | ||||
| 		return $page["form$var"]; | ||||
| 		return form_value($var); | ||||
| 	} else if($prefix == 'page:') { | ||||
| 		return $page[$var]; | ||||
| 	} else if($prefix == 'print:') { | ||||
| 		return htmlspecialchars($page[$var]); | ||||
| 	} else if($prefix == 'if:' || $prefix == 'else:' || $prefix == 'endif:' || $prefix == 'ifnot:') { | ||||
| 		return "<!-- wrong $prefix:$var -->"; | ||||
| 	} | ||||
|  | ||||
| @ -14,6 +14,7 @@ | ||||
| 
 | ||||
| require_once('libs/common.php'); | ||||
| require_once('libs/chat.php'); | ||||
| require_once('libs/expand.php'); | ||||
| 
 | ||||
| $errors = array(); | ||||
| $page = array(); | ||||
| @ -40,8 +41,7 @@ if( count($errors) > 0 ) { | ||||
| 	$page['ct.chatThreadId'] = $thread['threadid']; | ||||
| 	$page['ct.token'] = $thread['ltoken']; | ||||
| 	$page['level'] = ""; | ||||
| 	start_html_output(); | ||||
| 	require('view/chat_mailthread.php'); | ||||
| 	expand("design/default/mail.tpl"); | ||||
| 	exit; | ||||
| } | ||||
| 
 | ||||
| @ -57,7 +57,5 @@ $body = getstring2("mail.user.history.body", array($thread['userName'],$history) | ||||
| 
 | ||||
| webim_mail($email, $webim_from_email, $subject, $body); | ||||
| 
 | ||||
| start_html_output(); | ||||
| require('view/chat_mailsent.php'); | ||||
| 
 | ||||
| expand("design/default/mailsent.tpl"); | ||||
| ?>
 | ||||
| @ -1,103 +0,0 @@ | ||||
| <?php | ||||
| /* | ||||
|  * This file is part of Web Instant Messenger project. | ||||
|  * | ||||
|  * Copyright (c) 2005-2008 Web Messenger Community | ||||
|  * 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.error_page.title") ?></title>
 | ||||
| <link rel="shortcut icon" href="<?php echo $webimroot ?>/images/favicon.ico" type="image/x-icon"/> | ||||
| <link rel="stylesheet" type="text/css" href="<?php echo $webimroot ?>/chat.css" /> | ||||
| </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 height="75"></td> | ||||
| <td class="window"> | ||||
| 	<h1><?php echo getlocal("chat.error_page.head") ?></h1>
 | ||||
| </td> | ||||
| <td></td> | ||||
| </tr> | ||||
| 
 | ||||
| <tr> | ||||
| <td height="100%"></td> | ||||
| <td> | ||||
| 
 | ||||
| 	<table width="100%" height="100%" cellspacing="0" cellpadding="0" border="0"><tr> | ||||
|     <td width="15"><img src='<?php echo $webimroot ?>/images/wincrnlt.gif' width="15" height="15" border="0" alt="" /></td> | ||||
| 	<td width="100%" background="<?php echo $webimroot ?>/images/winbg.gif" class="bgcy"><img src='<?php echo $webimroot ?>/images/free.gif' width="1" height="1" border="0" alt="" /></td> | ||||
|     <td width="15"><img src='<?php echo $webimroot ?>/images/wincrnrt.gif' width="15" height="15" border="0" alt="" /></td> | ||||
| 	</tr><tr><td height="100%" bgcolor="#FED840"><img src='<?php echo $webimroot ?>/images/free.gif' width="1" height="1" border="0" alt="" /></td> | ||||
| 	<td background="<?php echo $webimroot ?>/images/winbg.gif" class="bgcy"> | ||||
| 
 | ||||
| 		<?php	if( isset($errors) && count($errors) > 0 ) { | ||||
| 		print getlocal("errors.header"); | ||||
| 		foreach( $errors as $e ) { | ||||
| 			print getlocal("errors.prefix"); | ||||
| 			print $e; | ||||
| 			print getlocal("errors.suffix"); | ||||
| 		} | ||||
| 		print getlocal("errors.footer"); | ||||
| 	} ?>
 | ||||
| 
 | ||||
| 
 | ||||
| 	</td><td bgcolor="#E8A400"><img src='<?php echo $webimroot ?>/images/free.gif' width="1" height="1" border="0" alt="" /></td> | ||||
| 	</tr><tr><td><img src='<?php echo $webimroot ?>/images/wincrnlb.gif' width="15" height="15" border="0" alt="" /></td> | ||||
| 	<td background="<?php echo $webimroot ?>/images/winbg.gif" class="bgcy"><img src='<?php echo $webimroot ?>/images/free.gif' width="1" height="1" border="0" alt="" /></td> | ||||
|     <td><img src='<?php echo $webimroot ?>/images/wincrnrb.gif' width="15" height="15" border="0" alt="" /></td> | ||||
| 	</tr> | ||||
| 	</table> | ||||
| 
 | ||||
| </td> | ||||
| <td></td> | ||||
| </tr> | ||||
| 
 | ||||
| <tr> | ||||
| <td height="70"></td> | ||||
| <td> | ||||
| 
 | ||||
| 	<table width="100%" cellspacing="0" cellpadding="0" border="0"> | ||||
| 	<tr> | ||||
|     <td width="100%" align="right"> | ||||
| 		<table cellspacing="0" cellpadding="0" border="0"> | ||||
| 		<tr> | ||||
| 	    <td><a href="javascript:window.close();" title="<?php echo getlocal("chat.error_page.close") ?>"><img src='<?php echo $webimroot ?>/images/buttons/back.gif' width="25" height="25" border="0" alt="" /></a></td> | ||||
| 	    <td width="5"></td> | ||||
| 	    <td class="button"><a href="javascript:window.close();" title="<?php echo getlocal("chat.error_page.close") ?>"><?php echo getlocal("chat.error_page.close") ?></a></td>
 | ||||
| 		</tr> | ||||
| 		</table> | ||||
| 	</td> | ||||
| 	</tr> | ||||
| 	</table> | ||||
| 
 | ||||
| </td> | ||||
| <td></td> | ||||
| </tr> | ||||
| 
 | ||||
| <tr> | ||||
| <td width="30"><img src='<?php echo $webimroot ?>/images/free.gif' width="30" height="1" border="0" alt="" /></td> | ||||
| <td width="100%"><img src='<?php echo $webimroot ?>/images/free.gif' width="540" height="1" border="0" alt="" /></td> | ||||
| <td width="30"><img src='<?php echo $webimroot ?>/images/free.gif' width="30" height="1" border="0" alt="" /></td> | ||||
| </tr> | ||||
| </table> | ||||
| 
 | ||||
| </td> | ||||
| </tr> | ||||
| </table> | ||||
| </body> | ||||
| </html> | ||||
| 
 | ||||
| @ -1,103 +0,0 @@ | ||||
| <?php | ||||
| /* | ||||
|  * This file is part of Web Instant Messenger project. | ||||
|  * | ||||
|  * Copyright (c) 2005-2008 Web Messenger Community | ||||
|  * 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.user") ?></title>
 | ||||
| <link rel="shortcut icon" href="<?php echo $webimroot ?>/images/favicon.ico" type="image/x-icon"/> | ||||
| <link rel="stylesheet" type="text/css" href="<?php echo $webimroot ?>/chat.css" /> | ||||
| </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 height="75"></td> | ||||
| <td class="window"> | ||||
| 	<h1><?php echo getlocal("chat.mailthread.sent.title") ?></h1>
 | ||||
| </td> | ||||
| <td></td> | ||||
| </tr> | ||||
| 
 | ||||
| <tr> | ||||
| <td height="100%"></td> | ||||
| <td> | ||||
| 
 | ||||
| 	<table width="100%" height="100%" cellspacing="0" cellpadding="0" border="0"> | ||||
| 	<tr> | ||||
|     <td width="15"><img src='<?php echo $webimroot ?>/images/wincrnlt.gif' width="15" height="15" border="0" alt="" /></td> | ||||
| 	<td width="100%" background="<?php echo $webimroot ?>/images/winbg.gif" class="bgcy"><img src='<?php echo $webimroot ?>/images/free.gif' width="1" height="1" border="0" alt="" /></td> | ||||
|     <td width="15"><img src='<?php echo $webimroot ?>/images/wincrnrt.gif' width="15" height="15" border="0" alt="" /></td> | ||||
| 	</tr> | ||||
| 
 | ||||
| 	<tr> | ||||
|     <td height="100%" bgcolor="#FED840"><img src='<?php echo $webimroot ?>/images/free.gif' width="1" height="1" border="0" alt="" /></td> | ||||
| 	<td background="<?php echo $webimroot ?>/images/winbg.gif" class="bgcy"> | ||||
| 
 | ||||
| 		<?php echo getlocal2("chat.mailthread.sent.content",array($page['email'])) ?><br/>
 | ||||
| 		<a href="javascript:window.close();"><?php echo getlocal("chat.mailthread.sent.closewindow") ?></a>
 | ||||
| 
 | ||||
| 	</td> | ||||
|     <td bgcolor="#E8A400"><img src='<?php echo $webimroot ?>/images/free.gif' width="1" height="1" border="0" alt="" /></td> | ||||
| 	</tr> | ||||
| 
 | ||||
| 	<tr> | ||||
|     <td><img src='<?php echo $webimroot ?>/images/wincrnlb.gif' width="15" height="15" border="0" alt="" /></td> | ||||
| 	<td background="<?php echo $webimroot ?>/images/winbg.gif" class="bgcy"><img src='<?php echo $webimroot ?>/images/free.gif' width="1" height="1" border="0" alt="" /></td> | ||||
|     <td><img src='<?php echo $webimroot ?>/images/wincrnrb.gif' width="15" height="15" border="0" alt="" /></td> | ||||
| 	</tr> | ||||
| 	</table> | ||||
| 
 | ||||
| </td> | ||||
| <td></td> | ||||
| </tr> | ||||
| 
 | ||||
| <tr> | ||||
| <td height="70"></td> | ||||
| <td> | ||||
| 
 | ||||
| 	<table width="100%" cellspacing="0" cellpadding="0" border="0"> | ||||
| 	<tr> | ||||
|     <td width="100%" align="right"> | ||||
| 		<table cellspacing="0" cellpadding="0" border="0"> | ||||
| 		<tr> | ||||
| 	    <td><a href="javascript:window.close();" title="<?php echo getlocal("chat.mailthread.sent.close") ?>"><img src='<?php echo $webimroot ?>/images/buttons/back.gif' width="25" height="25" border="0" alt="" /></a></td> | ||||
| 	    <td width="5"></td> | ||||
| 	    <td class="button"><a href="javascript:window.close();" title="<?php echo getlocal("chat.mailthread.sent.close") ?>"><?php echo getlocal("chat.mailthread.sent.close") ?></a></td>
 | ||||
| 		</tr> | ||||
| 		</table> | ||||
| 	</td> | ||||
| 	</tr> | ||||
| 	</table> | ||||
| 
 | ||||
| </td> | ||||
| <td></td> | ||||
| </tr> | ||||
| 
 | ||||
| <tr> | ||||
| <td width="30"><img src='<?php echo $webimroot ?>/images/free.gif' width="30" height="1" border="0" alt="" /></td> | ||||
| <td width="100%"><img src='<?php echo $webimroot ?>/images/free.gif' width="540" height="1" border="0" alt="" /></td> | ||||
| <td width="30"><img src='<?php echo $webimroot ?>/images/free.gif' width="30" height="1" border="0" alt="" /></td> | ||||
| </tr> | ||||
| </table> | ||||
| 
 | ||||
| </td> | ||||
| </tr> | ||||
| </table> | ||||
| </body> | ||||
| </html> | ||||
| 
 | ||||
| @ -1,129 +0,0 @@ | ||||
| <?php | ||||
| /* | ||||
|  * This file is part of Web Instant Messenger project. | ||||
|  * | ||||
|  * Copyright (c) 2005-2008 Web Messenger Community | ||||
|  * 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.user") ?></title>
 | ||||
| <link rel="shortcut icon" href="<?php echo $webimroot ?>/images/favicon.ico" type="image/x-icon"/> | ||||
| <link rel="stylesheet" type="text/css" href="<?php echo $webimroot ?>/chat.css" /> | ||||
| </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"> | ||||
| 
 | ||||
| <form name="mailThreadForm" method="post" action="<?php echo $webimroot ?>/mail.php"> | ||||
| <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="level" value="<?php echo $page['level'] ?>"/> | ||||
| 
 | ||||
| <table width="100%" height="100%" cellspacing="0" cellpadding="0" border="0"> | ||||
| <tr> | ||||
| <td height="75"></td> | ||||
| <td class="window"> | ||||
| 	<h1><?php echo getlocal("mailthread.title") ?></h1>
 | ||||
| </td> | ||||
| <td></td> | ||||
| </tr> | ||||
| <tr><td></td> | ||||
| <td height="25"> | ||||
| <?php if( isset($errors) && count($errors) > 0 ) { ?>
 | ||||
| 		<table cellspacing="0" cellpadding="0" border="0"> | ||||
| 		<tr> | ||||
| 	    <td valign="top"><img src='<?php echo $webimroot ?>/images/icon_err.gif' width="40" height="40" border="0" alt="" /></td> | ||||
| 	    <td width="10"></td> | ||||
| 	    <td class="text"> | ||||
| 		    <?php	if( isset($errors) && count($errors) > 0 ) { | ||||
| 		print getlocal("errors.header"); | ||||
| 		foreach( $errors as $e ) { | ||||
| 			print getlocal("errors.prefix"); | ||||
| 			print $e; | ||||
| 			print getlocal("errors.suffix"); | ||||
| 		} | ||||
| 		print getlocal("errors.footer"); | ||||
| 	} ?>
 | ||||
| 
 | ||||
| 		</td> | ||||
| 		</tr> | ||||
| 		</table> | ||||
| 	<?php } ?>
 | ||||
| </td><td></td> | ||||
| </tr> | ||||
| 
 | ||||
| <tr> | ||||
| <td height="60"></td> | ||||
| <td> | ||||
| 
 | ||||
| 	<table cellspacing="0" cellpadding="0" border="0"><tr><td width="15"><img src="<?php echo $webimroot ?>/images/wincrnlt.gif" width="15" height="15" border="0" alt="" /></td><td width="100%" background="<?php echo $webimroot ?>/images/winbg.gif" class="bgcy"><img src="<?php echo $webimroot ?>/images/free.gif" width="1" height="1" border="0" alt="" /></td><td width="15"><img src="<?php echo $webimroot ?>/images/wincrnrt.gif" width="15" height="15" border="0" alt="" /></td></tr><tr><td height="100%" bgcolor="#FED840"><img src="<?php echo $webimroot ?>/images/free.gif" width="1" height="1" border="0" alt="" /></td><td background="<?php echo $webimroot ?>/images/winbg.gif" class="bgcy"><table cellspacing="0" cellpadding="0" border="0"> | ||||
| 		<tr> | ||||
| 	    <td class="text"><?php echo getlocal("mailthread.enter_email") ?></td>
 | ||||
| 	    <td width="10"></td> | ||||
| 	    <td><input type="text" name="email" size="20" value="<?php echo form_value('email') ?>" class="username"/></td> | ||||
| 		</tr> | ||||
| 	</table></td><td bgcolor="#E8A400"><img src="<?php echo $webimroot ?>/images/free.gif" width="1" height="1" border="0" alt="" /></td></tr><tr><td><img src="<?php echo $webimroot ?>/images/wincrnlb.gif" width="15" height="15" border="0" alt="" /></td><td background="<?php echo $webimroot ?>/images/winbg.gif" class="bgcy"><img src="<?php echo $webimroot ?>/images/free.gif" width="1" height="1" border="0" alt="" /></td><td><img src="<?php echo $webimroot ?>/images/wincrnrb.gif" width="15" height="15" border="0" alt=""/></td></tr></table> | ||||
| 
 | ||||
| </td> | ||||
| <td></td> | ||||
| </tr> | ||||
| 
 | ||||
| <tr> | ||||
| <td height="70"></td> | ||||
| <td> | ||||
| 
 | ||||
| 	<table width="100%" cellspacing="0" cellpadding="0" border="0"> | ||||
| 	<tr> | ||||
|     <td width="50%"> | ||||
| 		<table cellspacing="0" cellpadding="0" border="0"> | ||||
| 		<tr> | ||||
| 	    <td><a href="javascript:document.mailThreadForm.submit();" title="<?php echo getlocal("mailthread.perform") ?>"><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 href="javascript:document.mailThreadForm.submit();" title="<?php echo getlocal("mailthread.perform") ?>"><?php echo getlocal("mailthread.perform") ?></a><br>
 | ||||
| 		</td> | ||||
| 	    <td width="10"><a href="javascript:document.mailThreadForm.submit();" title="<?php echo getlocal("mailthread.perform") ?>"><img src='<?php echo $webimroot ?>/images/submitrest.gif' width="10" height="35" border="0" alt="" /></a></td> | ||||
| 		</tr> | ||||
| 		</table> | ||||
| 	</td> | ||||
|     <td width="50%" align="right"> | ||||
| 		<table cellspacing="0" cellpadding="0" border="0"> | ||||
| 		<tr> | ||||
| 	    <td><a href="javascript:window.close();" title="<?php echo getlocal("mailthread.close") ?>"><img src='<?php echo $webimroot ?>/images/buttons/back.gif' width="25" height="25" border="0" alt="" /></a></td> | ||||
| 	    <td width="5"></td> | ||||
| 	    <td class="button"><a href="javascript:window.close();" title="<?php echo getlocal("mailthread.close") ?>"><?php echo getlocal("mailthread.close") ?></a></td>
 | ||||
| 		</tr> | ||||
| 		</table> | ||||
| 	</td> | ||||
| 	</tr> | ||||
| 	</table> | ||||
| 
 | ||||
| </td> | ||||
| <td></td> | ||||
| </tr> | ||||
| 
 | ||||
| <tr> | ||||
| <td width="30"><img src='<?php echo $webimroot ?>/images/free.gif' width="30" height="1" border="0" alt="" /></td> | ||||
| <td width="100%"><img src='<?php echo $webimroot ?>/images/free.gif' width="540" height="1" border="0" alt="" /></td> | ||||
| <td width="30"><img src='<?php echo $webimroot ?>/images/free.gif' width="30" height="1" border="0" alt="" /></td> | ||||
| </tr> | ||||
| </table> | ||||
| 
 | ||||
| </form> | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| </td> | ||||
| </tr> | ||||
| </table> | ||||
| </body> | ||||
| </html> | ||||
| 
 | ||||
| @ -1,94 +0,0 @@ | ||||
| <?php | ||||
| /* | ||||
|  * This file is part of Web Instant Messenger project. | ||||
|  * | ||||
|  * Copyright (c) 2005-2008 Web Messenger Community | ||||
|  * 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("page.chat.old_browser.title") ?></title>
 | ||||
| <link rel="shortcut icon" href="<?php echo $webimroot ?>/images/favicon.ico" type="image/x-icon"/> | ||||
| <link rel="stylesheet" type="text/css" href="<?php echo $webimroot ?>/chat.css" /> | ||||
| </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 height="20"></td> | ||||
| <td class="window"> | ||||
| </td> | ||||
| <td></td> | ||||
| </tr> | ||||
| 
 | ||||
| <tr> | ||||
| <td height="100%"></td> | ||||
| <td> | ||||
| 
 | ||||
| 	<table width="100%" height="100%" cellspacing="0" cellpadding="0" border="0"><tr> | ||||
|     <td width="15"><img src='<?php echo $webimroot ?>/images/wincrnlt.gif' width="15" height="15" border="0" alt="" /></td> | ||||
| 	<td width="100%" background="<?php echo $webimroot ?>/images/winbg.gif" class="bgcy"><img src='<?php echo $webimroot ?>/images/free.gif' width="1" height="1" border="0" alt="" /></td> | ||||
|     <td width="15"><img src='<?php echo $webimroot ?>/images/wincrnrt.gif' width="15" height="15" border="0" alt="" /></td> | ||||
| 	</tr><tr><td height="100%" bgcolor="#FED840"><img src='<?php echo $webimroot ?>/images/free.gif' width="1" height="1" border="0" alt="" /></td> | ||||
| 	<td background="<?php echo $webimroot ?>/images/winbg.gif" class="bgcy"> | ||||
| 
 | ||||
| 		<?php echo getlocal("page.chat.old_browser.content") ?>
 | ||||
| 
 | ||||
| 	</td><td bgcolor="#E8A400"><img src='<?php echo $webimroot ?>/images/free.gif' width="1" height="1" border="0" alt="" /></td> | ||||
| 	</tr><tr><td><img src='<?php echo $webimroot ?>/images/wincrnlb.gif' width="15" height="15" border="0" alt="" /></td> | ||||
| 	<td background="<?php echo $webimroot ?>/images/winbg.gif" class="bgcy"><img src='<?php echo $webimroot ?>/images/free.gif' width="1" height="1" border="0" alt="" /></td> | ||||
|     <td><img src='<?php echo $webimroot ?>/images/wincrnrb.gif' width="15" height="15" border="0" alt="" /></td> | ||||
| 	</tr> | ||||
| 	</table> | ||||
| 
 | ||||
| </td> | ||||
| <td></td> | ||||
| </tr> | ||||
| 
 | ||||
| <tr> | ||||
| <td height="70"></td> | ||||
| <td> | ||||
| 
 | ||||
| 	<table width="100%" cellspacing="0" cellpadding="0" border="0"> | ||||
| 	<tr> | ||||
|     <td width="100%" align="right"> | ||||
| 		<table cellspacing="0" cellpadding="0" border="0"> | ||||
| 		<tr> | ||||
| 	    <td><a href="javascript:window.close();" title="<?php echo getlocal("page.chat.old_browser.close") ?>"><img src='<?php echo $webimroot ?>/images/buttons/back.gif' width="25" height="25" border="0" alt="" /></a></td> | ||||
| 	    <td width="5"></td> | ||||
| 	    <td class="button"><a href="javascript:window.close();" title="<?php echo getlocal("page.chat.old_browser.close") ?>"><?php echo getlocal("page.chat.old_browser.close") ?></a></td>
 | ||||
| 		</tr> | ||||
| 		</table> | ||||
| 	</td> | ||||
| 	</tr> | ||||
| 	</table> | ||||
| 
 | ||||
| </td> | ||||
| <td></td> | ||||
| </tr> | ||||
| 
 | ||||
| <tr> | ||||
| <td width="30"><img src='<?php echo $webimroot ?>/images/free.gif' width="30" height="1" border="0" alt="" /></td> | ||||
| <td width="100%"><img src='<?php echo $webimroot ?>/images/free.gif' width="540" height="1" border="0" alt="" /></td> | ||||
| <td width="30"><img src='<?php echo $webimroot ?>/images/free.gif' width="30" height="1" border="0" alt="" /></td> | ||||
| </tr> | ||||
| </table> | ||||
| 
 | ||||
| 
 | ||||
| </td> | ||||
| </tr> | ||||
| </table> | ||||
| </body> | ||||
| </html> | ||||
| 
 | ||||
| @ -1,238 +0,0 @@ | ||||
| <?php | ||||
| /* | ||||
|  * This file is part of Web Instant Messenger project. | ||||
|  * | ||||
|  * Copyright (c) 2005-2008 Web Messenger Community | ||||
|  * 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.user") ?></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/brws.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="600" cellspacing="0" cellpadding="0" border="0"> | ||||
| <tr> | ||||
| <td valign="top"> | ||||
| 
 | ||||
| 	<table width="600" 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="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> | ||||
| 			    <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_title"/></a></td> | ||||
| 			    <td width="5"></td> | ||||
| 				</tr> | ||||
| 				</table> | ||||
| 
 | ||||
| 			</td> | ||||
| 			</tr> | ||||
| 
 | ||||
| 			<tr> | ||||
| 		    <td height="60" align="right"> | ||||
| 
 | ||||
| 				<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> | ||||
| 
 | ||||
| 			    <td><img src='<?php echo $webimroot ?>/images/buttondiv.gif' width="35" height="45" border="0" alt="" /></td> | ||||
| 
 | ||||
| 				<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> | ||||
| 
 | ||||
| 				<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"></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> | ||||
| 	    <td width="20" valign="top"><img src='<?php echo $webimroot.getlocal("image.chat.history") ?>' width="20" height="80" border="0" alt="History" /></td> | ||||
|     	<td width="565" valign="top" id="chatwndtd"> | ||||
| 			<table width="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%" bgcolor="#FFFFFF" valign="top"> | ||||
| 				<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;"> | ||||
| 				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> | ||||
| 
 | ||||
| 		<tr> | ||||
| 	    <td colspan="2" height="5"></td> | ||||
| 		</tr> | ||||
| 
 | ||||
| 		<tr> | ||||
| 	    <td width="20" valign="top"><img src='<?php echo $webimroot.getlocal("image.chat.message") ?>' width="20" height="85" border="0" alt="Message" /></td> | ||||
|     	<td width="565" valign="top"> | ||||
| 			<table width="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="565" height="85" bgcolor="#FFFFFF" valign="top"> | ||||
| 				<form id="messageform" method="post" action="<?php echo $webimroot ?>/thread.php" target="chatwndiframe" width="565" height="85"> | ||||
| 				<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> | ||||
| 		    <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> | ||||
| 		</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> | ||||
| 		<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>
 | ||||
| 		<td width="33%" align="right"> | ||||
| 			<table cellspacing="0" cellpadding="0" border="0" id="postmessage"> | ||||
| 
 | ||||
| 			<tr> | ||||
| 		    <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="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>
 | ||||
| 			</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> | ||||
| 		</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="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> | ||||
| 	</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> | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user