<!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>{#$webtitle#}{#$web_config.poweredby#}</title>
<link rel="stylesheet" type="text/css" href="../templates/www/{#$web_config.temp -> dir#}/css/{#$web_config.temp -> style#}.css" />
<link rel="stylesheet" type="text/css" href="./css/user.css" />
<script language="javascript" src="{#$base_weburl#}/js/jquery.min.js" ></script>
<script language="javascript" src="{#$base_weburl#}/js/common.js" ></script>
<script language="javascript">
	var webroot_url = '{#$base_weburl#}';
	function submitFun()
	{

		var iduse_name 			= document.getElementById('use_name');
		var idmes_title 		= document.getElementById('mes_title');
		var idsuggestionInfo 	= document.getElementById('suggestionInfo');

		if(iduse_name.value=='')
		{
			idsuggestionInfo.innerHTML = '提 示：对方帐号不能为空！请输入！';
			iduse_name.focus();
			return false;
		}else if(idmes_title.value=='')
		{
			idsuggestionInfo.innerHTML = '提 示：标题不能为空！请输入！';
			idmes_title.focus();
			return false;
		}

	}
</script>
</head>
<body>
{#include file="./cover/header.tpl"#}
{#include file="./cover/web_address.tpl"#}
<div class="maincss">
{#include file="./cover/user_left.tpl"#}
<div id="usermain">
<div class="usermainright">
<table cellpadding="0" cellspacing="1" border="0" style="width:100%" class="tableborder">
<tr>
<th >对方帐号</th>
<th >标题</th>
<th >发送时间</th>
<th >状态</th>
<th >操作</th>
</tr>

{#foreach item=item from=$user_message#}
<tr >
<td class="tdleft">{#$item.use_name#}</td>
<td class="tdleft">{#$item.mes_title#}</td>
<td class="tdleft">{#$item.mes_add_time|date_format:"%Y-%m-%d %H:%M:%S"#}</td>
<td class="tdleft">{#if $item.mes_isread eq 0#}未读{#else#}阅读时间：{#$item.mes_readtime|date_format:"%Y-%m-%d %H:%M:%S"#}{#/if#}</td>
<td class="tdleft">{#if $item.mes_isread eq 1#}对方已读无法操作{#else#}<a href="./user/index.php?load=message&act=info&id={#$item.mes_id#}">修改</a> <a href="./user/index.php?load=message&act=del&id={#$item.mes_id#}" onclick="if(confirm('你确认要删除操作！')){ return  true; }else{ return  false; }" >删除</a>{#/if#}</td></tr>
{#/foreach#}

</table>
</div>

<div class="usermainright">
<form action="{#$act_url#}" method="post" onsubmit="return submitFun(this)">
<table cellpadding="0" cellspacing="1" border="0" style="width:100%" class="tableborder">
<tr>
<th colspan="2">填写发信内容</th>
</tr>
<tr >
<td class="tdright">对方帐号</td><td class="tdleft"><input name="use_name" id="use_name" value=""  type="text"   ></td></tr>	

 
<tr >
<td class="tdright"><strong>标题：</strong></td>
<td class="tdleft"><input name="mes_title" id="mes_title"  value="" type="text"  style="width:250px;" ></td>
</tr>

<tr >
<td class="tdright"><strong>内容：</strong></td>
<td class="tdleft">{#$ckeditorLoad#}</td>
</tr>


<tr >
<td colspan="2"  class="tdcenter"><div id="suggestionInfo">&nbsp;</div></td>
</tr>
<tr >
<td colspan="2"  class="tdcenter"><input name="submit" id="submit" type="submit" value=" 添 加 " ></td>
</tr></table>
</form>

</div>
</div>
</div>
{#include file="./cover/footer.tpl"#}
</body>
</html>