<?php

class skin_announce {



function TableFooter($data) {
global $ibforums;
return <<<EOF
      </table></td>
  </tr>
  <tr> 
    <td class='mainbg'>
	<!--IBF.TOPIC_ACTIVE-->
			<table width='100%' border='0' cellspacing='1' cellpadding='4'>
        <tr>
          <td class='titlemedium' background='{$ibforums->vars['img_url']}/tile_sub.gif' width='100%'>
			<table width='100%' border='0' cellspacing='0' cellpadding='0'>
               <tr>
                <td align='left' colspan=2><b>{$ibforums->lang['announcement_views']}</b></td>
               </tr>
            </table>
		  </td>
        </tr>
      </table>
		</td>
  </tr>
</table>
<br>
<table width='<{tbl_width}>' align='center' border='0' cellspacing='0' cellpadding='3'>
  <tr> 
    <td width='50%' align='left' vAlign='middle'><a href='{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}{$data['FORUM']['where']}'><b>[·µ»Ø {$data['FORUM']['name']}]</b></a></td>
    <td width='50%' align='right'>{$data[FORUM]['JUMP']}</td>
  </tr>
</table>
<br>
EOF;
}

function RenderRow($data) {
global $ibforums;
return <<<EOF
		<!--Begin Announcement Number {$data[ANNOUNCEMENT]['a_id']}-->
		 <tr>
		 <td valign='middle' class='posthead'><a name='entry{$data[ANNOUNCEMENT]['a_id']}'></a><span class='{$data[ANNOUNCEMENT]['name_css']}'>{$data[POSTER]['name']}</span></td>
          <td class='posthead' valign='top'>
			<table width='100%' border='0' cellspacing='0' cellpadding='0'>
              <tr> 
                <td class='posthead' colspan=2>{$data[ANNOUNCEMENT]['post_icon']} {$ibforums->lang['announcement_start']} -- {$ibforums->lang['announcement_end']} {$data[ANNOUNCEMENT]['post_end']}</td>
              </tr>
            </table>
		 </td>
        </tr>
		<tr>
          <td valign='top' class='post1'>
            	{$data[POSTER]['avatar']}<br><br>
				{$data[POSTER]['title']}<br>
				{$data[POSTER]['member_rank_img']}<br><br>
            	{$data[POSTER]['member_group']}<br>
            	{$data[POSTER]['member_posts']}<br>
            	{$data[POSTER]['member_number']}<br>
            	{$data[POSTER]['member_joined']}<br>
            	{$data[POSTER][WARN_GFX]}<br><br>
		        <img src='{$ibforums->vars['img_url']}/spacer.gif' alt='' width='160' height='1'><br> 
          </td>
          <td width='100%' valign='top' class='post1'><span class='postcolor'>{$data[ANNOUNCEMENT]['a_text']} {$data[ANNOUNCEMENT]['signature']}</td>
        </tr>
        <tr>
		   <td class='postfoot' align='left'>&nbsp;</td>
		   <td class='postfoot' nowrap align='left'>
		    <table width='100%' border='0' cellspacing='0' cellpadding='0'>
              <tr>
                <td class='postfoot' colspan=2 align='left' valign='middle' nowrap>{$data[POSTER]['message_icon']}{$data[POSTER]['email_icon']}{$data[POSTER]['website_icon']}{$data[POSTER]['icq_icon']}{$data[POSTER]['aol_icon']}{$data[POSTER]['yahoo_icon']}{$data[POSTER]['msn_icon']}</td>
	   		<td class='postfoot' valign='middle' align='right' width='2%'><a href='javascript:scroll(0,0);'><img src='{$ibforums->vars['img_url']}/p_up.gif' alt='Top' border='0'></a></td>
		      </tr>
		    </table>
		   </td>
        </tr>
        <tr> 
          <td class='postsep' colspan='2'><img src='{$ibforums->vars['img_url']}/spacer.gif' alt='' width='1' height='1'></td>
		</tr>

  <!-- end Announcement -->
EOF;
}

function PageTop($data) {
global $ibforums;
return <<<EOF


<script language="JavaScript">
    
    function PopUp(url, name, width,height,center,resize,scroll,posleft,postop) {
    if (posleft != 0) { x = posleft }
    if (postop  != 0) { y = postop  }

    if (!scroll) { scroll = 1 }
    if (!resize) { resize = 1 }

    if ((parseInt (navigator.appVersion) >= 4 ) && (center)) {
      X = (screen.width  - width ) / 2;
      Y = (screen.height - height) / 2;
    }
    if (scroll != 0) { scroll = 1 }

    var Win = window.open( url, name, 'width='+width+',height='+height+',top='+Y+',left='+X+',resizable='+resize+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no');
	}
    //-->
    </script>
<a name='top'></a>
<!-- Cgi-bot Start Forum page unique top --><BR>
<table width='<{tbl_width}>' border='0' cellspacing='1' cellpadding='0' bgcolor='<{tbl_border}>' align='center'>
  <tr> 
    <td background='{$ibforums->vars['img_url']}/tile_back.gif' class='maintitleback'>
			<table width='100%' border='0' cellspacing='0' cellpadding='3'>
        <tr> 
          <td><img src='{$ibforums->vars['img_url']}/nav_m.gif' alt='' width='8' height='8'></td>
          <td width='100%' class='maintitle'><b>{$data['ANNOUNCEMENT']['a_title']}{$data['ANNOUNCEMENT']['a_desc']}</b></td>
        </tr>
      </table>
		</td>
  </tr>
  <tr> 
	<td class='mainbg'>
	<table width='100%' border='0' cellspacing='1' cellpadding='4'>
	<tr> 
	  <td width='100%' class='titlemedium' nowrap background='{$ibforums->vars['img_url']}/tile_sub.gif' colspan="2"> 
		<table width='100%' border='0' cellspacing='0' cellpadding='0'>
		  <tr>
		    <td align='left' colspan='2'>&nbsp;</td>
		  </tr>
                 
		</table>
	  </td>
	</tr>

<!-- Cgi-bot End Forum page unique top -->
EOF;
}

function topic_active_users($active=array()) {
global $ibforums;
return <<<EOF
	
	  <table width='100%' border='0' cellspacing='1' cellpadding='4'>
		  <tr> 
			<td class='titlemedium' align='left'>{$ibforums->lang['active_users_title']} ({$ibforums->lang['active_users_detail']})</td>
		  </tr>
		  <tr>
			<td class='forum1'><b>{$ibforums->lang['active_users_members']}</b> {$active['names']}</td>
		  </tr>
	  </table>
	 

EOF;
}



}
?>