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

||define||display_wys||true||
||ifnequal||_ns_wysiwyg||true||
	||undef||display_wys||
||endif||
||ifndef||show_wysiwyg||
	||undef||display_wys||
||endif||
-->
<script type="text/javascript">
<!--
function setTitle(){
	||ifequal||top||_top||
		window.top.document.title = "||cust_title|| - ||current_user|| - Signatures";
	||endif||
}

function setnew(){
	document.configform.cmd.value="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%"><tr><td><table bgcolor="#eeeeff" cellspacing="0" cellpadding="2">
	<tr bgcolor="#D6D6CE">
		<th>Signatures</th>
		<td align="right" colspan="2"><a href="||action||?cmd=show&amp;page=configf&amp;utoken=||utoken||">Done</a></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>
				<td>
					||ifdef||display_wys||
						<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>
					||else||
						<a href="javascript: add_profile()"><img border="0" src="||nwimg||/bigsave.gif" alt="Save Signature" name="profile_add" /></a>
					||endif||
				</td>
			</tr>
			</table>
		</td>
	</tr>
	||ifdef||wysiwyg_img||
		||ifdef||display_wys||
			<tr>
				<td align="right"><b>Signature:</b></td>
				<td>
					||ifnempty||my_pro_sig||
						||define||quote_body||my_pro_sig||
					||else||
						||ifnempty||pro_sig||
							||define||quote_body||pro_sig||
						||endif||
					||endif||
					<input type="hidden" name="msg_alternative" value="true" />
					<input type="hidden" name="pro_sig" value="||ifnempty||my_pro_sig||||html_text||my_pro_sig||||else||||html_text||pro_sig||||endif||" />
					<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();
						}
					-->
					</script>
			
					||ifdef||ie_version||
						||include||ie_htmltext.tpl||
					||else||
						||include||ns_htmltext.tpl||
					||endif||
				</td>
				||ifdef||display_wys||
					<td>&nbsp;<a href="" onclick="obj_editor=tbCE; tbCE_guardar(); do_wys(); return false;"><img border="0" src="||nwimg||/textmode.gif" name="Text_Mode" alt="Text Editor" /></a></td>
				||endif||		
			</tr>
		||else||
			<tr>
				<td align="right">
					<script type="text/javascript">
					<!--
						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='true'; 
							document.configform.submit();
						}
					-->
					</script>
					<b>Signature:</b>
				</td>
				<td><textarea name="pro_sig" rows="8" cols="||ifinstr||netscape_version||4.||45||else||74||endif||">||ifnempty||my_pro_sig||||my_pro_sig||||else||||pro_sig||||endif||</textarea></td>
		||ifdef||show_wysiwyg||
				<td valign="middle">&nbsp;<a href="javascript:do_wys();"><img border="0" src="||nwimg||/wysiwyg.gif" name="wysiwyg" alt="WYSIWYG Editor" /></a></td>
		||endif||
		</tr>
	||endif||
||else||
	<tr>
		<td align="right"><b>Signature:</b></td>
		<td><textarea name="pro_sig" rows="8" cols="74">||ifnempty||my_pro_sig||||my_pro_sig||||else||||pro_sig||||endif||</textarea></td>
	</tr>
||endif||

	<tr>	<td align="right" nowrap="nowrap"><b>Default Signature:</b></td>
		<td valign="top" colspan="2"><select name="_default_profile" size="1" onchange="setnew()">
		||undef||done_profile||
		||begin_profile||
			||define||done_profile||true||
			||ifnequal||_default_profile||profile_name||
				<option>||profile_name||</option>
			||else||
				<option selected="selected">||profile_name||</option>
			||endif||
		||end_profile||
		||ifndef||done_profile||<option> </option>||endif||
		</select>
		</td>
	</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-||profile_name||&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||display_wys||
	<script type="text/javascript">
	<!--- hide script from old browsers
		wysiwyg_start();
	// end hiding from old browsers -->
	</script>
||endif||
</form>

</body>
</html>
