template fixes

git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@171 c66351dc-e62f-0410-b875-e3a5c0b9693f
This commit is contained in:
Evgeny Gryaznov 2008-10-11 00:06:15 +00:00
parent 9ce1e28226
commit d159b7ac35
2 changed files with 8 additions and 4 deletions

View File

@ -34,7 +34,7 @@ var threadParams = { servl:"${webimroot}/thread.php",wroot:"${webimroot}",freque
<td align="center">
${if:ct.company.chatLogoURL}
${if:webimHost}
<a onclick="window.open('${page:webimHost}');return false;" href="_blank">
<a onclick="window.open('${page:webimHost}');return false;" href="${page:webimHost}">
<img src="${page:ct.company.chatLogoURL}" border="0" alt="">
</a>
${else:webimHost}
@ -50,7 +50,7 @@ var threadParams = { servl:"${webimroot}/thread.php",wroot:"${webimroot}",freque
<tr>
<td align="center" class="text">
${if:webimHost}
<a onclick="window.open('${page:webimHost}');return false;" href="_blank">${page:ct.company.name}</a>
<a onclick="window.open('${page:webimHost}');return false;" href="${page:webimHost}">${page:ct.company.name}</a>
${else:webimHost}
${page:ct.company.name}
${endif:webimHost}
@ -237,7 +237,7 @@ ${if:agent}${if:canpost}
<td>
<select id="predefined" size="1" class="answer">
<option>${msg:chat.window.predefined.select_answer}</option>
${predefinedAnswers}
${page:predefinedAnswers}
</select>
</td>
${endif:canpost}${endif:agent}

View File

@ -300,7 +300,11 @@ function setup_chatview_for_operator($thread,$operator) {
$page['neediframesrc'] = needsFramesrc();
$page['historyParams'] = array("userid" => "".$thread['userid']);
$page['historyParamsLink'] = add_params($webimroot."/operator/userhistory.php",$page['historyParams']);
$page['predefinedList'] = explode("\n", getlocal_('chat.predefined_answers', $thread['locale']));
$predefinedres = "";
foreach(explode("\n", getlocal_('chat.predefined_answers', $thread['locale'])) as $answer) {
$predefinedres .= "<option>$answer</option>";
}
$page['predefinedAnswers'] = $predefinedres;
$params = "thread=".$thread['threadid']."&token=".$thread['ltoken'];
$page['selfLink'] = "$webimroot/operator/agent.php?".$params;