📄 function_area.php
字号:
<?php
require_once("configs/Configs.php");//加载配置文件
require_once("functions/login_flag.php");//是否已经登录
require_once("functions/class_mysql.php");//加载数据库类文件
$notice_flag1=0;
$notice_flag2=0;
$goto_url1 = "system_task.php?action=untask#task";
$goto_url2 = "war_result_list.php?type=war#war";
$query=$db->query("select p_nickname from player_info where `u_id`='".$_COOKIE['UserId']."' ");
$nickname = $db->fetch_array($query);
//用户等级查询;
$query=$db->query("select * from player_info where `u_id`='".$_COOKIE['UserId']."' ");
$nickname = $db->fetch_array($query);
$user_grade=$nickname['p_grade'];
//统计用户该等级下任务的总数;
$query=$db->query("select * from m_system_task where user_grade<='".$user_grade."';");
$sys_sum=$db->num_rows($query);
//新手任务
$query=$db->query("select id from task_end where u_id='".$_COOKIE['UserId']."'");
$tasks_sum=$db->num_rows($query);
//echo $tasks_sum;
if ($tasks_sum<$sys_sum) {
$goto_url1 = "system_task.php?from=notice&action=untask#task";
$notice_flag1=1;
}
//任务、信件提示:
$query=$db->query("select * from e_mail where `e_username`='".$nickname['p_nickname']."' and `notice`='0' limit 1");
$notice2 = $db->fetch_array($query);
if($notice2['id'] and $notice2['e_type']=="2"){
$goto_url2 = "message.php?e_type=2&from=notice#war";
$notice_flag2=3;
}elseif($notice2['id'] and $notice2['e_type']=="1"){
$goto_url1 = "system_task.php?from=notice&action=untask#task";
$notice_flag1=1;
}
//消息提示:战报
$query=$db->query("select * from war_result where (`u_id`='".$_COOKIE['UserId']."' or `to_u_id`='".$_COOKIE['UserId']."') and (`wo_notice`='0' or `de_notice`='0') limit 1");
$war_notice = $db->fetch_array($query);
//敌报
$query=$db->query("select * from war_task where `to_u_id`='".$_COOKIE['UserId']."' and `notice`='0' and `w_type`<>'3' limit 1");
$de_war_notice = $db->fetch_array($query);
if($de_war_notice['w_id']){
$goto_url2 = "war_info.php?type=war&war_type=1&from=notice#war";
$notice_flag2=2;
}elseif($war_notice['u_id']==$_COOKIE['UserId'] and $war_notice['w_type']<>"3" and $war_notice['wo_notice']=="0"){
$goto_url2 = "war_result_list.php?type=war&war_type=1&from=notice#war";
$notice_flag2=1;
}elseif($war_notice['to_u_id']==$_COOKIE['UserId'] and $war_notice['w_type']<>"3" and $war_notice['de_notice']=="0"){
$goto_url2 = "war_result_list.php?type=war&war_type=0&from=notice#war";
$notice_flag2=1;
}elseif($war_notice['u_id']==$_COOKIE['UserId'] and $war_notice['w_type']=="3" and $war_notice['wo_notice']=="0"){
$goto_url2 = "war_result_list.php?type=lurcher&war_type=1&from=notice#war";
$notice_flag2=1;
}elseif($war_notice['to_u_id']==$_COOKIE['UserId'] and $war_notice['w_type']=="3" and $war_notice['de_notice']=="0"){
$goto_url2 = "war_result_list.php?type=lurcher&war_type=0&from=notice#war";
$notice_flag2=1;
}
$db->close();
?>
<!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=gb2312">
<title></title>
<link href="css/id.css" rel="stylesheet" type="text/css">
<link href="css/css.css" rel="stylesheet" type="text/css">
<link type="text/css" href="css/build.css" rel="stylesheet">
<style>
body{
margin:0px;
}
</style>
</head>
<script>
function refresh_area_page(){
self.window.location = 'function_area.php';
}
</script>
<body>
<DIV id="too" style="margin-top:0px; margin-left:0px">
<div class="lb_04">
<div class="lb_01"><a href="<?php echo $goto_url1;?>" target="main" title="<?php if($notice_flag1=="2") echo "系统消息";else echo "系统任务";?>"><img src="images/<?php if($notice_flag1) echo "lb_11.gif";else echo "lb_01.gif";?>" /></a></div>
<div class="lb_03"><a href="<?php echo $goto_url2;?>" target="main" title="<?php if($notice_flag2=="2") echo "敌报消息";elseif($notice_flag2=="3") echo "消息";else echo "消息";?>"><img src="images/<?php if($notice_flag2) echo "lb_12.gif";else echo "lb_02.gif";?>" /></a></div>
<div class="lb_03"><a href="user_manager.php#user" target="main" title="用户管理"><img src="images/lb_03.gif" /></a></div>
<div class="lb_02"><a href="/" title="返回首页" target="_blank"><img src="images/lb_04.gif" /></a></div>
<div class="lb_02"><a href="#" title="充值中心"><img src="images/lb_05.gif" /></a></div>
<div class="lb_02"><a href="?ac=chat" target="main" title="聊天"><img src="images/lb_06.gif" /></a></div>
<div class="lb_02"><a href="../bbs" target="_blank" title="玩家交流"><img src="images/lb_07.gif" /></a></div>
</div>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -