From 823d445e673b865219060fac7bf519d10370bfe0 Mon Sep 17 00:00:00 2001 From: Evgeny Gryaznov Date: Thu, 2 Oct 2008 09:48:03 +0000 Subject: [PATCH] [redirect] action + views git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@133 c66351dc-e62f-0410-b875-e3a5c0b9693f --- src/messenger/webim/operator/redirect.php | 59 +++++++++ src/messenger/webim/view/redirect.php | 148 ++++++++++++++++++++++ src/messenger/webim/view/redirected.php | 103 +++++++++++++++ 3 files changed, 310 insertions(+) create mode 100644 src/messenger/webim/operator/redirect.php create mode 100644 src/messenger/webim/view/redirect.php create mode 100644 src/messenger/webim/view/redirected.php 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") ?> + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
+

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