
<!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 type='text/javascript'>
	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{m_none_wrong};/}');
		}else{
			parent.Dialog.confirm('{echo:lp{m_del_ask};/}',function(){document.forms[0].submit();});
		}
	}

</script>
</head>
<body>
<div class="main_right_title">
   <span class="main_title_dot4"></span>
   <span class="main_title_txt">{echo:lp{m_title};/}</span>
</div>
<div id="tabsB">
  <ul>
    <li><a href="?app=msg_minbox" title="{echo:lp{m_in};/}"><span>{echo:lp{m_in};/}</span></a></li>
    <li><a href="javascript:void(0)" title="{echo:lp{m_out};/}" class="nowbutl"><span class="nowbutr">{echo:lp{m_out};/}</span></a></li>
  </ul>
  <div class="div_but" onclick="location.href='?app=msg_creator'">{echo:lp{m_creat};/}</div>
</div>

<form action='do.php?act=msg_del&t=1' method='post' onsubmit='check_form()'>
<table class="{echo:$show_data;/} msg_table" cellspacing="0" cellpadding="0">
	<thead>
		<tr class="mag_tr">
			<td></td>
			<td>{echo:lp{m_state};/}</td>
			<td>{echo:lp{m_ico};/}</td>
			<td>{echo:lp{m_to_user};/}</td>
			<td>{echo:lp{m_tit};/}</td>
			<td>{echo:lp{m_time};/}</td>
			<td>{echo:lp{m_del};/}</td>
		</tr>
	</thead>
{sta:foreach($msg_outbox_rs as $key => $val)[loop]}
		{sta:readStr($val["state"]);/}
	   <tr class="loop_tr">
	   <td><input name="attach[]" type="checkbox" value="{echo:$val["mess_id"];/}" /></td>
		 <td><img title="{echo:$readStr;/}" src='skin/default/jooyea/images/messend_{echo:$val["state"];/}.gif' /></td>
		 <td><img src="{echo:$val["to_user_ico"];/}" width="43px" /></td>
		 <td><a target="_blank" href='home.php?h={echo:$val['to_user_id'];/}'>{echo:$val["to_user"];/}</a></td>
		 <td><a title='{echo:$val["mess_title"];/}' href='?app=msg_rpshow&id={echo:$val["mess_id"];/}&t=1'>{echo:$val["mess_title"];/}</a></td>
		 <td>{echo:$val["add_time"];/}</td>
		 <td><a href='do.php?act=msg_del&id={echo:$val["mess_id"];/}&t=1' onclick='return confirm("{echo:lp{m_del_ask};/}");'><img title="{echo:lp{m_del};/}" src="skin/default/jooyea/images/del.png" /></a></td>
	  </tr>
	  <tr><td class='line' colspan='7'>&nbsp</td></tr>
{end:foreach/}
<tr align="left" height="25px"><td colspan="6">{echo:lp{m_choose};/}<a href="javascript:select_attach(1);">{echo:lp{m_all};/}</a> - <a href="javascript:select_attach(0);">{echo:lp{m_b_can};/}</a> &nbsp <a href="javascript:document.forms[0].onsubmit();">{echo:lp{m_del};/}</a> &nbsp {echo:str_replace("{num}",$dbo->rowCount,lp{m_num_mail});/} </td></tr>
</table>
</form>
{echo:page_show($isNull,$page_num,$page_total);/}
<div class="guide_info {echo:$content_data_none;/}">
  {echo:lp{m_out_none};/}
</div>
</body>
</html>