require("config.php");
if (!$_SESSION['user']) {
header('Location: index.php');
exit();
}
require("fun/data/sql_ope.php");
$obj = $_SESSION['user'];
$res = '昵称:' . $tq_user->user_info($obj, '昵称') . '
';
$res = $res .'性别:' . $tq_user->user_info($obj, '性别') . '
';
$res = $res .'职业:' . $tq_user->user_info($obj, '职业') . '
';
$res = $res .'等级:' . $tq_user->user_info($obj, '等级') . '
';
$res = $res . '生命:' . $tq_user->user_info($obj, '生命') . '
';
$res = $res . '法力:' . $tq_user->user_info($obj, '法力') . '
';
$res = $res . '位置:' . $tq_user->user_info($obj, '位置') . '
';
$money = '货币1:' . $tq_user->user_info($obj, '货币1') . '
';
$money = $money.'货币2:' . $tq_user->user_info($obj, '货币2') . '
';
$money = $money.'货币3:' . $tq_user->user_info($obj, '货币3') . '
';
?>
<?php echo $cfg_arr['title']; ?>Ver:<?php echo $cfg_arr['ver']; ?>
<?php echo $tq_user->user_info($_SESSION['user'], '昵称'); ?>
layui.use(['layer', 'form', 'element'], function() {
var layer = layui.layer,
form = layui.form,
element = layui.element;
});
function tq_tab(type) {
/* 先切换颜色 */
for (i = 1; i < 5; i++) {
if (i == type) {
color = "#009688;"
} else {
color = "#000000;"
}
$("#tq_tab_" + i).attr("style", "color:" + color);
}
/* 暂时无其他功能 */
if (type > 2) {
layer.msg('暂未开发');
$("#tq_tab_1").attr("style", "color:#009688;");
$("#tq_tab_" + type).attr("style", "color:#000000;");
return;
}
else{
switch(type){
case 2:
var gamebody = $("div.layui-body>div");
gamebody[0].innerHTML = "【个人财富】<?php echo $money; ?>";
//console.log(gamebody[0].innerHTML);
default:
console.log("选择了功能"+type);
}
}
}
一键复制
编辑
Web IDE
原始数据
按行查看
历史