
<!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>
<script type="text/javascript">
	
function check_form(){
	if(document.form1.home_acess.value==''){
		parent.Dialog.alert("{echo:lp{pr_no_data};/}");
		return false;
	}
}
	
function show_aps(){
	document.getElementById('acess_pass_set').style.display='';
}

function hidden_aps(){     
	document.getElementById('acess_pass_set').style.display='none';
}

parent.guide("user_privacy");

</script>
<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">
</head>
<body>
	
	<form id="form1" name="form1" method="post" action="do.php?act=pr_access" onsubmit="return check_form();">
  <div class="main_right_title">
     <span class="main_title_dot11"></span>
     <span class="main_title_txt">{echo:lp{pr_conf};/}</span>
  </div>
		<div id="tabsB">
			<ul>
		    <li><a href="?app=privacy" title="{echo:lp{pr_access};/}" class="nowbutl"><span class="nowbutr">{echo:lp{pr_access};/}</span></a></li>
		    <li><a href="?app=pr_inputmess" title="{echo:lp{pr_inputmess};/}"><span>{echo:lp{pr_inputmess};/}</span></a></li>
		    <li><a href="?app=pr_reqcheck" title="{echo:lp{pr_reqcheck};/}"><span>{echo:lp{pr_reqcheck};/}</span></a></li>
            <li><a href="?app=pr_affair" title="{echo:lp{pr_set};/}"><span>{echo:lp{pr_set};/}</span></a></li>
		  </ul>
		</div>

		<div class="container">
			<div class="rs_head">{echo:lp{pr_home};/}</div>
		</div>
	<table width="574" border="0" class='main main_left'>
		<tr>
			<th width="100" align="right"><input type="radio" value="0" name="home_acess" id="home_acess" {echo:radio_checked(0,$user_privacy['access_limit']);/} onclick='javascript:hidden_aps();'>
			</th>
			<td width="458">
				<label>{echo:lp{pr_public};/}</label>
			</td>
		</tr>
		<tr>
	    	<th align="right"><input type="radio" value="1" name="home_acess" id="home_acess" {echo:radio_checked(1,$user_privacy['access_limit']);/} onclick='javascript:hidden_aps();'>
			</th>
	    	<td><label>{echo:lp{pr_only_reger};/}</label></td>
		</tr>
		<tr>
			<th align="right"><input type="radio" value="2" name="home_acess" id="home_acess" {echo:radio_checked(2,$user_privacy['access_limit']);/} onclick='javascript:hidden_aps();'></th>
			<td><label>{echo:lp{pr_only_pals};/}</label></td>
		</tr>
		<tr align="right"><th><input type="radio" value="3" name="home_acess" id="home_acess" {echo:radio_checked(3,$user_privacy['access_limit']);/} onclick='javascript:show_aps();'></th><td><label>{echo:lp{pr_set_ques};/}</label></td>
		</tr>
		<tr id='acess_pass_set' style='display:none;'>
			<th>&nbsp;</th>
			<td>        
				<div>
					<label>{echo:lp{pr_ques1};/}： 
					<input class="text-input" type="text" value="{echo:$access_qa_array[0]['q'];/}" name="question_1" maxlength="20" size="20"></label>
					<label>{echo:lp{pr_ans1};/}： 
					<input class="text-input" type="text" value='{echo:$access_qa_array[0]['a'];/}' name="answer_1" maxlength="20" size="20"></label>
				</div>
				<div>
					<label>{echo:lp{pr_ques2};/}： 
					<input class="text-input" type="text" value="{echo:$access_qa_array[1]['q'];/}" name="question_2" maxlength="20" size="20"></label>
					<label>{echo:lp{pr_ans2};/}： 
					<input class="text-input" type="text" value="{echo:$access_qa_array[1]['a'];/}" name="answer_2" maxlength="20" size="20"></label>	
				</div>	
				<div>											
					<label>{echo:lp{pr_ques3};/}： 
					<input class="text-input" type="text" value="{echo:$access_qa_array[2]['q'];/}" name="question_3" maxlength="20" size="20"></label>
					<label>{echo:lp{pr_ans3};/}： 
					<input class="text-input" type="text" value="{echo:$access_qa_array[2]['a'];/}" name="answer_3" maxlength="20" size="20"></label>
				</div>
				<p>{echo:lp{pr_que_limit};/}</p>
				<div class="example">
					<strong>{echo:lp{pr_example};/}</strong> 
					{echo:lp{pr_ex_que};/}
					<br />
					{echo:lp{pr_ex_an};/}
				</div>
			</td>
  		</tr>
		<tr>
			<td ><input type="submit" name="Submit" class="anniu right" value="{echo:lp{pr_button_action};/}" /></td>
			<td><label><input type="button" name="Submit2" class="anniu" onclick="location.href='?app=privacy'" value="{echo:lp{pr_button_cancel};/}" /></label></td>
		</tr>
	</table>
{sta:if(strstr(radio_checked(3,$user_privacy['access_limit']),'checked'))[exc]}
 <script type="text/javascript">show_aps();</script>
{end:if/}
</form>
</body>
</html>
