<html>
<head>

<!--- determine if the WYSIWYG should be displayed
||define||wys_height||100||
||define||wys_width||500||

||undef||wys||
||ifinstr||ie_version||7.|| ||ifinstr||win_nt_ver||6.|| ||define||vista_nowys||true|| ||endif|| ||endif||
||ifinstr||ie_version||8.|| ||ifinstr||win_nt_ver||6.|| ||define||vista_nowys||true|| ||endif|| ||endif||
||ifndef||is_mac||
||ifndef||vista_nowys||
||ifdef||ie_version||
	||ifequal||_auto_wysiwyg||true||
		||define||wys||true||
	||endif||
||endif||
||endif||
||endif||
-->
<script type="text/javascript">
<!--

function setnew(str){
	var use_html = str.substring(0, str.indexOf('/'));
	var profile = str.substring(str.indexOf('/')+1,str.length);
	document.config_signature._default_profile.value=profile;
||ifndef||is_mac||
||ifndef||vista_nowys||
||ifdef||ie_version||
	document.config_signature._auto_wysiwyg.value=use_html;
||endif||
||endif||
||endif||
	document.config_signature.cmd.value="profile-"+profile;
	document.config_signature.submit();
}

function delete_profile(){
	document.config_signature.cmd.value="profile_delete";
	document.config_signature.submit();
}

function add_profile(){
	document.config_signature.cmd.value = "profile_add";
	document.config_signature.submit();
}
//-->
</script>
	<link rel="StyleSheet" href="||nwimg||/skin.css" type="text/css">
	<script type="text/javascript" src="||nwimg||/script_cmd.js"></script>
||include||css_blue.tpl||
||include||color.dat||
</head>

<body bgcolor="||color_prime||" >
<form name="config_signature" method="post" action="||action||">
	<input type="hidden" name="force_connection" value="true" />
	<input type="hidden" name="cmd" value="profile_add" />
	<input type="hidden" name="host_name0" value="||host_name0||" />
	<input type="hidden" name="host_user0" value="||host_user0||" />
	<input type="hidden" name="host_prefix0" value="||host_prefix0||" />
	<input type="hidden" name="page" value="config_signature" />
	<input type="hidden" name="utoken" value="||utoken||" />
	<input type="hidden" name="my_pro_sig" value="" />
	<input type="hidden" name="my_profile_name" value="" />

	<center>
	<p>&nbsp;</p>
