<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>

<head>
||just_include||css.tpl||

<title>||current_user|| has ||nitems|| messages</title>
<script type="text/javascript">
<!--
function setTitle(){
	||ifequal||top||_top||
		window.top.document.title = "||cust_title|| - ||current_user|| - Bulletins";
	||endif||
}

function printwin(url){
	if(document.all) {
		innerWidth = document.body.offsetWidth;
	}
	if(innerWidth > 800){
		var width=850;
		var height=550;
		var left=80;
		var top=60;
	}
	else{
		var width=788;
		var height=480;
		var left=0;
		var top=10;
	}
	var str = "width=" + width + ",height=" + height + ",toolbar=0,location=0,directories=0,status=0,menubar=yes,scrollbars=yes,resizable=1,left=" + left + ",top=" + top;
	var win = open(url, "Bulletin" + getUID(), str, 'POPUP');
	win.focus();
}


function getUID(){
	var now = new Date();
	var rnd = Math.random() + "";
	rnd = rnd.substring(0, rnd.indexOf('.')) + rnd.substring(rnd.indexOf('.')+1,rnd.length);
	return now.getMilliseconds() + "_" + rnd;
}

function openWindow(){
	var UID = getUID();
	window.open("||nwimg||/blank.htm",UID,'left=20,top=20,width=750,height=550,toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=yes,scrollbars=no');
	return UID;
}

function setPages(){
	var fldbar = window.parent||ifndef||_nopreview||.parent||endif||.frames[1]
	if(fldbar){
		if(fldbar.showPages){
			fldbar.showPages('||num_pages||', 'bulletin_fld');
			fldbar.changeImg("z___bulletin_fldimg");
			return;
		}
	}
	setTimeout("setPages()",100);
}
//-->
</script>
</head>

<body background="||cust_panel_background||" bgcolor="||cust_panel_bgcolor||" onload="setTitle();setItem();">

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

||ifequal||_bulletin_user||true||
	<a href="||action||?cmd=show&amp;page=framenew&amp;listcmd=new_bulletin&amp;utoken=||utoken||" onclick="this.target = openWindow();" target="_blank">New Bulletin</a>
||endif||

<center>
||ifdef||num_pages||
<table border="0" cellpadding="2" cellspacing="0">
<tr align="center"><td><b>Page ||page_pos|| of ||num_pages||</b></td></tr>
||ifnequal||num_pages||1||
	<tr align="center">
		<td>
			<table border="0" cellpadding="0" cellspacing="0">
			<tr>	
				||ifdef||pageup||
						<td><a href="||action||?cmd=bulletin&amp;pos=||pageup||&amp;utoken=||utoken||&amp;fld=||fld||"><img border="0" src="||nwimg||/lendcol.gif" alt="" /></a></td>
				||else||
						<td><img border="0" src="||nwimg||/lend.gif" alt="" /></td>
				||endif||
				
				||begin_pages||
					||iflower||npage||10||
						||ifequal||npage||page_pos||
							<td><a href="||action||?cmd=bulletin&amp;pos=||pagepos||&amp;utoken=||utoken||&amp;fld=||fld||"><img border="0" src="||nwimg||/||npage||on.gif" alt="" /></a></td>
						||else||
							<td><a href="||action||?cmd=bulletin&amp;pos=||pagepos||&amp;utoken=||utoken||&amp;fld=||fld||"><img border="0" src="||nwimg||/||npage||off.gif" alt="" /></a></td>
						||endif||
					
						||else||
						||ifequal||npage||10||
							||iflower||9||page_pos||
								<td><a href="||action||?cmd=bulletin&amp;pos=||pagepos||&amp;utoken=||utoken||&amp;fld=||fld||"><img border="0" src="||nwimg||/staron.gif" alt="" /></a></td>
							||else||
								<td><a href="||action||?cmd=bulletin&amp;pos=||pagepos||&amp;utoken=||utoken||&amp;fld=||fld||"><img border="0" src="||nwimg||/staroff.gif" alt="" /></a></td>
							||endif||
						||endif||
					||endif||
				||end_pages||
			
				||ifdef||pagedown||
						<td><a href="||action||?cmd=bulletin&amp;pos=||pagedown||&amp;utoken=||utoken||&amp;fld=||fld||"><img border="0" src="||nwimg||/rendcol.gif" alt="" /></a></td>
				||else||
						<td><img border="0" src="||nwimg||/rend.gif" alt="" /></td>
				||endif||
			</tr>
			</table>
		</td>
	</tr>
