<HTML>
||include||meta.tpl||
<HEAD>
<link rel="stylesheet" type="text/css" href="||nwimg||||tpl_color||/surge.css" />
<title>||cust_title|| - ||lang_str||Text Message|| (||lang_str||SMS||) ||lang_str||Settings||</title>
||ifdef||do_post_cmd||
	||ifdef||post_sms_num||
		||post_cmd||(||user_cgi_http_prefix||/cgi/user.cgi?cmd=auto_login&||do_post_cmd||||href_text||post_sms_num||&vhost=||vhost||)||
	||else||
		||post_cmd||(||user_cgi_http_prefix||/cgi/user.cgi?cmd=auto_login&||do_post_cmd||&vhost=||vhost||)||
	||endif||
||endif||
||post_cmd||(||user_cgi_http_prefix||/cgi/user.cgi?cmd=auto_login&lcmd=user_sms_load&vhost=||vhost||&show=na_sms.xml)||
<script type="text/javascript">
<!--
||ifdef||u_sms_number||
var num = "||href_text||u_sms_number||";
||else||
var num = "";
||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||/config_sms.js"></script>

</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||


<form action="||action||" method="POST" name="smsform">
<input type="hidden" name="cmd" value="config" />
<input type="hidden" name="utoken" value="||utoken||" />
<input type="hidden" name="do_post_cmd" value="" />
<input type="hidden" name="post_sms_num" value="" />
<input type="hidden" name="page" value="config_sms" />
<input type="hidden" name="force_connection" value="true" />

<center>
<p><div class="LF b">||lang_str||SMS Settings||</div></p>
<TABLE WIDTH="600" BORDER="0" CELLSPACING="5" CELLPADDING="2" BGCOLOR="#C5C5C5">
<tr><td colspan="2" class="c"><a class="LF" href="||action||?cmd=config&amp;force_connection=true&amp;page=config_adv&amp;utoken=||utoken||&amp;&amp;">||lang_str||Back to advanced options||</a></td></tr>
<TR>
	<TD>
		<TABLE>
		<TR><TD class="LF c b">||lang_str||Available SMS credits||</TD></TR>
		<TR>
			<TD class="c"><FONT SIZE="6">||u_sms_quota||</FONT><BR>
			||lang_str||This is the number of SMS messages that you can send from the system or that can be forwarded to your mobile phone||.
			||ifdef||buy_sms_credits_link||<a HREF="||buy_sms_credits_link||" target="_blank">||lang_str||Click here to buy more credits||</A>||endif||</TD>
		</TR>
		</TABLE>
	</TD>
	<TD>
		<TABLE>
		<TR><TD class="LF c b">||lang_str||Update your mobile phone number||</TD></TR>
		<TR>
			<TD class="c">
			||lang_str||If you would like the ability to have your emails forwarded to your mobile phone||
			||lang_str||or to have any replies to SMS messages you send to come back to your mobile phone you must enter details here.||
			||ifdef||u_sms_number||
				||lang_str||The number we have on record for you is|| <B>||u_sms_number||</B>
			||endif||
			</TD>
		</TR>
		<TR>
			<TD class="c"><INPUT class="LF" TYPE="text" NAME="sms_number" VALUE="" size="30"><input type="button" class="btn" onclick="user_sms_save()" value="||lang_str||Update||" /><br />
			||lang_str||You must enter the full international dialling version of their mobile phone number||.<br>
			||lang_str||e.g. UK users would start with 44 - followed by the mobile number without the preceeding 0|| <a target="_new" href="||user_cgi_http_prefix||/web/na_smsinfo.htm">||lang_str||more details||</A></TD>
		</TR>
		</TABLE>
	</TD>
</TR>
</TABLE>

<P>
<TABLE WIDTH="600" class="bg1">
<TR><TD class="LF c b">||lang_str||How to get emails forwarded on to you by SMS||</td></tr>
<tr><td>||lang_str||If you would like to have emails from certain people automatically forwarded on to when received||
||lang_str||by the email system you can do this by checking "Alert me by SMS if I receive an email from this person" next||
||lang_str||to the appropriate person in your|| <A HREF="javascript:G2('pick_edit&force_connection=true')">||lang_str||Address Book||</A>.
||lang_str||More sophisticated forwarding options for advanced users are available at the bottom of this page||.</TD></TR>
</TABLE>
<P>

<DIV class="LF b">||lang_str||Forward an email to your phone using these options||. <BR>
||lang_str||Specify the location and text to search for in the email and press create||.</DIV><P>

<table class="LT" border="0" cellspacing="0" width="95%">
<tr class="bg1">
	<th>||lang_str||Header||</th>
	<th width="90%">||lang_str||Contents||</th>
	<th>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</th>
</tr>
||define||line||1||
||begin_for||1||sms_rule_num||
<TR class="L||line||">
	<TD NOWRAP>||build(||for||_sms_rule_header)||</TD>
	<TD NOWRAP>||build(||for||_sms_rule_text)||</TD>
	<TD><A HREF="javascript:user_sms_delete_rule(||build(||for||_sms_rule_id)||)">||lang_str||delete||</A></TD>
</TR>||ifequal||line||1|| ||define||line||0|| ||else|| ||define||line||1|| ||endif||
||end_for||

<TR class="L||line||">
	<TD COLSPAN="3" ALIGN="CENTER">
		<TABLE>
		<TR>
			<TD><select class="LF" name="sms_rule_header_list">
			<option value="" selected>||lang_str||--select--||</option>
			<option value="From">||lang_str||From||</option>
			<option value="Subject">||lang_str||Subject||</option>
			<option value="Return-Path">||lang_str||Return-Path||</option>
			<option value="Mailing-List">||lang_str||Mailing-List||</option>
			<option value="To">||lang_str||To||</option>
			<option value="X-SpamDetect">||lang_str||X-SpamDetect||</option>
			<option value="X-Rcpt-To">||lang_str||X-Rcpt-To||</option>
			<option value="X-Autoresponder">||lang_str||X-Autoresponder||</option>
			<option value="X-Mailing-List">||lang_str||X-Mailing-List||</option>
			<option value="X-MailList">||lang_str||X-MailList||</option></select></TD>
			<TD><INPUT class="LF" TYPE="Text" NAME="sms_rule_text" SIZE="60"></TD>
			<TD><a class="b" href="javascript:user_sms_save_rule();">||lang_str||Create||</A></TD>
		</TR>
		<TR>
			<TD class="c">||lang_str||Header||</TD>
			<TD class="c">||lang_str||Specify the text the header must contain. You can use wildcards||.</TD>
		</TR>
		</TABLE>
	</TD>
</TR>
</TABLE>
</center>
</form>
</BODY>
</HTML>

