<?php
/*
 * 注意：此文件由tpl_engine编译型模板引擎编译生成。
 * 如果您的模板要进行修改，请修改 templates/default/modules/uiparts/remind_message.html
 * 如果您的模型要进行修改，请修改 models/modules/uiparts/remind_message.php
 *
 * 修改完成之后需要您进入后台重新编译，才会重新生成。
 * 如果您开启了debug模式运行，那么您可以省去上面这一步，但是debug模式每次都会判断程序是否更新，debug模式只适合开发调试。
 * 如果您正式运行此程序时，请切换到service模式运行！
 * 
 * 如有您有问题请到官方论坛（http://tech.jooyea.com/bbs/）提问，谢谢您的支持。
 */
?><?php
//引入语言包
$rf_langpackage=new recaffairlp;
//引入提醒模块公共函数
require("api/base_support.php");
$remind_rs=api_proxy("message_get","remind",1,"*");//取得空间提醒
$content_data_none="content_none";
$isNull=0;
if(empty($remind_rs)){
	$isNull=1;
	$content_data_none="";
}

?><!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" />
<link rel="stylesheet" type="text/css" href="skin/<?php echo $skinUrl;?>/css/row_menus.css">
<link rel="stylesheet" type="text/css" href="skin/<?php echo $skinUrl;?>/css/iframe.css">
<script language=JavaScript src="skin/default/js/jooyea.js"></script>
<SCRIPT language=JavaScript src="servtools/ajax_client/ajax.js"></SCRIPT>
<title></title>
<script type='text/javascript'>
	function clear_remind(remind_id){
		var xmlhttp=InitAjax();
		xmlhttp.open("GET","do.php?act=message_del&id="+remind_id);
		xmlhttp.onreadystatechange=function(){
			if(xmlhttp.readyState==4&&xmlhttp.status==200){
				document.getElementById("remind_"+remind_id).style.display='none';
			}
		}
		xmlhttp.send(null);
	}
</script>
</head>
<body>
  <div class="main_right_title">
     <span class="main_title_dot6"></span>
     <span class="main_title_txt"><?php echo $rf_langpackage->rf_space;?></span>
  </div>
  <div id="tabsB">
  <ul>
    <li><a href="?app=remind_message" title="<?php echo $mp_langpackage->mp_list;?>" class="nowbutl"><span class="nowbutr"><?php echo $rf_langpackage->rf_space;?></span></a></li>
  </ul>
</div>
  <div class="top10"></div>
	<!-- news start 0127 -->
	<div class="msg_box">
		<ul class="msg_list">
			<?php foreach($remind_rs as $rs){?>
				<li id='remind_<?php echo $rs['id'];?>'>
					<div class="photo"><a href="home.php?h=<?php echo $rs['from_uid'];?>" target="_blank"><img src="<?php echo $rs['from_uico'];?>" width="20px" height="20px" alt="" target="_blank" /></a></div>
					<div class="msg_content">
						<a href="home.php?h=<?php echo $rs['from_uid'];?>" target="_blank"><?php echo $rs['from_uname'];?></a>
						<?php echo str_replace(array("{link}","{js}"),array($rs['link'],"clear_remind(".$rs['id'].")"),filt_word($rs['content']));?>
					</div>
					<div class="msg_del"><a href="javascript:clear_remind(<?php echo $rs['id'];?>)"></a></div>
				</li>
			<?php }?>
		</ul>
	</div>
	<!-- news end -->
		<div class="clear"></div>
    </div>
</form>
<div class="guide_info <?php echo $content_data_none;?>">
	<?php echo $rf_langpackage->rf_mess_none;?>
</div>
</body>
</html>
