<!-- $Id: addressbook.tpl,v 1.1.1.2.8.1 2004/09/27 21:32:21 kazuyan Exp $ -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<HTML LANG="en">
<head>
<title>{title}</title>
<meta http-equiv="content-type" content="text/html"; charset="{charset}">
{theme_css}
<STYLE type="text/css">
	A {text-decoration:none;}
	<!--
	A:link {text-decoration:none;}
	A:visted {text-decoration:none;}
	A:active {text-decoration:none;}
	body {margin-top: 0px; margin-right: 0px; margin-left: 0px;}
	td {text-decoration:none;}
	tr {text-decoration:none;}
	table {text-decoration:none;}
	center {text-decoration:none;}
	-->
</STYLE>
<script LANGUAGE="JavaScript">
	function ExchangeCustomer(thisform)
	{
		opener.document.app_form.abid.value = thisform.elements[0].value;
		opener.document.app_form.name.value = thisform.elements[1].value;
	}
</script>
</head>
<body bgcolor="{bg_color}">
<center>
<p><font face="{font}"><b>{lang_action}</b></font><br>
<hr noshade width="98%" align="center" size="1">
<table border="0" width="100%">
	<tr>
		<td colspan="4">
			<table border="0" width="100%">
				<tr>
				{left}
					<td align="center">{lang_showing}</td>
				{right}
				</tr>
			</table>
		</td>
	</tr>
	<tr>
		<td width="33%" align="left" nowrap>
			<form action="{cats_action}" name="form" method="POST">
			{lang_category}&nbsp;&nbsp;&nbsp;<select name="cat_id" onChange="this.form.submit();"><option value="">{lang_all}</option>{cats_list}</select>
			<noscript>&nbsp;<input type="submit" name="submit" value="{lang_submit}"></noscript></td></form>
		<td width="33%" align="center"><form method="POST" name="filter" action="{filter_action}">{filter_list}</form></td>
		<td width="33%" align="right">
			<form method="POST" action="{search_action}">
			<input type="text" name="query">&nbsp;<input type="submit" name="search" value="{lang_search}">
			</td></form>
	</tr>
</table>
<table border="0" width="100%" cellpadding="2" cellspacing="2">
	<tr bgcolor="{th_bg}">
		<td width="30%" bgcolor="{th_bg}" align="center"><font face="{font}">{sort_company}</font></td>
		<td width="20%" bgcolor="{th_bg}" align="center"><font face="{font}">{sort_firstname}</font></td>
		<td width="20%" bgcolor="{th_bg}" align="center"><font face="{font}">{sort_lastname}</font></td>
		<td width="10%" bgcolor="{th_bg}" align="center"><font face="{font}">{lang_select}</font></td>
	</tr>

<!-- BEGIN abook_list -->

	<tr bgcolor="{tr_color}">
		<td><font face="{font}">{company}</font></td>
		<td><font face="{font}">{firstname}</font></td>
		<td><font face="{font}">{lastname}</font></td>
		<form>
		<input type="hidden" size="25" name="hidden" value="{abid}">
		<input type="hidden" size="25" name="hidden" value="{company} {firstname} {lastname}">
		<td align="center"><font face="{font}"><input type="button" value="{lang_select}" onClick="ExchangeCustomer(this.form);" name="button"></td>
		</font></form>    
	</tr>

<!-- END abook_list -->

</table>
<table cellpadding="2" cellspacing="2">
	<tr> 
		<form>  
		<td><font face="{font}"><input type="button" name="Done" value="{lang_done}" onClick="window.close()"></font>
		</form>
		</td>
	</tr>
</table>
</center>
</body>
</html>
