<!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>
<link rel="stylesheet" type="text/css" href="skin/default/jooyea/css/row_menus.css">
<link rel="stylesheet" type="text/css" href="skin/default/jooyea/css/iframe.css">
<script language=JavaScript src="skin/default/js/jooyea.js"></script>
<SCRIPT language=JavaScript src="servtools/ajax_client/ajax.js"></SCRIPT>
<script type='text/javascript'>
	function open_div(obj_id){
		if($(obj_id).style.display=='none'){
			$(obj_id).style.display='';
		}else{
			$(obj_id).style.display='none';
		}
	}
	
	function act_hidden(type_id,hidden_value,is_del){
		var xmlhttp=InitAjax();
		xmlhttp.open("GET","do.php?act=pr_affair&type="+type_id+"&hidden_value="+hidden_value+"&is_del="+is_del);
		xmlhttp.onreadystatechange=function(){
			if(xmlhttp.readyState==4&&xmlhttp.status==200){
				var return_str=trim(xmlhttp.responseText);
				if(return_str=='success'){
					parent.Dialog.alert_ok('{echo:lp{pr_handle_suc};/}');
					window.location.reload();
				}else{
					parent.Dialog.alert(return_str);
				}
			}
		}
		xmlhttp.send(null);		
	}
</script>
</head>

<body>
  <div class="main_right_title">
     <span class="main_title_dot11"></span>
     <span class="main_title_txt">{echo:$pr_langpackage->pr_conf;/}</span>
  </div>

<div id="tabsB">
	<ul>
    <li><a href="?app=privacy" title="{echo:$pr_langpackage->pr_access;/}"><span>{echo:$pr_langpackage->pr_access;/}</span></a></li>
    <li><a href="?app=pr_inputmess" title="{echo:$pr_langpackage->pr_inputmess;/}"><span>{echo:$pr_langpackage->pr_inputmess;/}</span></a></li>
    <li><a href="?app=pr_reqcheck" title="{echo:$pr_langpackage->pr_reqcheck;/}" ><span>{echo:$pr_langpackage->pr_reqcheck;/}</span></a></li>
    <li><a href="?app=pr_affair" title="{echo:lp{pr_set};/}" class="nowbutl"><span class="nowbutr">{echo:lp{pr_set};/}</span></a></li>
  </ul>
</div>

		<div class="container">
			<div class="rs_head">{echo:lp{pr_forget_sort};/}</div>
		</div>

<table class="affair_table" border="0" cellpadding="5" cellspacing="5">
<tr>
	<td>
		{echo:lp{pr_add_sort};/}：<input class="top_button" type='button' onclick='open_div("hidden_type");' value='{echo:lp{pr_chose};/}' />
	</td>
	<td>
		{echo:lp{pr_shield_sort};/}：
	</td>	
</tr>
<tr>
	<td>	
		<div id="hidden_type" style='display:none;'>
			<ul>
			{sta:$l=0;/}
			{sta:foreach($type_array as $val)[loop]}
				<li><a href="javascript:act_hidden(1,{echo:$l;/},0);">{echo:$val;/}</a></li>
			{sta:$l++;/}
			{end:foreach/}
			</ul>
		</div>
	</td>
	<td>
			<ul>
			{sta:foreach($hidden_type_rs as $key=>$val)[loop]}
				<li>{echo:$val;/} | <a href="javascript:act_hidden(1,{echo:$key;/},1);">{echo:lp{pr_del};/}</a></li>
			{end:foreach/}				
			</ul>
	</td>
</tr>
</table>
		<div class="container">
			<div class="rs_head">{echo:lp{pr_forget_list};/}</div>
		</div>
<table class="affair_table" border="0" cellpadding="5" cellspacing="5">
	<tr>
		<td>
			{echo:lp{pr_add_list};/}：<input class="top_button" type='button' onclick='open_div("hidden_pals");' value='{echo:lp{pr_chose};/}' />
		</td>
		<td>
			{echo:lp{pr_shield_list};/}：
		</td>
	</tr>
	<tr>
		<td>
			<div id="hidden_pals" style='display:none;'>
					<ul>
					{sta:$i=0;/}
					{sta:foreach($mypals as $val)[loop]}
						<li><a href="javascript:act_hidden(0,{echo:$val['pals_id'];/},0);">{echo:$val['pals_name'];/}</a></li>
					{sta:$i++;/}
					{end:foreach/}
					</ul>
			</div>
		</td>
		<td>
				<ul>
					{sta:foreach($hidden_pals_rs as $rs)[loop]}
						<LI>{echo:$rs['user_name'];/} | <A href="javascript:act_hidden(0,{echo:$rs['user_id'];/},1);">{echo:lp{pr_del};/}</A></LI>
					{end:foreach/}
				</ul>
		</td>
	</tr>
</table>
</body>
</html>
