mirror of
				https://github.com/Mibew/java.git
				synced 2025-10-31 18:41:09 +03:00 
			
		
		
		
	[redirect] images, link to invoke, predefined answers html, confirmation dialog to steel thread
git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@134 c66351dc-e62f-0410-b875-e3a5c0b9693f
This commit is contained in:
		
							parent
							
								
									823d445e67
								
							
						
					
					
						commit
						ece8ab9c3c
					
				
							
								
								
									
										
											BIN
										
									
								
								src/messenger/webim/images/buttons/send.gif
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								src/messenger/webim/images/buttons/send.gif
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 1.2 KiB | 
							
								
								
									
										
											BIN
										
									
								
								src/messenger/webim/images/tbliclread.gif
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								src/messenger/webim/images/tbliclread.gif
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 329 B | 
							
								
								
									
										
											BIN
										
									
								
								src/messenger/webim/images/textdiv.gif
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								src/messenger/webim/images/textdiv.gif
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 48 B | 
| @ -15,6 +15,7 @@ | ||||
| require_once('../libs/common.php'); | ||||
| require_once('../libs/chat.php'); | ||||
| require_once('../libs/operator.php'); | ||||
| require_once('../libs/pagination.php'); | ||||
| 
 | ||||
| $operator = check_login(); | ||||
| 
 | ||||
| @ -32,7 +33,19 @@ if( !isset($_GET['token']) ) { | ||||
| 		die("wrong thread"); | ||||
| 	} | ||||
| 
 | ||||
| 	take_thread($thread,$operator); | ||||
| 	$viewonly = verifyparam( "viewonly", "/^true$/", false); | ||||
| 
 | ||||
| 	$forcetake = verifyparam("force", "/^true$/", false); | ||||
| 	if( !$viewonly && $thread['istate'] == $state_chatting && $operator['operatorid'] != $thread['agentId'] && $forcetake == false ) { | ||||
| 		$page = array( | ||||
| 			'user' => topage($thread['userName']), 'agent' => topage($thread['agentName']), 'link' => $_SERVER['PHP_SELF']."?thread=$threadid&force=true" | ||||
| 		); | ||||
| 		require('../view/confirm.php'); | ||||
| 		exit; | ||||
| 	} | ||||
| 
 | ||||
| 	if (!$viewonly) | ||||
| 		take_thread($thread,$operator); | ||||
| 
 | ||||
| 	$token = $thread['ltoken']; | ||||
| 	header("Location: $webimroot/operator/agent.php?thread=$threadid&token=$token&level=$remote_level"); | ||||
| @ -50,6 +63,14 @@ setup_chatview_for_operator($thread, $operator); | ||||
| 
 | ||||
| start_html_output(); | ||||
| 
 | ||||
| $pparam = verifyparam( "act", "/^(redirect)$/", "default"); | ||||
| if( $pparam == "redirect" ) { | ||||
| 	$found = get_operators(); | ||||
| 	setup_pagination($found); | ||||
| 	$page['params'] = array('thread' => $threadid, 'token' => $token); | ||||
| 	require('../view/redirect.php'); | ||||
| } else { | ||||
| 	require('../view/chat_ajaxed.php'); | ||||
| } | ||||
| 
 | ||||
| ?>
 | ||||
| @ -145,6 +145,9 @@ var threadParams = { servl:"<?php echo $webimroot ?>/thread.php",wroot:"<?php ec | ||||
| 			    <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 } ?><?php if( $page['agent'] && $page['canpost'] ) { ?>
 | ||||
| 				<td><a href="<?php echo $page['selfLink'] ?>&act=redirect" title="<?php echo getlocal("chat.window.toolbar.redirect_user") ?>"> | ||||
| 				<img src='<?php echo $webimroot ?>/images/buttons/send.gif' width="25" height="25" border="0" alt="Redirect " /></a></td> | ||||
| <?php } ?>
 | ||||
| 
 | ||||
