<script type='text/javascript' src='jscripts/ipb_topic.js'></script>
<div class="barc">
	<p class="over">{$approve_button} {$edit_button}</p>
	<p><b>{$event['event_title']} ($event_type)</b></p>
</div>
<table class='ipbtable' cellspacing="1">
	<tr>
		<td class="{$event['_event_css_2']}" width="1%" valign="middle">
			<if="$member['id']">
				<div id="post-member-{$event['event_id']}" class='popmenubutton-new-out'>
					<span class="normalname">{$member['_pp_online_image']}{$member['_members_display_name']}</span>
				</div>
				<!-- member menu -->
				<div class='popupmenu-new' id='post-member-{$event['event_id']}_menu' style='display:none;width:230px'>
					<div class='popupmenu-item-last'>
						<if="$member['members_display_name_short'] != $member['members_display_name']">
							<div class='popupmenu-item'><strong>{$member['members_display_name']}</strong></div>
						</if>
						<div style='float:right'>
							<div class='pp-image-thumb-wrap'>
								<img src='{$member['pp_thumb_photo']}' width='{$member['pp_thumb_width']}' height='{$member['pp_thumb_height']}' alt='' />
							</div>
							<if="$this->ipsclass->vars['pp_allow_member_rate']">
								<div style='margin-top:5px;margin-left:6px;'>
									<img src="{$this->ipsclass->vars['img_url']}/rating_{$member['_pp_rating_real']}_mini.gif" alt='{$this->ipsclass->lang['rating_prefix']}: {$member['_pp_rating_real']}' style='vertical-align:middle' border='0' />
								</div>
							</if>
						</div>
						<div class='popupmenu-item'>
							{$member['_pp_gender_image']} <a href="{$this->ipsclass->base_url}showuser={$member['id']}">{$this->ipsclass->lang['dd_view_profile']}</a>
						</div>
						<if="$this->ipsclass->member['id']">
							<div class='popupmenu-item'>
								<if="in_array( $member['id'], array_keys( $this->ipsclass->member['_cache']['friends'] ) )">
									<img src='{$this->ipsclass->vars['img_url']}/folder_profile_portal/friend_remove_small.png' alt='' border='0' /> <a href="#" onclick='friends_pop("&amp;do=remove&amp;member_id={$member['id']}&amp;md5check={$this->ipsclass->md5_check}"); return false'>{$this->ipsclass->lang['dd_remove_friend']}</a>
								<else />
									<img src='{$this->ipsclass->vars['img_url']}/folder_profile_portal/friend_add_small.png' alt='' border='0' /> <a href="#" onclick='friends_pop("&amp;do=add&amp;member_id={$member['id']}&amp;md5check={$this->ipsclass->md5_check}"); return false'>{$this->ipsclass->lang['dd_add_friend']}</a>
								</if>
							</div>
							<div class='popupmenu-item'>
								<img src='{$this->ipsclass->vars['img_url']}/folder_profile_portal/send_pm_small.png' alt='' border='0' /> <a href="{$this->ipsclass->base_url}act=Msg&amp;CODE=4&amp;MID={$member['id']}">{$this->ipsclass->lang['dd_send_pm']}</a>
							</div>
							<div class='popupmenu-item'>
								<img src='{$this->ipsclass->vars['img_url']}/folder_profile_portal/find_posts.png' alt='' border='0' /> <a href='{$this->ipsclass->base_url}act=Search&amp;CODE=gettopicsuser&amp;mid={$member['id']}'>{$this->ipsclass->lang['dd_find_topics']}</a>
							</div>							
						</if>
						<div class='popupmenu-item-last'>
							<img src='{$this->ipsclass->vars['img_url']}/folder_profile_portal/find_posts.png' alt='' border='0' /> <a href='{$this->ipsclass->base_url}act=Search&amp;CODE=getalluser&amp;mid={$member['id']}'>{$this->ipsclass->lang['dd_find_posts']}</a>
						</div>
					</div>
				</div>
				<!-- member menu -->
				<script type="text/javascript">
					ipsmenu.register( "post-member-{$event['event_id']}", '', 'popmenubutton-new', 'popmenubutton-new-out' );
				</script>
			<else />
				<span class="normalname">{$member['_members_display_name']}</span>
			</if>		
		<!--<span class="normalname"><a href="{$this->ipsclass->base_url}showuser={$member['id']}">{$member['members_display_name']}</a></span>-->
		</td>
		<td class="{$event['_event_css_2']}" width="99%">
			<b>{$this->ipsclass->lang['event_date']} {$event['mday']} {$event['month_text']} {$event['year']} $date_ends</b> ($type)
		</td>
	</tr>
	<tr>
		<td valign="top" class="{$event['_event_css_1']}">
			    <span class="postdetails">
				<if="$member['id'] AND $member['avatar']">
					<a href="{$this->ipsclass->base_url}showuser={$member['id']}" title="{$this->ipsclass->lang['dd_view_profile']}">{$member['avatar']}</a><br /><br />
				<else />
        			{$member['avatar']}<br /><br />
				</if>			    
        		{$member['title']}<br />
        		{$member['member_rank_img']}<br /><br />
        		{$member['member_group']}<br />
        		{$member['member_posts']}<br />
        		{$member['member_joined']}<br />
        		{$member['member_location']}
        		{$member['member_number']}<br />
<if="$member['custom_fields'] != """>
{$member['custom_fields']}
</if>
<br />
        		{$member['warn_text']} {$member['warn_minus']}{$member['warn_img']}{$member['warn_add']}
        	</span><br />
        	<img src="{$this->ipsclass->vars['img_url']}/spacer.gif" alt="" width="160" height="1" /><br />
		</td>
		<td valign="top" class="{$event['_event_css_1']}">
			<span class="postcolor">{$event['event_content']}</span>
		</td>
	</tr>
	<tr>
		<td class="formbuttonrow" colspan="2"><a href="{$this->ipsclass->base_url}act=calendar&amp;cal_id={$this->ipsclass->input['_cal_id']}&amp;d={$this->ipsclass->input['d']}&amp;m={$this->ipsclass->input['m']}&amp;y={$this->ipsclass->input['y']}"><b>{$this->ipsclass->lang['back']}</b></a></td>
	</tr>
	<tr>
		<td class="catend" colspan="2"><!-- no content --></td>
	</tr>
</table>