2007-10-10 19:15:47 +04:00
|
|
|
<?php
|
|
|
|
/*
|
2009-06-04 02:44:32 +04:00
|
|
|
* This file is part of Mibew Messenger project.
|
2009-08-04 20:30:39 +04:00
|
|
|
*
|
2011-02-16 03:22:22 +03:00
|
|
|
* Copyright (c) 2005-2011 Mibew Messenger Community
|
2009-08-04 19:03:27 +04:00
|
|
|
* All rights reserved. The contents of this file are subject to 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
|
2009-08-04 20:30:39 +04:00
|
|
|
*
|
2009-08-04 17:38:37 +04:00
|
|
|
* Alternatively, the contents of this file may be used under the terms of
|
|
|
|
* the GNU General Public License Version 2 or later (the "GPL"), in which case
|
|
|
|
* the provisions of the GPL are applicable instead of those above. If you wish
|
|
|
|
* to allow use of your version of this file only under the terms of the GPL, and
|
|
|
|
* not to allow others to use your version of this file under the terms of the
|
|
|
|
* EPL, indicate your decision by deleting the provisions above and replace them
|
|
|
|
* with the notice and other provisions required by the GPL.
|
2009-08-04 20:30:39 +04:00
|
|
|
*
|
2007-10-10 19:15:47 +04:00
|
|
|
* Contributors:
|
|
|
|
* Evgeny Gryaznov - initial API and implementation
|
|
|
|
*/
|
|
|
|
|
2009-03-13 03:52:37 +03:00
|
|
|
$page['title'] = getlocal("thread.chat_log");
|
2008-09-30 02:55:18 +04:00
|
|
|
|
2009-03-13 03:52:37 +03:00
|
|
|
function tpl_content() { global $page, $webimroot, $errors;
|
|
|
|
$chatthread = $page['thread'];
|
|
|
|
?>
|
2008-09-30 02:55:18 +04:00
|
|
|
|
2008-05-06 15:08:21 +04:00
|
|
|
<?php echo getlocal("thread.intro") ?>
|
2007-10-10 19:15:47 +04:00
|
|
|
|
|
|
|
<br/><br/>
|
|
|
|
|
2009-03-13 03:52:37 +03:00
|
|
|
<div class="logpane">
|
|
|
|
<div class="header">
|
|
|
|
|
|
|
|
<div class="wlabel">
|
|
|
|
<?php echo getlocal("page.analysis.search.head_name") ?>:
|
|
|
|
</div>
|
|
|
|
<div class="wvalue">
|
|
|
|
<?php echo topage(htmlspecialchars($chatthread['userName'])) ?>
|
|
|
|
</div>
|
|
|
|
<br clear="all"/>
|
|
|
|
|
|
|
|
<div class="wlabel">
|
|
|
|
<?php echo getlocal("page.analysis.search.head_host") ?>:
|
|
|
|
</div>
|
|
|
|
<div class="wvalue">
|
|
|
|
<?php echo get_user_addr(topage($chatthread['remote'])) ?>
|
|
|
|
</div>
|
|
|
|
<br clear="all"/>
|
|
|
|
|
2009-03-28 03:29:33 +03:00
|
|
|
<div class="wlabel">
|
|
|
|
<?php echo getlocal("page.analysis.search.head_browser") ?>:
|
|
|
|
</div>
|
|
|
|
<div class="wvalue">
|
|
|
|
<?php echo get_useragent_version(topage($chatthread['userAgent'])) ?>
|
|
|
|
</div>
|
|
|
|
<br clear="all"/>
|
|
|
|
|
|
|
|
<?php if( $chatthread['groupName'] ) { ?>
|
|
|
|
<div class="wlabel">
|
|
|
|
<?php echo getlocal("page.analysis.search.head_group") ?>:
|
|
|
|
</div>
|
|
|
|
<div class="wvalue">
|
|
|
|
<?php echo topage(htmlspecialchars($chatthread['groupName'])) ?>
|
|
|
|
</div>
|
|
|
|
<br clear="all"/>
|
|
|
|
<?php } ?>
|
|
|
|
|
2009-03-13 03:52:37 +03:00
|
|
|
<?php if( $chatthread['agentName'] ) { ?>
|
|
|
|
<div class="wlabel">
|
|
|
|
<?php echo getlocal("page.analysis.search.head_operator") ?>:
|
|
|
|
</div>
|
|
|
|
<div class="wvalue">
|
|
|
|
<?php echo topage(htmlspecialchars($chatthread['agentName'])) ?>
|
|
|
|
</div>
|
|
|
|
<br clear="all"/>
|
|
|
|
<?php } ?>
|
|
|
|
|
|
|
|
<div class="wlabel">
|
|
|
|
<?php echo getlocal("page.analysis.search.head_time") ?>:
|
|
|
|
</div>
|
|
|
|
<div class="wvalue">
|
2009-04-10 18:12:57 +04:00
|
|
|
<?php echo date_diff_to_text($chatthread['modified']-$chatthread['created']) ?>
|
2009-06-05 17:13:58 +04:00
|
|
|
(<?php echo date_to_text($chatthread['created']) ?>)
|
2009-03-13 03:52:37 +03:00
|
|
|
</div>
|
|
|
|
<br clear="all"/>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="message">
|
|
|
|
<?php
|
|
|
|
foreach( $page['threadMessages'] as $message ) {
|
|
|
|
echo $message;
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
</div>
|
|
|
|
</div>
|
2007-10-10 19:15:47 +04:00
|
|
|
|
|
|
|
<br />
|
2007-10-30 15:13:04 +03:00
|
|
|
<a href="<?php echo $webimroot ?>/operator/history.php">
|
2008-05-06 15:08:21 +04:00
|
|
|
<?php echo getlocal("thread.back_to_search") ?></a>
|
2007-10-10 19:15:47 +04:00
|
|
|
<br />
|
|
|
|
|
|
|
|
|
2009-03-13 03:52:37 +03:00
|
|
|
<?php
|
|
|
|
} /* content */
|
2007-10-10 19:15:47 +04:00
|
|
|
|
2009-03-13 03:52:37 +03:00
|
|
|
require_once('inc_main.php');
|
|
|
|
?>
|