||endif||
</table>
||endif||

<form name="List" method="post" action="||action||">
<input type="hidden" id="utoken" name="utoken" value="||utoken||" />
<input type="hidden" id="folder" name="folder" value="||folder||" />
<input type="hidden" id="cmd" name="cmd" value="" />
<table border="0" bgcolor="ffffff" width="100%">
<tr bgcolor="#D6D6CE">
	<th align="left">Subject</th>
	<th align="left">From</th>
	<th align="left">Date</th>
	<th align="left">Time</th>
	<th align="left" width="5%">Bytes</th>
	<th align="left" width="5%">Attach</th>
	<th align="left" width="5%">&nbsp;</th>
</tr>
<!--||define||max_line_count||2||
||undef||my_item|| 
-->
||begin_bulletin||
	||ifndef||my_item||
		||define||my_item||b_item||
	||endif||	
	<tr bgcolor="#||ifdef||new_bulletin||FFe0e0||else||ffffff||endif||">
		||ifdef||_nopreview||
			<td nowrap="nowrap"><a ondblclick="printwin('||b_item||&amp;java_email=true');" href="#" onclick="printwin('||b_item||&amp;java_email=true');">||chop||h_subject||40||</a></td>
		||else||
			<td nowrap="nowrap"><a ondblclick="printwin('||b_item||&amp;java_email=true');" href="||b_item||&amp;java_email=true" target="item">||chop||h_subject||40||</a></td>
		||endif||
		<td>||h_from_personal||</td>
		<td>||h_date_day||</td>
		<td nowrap="nowrap">||h_date_time||</td>
		<td>||h_bytes||</td>
		<td>||h_attach||</td>
		||ifequal||_bulletin_user||true||
			<td><a href="||action||?cmd=delitem-||h_uidl||&amp;fld=bulletin_fld&amp;utoken=||utoken||&amp;ignore_trash=true&amp;force_empty=true">Delete</a></td>
		||endif||
	</tr>
||end_bulletin||
</table>
<script type="text/javascript">
<!--
function setItem(){
	||ifndef||_nopreview||
		||ifdef||my_item||
			window.parent.frames[1].document.location = "||my_item||";
		||endif||
	||endif||
}
//-->
</script>
||ifdef||num_pages||
	<table border="0" cellpadding="2" cellspacing="0">
	||ifnequal||num_pages||1||
		<tr align="center">
			<td>
				<table border="0" cellpadding="0" cellspacing="0">
				<tr>	
					||ifdef||pageup||
						<td><a href="||action||?cmd=bulletin&amp;pos=||pageup||&amp;utoken=||utoken||&amp;fld=||fld||"><img border="0" src="||nwimg||/lendcol.gif" alt="" /></a></td>
					||else||
						<td><img border="0" src="||nwimg||/lend.gif" alt="" /></td>
					||endif||
					||begin_pages||
						||iflower||npage||10||
							<td><a href="||action||?cmd=bulletin&amp;pos=||pagepos||&amp;utoken=||utoken||&amp;fld=||fld||"><img border="0" src="||nwimg||/||npage||||ifequal||npage||page_pos||on||else||off||endif||.gif" alt="" /></a></td>
						||else||
							||ifequal||npage||10||
								<td><a href="||action||?cmd=bulletin&amp;pos=||pagepos||&amp;utoken=||utoken||&amp;fld=||fld||"><img border="0" src="||nwimg||/star||iflower||9||page_pos||on||else||off||endif||.gif" alt="" /></a></td>
							||endif||
						||endif||
					||end_pages||
					||ifdef||pagedown||
						<td><a href="||action||?cmd=bulletin&amp;pos=||pagedown||&amp;utoken=||utoken||&amp;fld=||fld||"><img border="0" src="||nwimg||/rendcol.gif" alt="" /></a></td>
					||else||
						<td><img border="0" src="||nwimg||/rend.gif" alt="" /></td>
					||endif||
				</tr>
				</table>
			</td>
		</tr>
		<tr align="center">
			<td><b>Page ||page_pos|| of ||num_pages||</b></td>
		</tr>
	||endif||
	</table>
||endif||
</form>
</center>

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