<!-- BEGIN DYNAMIC BLOCK: showheader --> 
<script type="text/javascript">
function UpdatePublish(elementname, rowid){
    //update from db using ajax
    var value = '';
    var theElement = elementname + '_' + rowid;
    
    var itemch = $(theElement);
    if (itemch.checked == true) {
        value = 1;
    } else {
        value = 0;
    }       
    
        new Ajax.Request('index.php?fuse=admin&action=UpdatePublishAnnouncement',
                          {parameters:'&id='+rowid+'&publish='+value, onSuccess:handlerFunc, onFailure:errFunc}
                     )
}
</script>
<div align="right" class="tablenavpagelabel">
[l]Display[/l]: <select name="recordsnum" id="recordsnum" onChange="tableNav('1', '{TABLEID}', this.value, $('orderby_c').value, $('osort_c').value, '', 1, 'admin', 'TableAnnouncements', '{LINKSID}')">
<!-- BEGIN DYNAMIC BLOCK: recordsnum -->
<option value="{RECORDSNUMVAL}" {RECORDSNUM_SELECTED}>{RECORDSNUMVAL}</option>
<!-- END DYNAMIC BLOCK: recordsnum -->
</select> [l]records per page[/l]
</div>
<!-- Javascript to handle view actions. DO NOT TOUCH -->
<script>
var selected = 0;
</script>
<!-- End view javascript -->
<form name='announcements'>
<!-- END DYNAMIC BLOCK: showheader -->
{ANNOUNCEMENTTABLE}
<!-- BEGIN DYNAMIC BLOCK: showfooter -->
</form>
<table width=100% cellpadding=0 border=0 cellspacing=1>
<tr>
<td valign='top'><input type=button id=AForm1_delete disabled=true style="filter:alpha(opacity=50);-moz-opacity:0.4"; onClick="if(ItemSelected(document.forms['announcements'],'[ljh]You need to select entry(s) to perform this action on[/ljh]')) DeleteSelection('{TABLEID}', 'admin', 'TableAnnouncements', '{LINKSID}'); return false;" class=button_medium value='[lh]Delete[/lh]'> 
</td>
<td align="right"><div  style="padding:2px 0px 2px 0px" id="{LINKSID}"></div></td>
</tr>
</table>
<b>[l]Note[/l]:</b> [l]Public announcements are available at[/l]:
<ul>
    <li><a href="../rssAnnouncements.php">{CEURL}/rssAnnouncements.php</a> [l]as an RSS feed[/l]</li>
    <li><a href="../publicAnnouncements.php">{CEURL}/publicAnnouncements.php</a> [l]as an HTML page[/l]</li>
</ul>
<!-- END DYNAMIC BLOCK: showfooter --> 