| 				<td><a id="refresh" href="javascript:void(0)" onclick="return false;" title="<?php echo getlocal("chat.window.toolbar.refresh") ?>"> | ||||
| @ -237,7 +240,14 @@ var threadParams = { servl:"<?php echo $webimroot ?>/thread.php",wroot:"<?php ec | ||||
| 			<tr> | ||||
| 		    <td width="20"></td> | ||||
| 
 | ||||
| 
 | ||||
| <?php if( $page['agent'] && $page['canpost'] ) { ?>
 | ||||
| 		    <td> | ||||
| 				<select id="predefined" size="1" class="answer"> | ||||
| 				<option><?php echo getlocal("chat.window.predefined.select_answer") ?></option>
 | ||||
| 				<?php foreach( $page['predefinedList'] as $it ) { ?><option><?php echo htmlspecialchars($it) ?></option><?php } ?>
 | ||||
| 				</select> | ||||
| 			</td> | ||||
| <?php } ?>
 | ||||
| 			</tr> | ||||
| 			</table> | ||||
| 		</td> | ||||
|  | ||||
							
								
								
									
										111
									
								
								src/messenger/webim/view/confirm.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										111
									
								
								src/messenger/webim/view/confirm.php
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,111 @@ | ||||
| <?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> | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| <link rel="stylesheet" type="text/css" media="all" href="/webim/styles.css" /> | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| <link rel="shortcut icon" href="/webim/images/favicon.ico" type="image/x-icon"/> | ||||
| <title> | ||||
| 	<?php echo getlocal("app.title") ?>	- <?php echo getlocal("page_agent.title") ?>
 | ||||
| </title> | ||||
| 
 | ||||
| <meta http-equiv="keywords" content="<?php echo getlocal("page.main_layout.meta_keyword") ?>"> | ||||
| <meta http-equiv="description" content="<?php echo getlocal("page.main_layout.meta_description") ?>"> | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| </head> | ||||
| 
 | ||||
| <body bgcolor="#FFFFFF" text="#000000" link="#2971C1" vlink="#2971C1" alink="#2971C1"> | ||||
| 
 | ||||
| <table width="100%" height="80%" cellpadding="2" cellspacing="0" border="0"> | ||||
| <tr> | ||||
| <td valign="center" align="center" class="text"> | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| <table cellspacing="0" cellpadding="0" border="0"> | ||||
| <tr> | ||||
| <td class="window" valign="bottom"> | ||||
| 	<h1><b><?php echo getlocal("confirm.take.head") ?></b></h1>
 | ||||
| </td> | ||||
| </tr> | ||||
| <tr> | ||||
| <td height="20"> | ||||
| </td> | ||||
| </tr> | ||||
| <tr> | ||||
| <td valign="top"> | ||||
| 
 | ||||
|  <table cellspacing='0' cellpadding='0' border='0'><tr><td background='/webim/images/loginbg.gif'><table cellspacing='0' cellpadding='0' border='0'><tr><td><img src='/webim/images/logincrnlt.gif' width='16' height='16' border='0' alt=''></td><td></td><td><img src='/webim/images/logincrnrt.gif' width='16' height='16' border='0' alt=''></td></tr><tr><td></td><td align='center'><table border='0' cellspacing='0' cellpadding='0'> | ||||
| 	<tr> | ||||
|     <td><img src='/webim/images/free.gif' width="1" height="1" border="0" alt="" /></td> | ||||
| 	<td> | ||||
| 
 | ||||
| 		<?php echo getlocal2("confirm.take.message",array($page['user'], $page['agent'])) ?><br/><br/>
 | ||||
| 		<br/> | ||||
| 		<table width="100%" cellspacing="0" border="0"> | ||||
| 		<tr> | ||||
| 		<td align="center"> | ||||
| 			<table cellspacing="0" cellpadding="0" border="0" id="postmessage"><tr> | ||||
|              <td><a href="<?php echo $page['link'] ?>"><img src='/webim/images/submit.gif' width="40" height="35" border="0" alt="" /></a></td> | ||||
|              <td background="/webim/images/submitbg.gif" valign="top" class="submit"> | ||||
|              <img src='/webim/images/free.gif' width="1" height="10" border="0" alt="" /><br> | ||||
|              <a href="<?php echo $page['link'] ?>"><?php echo getlocal("confirm.take.yes") ?></a><br>
 | ||||
|              </td> | ||||
|              <td width="10"><a href="<?php echo $page['link'] ?>"><img src='/webim/images/submitrest.gif' width="10" height="35" border="0" alt="" /></a></td> | ||||
|              </tr> | ||||
|             </table> | ||||
| 		</td> | ||||
| 		<td align="center"> | ||||
| 			<table cellspacing="0" cellpadding="0" border="0" id="postmessage"><tr> | ||||
|              <td><a href="javascript:window.close();"><img src='/webim/images/submit.gif' width="40" height="35" border="0" alt="" /></a></td> | ||||
|              <td background="/webim/images/submitbg.gif" valign="top" class="submit"> | ||||
|              <img src='/webim/images/free.gif' width="1" height="10" border="0" alt="" /><br> | ||||
|              <a href="javascript:window.close();"><?php echo getlocal("confirm.take.no") ?></a><br>
 | ||||
|              </td> | ||||
|              <td width="10"><a href="javascript:window.close();"><img src='/webim/images/submitrest.gif' width="10" height="35" border="0" alt="" /></a></td> | ||||
|              </tr> | ||||
|             </table> | ||||
| 
 | ||||
| 		</td> | ||||
| 		</tr> | ||||
| 		</table> | ||||
| 	</td> | ||||
| 	</tr> | ||||
| </table></td><td></td></tr><tr><td><img src='/webim/images/logincrnlb.gif' width='16' height='16' border='0' alt=''></td><td></td><td><img src='/webim/images/logincrnrb.gif' width='16' height='16' border='0' alt=''></td></tr></table></td></tr></table> | ||||
| 
 | ||||
| </td> | ||||
| </tr> | ||||
| </table> | ||||
| 
 | ||||
| </td> | ||||
| </tr> | ||||
| </table> | ||||
| 
 | ||||
| </body> | ||||
| </html> | ||||
| 
 | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user