<?
########## Confixx(R) 3.0 Professional ############
####### Copyright SWsoft, Inc. 2004-2005 ##########
#### http://www.sw-soft.com - info@sw-soft.com ####

include_once("auth.php");
include("email_functions.php");
include("email_config.php");

// ADRESSBOOK:
$query_adbook = mysql_query("SELECT * FROM $cnf_db_ab WHERE pop3 = '$PHP_AUTH_USER'");
?>
<HTML>
<HEAD>
<title><? echo $lang_text['wbm_ad_persadbook'] ?></title>
<META content="text/html; charset=<? echo $lang_html_charset; ?>" http-equiv=Content-Type>
<LINK href="<?=$strSkinName?>/style.css" rel=stylesheet type=text/css>
</HEAD>

<BODY bgColor=#ffffff bottomMargin="2" leftMargin="2" topMargin="2" MARGINHEIGHT="2" MARGINWIDTH="0">
<script language="JavaScript" src="email_webmail.js" type="text/javascript"></script>

<FORM name="ab_form">
<input TYPE="hidden" NAME="type" VALUE="<? echo $type ?>">
<table class="tblbgcolor" align="center" border="1" cellpadding="3" cellspacing="0" bordercolorlight="#CCCCCC" bordercolordark="#FFFFFF">
<tr><td class="titel-3" background="<?=$strSkinName?>/pics/bg_tbl_header.jpg"><? echo $lang_text['wbm_ad_persadbook'] ?>:</td></tr>
<td>
<select SIZE="10" NAME="ab_select" multiple>
<? while($adbook = mysql_fetch_array($query_adbook)) { ?>
  <option>&quot;<? echo $adbook['name'] ?>&quot; &lt;<? echo $adbook['email'] ?>&gt;</option>
<? } ?>
</select>
</td></tr><tr><td><? echo std_button(ltext("wbm_ad_add"), 'javascript:opener.addAB(document.ab_form.ab_select,document.ab_form.type.value)'); ?></td></tr>
</table>
<table align="center"><tr><td>(<a class="data" href="javascript:window.self.close()"><? echo $lang_text["wbm_winclose"] ?></a>)</td><tr></table>
</FORM>

</body>
</html>
