move chat.css into templates

git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@446 c66351dc-e62f-0410-b875-e3a5c0b9693f
This commit is contained in:
Evgeny Gryaznov 2009-04-04 21:12:29 +00:00
parent ce5fe55af3
commit ca552966d1
26 changed files with 418 additions and 28 deletions

File diff suppressed because one or more lines are too long

View File

@ -15,7 +15,7 @@ var FrameUtils = {
var doc = this.getDocument(frm);
doc.open();
doc.write("<html><head>");
doc.write("<link rel=\"stylesheet\" type=\"text/css\" media=\"all\" href=\""+Chat.webimRoot+"/chat.css\" />");
doc.write("<link rel=\"stylesheet\" type=\"text/css\" media=\"all\" href=\""+Chat.cssfile+"\" />");
doc.write("</head><body bgcolor='#FFFFFF' text='#000000' link='#C28400' vlink='#C28400' alink='#C28400' marginwidth='0' marginheight='0' leftmargin='0' rightmargin='0' topmargin='0' bottommargin='0'>");
doc.write("<table width='100%' cellspacing='0' cellpadding='0' border='0'><tr><td valign='top' class='message' id='content'></td></tr></table><a id='bottom'/>");
doc.write("</body></html>");
@ -430,6 +430,7 @@ Behaviour.register({
EventHelper.register(window, 'onload', function(){
Chat.webimRoot = threadParams.wroot;
Chat.cssfile = threadParams.cssfile;
Chat.hSplitter = new HSplitter({control:$("spl1"), first:$("msgwndtd"), second:$("chatwndtd"), minfirst:30, minsec:30});
Chat.threadUpdater = new Ajax.ChatThreadUpdater(({container:myRealAgent=='safari'?self.frames[0]:$("chatwnd"),avatar:$("avatarwnd"),message:$("msgwnd")}).extend( threadParams || {} ));
});

View File

@ -11,7 +11,7 @@
//- localized
//- onComplete, obj, params, $apply$
//- threadParams, servl, frequency, user, threadid, token
//- threadParams, servl, frequency, user, threadid, token, cssfile
//- updaterOptions, url, company, agentservl, noclients, wroot, havemenu

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,195 @@
a {
text-decoration: underline;
}
a:hover {
text-decoration: none;
}
a img {
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size: 11px;
}
form {
margin-bottom: 0px;
margin-top: 0px;
}
div#typingdiv, div#engineinfo {
border: 0px solid gray;
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size: 11px;
padding-right: 10px;
padding-left: 10px;
background: #fafafa;
color: #B11E23;
}
.bgcn {
background-position: center;
background-repeat: no-repeat;
}
.bgrn {
background-position: right;
background-repeat: no-repeat;
}
.bgcy {
background-position: center;
background-repeat: repeat-y;
}
.bgry {
background-position: right;
background-repeat: repeat-y;
}
.bgly {
background-position: left;
background-repeat: repeat-y;
}
.bgbx {
background-position: bottom;
background-repeat: repeat-x;
}
.window {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
color: #000000;
}
.window a {
color: #880000;
}
.window h1 {
margin-top: 0px;
margin-bottom: 0px;
font-size: 18px;
color: #000000;
font-weight: normal;
}
.window h2 {
margin-top: 0px;
margin-bottom: 0px;
font-size: 12px;
color: #000000;
}
.text {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
color: #000000;
}
.text span.grey {
color: #787878;
}
.www a {
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size: 10px;
color: #FFFFFF;
text-decoration: none;
}
.message {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
color: #4F4F4F;
padding-left: 3px;
padding-top: 3px;
padding-bottom: 3px;
padding-right: 3px;
line-height: 17px;
}
.message span.time {
color: #000000;
}
.message span.nuser {
color: #B11E23;
font-weight: bold;
}
.message span.nagent {
font-weight: bold;
}
.message span.minf {
color: #1E48B1;
font-size: 11px;
}
.message span.mevent {
color: #A1A1A1;
font-size: 11px;
}
.message span.mhidden {
color: #A1A1A1;
font-size: 11px;
}
.message span.mconn {
color: #A1A1A1;
font-size: 11px;
}
textarea.message {
width: 100%;
height: 100%;
border: 0px solid Blue;
overflow: auto;
margin-left: 3px;
margin-top: 3px;
margin-bottom: 3px;
margin-right: 5px;
}
.username {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
color: #383838;
padding-left: 3px;
}
input.username {
border: 1px solid #878787;
}
.answer {
font-family: Arial, Helvetica, sans-serif;
font-size: 11px;
color: #575757;
width: 170px;
}
.submit a {
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size: 11px;
color: #000000;
text-decoration: none;
}
.button a {
font-family: Arial, Helvetica, sans-serif;
font-size: 11px;
color: #666666;
}
.copyr {
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size: 10px;
color: #929292;
}
.copyr a {
color: #929292;
}

View File

@ -4,11 +4,11 @@
<title>${msg:chat.window.title.agent}</title>
<link rel="shortcut icon" href="${webimroot}/images/favicon.ico" type="image/x-icon"/>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1251">
<link rel="stylesheet" type="text/css" href="${webimroot}/chat.css" />
<link rel="stylesheet" type="text/css" href="${tplroot}/chat.css" />
<script type="text/javascript" language="javascript" src="${webimroot}/js/common.js?v=160a1"></script>
<script type="text/javascript" language="javascript" src="${webimroot}/js/brws.js?v=160a1"></script>
<script language="javascript"><!--
var threadParams = { servl:"${webimroot}/thread.php",wroot:"${webimroot}",frequency:2,${if:user}user:"true",${endif:user}threadid:${page:ct.chatThreadId},token:${page:ct.token} };
var threadParams = { servl:"${webimroot}/thread.php",wroot:"${webimroot}",frequency:2,${if:user}user:"true",${endif:user}threadid:${page:ct.chatThreadId},token:${page:ct.token},cssfile:"${tplroot}/chat.css" };
//--></script>
<script type="text/javascript" language="javascript" src="${webimroot}/js/chat.js?v=160a1"></script>
</head>

View File

@ -4,7 +4,7 @@
<title>${msg:chat.window.title.user}</title>
<link rel="shortcut icon" href="${webimroot}/images/favicon.ico" type="image/x-icon"/>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1251">
<link rel="stylesheet" type="text/css" href="${webimroot}/chat.css" />
<link rel="stylesheet" type="text/css" href="${tplroot}/chat.css" />
<script type="text/javascript" language="javascript" src="${webimroot}/js/brws.js?v=160a1"></script>
</head>

View File

@ -3,7 +3,7 @@
<head>
<title>${msg:chat.error_page.title}</title>
<link rel="shortcut icon" href="${webimroot}/images/favicon.ico" type="image/x-icon"/>
<link rel="stylesheet" type="text/css" href="${webimroot}/chat.css" />
<link rel="stylesheet" type="text/css" href="${tplroot}/chat.css" />
</head>
<style>
#header{

View File

@ -3,7 +3,7 @@
<head>
<title>${msg:leavemessage.title}</title>
<link rel="shortcut icon" href="${webimroot}/images/favicon.ico" type="image/x-icon"/>
<link rel="stylesheet" type="text/css" href="${webimroot}/chat.css" />
<link rel="stylesheet" type="text/css" href="${tplroot}/chat.css" />
</head>
<style>
@ -119,8 +119,7 @@ ${endif:errors}
</td>
</tr>
<tr>
<td>&nbsp;</td>
<td align="right">
<td colspan="2" align="right">
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td><a href="javascript:document.leaveMessageForm.submit();" class="but" id="sndmessagelnk">${msg:mailthread.perform}</a></td>

View File

@ -3,7 +3,7 @@
<head>
<title>${msg:leavemessage.sent.title}</title>
<link rel="shortcut icon" href="${webimroot}/images/favicon.ico" type="image/x-icon"/>
<link rel="stylesheet" type="text/css" href="${webimroot}/chat.css" />
<link rel="stylesheet" type="text/css" href="${tplroot}/chat.css" />
</head>
<style>
#header{

View File

@ -3,7 +3,7 @@
<head>
<title>${msg:chat.window.title.user}</title>
<link rel="shortcut icon" href="${webimroot}/images/favicon.ico" type="image/x-icon"/>
<link rel="stylesheet" type="text/css" href="${webimroot}/chat.css" />
<link rel="stylesheet" type="text/css" href="${tplroot}/chat.css" />
</head>
<style>
#header{

View File

@ -3,7 +3,7 @@
<head>
<title>${msg:chat.window.title.user}</title>
<link rel="shortcut icon" href="${webimroot}/images/favicon.ico" type="image/x-icon"/>
<link rel="stylesheet" type="text/css" href="${webimroot}/chat.css" />
<link rel="stylesheet" type="text/css" href="${tplroot}/chat.css" />
</head>
<style>
#header{

View File

@ -3,7 +3,7 @@
<head>
<title>${msg:chat.window.title.user}</title>
<link rel="shortcut icon" href="${webimroot}/images/favicon.ico" type="image/x-icon"/>
<link rel="stylesheet" type="text/css" href="${webimroot}/chat.css" />
<link rel="stylesheet" type="text/css" href="${tplroot}/chat.css" />
</head>
<style>
#header{

View File

@ -3,7 +3,7 @@
<head>
<title>${msg:chat.window.title.agent}</title>
<link rel="shortcut icon" href="${webimroot}/images/favicon.ico" type="image/x-icon"/>
<link rel="stylesheet" type="text/css" href="${webimroot}/chat.css" />
<link rel="stylesheet" type="text/css" href="${tplroot}/chat.css" />
</head>
<style>

View File

@ -3,7 +3,7 @@
<head>
<title>${msg:chat.window.title.user}</title>
<link rel="shortcut icon" href="${webimroot}/images/favicon.ico" type="image/x-icon"/>
<link rel="stylesheet" type="text/css" href="${webimroot}/chat.css" />
<link rel="stylesheet" type="text/css" href="${tplroot}/chat.css" />
</head>
<style>
#header{

View File

@ -0,0 +1,195 @@
a {
text-decoration: underline;
}
a:hover {
text-decoration: none;
}
a img {
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size: 11px;
}
form {
margin-bottom: 0px;
margin-top: 0px;
}
div#typingdiv, div#engineinfo {
border: 0px solid gray;
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size: 11px;
padding-right: 10px;
padding-left: 10px;
background: #fafafa;
color: #B11E23;
}
.bgcn {
background-position: center;
background-repeat: no-repeat;
}
.bgrn {
background-position: right;
background-repeat: no-repeat;
}
.bgcy {
background-position: center;
background-repeat: repeat-y;
}
.bgry {
background-position: right;
background-repeat: repeat-y;
}
.bgly {
background-position: left;
background-repeat: repeat-y;
}
.bgbx {
background-position: bottom;
background-repeat: repeat-x;
}
.window {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
color: #000000;
}
.window a {
color: #880000;
}
.window h1 {
margin-top: 0px;
margin-bottom: 0px;
font-size: 18px;
color: #000000;
font-weight: normal;
}
.window h2 {
margin-top: 0px;
margin-bottom: 0px;
font-size: 12px;
color: #000000;
}
.text {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
color: #000000;
}
.text span.grey {
color: #787878;
}
.www a {
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size: 10px;
color: #FFFFFF;
text-decoration: none;
}
.message {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
color: #4F4F4F;
padding-left: 3px;
padding-top: 3px;
padding-bottom: 3px;
padding-right: 3px;
line-height: 17px;
}
.message span.time {
color: #000000;
}
.message span.nuser {
color: #B11E23;
font-weight: bold;
}
.message span.nagent {
font-weight: bold;
}
.message span.minf {
color: #1E48B1;
font-size: 11px;
}
.message span.mevent {
color: #A1A1A1;
font-size: 11px;
}
.message span.mhidden {
color: #A1A1A1;
font-size: 11px;
}
.message span.mconn {
color: #A1A1A1;
font-size: 11px;
}
textarea.message {
width: 100%;
height: 100%;
border: 0px solid Blue;
overflow: auto;
margin-left: 3px;
margin-top: 3px;
margin-bottom: 3px;
margin-right: 5px;
}
.username {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
color: #383838;
padding-left: 3px;
}
input.username {
border: 1px solid #878787;
}
.answer {
font-family: Arial, Helvetica, sans-serif;
font-size: 11px;
color: #575757;
width: 170px;
}
.submit a {
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size: 11px;
color: #000000;
text-decoration: none;
}
.button a {
font-family: Arial, Helvetica, sans-serif;
font-size: 11px;
color: #666666;
}
.copyr {
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size: 10px;
color: #929292;
}
.copyr a {
color: #929292;
}

View File

@ -4,11 +4,11 @@
<title>${msg:chat.window.title.agent}</title>
<link rel="shortcut icon" href="${webimroot}/images/favicon.ico" type="image/x-icon"/>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1251">
<link rel="stylesheet" type="text/css" href="${webimroot}/chat.css" />
<link rel="stylesheet" type="text/css" href="${tplroot}/chat.css" />
<script type="text/javascript" language="javascript" src="${webimroot}/js/common.js?v=160a1"></script>
<script type="text/javascript" language="javascript" src="${webimroot}/js/brws.js?v=160a1"></script>
<script language="javascript"><!--
var threadParams = { servl:"${webimroot}/thread.php",wroot:"${webimroot}",frequency:2,${if:user}user:"true",${endif:user}threadid:${page:ct.chatThreadId},token:${page:ct.token} };
var threadParams = { servl:"${webimroot}/thread.php",wroot:"${webimroot}",frequency:2,${if:user}user:"true",${endif:user}threadid:${page:ct.chatThreadId},token:${page:ct.token},cssfile:"${tplroot}/chat.css" };
//--></script>
<script type="text/javascript" language="javascript" src="${webimroot}/js/chat.js?v=160a1"></script>
</head>

View File

@ -4,7 +4,7 @@
<title>${msg:chat.window.title.user}</title>
<link rel="shortcut icon" href="${webimroot}/images/favicon.ico" type="image/x-icon"/>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1251">
<link rel="stylesheet" type="text/css" href="${webimroot}/chat.css" />
<link rel="stylesheet" type="text/css" href="${tplroot}/chat.css" />
<script type="text/javascript" language="javascript" src="${webimroot}/js/brws.js?v=160a1"></script>
</head>

View File

@ -3,7 +3,7 @@
<head>
<title>${msg:chat.error_page.title}</title>
<link rel="shortcut icon" href="${webimroot}/images/favicon.ico" type="image/x-icon"/>
<link rel="stylesheet" type="text/css" href="${webimroot}/chat.css" />
<link rel="stylesheet" type="text/css" href="${tplroot}/chat.css" />
</head>
<style>
.tplimage {

View File

@ -3,7 +3,7 @@
<head>
<title>${msg:leavemessage.title}</title>
<link rel="shortcut icon" href="${webimroot}/images/favicon.ico" type="image/x-icon"/>
<link rel="stylesheet" type="text/css" href="${webimroot}/chat.css" />
<link rel="stylesheet" type="text/css" href="${tplroot}/chat.css" />
</head>
<style>
.tplimage {

View File

@ -3,7 +3,7 @@
<head>
<title>${msg:leavemessage.sent.title}</title>
<link rel="shortcut icon" href="${webimroot}/images/favicon.ico" type="image/x-icon"/>
<link rel="stylesheet" type="text/css" href="${webimroot}/chat.css" />
<link rel="stylesheet" type="text/css" href="${tplroot}/chat.css" />
</head>
<style>
.tplimage {

View File

@ -3,7 +3,7 @@
<head>
<title>${msg:chat.window.title.user}</title>
<link rel="shortcut icon" href="${webimroot}/images/favicon.ico" type="image/x-icon"/>
<link rel="stylesheet" type="text/css" href="${webimroot}/chat.css" />
<link rel="stylesheet" type="text/css" href="${tplroot}/chat.css" />
</head>
<style>
.tplimage {

View File

@ -3,7 +3,7 @@
<head>
<title>${msg:chat.window.title.user}</title>
<link rel="shortcut icon" href="${webimroot}/images/favicon.ico" type="image/x-icon"/>
<link rel="stylesheet" type="text/css" href="${webimroot}/chat.css" />
<link rel="stylesheet" type="text/css" href="${tplroot}/chat.css" />
</head>
<style>
.tplimage {

View File

@ -3,7 +3,7 @@
<head>
<title>${msg:page.chat.old_browser.title}</title>
<link rel="shortcut icon" href="${webimroot}/images/favicon.ico" type="image/x-icon"/>
<link rel="stylesheet" type="text/css" href="${webimroot}/chat.css" />
<link rel="stylesheet" type="text/css" href="${tplroot}/chat.css" />
</head>
<style>
.tplimage {

View File

@ -3,7 +3,7 @@
<head>
<title>${msg:chat.window.title.agent}</title>
<link rel="shortcut icon" href="${webimroot}/images/favicon.ico" type="image/x-icon"/>
<link rel="stylesheet" type="text/css" href="${webimroot}/chat.css" />
<link rel="stylesheet" type="text/css" href="${tplroot}/chat.css" />
</head>
<style>
.tplimage {

View File

@ -3,7 +3,7 @@
<head>
<title>${msg:chat.window.title.agent}</title>
<link rel="shortcut icon" href="${webimroot}/images/favicon.ico" type="image/x-icon"/>
<link rel="stylesheet" type="text/css" href="${webimroot}/chat.css" />
<link rel="stylesheet" type="text/css" href="${tplroot}/chat.css" />
</head>
<style>
.tplimage {