<?php /* * This file is part of Web Instant Messenger project. * * Copyright (c) 2005-2008 Web Messenger Community * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * Evgeny Gryaznov - initial API and implementation */ ?> <html> <head> <link rel="stylesheet" type="text/css" media="all" href="<?php echo $siteroot ?>/admin/styles.css" /> <link rel="shortcut icon" href="<?php echo $siteroot ?>/admin/images/favicon.ico" type="image/x-icon"/> <title> Translate </title> </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"> <h1>Translate</h1> If you don't like the translation, please send us an update. <br /> <br /> <form name="translateForm" method="get" action="<?php echo $siteroot ?>/admin/translate.php"> <table cellspacing='0' cellpadding='0' border='0'><tr><td background='<?php echo $siteroot ?>/admin/images/loginbg.gif'><table cellspacing='0' cellpadding='0' border='0'><tr><td><img src='<?php echo $siteroot ?>/admin/images/logincrnlt.gif' width='16' height='16' border='0' alt=''></td><td></td><td><img src='<?php echo $siteroot ?>/admin/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" colspan="3"> <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> </tr> </table></td><td></td></tr><tr><td><img src='<?php echo $siteroot ?>/admin/images/logincrnlb.gif' width='16' height='16' border='0' alt=''></td><td></td><td><img src='<?php echo $siteroot ?>/admin/images/logincrnrb.gif' width='16' height='16' border='0' alt=''></td></tr></table></td></tr></table> </form> <br/> <?php if( $page['pagination'] && $page['pagination.items'] ) { ?> <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 $siteroot ?>/admin/translate.php?source=<?php echo $page['lang1'] ?>&target=<?php echo $page['lang2'] ?>&key=<?php echo $localstr['id'] ?>" target="_blank" onclick="this.newWindow = window.open('<?php echo $siteroot ?>/admin/translate.php?source=<?php echo $page['lang1'] ?>&target=<?php echo $page['lang2'] ?>&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 $siteroot ?>/admin/images/tablediv3.gif'><img width='3' height='1' border='0' alt='' src='<?php echo $siteroot ?>/admin/images/free.gif'></td> <td height='20' class='table'> <?php echo topage($localstr['l1']) ?> </td><td background='<?php echo $siteroot ?>/admin/images/tablediv3.gif'><img width='3' height='1' border='0' alt='' src='<?php echo $siteroot ?>/admin/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 $siteroot ?>/admin/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 $siteroot ?>/admin/images/loginbg.gif'><table cellspacing='0' cellpadding='0' border='0'><tr><td><img src='<?php echo $siteroot ?>/admin/images/logincrnlt.gif' width='16' height='16' border='0' alt=''></td><td></td><td><img src='<?php echo $siteroot ?>/admin/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"> No items. </span> </table></td><td></td></tr><tr><td><img src='<?php echo $siteroot ?>/admin/images/logincrnlb.gif' width='16' height='16' border='0' alt=''></td><td></td><td><img src='<?php echo $siteroot ?>/admin/images/logincrnrb.gif' width='16' height='16' border='0' alt=''></td></tr></table></td></tr></table> <?php } ?> </td> </tr> </table> </body> </html>