<table width="100%" cellspacing="2">
<tr>
	<td align="center">
	<table border="1" cellpadding="0" cellspacing="0"  bgcolor="#FFFFFF" width="100%">
	<tr>
		<td bgcolor="||color_menu||" colspan="2">
			<table border="0" cellspacing="0" cellpadding="0" width="100%">
			<tr>
				<th width="100%">||lang_str||Signatures||</th>
				<td align="right">&nbsp;</td>
			</tr>
			</table>
		</td>
	</tr>
	<tr><td>
		<table border="0" cellpadding="5" cellspacing="0" width="100%">
		<tr>
			<td align="right"><b>||lang_str||Signature Name||:</b></td>
			<td colspan="2">
				<table>
				<tr>
					<td><input type="text" name="profile_name" size="12" value="||ifnempty||my_profile_name||||html_text||my_profile_name||||else||||html_text||profile_name||||endif||" /></td>
					<td width="100%"><a href="javascript:delete_profile()" ><img border="0" src="||nwimg||/msg_delete.gif" alt="Delete Signature" name="profile_add" /> <b>||lang_str||Delete||</b></a></td>
					||ifdef||wys||
						<td nowrap="norwap"><a href="" onclick="obj_editor=tbCE; tbCE_guardar(); do_save(); return false;" ><img border="0" src="||nwimg||/msg_save.gif" alt="Save Signature" name="profile_add" /> <b>||lang_str||Save||</b></a></td>
					||else||
						<td nowrap="norwap"><a href="javascript: add_profile()"><img border="0" src="||nwimg||/msg_save.gif" alt="Save Signature" name="profile_add" /> <b>||lang_str||Save||</b></a></td>
					||endif||
				</tr>
				</table>
			</td>
		</tr>

		||ifnempty||my_pro_sig||
			||define||xpro_sig||my_pro_sig||
		||else||
			||define||xpro_sig||(||pro_sig||)||
		||endif||
		||define||xpro_sig||(||convert_text||xpro_sig||)||

		||ifdef||wys||
			<tr>
				<td align="right"><b>||lang_str||Signature||:</b></td>
				<td colspan="2">
					<input type="hidden" name="pro_sig" value="||html_text||xpro_sig||" />
					||include||ie_htmltext.tpl||
				</td>
		||else||
			<tr>
				<td align="right"><b>Signature:</b></td>
				<td colspan="2"><textarea name="pro_sig" rows="8" cols="74">||xpro_sig||</textarea></td>
		||endif||


		</tr>


		<tr>
			<td align="right" nowrap="nowrap"><b>||lang_str||Default Signature||:</b></td>
			<td valign="top"><select name="sel_profile" size="1" onchange="setnew(this.value)">
			||undef||done_profile||
			||begin_profile||
				||define||done_profile||true||
				||ifnequal||_default_profile||profile_name||
					<option value="||ifinstr||pro_sig||<html||true||else||no||endif||/||html_text||profile_name||">||profile_name||</option>
				||else||
					<option value="||ifinstr||pro_sig||<html||true||else||no||endif||/||html_text||profile_name||" selected="selected">||profile_name||</option>
				||endif||
			||end_profile||
			||ifndef||done_profile||<option> </option>||endif||
			</select>
			</td>
			<input type="hidden" name="_default_profile" value="||_default_profile||">

		||ifndef||is_mac||
		||ifndef||vista_nowys||
		||ifdef||ie_version||
			<td align="right">
				<select name="_auto_wysiwyg" onChange="config_wysiwyg()">
					<option value="no">||lang_str||Plain Text||</option>
					<option value="true" ||ifdef||wys|| selected="selected"||endif||>||lang_str||Styletext||</option>
				</select>
			</td>
		||endif||
		||endif||
		||endif||


		</tr>
		<tr>
			<td align="center" colspan="3"><p><b>||lang_str||Note||:</b> ||lang_str||To add a new signature all you need to do is change the "Signature Name" and click save||.</p></td>
		</tr>
		<tr>
			<td colspan="3">
				<table border="0" width="100%" cellspacing="0" cellpadding="0">
				<tr bgcolor="#D6D6CE">
					<th width="10%">||lang_str||Name||</th>
					<th width="90%">||lang_str||Signature||</th>
				</tr>

				||begin_profile||
				<tr>
					<td><a href="||action||?cmd=profile-||href_text||profile_name||&_auto_wysiwyg=||ifinstr||pro_sig||<html||true||else||no||endif||&amp;page=config_signature&amp;utoken=||utoken||">||profile_name||</a></td>
					<td>
					||ifdef||pro_sig||
						<script type="text/javascript">
						<!--
						document.write("||message_text||pro_sig||");
						//-->
						</script>
					||else||
						||lang_str||(No Signature)||
					||endif||
					</td>
				</tr>
				||end_profile||
				</table>

				||ifdef||netscape_version||
				<div id="nsnote" style="position:absolute; visibility: hidden" >
					<table>
					<tr>
						<td><b>||lang_str||Note||: ||lang_str||To use the Styletext 'WYSIWYG' Editor on Netscape you need to install a few Plug-in's||<br />
							||lang_str||For more information click this link|| '<a href="||action||?cmd=show&amp;utoken=||utoken||&amp;page=plugin.tpl">||lang_str||Plugin Info||</a>'</b>
						</td>
					</tr>
					</table>
				</div>
				||endif||
			</td>
		</tr>
		</table>
	</td></tr>
	</table>
	</td>
</tr>
</table>
</center>

||ifdef||wys||
	<script type="text/javascript">
	<!--
		function salvar_html(htmlcode)
		{
			document.config_signature.pro_sig.value = htmlcode;
		}
		function wys_update()
		{
			tbCE_guardar();
		}
		function do_save()
		{
			document.config_signature.cmd.value = "profile_add";
			document.config_signature.submit();
		}
		function do_wys()
		{
			document.config_signature.my_pro_sig.value = document.config_signature.pro_sig.value;
			document.config_signature.my_profile_name.value = document.config_signature.profile_name.value;
			document.config_signature.cmd.value = "profile";
			document.config_signature._ns_wysiwyg.value='false';
			document.config_signature.submit();
		}

		tbCE_update(document.config_signature.pro_sig.value);
		wysiwyg_start();
	// end hiding from old browsers -->
	</script>
||endif||
</form>

</body>
</html>

||include||message_popup.tpl||
