<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<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 setTitle(){
	||ifequal||top||_top||
		window.top.document.title = "||cust_title|| - ||current_user|| - Signatures";
	||endif||
}

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

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

function add_profile(){
	document.configform.cmd.value = "profile_add";
	document.configform.submit();
}
//-->
</script>
||just_include||configfcss.tpl||
<title>Signatures</title>
</head>

<body background="||cust_panel_background||" bgcolor="||cust_panel_bgcolor||" onload="setTitle();">
<form name="configform" 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="" />
	<input type="hidden" name="_ns_wysiwyg" value="||_ns_wysiwyg||" />

	||ifdef||error||
		<center>
		<table border="1">
			<tr>
				<td><img src="||nwimg||/attention.gif" alt="Attention" /></td>
				<td bgcolor="ffffff">||error||</td>
			</tr>
		</table>
		</center>
	||endif||

	||ifdef||msg||
		<center>
		<table border="1">
			<tr>	<td bgcolor="ffffff">||msg||</td>
			</tr>
		</table>
		</center>
	||endif||

	<center>
	<p>&nbsp;</p>
<table width="85%" cellspacing="2">
<tr>
	<td align="center">
		<table cellpadding="5" bgcolor="#eeeeff">
		<tr>
			<td bgcolor="#D6D6CE" colspan="3">
				<table border="0" cellspacing="0" cellpadding="0" width="100%">
				<tr>
					<th width="100%">Signatures</th>
					<td align="right" nowrap="nowrap"><a href="||action||?cmd=config&amp;force_connection=true&amp;utoken=||utoken||&amp;&amp;"><img border="0" alt="Back to main options page" src="||nwimg||/smallback.gif" /></a></td>
				</tr>
				</table>
			</td>
		</tr>
		<tr>
			<td align="right"><b>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||/menu_delete.gif" alt="Delete Signature" name="profile_add" /></a></td>
					||ifdef||wys||
						<td><a href="" onclick="obj_editor=tbCE; tbCE_guardar(); do_save(); return false;" ><img border="0" src="||nwimg||/bigsave.gif" alt="Save Signature" name="profile_add" /></a></td>
					||else||
						<td><a href="javascript: add_profile()"><img border="0" src="||nwimg||/bigsave.gif" alt="Save Signature" name="profile_add" /></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>

					<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><textarea name="pro_sig" rows="8" cols="74">||xpro_sig||</textarea></td>
		||endif||

		||ifndef||is_mac||
		||ifndef||vista_nowys||
		||ifdef||ie_version||
			<td align="center">
				<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="right" nowrap="nowrap"><b>Default Signature:</b></td>
			<td valign="top" colspan="2"><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||">
		</tr>
		<tr>
			<td align="center" colspan="3"><p><b>Note:</b> 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%">Name</th>
					<th width="90%">Value</th>
				</tr>

				||begin_profile||
				<tr>
					<td><a href="||action||?cmd=profile-||encode_text||profile_name||&amp;encode_text=cmd&amp;_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||
						(No Signature)
					||endif||
					</td>
				</tr>
				||end_profile||
				</table>

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

||ifdef||ie_version||
	<script type="text/javascript">
	<!--
		function get_select(d)
		{
			data = "";
			for (i=0;i<d.length;i++) {
				if (d[i].selected) {
					data = d[i].value;
					if (!data.length)
						data = d[i].text;
				}
			}
			return data;
		}
		function config_wysiwyg()
		{
			if (get_select(document.configform._auto_wysiwyg) == "no")  {
				tbCE_guardar();
			}
			document.configform.cmd.value = "show";
			document.configform.submit();
		}
	// -->
	</script>
||endif||
||ifdef||wys||
	<script type="text/javascript">
	<!--
		function salvar_html(htmlcode)
		{
			document.configform.pro_sig.value = htmlcode;
		}
		function do_save()
		{
			document.configform.cmd.value = "profile_add";
			document.configform.submit();
		}
		function do_wys()
		{
			document.configform.my_pro_sig.value = document.configform.pro_sig.value;
			document.configform.my_profile_name.value = document.configform.profile_name.value;
			document.configform.cmd.value = "profile";
			document.configform._ns_wysiwyg.value='false';
			document.configform.submit();
		}

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

</body>
</html>
