diff --git a/src/messenger/webim/operator/redirect.php b/src/messenger/webim/operator/redirect.php new file mode 100644 index 00000000..7a80705d --- /dev/null +++ b/src/messenger/webim/operator/redirect.php @@ -0,0 +1,59 @@ + $state_waiting, "nextagent" => $nextid, "agentId" => 0), $link); + post_message_($thread['threadid'], $kind_events, + getstring2_("chat.status.operator.redirect", + array(get_operator_name($operator)),$thread['locale']), $link); + mysql_close($link); + } else { + $errors[] = "You are not chatting with visitor"; // FIXME + } +} else { + $errors[] = "Unknown operator"; // FIXME +} + +start_html_output(); +if( count($errors) > 0 ) { + require('../view/chat_error.php'); +} else { + require('../view/redirected.php'); +} + +?> \ No newline at end of file diff --git a/src/messenger/webim/view/redirect.php b/src/messenger/webim/view/redirect.php new file mode 100644 index 00000000..c52711d4 --- /dev/null +++ b/src/messenger/webim/view/redirect.php @@ -0,0 +1,148 @@ + + + + +<?php echo getlocal("chat.window.title.agent") ?> + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +

+

+
+
+
+ + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + +
+ + + + " title="">
+
+ + +
+ + + + + " title="">
+
+ + +
+ + + + + " title="">
+
+ + +
+ +
+ +
+ + + + + + +
+ + + + + + + + +
">">
+
+ +
+ +
+ + + diff --git a/src/messenger/webim/view/redirected.php b/src/messenger/webim/view/redirected.php new file mode 100644 index 00000000..974fda6b --- /dev/null +++ b/src/messenger/webim/view/redirected.php @@ -0,0 +1,103 @@ + + + + +<?php echo getlocal("chat.window.title.agent") ?> + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
+

+
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+ +
+ + + + + +
+ + + + + + +
">">
+
+ +
+ +
+ + +