mirror of
				https://github.com/Mibew/design.git
				synced 2025-11-04 04:15:14 +03:00 
			
		
		
		
	git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@33 c66351dc-e62f-0410-b875-e3a5c0b9693f
		
			
				
	
	
		
			130 lines
		
	
	
		
			7.4 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			130 lines
		
	
	
		
			7.4 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
/*
 | 
						|
 * This file is part of Web Instant Messenger project.
 | 
						|
 *
 | 
						|
 * Copyright (c) 2005-2007 Internet Services Ltd.
 | 
						|
 * 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 getstring("app.title") ?>	- <?php echo getstring("page_agent.title") ?>
 | 
						|
</title>
 | 
						|
 | 
						|
<meta http-equiv="keywords" content="<?php echo getstring("page.main_layout.meta_keyword") ?>">
 | 
						|
<meta http-equiv="description" content="<?php echo getstring("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 getstring("page_agent.title") ?></h1>
 | 
						|
 </td><td align="right" class="text" valign="top"><table cellspacing="0" cellpadding="0" border="0"><tr><td class="textform"><?php echo getstring2("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/operators.php" title="<?php echo getstring("menu.agents") ?>"><?php echo getstring("menu.agents") ?></a></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 getstring("menu.main") ?>"><?php echo getstring("menu.main") ?></a></td></tr></table></td></tr></table> 
 | 
						|
	
 | 
						|
 | 
						|
	<?php if( $page['agentId'] ) { ?>
 | 
						|
<?php echo getstring("page_agent.intro") ?>
 | 
						|
<?php } ?>
 | 
						|
<?php if( !$page['agentId'] ) { ?>
 | 
						|
<?php echo getstring("page_agent.create_new") ?>
 | 
						|
<?php } ?>
 | 
						|
<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 getstring("errors.header");
 | 
						|
		foreach( $errors as $e ) {
 | 
						|
			print getstring("errors.prefix");
 | 
						|
			print $e;
 | 
						|
			print getstring("errors.suffix");
 | 
						|
		}
 | 
						|
		print getstring("errors.footer");
 | 
						|
	} ?>
 | 
						|
 | 
						|
		</td>
 | 
						|
		</tr>
 | 
						|
		</table>
 | 
						|
	<?php } ?>
 | 
						|
 | 
						|
<form name="agentForm" method="post" action="<?php echo $webimroot ?>/operator/operator.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 getstring('form.field.login') ?><b><font class='red'>*</font></b></td><td width='10'><img width='10' height='1' border='0' alt='' src='<?php echo $webimroot ?>/images/free.gif'></td><td></td></tr><tr><td height='2' colspan='3'></td></tr><tr><td>
 | 
						|
			<input type="text" name="login" size="40" value="<?php echo form_value('login') ?>" class="formauth"/>
 | 
						|
		</td><td></td><td class='formauth'><span class='formdescr'> — <?php echo getstring('form.field.login.description') ?></span></td></tr><tr><td colspan='3' height='10'></td></tr>
 | 
						|
 | 
						|
		<tr><td class='formauth'><?php echo getstring('form.field.password') ?><b><font class='red'>*</font></b></td><td width='10'><img width='10' height='1' border='0' alt='' src='<?php echo $webimroot ?>/images/free.gif'></td><td></td></tr><tr><td height='2' colspan='3'></td></tr><tr><td>
 | 
						|
			<input type="password" name="password" size="40" value="" class="formauth"/>
 | 
						|
		</td><td></td><td class='formauth'><span class='formdescr'> — <?php echo getstring('form.field.password.description') ?></span></td></tr><tr><td colspan='3' height='10'></td></tr>
 | 
						|
 | 
						|
		<tr><td class='formauth'><?php echo getstring('form.field.password_confirm') ?><b><font class='red'>*</font></b></td><td width='10'><img width='10' height='1' border='0' alt='' src='<?php echo $webimroot ?>/images/free.gif'></td><td></td></tr><tr><td height='2' colspan='3'></td></tr><tr><td>
 | 
						|
			<input type="password" name="passwordConfirm" size="40" value="" class="formauth"/>
 | 
						|
		</td><td></td><td class='formauth'><span class='formdescr'> — <?php echo getstring('form.field.password_confirm.description') ?></span></td></tr><tr><td colspan='3' height='10'></td></tr>
 | 
						|
 | 
						|
		<tr><td class='formauth'><?php echo getstring('form.field.agent_name') ?><b><font class='red'>*</font></b></td><td width='10'><img width='10' height='1' border='0' alt='' src='<?php echo $webimroot ?>/images/free.gif'></td><td></td></tr><tr><td height='2' colspan='3'></td></tr><tr><td>
 | 
						|
			<input type="text" name="name" size="40" value="<?php echo form_value('name') ?>" class="formauth"/>
 | 
						|
		</td><td></td><td class='formauth'><span class='formdescr'> — <?php echo getstring('form.field.agent_name.description') ?></span></td></tr><tr><td colspan='3' height='10'></td></tr>
 | 
						|
 | 
						|
		<tr><td class='formauth'><?php echo getstring('form.field.agent_commonname') ?><b><font class='red'>*</font></b></td><td width='10'><img width='10' height='1' border='0' alt='' src='<?php echo $webimroot ?>/images/free.gif'></td><td></td></tr><tr><td height='2' colspan='3'></td></tr><tr><td>
 | 
						|
			<input type="text" name="commonname" size="40" value="<?php echo form_value('commonname') ?>" class="formauth"/>
 | 
						|
		</td><td></td><td class='formauth'><span class='formdescr'> — <?php echo getstring('form.field.agent_commonname.description') ?></span></td></tr><tr><td colspan='3' height='10'></td></tr>
 | 
						|
 | 
						|
		<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="agentId" value="<?php echo $page['agentId'] ?>"/> 
 | 
						|
			        <input type="image" name="" src='<?php echo $webimroot.getstring("image.button.save") ?>' border="0" alt='<?php echo getstring("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>
 | 
						|
 | 
						|
	
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<table cellspacing="0" cellpadding="0" border="0">
 | 
						|
	<tr>
 | 
						|
		<td colspan="2" height="10"></td>
 | 
						|
	</tr>
 | 
						|
	<tr>
 | 
						|
		<td width="30"></td>
 | 
						|
		<td class="formauth"><span class="formdescr"><?php echo getstring("common.asterisk_explanation") ?></span></td>
 | 
						|
	</tr>
 | 
						|
</table>
 | 
						|
 | 
						|
 | 
						|
</form>
 | 
						|
 | 
						|
</td>
 | 
						|
</tr>
 | 
						|
</table>
 | 
						|
 | 
						|
</body>
 | 
						|
</html>
 | 
						|
 |