get rid of olf styles.css, xhtml layout of translate

git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@409 c66351dc-e62f-0410-b875-e3a5c0b9693f
This commit is contained in:
Evgeny Gryaznov 2009-03-16 00:16:22 +00:00
parent 5f8e18392b
commit 882a3b1338
8 changed files with 164 additions and 528 deletions

View File

@ -227,6 +227,7 @@ img.left {
.mform {
background: url(images/loginbg.gif);
clear: both;
width: 100%;
}
.tabs {
@ -271,6 +272,14 @@ img.left {
width: 100%;
}
.packedFormField {
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size: 11px;
float:left;
margin-right:25px;
margin-bottom:8px;
}
div.errinfo {
color: #c13030;
}
@ -339,6 +348,12 @@ div.errinfo {
.formauth {
}
textarea.wide {
border:1px solid #878787;
overflow:auto;
width: 95%;
}
input.formauth {
border: 1px solid #878787;
color: #333;
@ -373,7 +388,7 @@ input.formauth {
padding-left: 4px;
}
table.list {
table.list, table.translate {
font-family: "Lucida Sans Unicode", "Lucida Grande", Sans-Serif;
background: #fff;
width: 100%;
@ -381,7 +396,7 @@ table.list {
text-align: left;
}
table.list th {
table.list th, table.translate th {
font-size: 1.2em;
font-weight: normal;
color: #1D485E;
@ -395,6 +410,14 @@ table.list td {
border-bottom: 1px solid #ccc;
}
table.translate td {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
color: #515151;
padding: 2px 8px;
border-bottom: 1px solid #ccc;
}
table.list td a.man {
background: url(images/tbliclogin.gif) no-repeat left center;
padding-left: 15px;

View File

@ -172,6 +172,7 @@ menu.locale=Language
menu.locale.content=Change locale.
menu.main=Main
menu.operator=You are {0}
menu.translate=Localize
my_settings.error.password_match=Entered passwords do not match
no_such_operator=No such operator
page.analysis.search.head_host=Visitor's address

View File

@ -171,6 +171,7 @@ menu.locale=
menu.locale.content=Ñìåíèòü ÿçûê.
menu.main=Ãëàâíàÿ
menu.operator=Âû {0}
menu.translate=Ëîêàëèçàöèÿ
my_settings.error.password_match=Ââåäåííûå ïàðîëè äîëæíû ñîâïàäàòü
no_such_operator=Çàïðàøèâàåìàÿ ó÷åòíàÿ çàïèñü íå ñóùåñòâóåò
page.analysis.search.head_host=Àäðåñ ïîñåòèòåëÿ

View File

@ -140,8 +140,8 @@ if($stringid) {
$page['saved'] = false;
$page['key'] = $stringid;
$page['target'] = $target;
$page['formoriginal'] = isset($lang1[$stringid]) ? $lang1[$stringid] : "<b><unknown></b>";
$page['formtranslation'] = $translation;
$page['formoriginal'] = isset($lang1[$stringid]) ? htmlspecialchars($lang1[$stringid]) : "<b><unknown></b>";
$page['formtranslation'] = htmlspecialchars($translation);
start_html_output();
require('../view/translate.php');
exit;

View File

@ -1,346 +0,0 @@
a {
text-decoration: underline;
}
a:hover {
text-decoration: none;
}
ul {
margin-bottom: 10px;
margin-top: 10px;
margin-left: 0px;
}
li {
margin-left: 18px;
list-style-image: url(images/li.gif);
}
li.error {
margin-left: 15px;
list-style-image: url(images/li_error.gif);
}
li.grey {
margin-left: 15px;
list-style-image: url(images/li_grey.gif);
}
form {
margin-bottom: 0px;
margin-top: 0px;
}
.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;
}
.textform {
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size: 11px;
color: #000000;
}
.textform a {
color: #2971C1;
}
.text {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
color: #515151;
}
.text h1 {
margin-bottom: 15px;
margin-top: 0px;
color: #000000;
font-size: 18px;
font-weight: normal;
line-height: 15px;
}
.text h2 {
margin-bottom: 15px;
margin-top: 0px;
color: #000000;
font-size: 16px;
}
.text h3 {
margin-bottom: 15px;
margin-top: 0px;
color: #000000;
font-size: 14px;
}
.text h4 {
margin-bottom: 15px;
margin-top: 0px;
color: #000000;
font-size: 12px;
}
.text span.date {
font-size: 11px;
color: #FFFFFF;
font-weight: bold;
}
.text span.sub {
font-size: 11px;
color: #676767;
}
.text a.sublink {
font-size: 11px;
color: #666666;
}
.text b.black {
color: #000000;
}
.text span.black {
color: #000000;
}
.block {
font-family: Arial, Helvetica, sans-serif;
font-size: 11px;
color: #515151;
}
.block h1 {
margin-bottom: 10px;
font-size: 12px;
color: #000000;
font-weight: bold;
line-height: 11px;
}
.bann {
font-family: Arial, Helvetica, sans-serif;
font-size: 21px;
color: #000000;
line-height: 18px;
}
.bann span.text {
font-size: 14px;
color: #9F7800;
}
.bannin {
font-family: Arial, Helvetica, sans-serif;
font-size: 17px;
color: #000000;
line-height: 14px;
font-weight: bold;
}
.bannin span.text {
font-size: 12px;
color: #9F7800;
font-weight: normal;
white-space: nowrap;
}
.bannform {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
color: #766037;
}
.menu {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
color: #000000;
}
.menu a {
color: #000000;
}
.smenu {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
color: #165798;
}
.smenu a {
color: #165798;
}
.table {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
color: #515151;
padding-left: 5px;
padding-right: 15px;
padding-top: 2px;
padding-bottom: 2px;
}
.table span.header {
color: #FFFFFF;
}
.table span.headergrey {
color: #676767;
}
.table a.black {
color: #000000;
}
.table span.black {
color: #000000;
}
.table a.blocked {
color: #e0a0a0;
}
.address {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
color: #000000;
}
.address a {
color: #000000;
}
.phone {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
color: #000000;
}
.phone span.number {
font-size: 17px;
color: #3D79AD;
font-weight: bold;
}
td.formauth {
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size: 11px;
color: #000000;
padding-left: 0px;
}
td.formauth span {
color: #474747;
}
td.formauth span.formdescr {
font-size: 10px;
color: #676767;
}
.formauth {
font-family: Arial, Helvetica, sans-serif;
font-size: 11px;
color: #676767;
}
input.formauth {
border: 1px solid #878787;
}
textarea.formauth {
border: 1px solid #878787;
overflow: auto;
}
.submit a {
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size: 11px;
color: #000000;
text-decoration: none;
}
.perpage {
font-family: Arial, Helvetica, sans-serif;
font-size: 11px;
color: #676767;
}
input.submit {
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size: 11px;
color: #000000;
background: transparent;
background-image: url(images/submitbg.gif);
height: 33px;
cursor: hand;
border: none;
}
.cal {
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size: 11px;
color: #515151;
}
.cal a {
color: #515151;
text-decoration: none;
}
.cal span {
color: #B70606;
}
.cal b {
color: #000000;
}
.firstmessage a {
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size: 10px;
text-decoration: none;
color: #6a6a6a;
}
.firstmessage a:hover {
color: #8a6a6a;
}
#formmessage {
border: 1px solid #4C96D4;
background-color: #E7F1F9;
padding: 8px 11px;
font-size: 11px; font-weight:bold;
width : 400px;
margin: 5px 2px;
}

View File

@ -25,6 +25,7 @@ function tpl_menu() { global $page, $webimroot, $errors;
<li<?php menuli("departments")?>><a href="#">Departments</a></li>
<li<?php menuli("getcode")?>><a href='<?php echo $webimroot ?>/operator/getcode.php'><?php echo getlocal('leftMenu.client_gen_button') ?></a></li>
<li<?php menuli("settings")?>><a href='<?php echo $webimroot ?>/operator/settings.php'><?php echo getlocal('leftMenu.client_settings') ?></a></li>
<li<?php menuli("translate")?>><a href='<?php echo $webimroot ?>/operator/translate.php'><?php echo getlocal('menu.translate') ?></a></li>
</ul>
</li>
<li>

View File

@ -11,34 +11,11 @@
* Contributors:
* Evgeny Gryaznov - initial API and implementation
*/
$page['title'] = getlocal("page.translate.title");
function tpl_content() { global $page, $webimroot, $errors;
?>
<html>
<head>
<link rel="stylesheet" type="text/css" media="all" href="<?php echo $webimroot ?>/styles.css" />
<link rel="shortcut icon" href="<?php echo $webimroot ?>/images/favicon.ico" type="image/x-icon"/>
<title>
<?php echo getlocal("page.translate.title") ?> - <?php echo getlocal("app.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%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td valign="top" class="text">
<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td align="left" valign="top">
<h1><?php echo getlocal("page.translate.title") ?></h1>
</td><td align="right" class="text" valign="top"><table cellspacing="0" cellpadding="0" border="0"><tr><td class="textform"><?php echo getlocal2("menu.operator",array($page['operator'])) ?></td><td class="textform"><img src='<?php echo $webimroot ?>/images/topdiv.gif' width="25" height="15" border="0" alt="|" /></td><td class="textform"><a href="<?php echo $webimroot ?>/operator/index.php" title="<?php echo getlocal("menu.main") ?>"><?php echo getlocal("menu.main") ?></a></td></tr></table></td></tr></table>
<?php if( $page['saved'] ) { ?>
<?php echo getlocal("page.translate.done") ?>
@ -52,70 +29,42 @@
<?php echo getlocal("page.translate.one") ?>
<br/>
<br/>
<?php if( isset($errors) && count($errors) > 0 ) { ?>
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td valign="top"><img src='<?php echo $webimroot ?>/images/icon_err.gif' width="40" height="40" border="0" alt="" /></td>
<td width="10"></td>
<td class="text">
<?php if( isset($errors) && count($errors) > 0 ) {
print getlocal("errors.header");
foreach( $errors as $e ) {
print getlocal("errors.prefix");
print $e;
print getlocal("errors.suffix");
}
print getlocal("errors.footer");
} ?>
</td>
</tr>
</table>
<?php } ?>
<?php
require_once('inc_errors.php');
?>
<form name="translateForm" method="post" action="<?php echo $webimroot ?>/operator/translate.php">
<table cellspacing='0' cellpadding='0' border='0'><tr><td background='<?php echo $webimroot ?>/images/loginbg.gif'><table cellspacing='0' cellpadding='0' border='0'><tr><td><img src='<?php echo $webimroot ?>/images/logincrnlt.gif' width='16' height='16' border='0' alt=''></td><td></td><td><img src='<?php echo $webimroot ?>/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 colspan="3" class="formauth"><?php echo $page['title1'] ?></td>
</tr>
<tr><td colspan="3" height="2"></td></tr>
<tr>
<td colspan="3">
<textarea name="original" disabled="disabled" tabindex="0" cols="80" rows="5" style="border:1px solid #878787; overflow:auto"><?php echo $page['formoriginal'] ?></textarea>
</td>
</tr>
<tr><td colspan="3" height="5"></td></tr>
<input type="hidden" name="key" value="<?php echo $page['key'] ?>"/>
<input type="hidden" name="target" value="<?php echo $page['target'] ?>"/>
<div class="mform"><div class="formtop"><div class="formtopi"></div></div><div class="forminner">
<tr>
<td colspan="3" class="formauth"><?php echo $page['title2'] ?></td>
</tr>
<tr><td colspan="3" height="2"></td></tr>
<tr>
<td colspan="3">
<textarea name="translation" tabindex="0" cols="80" rows="5" style="border:1px solid #878787; overflow:auto"><?php echo $page['formtranslation'] ?></textarea>
</td>
</tr>
<tr><td colspan="3" height="5"></td></tr>
<div class="fieldForm">
<div class="field">
<div class="flabel"><?php echo $page['title1'] ?></div>
<div class="fvaluenodesc">
<textarea name="original" disabled="disabled" cols="20" rows="5" class="wide"><?php echo $page['formoriginal'] ?></textarea>
</div>
</div>
<tr><td colspan='3' height='20'></td></tr><tr><td colspan='3' background='<?php echo $webimroot ?>/images/formline.gif'><img src='<?php echo $webimroot ?>/images/formline.gif' width='1' height='2' border='0' alt=''></td></tr><tr><td colspan='3' height='10'></td></tr>
<tr>
<td class="formauth">
<input type="hidden" name="key" value="<?php echo $page['key'] ?>"/>
<input type="hidden" name="target" value="<?php echo $page['target'] ?>"/>
<input type="image" name="" src='<?php echo $webimroot.getlocal("image.button.save") ?>' border="0" alt='<?php echo getlocal("button.save") ?>'/></td>
<td></td>
<td></td>
</tr>
</table></td><td></td></tr><tr><td><img src='<?php echo $webimroot ?>/images/logincrnlb.gif' width='16' height='16' border='0' alt=''></td><td></td><td><img src='<?php echo $webimroot ?>/images/logincrnrb.gif' width='16' height='16' border='0' alt=''></td></tr></table></td></tr></table>
<div class="field">
<div class="flabel"><?php echo $page['title2'] ?></div>
<div class="fvaluenodesc">
<textarea name="translation" cols="20" rows="5" class="wide"><?php echo $page['formtranslation'] ?></textarea>
</div>
</div>
<div class="fbutton">
<input type="image" name="save" value="" src='<?php echo $webimroot.getlocal("image.button.save") ?>' alt='<?php echo getlocal("button.save") ?>'/>
</div>
</div>
</div><div class="formbottom"><div class="formbottomi"></div></div></div>
</form>
<?php } ?>
</td>
</tr>
</table>
</body>
</html>
<?php
} /* content */
require_once('inc_main.php');
?>

View File

@ -11,107 +11,114 @@
* Contributors:
* Evgeny Gryaznov - initial API and implementation
*/
require_once("inc_menu.php");
$page['title'] = getlocal("page.translate.title");
$page['menuid'] = "translate";
function tpl_content() { global $page, $webimroot;
?>
<html>
<head>
<link rel="stylesheet" type="text/css" media="all" href="<?php echo $webimroot ?>/styles.css" />
<link rel="shortcut icon" href="<?php echo $webimroot ?>/images/favicon.ico" type="image/x-icon"/>
<title>
<?php echo getlocal("page.translate.title") ?> - <?php echo getlocal("app.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%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td valign="top" class="text">
<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td align="left" valign="top">
<h1><?php echo getlocal("page.translate.title") ?></h1>
</td><td align="right" class="text" valign="top"><table cellspacing="0" cellpadding="0" border="0"><tr><td class="textform"><?php echo getlocal2("menu.operator",array($page['operator'])) ?></td><td class="textform"><img src='<?php echo $webimroot ?>/images/topdiv.gif' width="25" height="15" border="0" alt="|" /></td><td class="textform"><a href="<?php echo $webimroot ?>/operator/index.php" title="<?php echo getlocal("menu.main") ?>"><?php echo getlocal("menu.main") ?></a></td></tr></table></td></tr></table>
<?php echo getlocal("page.translate.descr") ?>
<?php echo getlocal("page.translate.descr") ?>
<br />
<br />
<form name="translateForm" method="get" action="<?php echo $webimroot ?>/operator/translate.php">
<table cellspacing='0' cellpadding='0' border='0'><tr><td background='<?php echo $webimroot ?>/images/loginbg.gif'><table cellspacing='0' cellpadding='0' border='0'><tr><td><img src='<?php echo $webimroot ?>/images/logincrnlt.gif' width='16' height='16' border='0' alt=''></td><td></td><td><img src='<?php echo $webimroot ?>/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 class="formauth"><?php echo getlocal("translate.direction") ?></td>
<td></td>
<td class="formauth"><?php echo getlocal("translate.sort") ?></td>
<td></td>
<td class="formauth"><?php echo getlocal("translate.show") ?></td>
</tr>
<tr><td colspan="3" height="2"></td></tr>
<tr>
<td class="formauth">
<select name="source" onchange="this.form.submit();"><?php foreach($page['availableLocales'] as $k) { echo "<option value=\"".$k["id"]."\"".($k["id"] == form_value("source") ? " selected=\"selected\"" : "").">".$k["name"]."</option>"; } ?></select>
=>
<select name="target" onchange="this.form.submit();"><?php foreach($page['availableLocales'] as $k) { echo "<option value=\"".$k["id"]."\"".($k["id"] == form_value("target") ? " selected=\"selected\"" : "").">".$k["name"]."</option>"; } ?></select>
</td>
<td width="40">&nbsp;</td>
<td>
<select name="sort" onchange="this.form.submit();"><?php foreach($page['availableOrders'] as $k) { echo "<option value=\"".$k["id"]."\"".($k["id"] == form_value("sort") ? " selected=\"selected\"" : "").">".$k["name"]."</option>"; } ?></select>
</td>
<td width="40">&nbsp;</td>
<td>
<select name="show" onchange="this.form.submit();"><?php foreach($page['showOptions'] as $k) { echo "<option value=\"".$k["id"]."\"".($k["id"] == form_value("show") ? " selected=\"selected\"" : "").">".$k["name"]."</option>"; } ?></select>
</td>
</tr>
</table></td><td></td></tr><tr><td><img src='<?php echo $webimroot ?>/images/logincrnlb.gif' width='16' height='16' border='0' alt=''></td><td></td><td><img src='<?php echo $webimroot ?>/images/logincrnrb.gif' width='16' height='16' border='0' alt=''></td></tr></table></td></tr></table>
<div class="mform"><div class="formtop"><div class="formtopi"></div></div><div class="forminner">
<div class="packedFormField">
<?php echo getlocal("translate.direction") ?><br/>
<select name="source" onchange="this.form.submit();"><?php
foreach($page['availableLocales'] as $k) {
echo "<option value=\"".$k["id"]."\"".($k["id"] == form_value("source") ? " selected=\"selected\"" : "").">".$k["name"]."</option>";
} ?></select>
=&gt;
<select name="target" onchange="this.form.submit();"><?php
foreach($page['availableLocales'] as $k) {
echo "<option value=\"".$k["id"]."\"".($k["id"] == form_value("target") ? " selected=\"selected\"" : "").">".$k["name"]."</option>";
} ?></select>
</div>
<div class="packedFormField">
<?php echo getlocal("translate.sort") ?><br/>
<select name="sort" onchange="this.form.submit();"><?php
foreach($page['availableOrders'] as $k) {
echo "<option value=\"".$k["id"]."\"".($k["id"] == form_value("sort") ? " selected=\"selected\"" : "").">".$k["name"]."</option>";
} ?></select>
</div>
<div class="packedFormField">
<?php echo getlocal("translate.show") ?><br/>
<select name="show" onchange="this.form.submit();"><?php
foreach($page['showOptions'] as $k) {
echo "<option value=\"".$k["id"]."\"".($k["id"] == form_value("show") ? " selected=\"selected\"" : "").">".$k["name"]."</option>";
} ?></select>
</div>
<br clear="all"/>
</div><div class="formbottom"><div class="formbottomi"></div></div></div>
</form>
<br/>
<?php if( $page['pagination'] && $page['pagination.items'] ) { ?>
<?php echo generate_pagination($page['pagination'],false) ?>
</br>
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td class='table' bgcolor='#276db8' height='30'><span class='header'>Key</span></td><td width='3'></td>
<td class='table' bgcolor='#276db8' height='30'width="40%"><span class='header'><?php echo topage($page['title1']) ?></span></td><td width='3'></td>
<td class='table' bgcolor='#276db8' height='30'width="40%"><span class='header'><?php echo topage($page['title2']) ?></span></td>
</tr>
<?php foreach( $page['pagination.items'] as $localstr ) { ?>
<tr>
<td height='20' class='table'>
<a href="<?php echo $webimroot ?>/operator/translate.php?source=<?php echo $page['lang1'] ?>&amp;target=<?php echo $page['lang2'] ?>&amp;key=<?php echo $localstr['id'] ?>" target="_blank" onclick="this.newWindow = window.open('<?php echo $webimroot ?>/operator/translate.php?source=<?php echo $page['lang1'] ?>&amp;target=<?php echo $page['lang2'] ?>&amp;key=<?php echo $localstr['id'] ?>', '', 'toolbar=0,scrollbars=1,location=0,status=1,menubar=0,width=640,height=430,resizable=1');this.newWindow.focus();this.newWindow.opener=window;return false;"><?php echo topage($localstr['id']) ?></a>
</td><td background='<?php echo $webimroot ?>/images/tablediv3.gif'><img width='3' height='1' border='0' alt='' src='<?php echo $webimroot ?>/images/free.gif'></td>
<td height='20' class='table'>
<?php echo topage($localstr['l1']) ?>
</td><td background='<?php echo $webimroot ?>/images/tablediv3.gif'><img width='3' height='1' border='0' alt='' src='<?php echo $webimroot ?>/images/free.gif'></td>
<td height='20' class='table'>
<?php echo topage($localstr['l2']) ?>
</td>
</tr>
<tr><td height='2' colspan='9'></td></tr><tr><td bgcolor='#e1e1e1' colspan='9'><img width='1' height='1' border='0' alt='' src='<?php echo $webimroot ?>/images/free.gif'></td></tr><tr><td height='2' colspan='9'></td></tr>
<?php } ?>
</table>
<br />
<?php echo generate_pagination($page['pagination']) ?>
<?php } ?>
<?php if( $page['pagination'] && !$page['pagination.items'] ) { ?>
<br/><br/>
<table cellspacing='0' cellpadding='0' border='0'><tr><td background='<?php echo $webimroot ?>/images/loginbg.gif'><table cellspacing='0' cellpadding='0' border='0'><tr><td><img src='<?php echo $webimroot ?>/images/logincrnlt.gif' width='16' height='16' border='0' alt=''></td><td></td><td><img src='<?php echo $webimroot ?>/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'>
<span class="table">
<?php echo getlocal("tag.pagination.no_items") ?>
</span>
</table></td><td></td></tr><tr><td><img src='<?php echo $webimroot ?>/images/logincrnlb.gif' width='16' height='16' border='0' alt=''></td><td></td><td><img src='<?php echo $webimroot ?>/images/logincrnrb.gif' width='16' height='16' border='0' alt=''></td></tr></table></td></tr></table>
<?php } ?>
</td>
</tr>
<?php
if( $page['pagination'] ) {
if( $page['pagination.items'] ) {
echo generate_pagination($page['pagination'], false);
}
?>
<table class="translate">
<thead>
<tr class="header"><th>
Key
</th><th>
<?php echo topage($page['title1']) ?>
</th><th>
<?php echo topage($page['title2']) ?>
</th></tr>
</thead>
<tbody>
<?php
if( $page['pagination.items'] ) {
foreach( $page['pagination.items'] as $localstr ) { ?>
<tr>
<td>
<a href="<?php echo $webimroot ?>/operator/translate.php?source=<?php echo $page['lang1'] ?>&amp;target=<?php echo $page['lang2'] ?>&amp;key=<?php echo $localstr['id'] ?>" target="_blank" onclick="this.newWindow = window.open('<?php echo $webimroot ?>/operator/translate.php?source=<?php echo $page['lang1'] ?>&amp;target=<?php echo $page['lang2'] ?>&amp;key=<?php echo $localstr['id'] ?>', '', 'toolbar=0,scrollbars=1,location=0,status=1,menubar=0,width=640,height=480,resizable=1');this.newWindow.focus();this.newWindow.opener=window;return false;"><?php echo topage($localstr['id']) ?></a>
</td>
<td>
<?php echo topage($localstr['l1']) ?>
</td>
<td>
<?php echo topage($localstr['l2']) ?>
</td>
</tr>
<?php
}
} else {
?>
<tr>
<td colspan="3">
<?php echo getlocal("tag.pagination.no_items.elements") ?>
</td>
</tr>
<?php
}
?>
</tbody>
</table>
<?php
if( $page['pagination.items'] ) {
echo "<br/>";
echo generate_pagination($page['pagination']);
}
}
?>
</body>
</html>
<?php
} /* content */
require_once('inc_main.php');
?>