tray/src/messenger/webim/view/agents.php

116 lines
4.7 KiB
PHP
Raw Normal View History

<?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 $webimroot ?>/styles.css" />
<link rel="shortcut icon" href="<?php echo $webimroot ?>/images/favicon.ico" type="image/x-icon"/>
<title>
<?php echo getlocal("page_agents.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_agents.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_agents.intro") ?>
<br><br>
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td class="text"><b><?php echo getlocal("page_agents.agents") ?></b></td>
<td align="right">
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td><img src='<?php echo $webimroot ?>/images/buttons/createagent.gif' border="0" altKey="page_agents.new_agent" /></td>
<td width="10"></td>
<td class="text">
<a href='<?php echo $webimroot ?>/operator/operator.php' title="<?php echo getlocal("page_agents.new_agent") ?>">
<?php echo getlocal("page_agents.new_agent") ?>
</a>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="2" height="15"></td>
</tr>
</table>
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td class='table' bgcolor='#276db8' height='30'><span class='header'><?php echo getlocal("page_agents.login") ?></span></td><td width='3'></td>
<td class='table' bgcolor='#276db8' height='30'><span class='header'><?php echo getlocal("page_agents.agent_name") ?></span></td><td width='3'></td>
<td class='table' bgcolor='#276db8' height='30'><span class='header'><?php echo getlocal("page_agents.agent_commonname") ?></span></td>
</tr>
<?php foreach( $page['allowedAgents'] as $a ) { ?>
<tr>
<td height='45' class='table'>
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td><img src='<?php echo $webimroot ?>/images/tbliclogin.gif' width="10" height="15" border="0" alt="" /></td>
<td class="table">
<a href='<?php echo $webimroot ?>/operator/operator.php?op=<?php echo $a['operatorid'] ?>'>
<?php echo htmlspecialchars(topage($a['vclogin'])) ?>
</a>
</td>
</tr>
</table>
</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='45' class='table'>
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td><img src='<?php echo $webimroot ?>/images/tbllabyel.gif' width="5" height="5" border="0" alt="" /></td>
<td class="table"><?php echo htmlspecialchars(topage($a['vclocalename'])) ?></td>
</tr>
</table>
</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='45' class='table'>
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td><img src='<?php echo $webimroot ?>/images/tbllabyel.gif' width="5" height="5" border="0" alt="" /></td>
<td class="table"><?php echo htmlspecialchars(topage($a['vccommonname'])) ?></td>
</tr>
</table>
</td>
</tr>
<tr><td height='2' colspan='7'></td></tr><tr><td bgcolor='#e1e1e1' colspan='7'><img width='1' height='1' border='0' alt='' src='<?php echo $webimroot ?>/images/free.gif'></td></tr><tr><td height='2' colspan='7'></td></tr>
<?php } ?>
</table>
</td>
</tr>
</table>
</body>
</html>