<html>

<head>
<script language="javascript">
<!--
function get_selected(list, feild){
	var i;
	for(i=0; i<list.options.length; i++){
		if(list.options[i].selected){
			feild.value = list.options[i].value;
			return;
		}
	}
}
//-->
</script>
<title>Create new bulletin</title>
</head>

<body bgcolor="#cedfff">

<table border="0" cellpadding="0" cellspacing="0" rules="none"><tr valign="top">
<td>||include||nfmenu.tpl||</td><td>&nbsp;</td><td>


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



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

<form 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>
			<td>eg. lynden, john, *blake*</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||">
				||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||">
				||endif||
			</td>
			<td>
				eg. 4/25/2000<br>
				<b>Max Date:</b> ||valid_max||
			</td>
		</tr>
		<tr>
			<td align=right>Reply-To:</td>
			<td align=left nowrap="true">
				<input name="reply" size=24 value="||reply||" onFocus="document.sendform.oo[3].checked = true">
				<br>
				||ifdef||host_name1||
					<select name="reply_list" size="1" onchange="get_selected(this, this.form.reply);">
				        <option value="||reply||"> ||reply|| </option>
						||ifinstr||reply||host_user0||
							||ifinstr||reply||host_name0||
							||else||
								<option value="||host_user0||@||host_name0||"> ||host_user0||@||host_name0|| </option>
							||endif||
						||else||
							<option value="||host_user0||@||host_name0||"> ||host_user0||@||host_name0|| </option>
						||endif||
				        <option value="||host_user1||@||host_name1||"> ||host_user1||@||host_name1|| </option>
					||ifdef||host_name2||
			            <option value="||host_user2||@||host_name2||"> ||host_user2||@||host_name2|| </option>
					||endif||
					||ifdef||host_name3||
			            <option value="||host_user3||@||host_name3||"> ||host_user3||@||host_name3|| </option>
					||endif||
					||ifdef||host_name4||
					    <option value="||host_user4||@||host_name4||"> ||host_user4||@||host_name4|| </option>
					||endif||
					</select>
				||endif||
			</td>
		</tr>
		<tr>
			<td align="right">Attach:</td>
			<td align="left" colspan="2"><input type=file name="attach" value="||prev_attach||" size=24"></td>
			<td align="center"><input type=image border="0" src="||nwimg||/send.gif" name=send_bulletin></td>
		</tr>
		</table>
	</td>
</tr>
</table>
<table>
<tr>
	<td>
		Subject: <input name="subject" size=66 value="||subject||">
	</td>
	<td rowspan="2">
	</td>
</tr>
<tr>
	<td>Enter your message text here: (press enter at the end of each line)</td>
</tr>
</table>
<table>
<tr>
	<td><textarea name="message" cols=64 rows=12 wrap="physical">||message||</textarea></tr>
</tr>
</table>

<hr>
<table>
<tr>
	<td><input type=image border="0" src="||nwimg||/send.gif" name=send_bulletin></td>
	<td align=right>Content-type: </td>
	<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>
	</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>
	<td align=right>Attach 2: </td>
	<td align=left><input type=file name="attach" value="" size=24"></td>
</tr>
<tr>
	<td><input type=checkbox name="send_autocc" value="on" ||send_autocc||> Send CC to self for confirmation</td>
	<td align=right>Attach 3: </td>
	<td align=left><input type=file name="attach" value="" size=24"></td>
</tr>
<tr>
	<td colspan="2"><input type=checkbox name="copyself" value="on" ||copyself||> Save a copy in copies to self folder</td>
</tr>
</table>
</form>

||copyright||
</td></tr></table>

</body></html>
