<?php

class skin_mlist {



function Page_header($links) {
global $ibforums;
return <<<EOF
<script language='Javascript' type='text/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>
<form action='{$ibforums->base_url}' method='post'>
<input type='hidden' name='act' value='Members' />
<input type='hidden' name='s'   value='{$ibforums->session_id}' />
<div align="left">{$links[SHOW_PAGES]}</div>
<br />
<div class='tableborder'>
 <div class="maintitle">{$ibforums->lang['page_title']}</div>
 <table width="100%" border="0" cellspacing="1" cellpadding="4">
  <tr>
<!---//会员列表hack--->
	<th class='pformstrip' align='center' width='50' nowrap>{$ibforums->lang['member_avatar']}</th>
	<th class='pformstrip' align='center' width='15%'>{$ibforums->lang['member_name']}</th>
	<th class='pformstrip' align='center' width='10%'>{$ibforums->lang['member_money']}</th>
        <th class='pformstrip' align='center' width='10%'>{$ibforums->lang['member_level']}</th>
	<th class='pformstrip' align='center' width='10%'>{$ibforums->lang['member_group']}</th>
	<th class='pformstrip' align='center' width='15%'>{$ibforums->lang['member_joined']}{$ibforums->lang['member_alive']}</th>
	<th class='pformstrip' align='center' width='15%' nowrap>{$ibforums->lang['member_posts']}</th>
	<th class='pformstrip' align='center' nowrap>{$ibforums->lang['member_message']}</th>
	<th class='pformstrip' align='center' nowrap>{$ibforums->lang['member_contact']}</th>
	<th class='pformstrip' width="50" align="center" nowrap>{$ibforums->lang['member_personal']}</th>
<!---//会员列表hack--->
	
  </tr>
EOF;
}

function end($links) {
global $ibforums;
return <<<EOF
<br />
<div align="left">{$links[SHOW_PAGES]}</div>
EOF;
}

function no_results() {
global $ibforums;
return <<<EOF
No results
EOF;
}

function start() {
global $ibforums;
return <<<EOF
<!-- nothing here -->
EOF;
}

//会员列表hack--->
function Page_end($page_end) {
global $ibforums;
return <<<EOF
  <!-- End content Table -->
  <tr> 
    <td class='row3' colspan="11" align='center' valign='middle'>
	{$page_end['show_stats']} &nbsp; {$page_end['total_shown']}
    </td>
  </tr>
  <tr> 
    <td class='pformstrip' colspan="11" align='center' valign='middle'>
      {$ibforums->lang['name_box_title']}<select class='forminput' name='name_box'>
 	  {$page_end['name_box_options']}
	 </select>&nbsp;<input class='forminput' type='text' size='25' name='name' value='{$ibforums->input['name']}' /> &nbsp;
	&nbsp;<input type="checkbox" value="1" name="photoonly" class="forminput" {$page_end['checked_photoonly']} />{$ibforums->lang['photo_only']}
	&nbsp;<input type="checkbox" value="1" name="homepageonly" class="forminput" {$page_end['checked_homepageonly']} />{$ibforums->lang['homepage_only']}
    </td>
  </tr>
<!---//会员列表hack--->
  <tr>
   <td class='darkrow1' colspan="11" align='center' valign='middle'>
     {$ibforums->lang['sorting_text']}&nbsp;<input type='submit' value='{$ibforums->lang['sort_submit']}' class='forminput' />
   </td>
 </tr>
</table>
</div>
</form>
EOF;
}

function show_row($member) {
global $ibforums;
return <<<EOF
  <!-- Entry for {$member[MEMBER_NAME]} -->
  <tr>

<!---//会员列表hack--->
	 <td class='row2' valign='top'>{$member['user_avatar']}</td>
	 <td class='row4' nowrap>．{$member['uname']}</td>
	 <td class='row4' nowrap>$ {$member['money']}</td>
	 <td class='row4'>{$member['pips']}<br />{$member['title']}</td>
	 <td class='row2' align="center" title="{$member['tooltip_location']}" nowrap>{$member['group']}<br />{$member['is_moderator']}</td>
	 <td class='row4' align="center" title="{$member['tooltip_alive']}" nowrap>{$member['joined']}<br /><br />{$member['last_activity']}</td>
	 <td class='row4' align="center" nowrap><b>{$member['posts']}</b><br /><br />{$member['last_ten']}</td>
	 <td class='row2' align="center">{$member['on_offline']}{$member['message_icon']}{$member['add_contact_icon']}</td>
	 <td class='row2' nowrap>{$member['member_email']}{$member['icq_number']}{$member['yahoo_icon']}{$member['msnname']}</td>
	 <td class='row2' nowrap>{$member['addresscard']}{$member['homepage']}{$member['camera']}</td>
<!---//会员列表hack--->
  </tr>
  <!-- End of Entry -->
EOF;
}


}
?>
