{sta:if($is_login==1)[exc]}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title></title>
<base href='{echo:$siteDomain;/}' />
<link rel="stylesheet" type="text/css" href="skin/default/jooyea/css/iframe.css">
<SCRIPT language=JavaScript src="servtools/ajax_client/ajax.js"></SCRIPT>
<script type='text/javascript'>
function mypals_add_callback(content,other_id){
	if(content=="success"){
		parent.Dialog.alert("{echo:lp{mp_suc_add};/}");
		document.getElementById("operate_"+other_id).innerHTML="{echo:lp{mp_suc_add};/}";
	}else{
		parent.Dialog.alert(content);
		document.getElementById("operate_"+other_id).innerHTML=content;
	}
}

function mypals_add(other_id){
	var mypals_add=new Ajax();
	mypals_add.getInfo("do.php","get","app","act=add_mypals&other_id="+other_id,function(c){mypals_add_callback(c,other_id);}); 
}
</script>
</head>

<body id="iframecontent">
<div class="create_button"><a href="modules.php?app=mypals_search">{echo:lp{mp_re_search};/}</a></div>
<h2 class="app_friend">{echo:lp{mp_find};/}</h2>
<div class="tabs">
	<ul class="menu">
        <li class="active"><a href="javascript:;" hidefocus="true">{echo:lp{mp_find};/}</a></li>
    </ul>
</div>

	{end:if/}
{sta:foreach($search_rs as $rs)[loop]}
<div class="pals_list" onmouseover="this.className += ' pals_list_active';" onmouseout="this.className='pals_list';">
			<div class="right">
               <p id='operate_{echo:$rs["user_id"];/}'>
                        <a href='javascript:{echo:str_replace("{uid}",$rs['user_id'],$send_join_js);/}'>{echo:str_replace("{he}",get_TP_pals_sex($rs['user_sex']),lp{mp_add_mypals});/}</a>
                </p>
                <a href=javascript:{echo:str_replace("{uid}",$rs['user_id'],$send_script_js);/} target="{echo:$target;/}">{echo:str_replace("{he}",get_TP_pals_sex($rs['user_sex']),lp{mp_scrip});/}</a>
            </div>
            <div class="avatar"><a href="home.php?h={echo:$rs['user_id'];/}" target="_blank"><img alt="{echo:lp{mp_en_home};/}" title='{echo:lp{mp_sex};/}:{echo:get_pals_sex($rs['user_sex']);/}' src='{echo:$rs["user_ico"];/}' /></a>
			</div>
			<dl>
            	<dd>{echo:lp{mp_name};/}：{echo:filt_word($rs["user_name"]);/}</dd>
				<dd>{echo:lp{mp_reside};/}：{echo:get_pals_reside($rs['reside_province'],$rs['reside_city']);/}</dd>
                <dd>{echo:lp{mp_birth};/}：{echo:get_pals_birth($rs['birth_province'],$rs['birth_city']);/}</dd>
			</dl>
</div>
{end:foreach/}
<div class="clear" style="display:inline-block;"></div>
{echo:page_show($isNull,$page_num,$page_total);/}<div class='guide_info {echo:$none_data;/}'>
  {echo:$error_str;/}
</div>
  
</body>
</html>