From 5f8e18392bca789c653db1fcce39ef139702e3fa Mon Sep 17 00:00:00 2001
From: Evgeny Gryaznov <inspirer@users.sourceforge.net>
Date: Sun, 15 Mar 2009 21:21:12 +0000
Subject: [PATCH] relayout confirm

git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@408 c66351dc-e62f-0410-b875-e3a5c0b9693f
---
 src/messenger/webim/default.css           |  29 ++++-
 src/messenger/webim/locales/en/properties |   2 +-
 src/messenger/webim/view/confirm.php      | 122 ++++++----------------
 3 files changed, 62 insertions(+), 91 deletions(-)

diff --git a/src/messenger/webim/default.css b/src/messenger/webim/default.css
index e65f3292..0fb5ea1d 100644
--- a/src/messenger/webim/default.css
+++ b/src/messenger/webim/default.css
@@ -536,6 +536,34 @@ table.awaiting td.visitor {
 	border-bottom: 2px solid #2F7598;
 }
 
+/* nice button */
+
+#confirmpane {
+	width:450px;
+	margin:0px auto 5px;
+	padding-top: 70px;
+}
+
+.nicebutton {
+	border: none;
+	float: left;
+	margin-left: 30px;
+}
+
+.submit a {
+	font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
+	font-size: 11px;
+	line-height: 35px;
+	color: #000000;
+	text-decoration: none;
+}
+
+.submit {
+	background: url(images/submitbg.gif) repeat-x;
+	vertical-align: top;
+}
+
+
 /* thread log */
 
 .logpane {
@@ -683,4 +711,3 @@ table.awaiting td.visitor {
 	color: #A1A1A1;
 	font-size: 11px;
 }
-
diff --git a/src/messenger/webim/locales/en/properties b/src/messenger/webim/locales/en/properties
index c9b0bc51..d30c2f2f 100644
--- a/src/messenger/webim/locales/en/properties
+++ b/src/messenger/webim/locales/en/properties
@@ -73,7 +73,7 @@ clients.title=List of awaiting visitors
 common.asterisk_explanation=<b><span style='font-size:8.0pt;color:red'>*</span></b> - mandatory fields
 company.title=Web Messenger Community
 confirm.take.head=Change operator
-confirm.take.message=Visitor <span style="color:blue;">{0}</span> already assisted by <span style="color:green;">{1}</span>.<br/> Are your really sure you wan't to start chatting the visitor?
+confirm.take.message=Visitor <span style="color:blue;">{0}</span> already assisted by <span style="color:green;">{1}</span>.<br/> Are your really sure you want to start chatting the visitor?
 confirm.take.no=No, close the window
 confirm.take.yes=Yes, I'm sure
 content.blocked=Here you can defend from malicious visitors.
diff --git a/src/messenger/webim/view/confirm.php b/src/messenger/webim/view/confirm.php
index 9f4b8456..c24b9a4e 100644
--- a/src/messenger/webim/view/confirm.php
+++ b/src/messenger/webim/view/confirm.php
@@ -11,101 +11,45 @@
  * Contributors:
  *    Evgeny Gryaznov - initial API and implementation
  */
+
+$page['title'] = getlocal("confirm.take.head");
+
+function tpl_content() { global $page, $webimroot;
 ?>
-<!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>
+<div id="confirmpane">
+	<div class="mform"><div class="formtop"><div class="formtopi"></div></div><div class="forminner">
 
 		<?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>
+		<div>
+		<table class="nicebutton"><tr>
+			<td><a href="<?php echo $page['link'] ?>">
+				<img src='<?php echo $webimroot ?>/images/submit.gif' width="40" height="35" border="0" alt="" /></a></td>
+			<td class="submit"><a href="<?php echo $page['link'] ?>">
+				<?php echo getlocal("confirm.take.yes") ?></a></td>
+			<td><a href="<?php echo $page['link'] ?>">
+				<img src='<?php echo $webimroot ?>/images/submitrest.gif' width="10" height="35" border="0" alt="" /></a></td>
+		</tr></table>
 
-</td>
-</tr>
-</table>
+		<table class="nicebutton"><tr>
+			<td><a href="javascript:window.close();">
+				<img src='<?php echo $webimroot ?>/images/submit.gif' width="40" height="35" border="0" alt="" /></a></td>
+			<td class="submit"><a href="javascript:window.close();">
+				<?php echo getlocal("confirm.take.no") ?></a></td>
+			<td><a href="javascript:window.close();">
+				<img src='<?php echo $webimroot ?>/images/submitrest.gif' width="10" height="35" border="0" alt="" /></a></td>
+		</tr></table>
+		
+		<br clear="all"/>
+		</div>
+				
+	</div><div class="formbottom"><div class="formbottomi"></div></div></div>
+</div>		
 
-</td>
-</tr>
-</table>
-
-</body>
-</html>
+<?php 
+} /* content */
 
+require_once('inc_main.php');
+?>
\ No newline at end of file