<html>
<script language="JavaScript">
<!--- hide script from old browsers

function do_copy(sel)
{
	var i;
	document.sendform.reply.value = "crap"
	for (i=0; i<sel.options.length; i++) {
		if (sel.options[i].selected==true) {
			document.sendform.reply.value = sel.options[i].text;
		}
	}
}

// end hiding from old browsers -->
</script>


<head>
<title>Create new bulletin</title>
</head>

||ifdef||background||
<body background="||nwimg||/||background||">
||else||
<body>
||endif||


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


<form name=sendform ENCTYPE="multipart/form-data" method=post action="||action||"> 
	<input type=hidden name="utoken" value="||utoken||" > 
	<input type=hidden name="cmd" value="" > 
	<h3>Create new bulletin.</h3>
	<table><tr><td>
		<table>
			<tr><td align=right>To:</td>
				<td align=left>bulletin@||domain||
			</td></tr>


			<tr><td align=right>For Users:</td>
				<td align=left><input name="valid_users" size=24 value="||valid_users||">
				<td>eg. lynden, john, *blake*
			</td></tr>
			<tr><td></td><td>If users field is left blank all users will get this bulletin.</td></tr>
			<tr><td align=right>Valid Till:</td>
				<td align=left>
||ifequal||date_format||dmy||
				<input name="valid_day" size=2 value="||valid_day||">/
				<input name="valid_month" size=2 value="||valid_month||">/
				<input name="valid_year" size=4 value="||valid_year||">
				<td>eg. 25/4/2000 &nbsp;&nbsp;&nbsp;&nbsp; <b>Max Date:</b> ||valid_max||
||else||
				<input name="valid_month" size=2 value="||valid_month||">/
				<input name="valid_day" size=2 value="||valid_day||">/
				<input name="valid_year" size=4 value="||valid_year||">
				<td>eg. 4/25/2000 &nbsp;&nbsp;&nbsp;&nbsp; <b>Max Date:</b> ||valid_max||
||endif||
			</td></tr>

			<tr><td align=right>Reply-To:</td>
				<td align=left>
					<input name="reply" size=24 value="||reply||" onFocus="document.sendform.oo[3].checked = true">
					
				||ifdef||host_name0||
					<select name="replyx" size="1" onchange="do_copy(this)">
				            <option> ||reply|| </option>
			        <!--        <option> ||host_user0||@||host_name0|| </option> --->
				            <option> ||host_user1||@||host_name1|| </option>
					||ifdef||host_name2||
				            <option> ||host_user2||@||host_name2|| </option>
					||endif||
					||ifdef||host_name3||
				            <option> ||host_user3||@||host_name3|| </option>
					||endif||
					||ifdef||host_name4||
					    <option> ||host_user4||@||host_name4|| </option>
					||endif||
					</select>
				||endif||

			</td></tr>
			<tr><td align=right>Attach:</td>
			<td align=left><input type=file name="attach" value="||prev_attach||" size=24"></td></tr>
<script language="JavaScript">
<!--- hide script from old browsers
	if (navigator.appVersion.indexOf('MSIE 3.',0) >=0) 
		document.writeln("<br>Unfortunately IE3 does not support attachments");
// end hiding from old browsers -->
</script>
		</table>
	</table>

||define||display_wys||true||
||ifnequal||_ns_wysiwyg||true||
	||undef||display_wys||
||endif||

	<table><tr><td>
		Subject: <input name="subject" size=66 value="||subject||">
		<td rowspan="2">
		||ifdef||display_wys||
			<a href="" onclick="obj_editor=tbCE; tbCE_guardar(); do_save(); return false;" ><img border="0" src="||nwimg||/send.gif" name=send_bulletin></a>
		||else||
			<input type=image border="0" src="||nwimg||/send.gif" name=send_bulletin>
		||endif||
		<tr><td>Enter your message text here: (press enter at the end of each line)
	</table>

	<input type="hidden" name="_ns_wysiwyg" value="||_ns_wysiwyg||">
||ifdef||display_wys||
	<input type="hidden" name="msg_alternative" value="true">
	<input type="hidden" name="content_type" value="text/html">
	<input type="hidden" name="message" value="||html_line||message||">

||ifnempty||message||
	||define||quote_body||message||
||endif||

	<SCRIPT>
	function salvar_html(htmlcode)
	{
		document.sendform.message.value = htmlcode;
	}

	function do_save()
	{
		document.sendform.cmd.value = "send_bulletin";
		document.sendform.submit();
	}
	function do_wys()
	{
		document.sendform.cmd.value = "new_bulletin";
		document.sendform._ns_wysiwyg.value='false';
		document.sendform.submit();
	}
	</SCRIPT>

	<table>
	<tr><td>
	||ifdef||ie_version||
		||include||ie_htmltext.tpl||
	||else||
		||include||ns_htmltext.tpl||
	||endif||
	</td>

	||ifdef||display_wys||
		<td><a href="" onclick="obj_editor=tbCE; tbCE_guardar(); do_wys(); return false;"><img border="0" src="||nwimg||/textmode.gif" name="Text Mode"></a></td>
	||endif||
	</tr>
	</table>

	<script language="JavaScript">
	<!--- hide script from old browsers
		wysiwyg_start();
	// end hiding from old browsers -->
	</script>	
||else||

	<SCRIPT>
	function do_wys()
	{
		document.sendform.cmd.value = "new_bulletin";
		document.sendform._ns_wysiwyg.value='true';
		document.sendform.submit();
	}
	</SCRIPT>

	<table>
	<tr>	<td><textarea name="message" cols=64 rows=12 wrap="physical">||message||</textarea><br>
		<td valign="center"><a href="javascript:do_wys();"><img border="0" src="||nwimg||/wysiwyg.gif" name="wysiwyg"></a></td>
	</table>
||endif||

	<hr>
	<table>
		<tr><td>
		||ifdef||display_wys||
			<a href="" onclick="obj_editor=tbCE; tbCE_guardar(); do_save(); return false;" ><img border="0" src="||nwimg||/send.gif" name=send_bulletin></a>
		||else||
			<input type=image border="0" src="||nwimg||/send.gif" name=send_bulletin>
		||endif||
||ifndef||display_wys||
		<br>
		<td align=right>Content-type: 
		<td><select name="content_type" size="1">
			<option selected></option>
			<option>text/html</option>
			<option>text/plain; charset="iso-8859-1"</option>
			<option>text/plain; charset="iso-2022-jp"</option>    
		</select>
||endif||
		</td></tr>
		<tr><td><input type=checkbox name="addsig" value="on" ||addsig||> Add Sig file 
			<select name="_default_profile" size=1">
			||begin_profile||
				||ifnequal||_default_profile||profile_name||
					<option>||profile_name||</option>
				||else||
					<option selected>||profile_name||</option>
				||endif||
			||end_profile||
			</select>

		<td align=right>Attach 2: <td align=left><input type=file name="attach" value="" size=24">
		<tr><td><input type=checkbox name="send_autocc" value="on" ||send_autocc||> Send CC to self for confirmation
		<td align=right>Attach 3: <td align=left><input type=file name="attach" value="" size=24">
		<tr><td colspan="2"><input type=checkbox name="copyself" value="on" ||copyself||> Save a copy in copies to self folder
	</table>
</form>

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


||copyright||
</body></html>
