<html>
||include||meta.tpl||
<head>
<link rel="stylesheet" type="text/css" href="||nwimg||||tpl_color||/surge.css" />

||ifequal||changing_address||true||
	||define||ts_nick_name||(||ifinstr||cmd||saveaddrbook||||html_text||abk_full_name||||else||||html_text||nick_name||||endif||)||
	||ifnempty||nick_name||
		||define||ts_old_nick_name||(||html_text||nick_name||)||
	||endif||
	||define||ts_abk_address||(||abk_address||)||
	||define||ts_abk_full_name||(||html_text||abk_full_name||)||
	||define||ts_abk_email||(||html_text||abk_email||)||
	||define||ts_abk_phone||(||html_text||abk_phone||)||
	||define||ts_abk_mobile||(||html_text||abk_mobile||)||
	||define||ts_abk_fax||(||html_text||abk_fax||)||
	||define||ts_abk_note||(||html_text||abk_note||)||
	||undef||cur_rule_id||
	||ifinstr||surgemail_disallow||sms||
	||else||
		||ifdef||ts_abk_email||
			||post_cmd||(||user_cgi_http_prefix||/cgi/user.cgi?cmd=auto_login&lcmd=user_sms_load&vhost=||vhost||&show=na_sms.xml)||
			||begin_for||1||sms_rule_num||
				||define||text||(||for||_sms_rule_text)||
				||define||header||(||for||_sms_rule_header)||
				||ifequal||header||From||
					||ifequal||text||ts_abk_email||
						||define||cur_rule_id||(||for||_sms_rule_id)||
					||endif||
				||endif||
			||end_for||
		||endif||
	||endif||
||endif||

||ifdef||change_sms_state||
	||ifndef||ts_abk_email||
		||post_cmd||(||user_cgi_http_prefix||/cgi/user.cgi?cmd=auto_login&lcmd=user_sms_load&vhost=||vhost||&show=na_sms.xml)||
	||endif||
	||undef||snum||	||ifdef||u_sms_number||	||define||snum||(||href_text||u_sms_number||)||	||endif||
	||ifequal||change_sms_state||true||
		||post_cmd||(||user_cgi_http_prefix||/cgi/user.cgi?cmd=auto_login&lcmd=user_sms_save_rule&sms_rule_header=From&sms_rule_text=||html_text||abk_email||&sms_number=||snum||&vhost=||vhost||&show=na_msg.xml)||
	||else||
		||post_cmd||(||user_cgi_http_prefix||/cgi/user.cgi?cmd=auto_login&lcmd=user_sms_delete_rule&sel_r_||old_sms_id||=on&sms_number=||snum||&vhost=||vhost||&show=na_msg.xml)||
	||endif||
||endif||

<script type="text/javascript">
<!--
||/*||// The following is the lang translations for POPUP javascript alerts||*/||
var x_saddr = "||lang_str||You need to enter both an email address and a nickname if you would like to be alerted by SMS if you receive an email from this person.||";
var x_prompt_s = "||lang_str||Do you want to delete the entire||";
var x_prompt_e = "||lang_str||Address Book?||";

var bk="||abook_edit||";
var old_sms_alert=||ifdef||cur_rule_id||true||else||false||endif||;
||ifempty||changing_address||
var ch_addr=false;
||else||
var ch_addr=true;
var enc_nick="||encode_quotes||nick_name||";
||endif||
// -->
</script>
<script type="text/javascript" src="||common_files||/util.js"></script>
<script type="text/javascript" src="||nwimg||/layout.js"></script>
<script type="text/javascript" src="||nwimg||/pick.js"></script>

<title>||cust_title|| - ||lang_str||Addresses||</title>
</head>
<body class="body" onload="doresize();" onresize="doresize()">

||include||_layout_start.tpl||

||ifdef||error||
	||include||_errorinline.tpl||
||endif||
||ifdef||msg||
	||include||_msginline.tpl||
||endif||
||ifdef||u_message||
	||include||_umsginline.tpl||
||endif||

<center>
||ifempty||changing_address||

<form name="addrbook" method="post" action="||action||">
<input type="hidden" name="utoken" value="||utoken||" />
<input type="hidden" name="force_connection" value="true" />
<input type="hidden" name="cmd" value="pick_edit" />
<input type="hidden" name="abook_edit" value="||abook_edit||" />
<input type="hidden" name="abook_list" value="" />
<input type="hidden" name="page" value="export" />

	<table width="100%">
	<tr>	<td align="center" valign="center">

		||lang_str||This will allow you to export one or more address book entries||.<br>
		<table>
		<tr><td>
			<lu>
			<li>||lang_str||Select the address book from the list at the botton of the page||.</li>
			<li>||lang_str||Select which address book entries you wish to export||.</li>
			<li>||lang_str||Press the Export button below||.</li>
			</lu>
		</td></tr>
		</table>


		</td>
	</tr>
	</table>


<table width="95%"><tr>
<td nowrap class="LF c">||lang_str||Address Book||</td>
</tr>
<tr>
<td><select size="1" name="addr_books" onchange="do_copy_export(this)">
||ifdef||abook_list||<option>||abook_list||</option>||endif||
		||begin_book||
			<option value="||addr_book||" ||selected||>||trans_addr_book||</option>
		||end_book||
	</select></td>
<td width="100%"> </td>
<td class="c"><input type="button" class="btn" value="||lang_str||Export Address Book||" name="Export Address Book" onclick="export_file()" /></td>
</tr></table>
<table class="LT" border="0" cellspacing="0" width="95%">
<TR class="bg1">
	<th width="2%"><a href="javascript:export_sel_all()">||lang_str||Select||</a></th>
||ifequal||sort_abk_on||name||
	<th width="20%">||lang_str||Nickname||</th>
||else||
	<th width="20%"><a class="b" href="javascript:P('pick_edit&sort_abk_on=name')">||lang_str||Nickname||</a></th>
||endif||
||ifequal||sort_abk_on||abk_full_name||
	<th nowrap width="20%">||lang_str||Full Name||</th>
||else||
	<th nowrap width="20%"><a class="b" href="javascript:P('pick_edit&sort_abk_on=abk_full_name')">||lang_str||Full Name||</a></th>
||endif||
||ifequal||sort_abk_on||abk_email||
	<th nowrap width="40%">||lang_str||Email Address||</th>
||else||
	<th nowrap width="40%"><a class="b" href="javascript:P('pick_edit&sort_abk_on=abk_email')">||lang_str||Email Address||</a></th>
||endif||
	<th>||lang_str||Phone||</th>
	<th>||lang_str||Mobile||</th>
	<th>||lang_str||Fax||</th>
</tr>
||define||color||1||
||begin_address||
<tr class="L||color||">
	||ifequal||color||1|| ||define||color||0|| ||else|| ||define||color||1|| ||endif||
	<td><input type="checkbox" name="sel_||name||" value="on"></td>
	<td>||html_text||name||</td>
	<td nowrap>||html_text||abk_full_name||</td>
	<td nowrap><a href="javascript:G2('msg_new&get_attach_id=true&h_from=||href_text||(||abk_email||)||')">||html_text||abk_email||</a></td>
	<td>||html_text||abk_phone||</td>
	<td>||html_text||abk_mobile||</td>
	<td>||html_text||abk_fax||</td>
</tr>
||end_address||
</table>
</form>

||endif||

</center>
</body>
</html>

