
<!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">
<link rel="stylesheet" type="text/css" href="skin/default/jooyea/css/user_ico_small.css">
<!--[if lt IE 7]>
<style type="text/css">
.uico_photo_small span { behavior: url(skin/default/jooyea/css/ie_png_fix.htc);}
</style>
<![endif]-->
</head>
<SCRIPT language=JavaScript src="servtools/ajax_client/ajax.js"></SCRIPT>
<script language=JavaScript src="skin/default/js/jooyea.js"></script>
<script language='javascript'>
parent.guide("hi");
function del_hi(hi_id)
{
	 var xmlhttp=InitAjax();
	 xmlhttp.open("GET","do.php?act=user_del_hi&hi_id="+hi_id,true);
	 xmlhttp.onreadystatechange=function(){
		 if(xmlhttp.readyState==4&&xmlhttp.status==200){
			window.location.reload();
	 	 }
	 }
	 xmlhttp.send(null);
}

function check_form(){
	var mail_array=document.getElementsByName('attach[]');
	var num=mail_array.length;
	var check_num=0;
	for(array_length=0;array_length<num;array_length++){
		if(mail_array[array_length].checked==true){
			check_num++;
		}
	}
	if(check_num==0){
		parent.Dialog.alert('{echo:lp{hi_wrong};/}');
	}else{
		parent.Dialog.confirm('{echo:lp{hi_del_con};/}',function(){document.forms[0].submit();});
	}
}
</script>
<body>
<div class="main_right_title">
	<span class="main_title_dot13"></span>
	<span class="main_title_txt">{echo:lp{hi_my_hi};/}</span>
</div>
<div class="line"></div>
{sta:if($hi_rs)[exc]}
<form action='do.php?act=user_del_hi' method='post' onsubmit='check_form()'>
  <table class="main user_hi">
  	<thead>
		<tr>
			<td></td>
			<td>{echo:lp{u_uname};/}</td>
			<td>{echo:lp{hi_action};/}</td>
			<td>{echo:lp{hi_descrip};/}</td>
			<td>{echo:lp{hi_time};/}</td>
			<td>{echo:lp{hi_restore};/}</td>
			<td>{echo:lp{hi_del};/}</td>
		</tr>
	</thead>  	
   {sta:foreach($hi_rs as $val)[loop]}
    <tr class="loop_tr">
    	<td align="center"><input name="attach[]" type="checkbox" value="{echo:$val['hi_id'];/}" /></td>
    	<td width='43px'>
			<div class="uico_photo_small">
				<a href="home.php?h={echo:$val['from_user_id'];/}" target="_blank"><span></span><img src="{echo:$val['from_user_ico'];/}" height='43px' width='43px' /></a></div>
      </td>
      <td><img src="skin/default/jooyea/images/pokeact_{echo:$val['hi'];/}.gif"></img></td>
      <td><a href='home.php?h={echo:$val['from_user_id'];/}' target='_blank'>{echo:$val['from_user_name'];/}</a>{echo:show_hi_type($val['hi']);/}</td>
      <td>{echo:$val['add_time'];/}</td>
      <td><a href='javascript:void(0)' onclick='parent.hi_action({echo:$val['from_user_id'];/});'>{echo:lp{hi_restore};/}</a></td>
      <td><a href='javascript:del_hi({echo:$val['hi_id'];/});' title="{echo:lp{hi_del};/}" alt="{echo:lp{hi_del};/}" onclick='return confirm("{echo:lp{hi_del_con};/}");'><img src='skin/default/jooyea/images/del.png' /></a></td>
    </tr><tr><td class='line' colspan='7'>&nbsp</td></tr>
  {end:foreach/}
  <tr height="25px"><td colspan="7" class="sel_style">{echo:lp{hi_select};/}：<a href="javascript:select_attach(1);">{echo:lp{hi_all};/}</a> - <a href="javascript:select_attach(0);">{echo:lp{u_b_can};/}</a>&nbsp <a href="javascript:document.forms[0].onsubmit();">{echo:lp{hi_del};/}</a></td></tr>
  </table>
</form>
{end:if/}
<div class="guide_info {echo:$none_data;/}">
	{echo:lp{hi_data_none};/}
</div>
  {echo:page_show($isNull,$page_num,$page_total);/}
</body>
</html>
