some bugs #186

Closed
Buffer2Disk opened this Issue Jun 28, 2015 · 5 comments

Projects

None yet

2 participants

@Buffer2Disk

1.admin index 页面的get_month_traffic() 命名 与 Ana.php 中的方法命名不一致。
2.admin界面的用户修改按钮点击无反应 。

@Buffer2Disk

fix
$mt = $ssmin->getMonthTraffic();
$active_user = $ssmin->activedUserCount();
$all_user = $ssmin->allUserCount();
$node_count = $ssmin->nodeCount();

@Buffer2Disk

admin/user_edit 增加 jQuery 文件
src="../asset/js/jQuery.min.js"

admin user_edit.php
修改
data:{
user_uid: $("#user_uid").val(), //拼写错误
name: $("#name").val(),
email: $("#email").val(),
passwd: $("#passwd").val(),
transfer_enable: $("#transfer_enable").val() 乘1024乘1024乘1024, //流量转换
invite_num: $("#invite_num").val()
},

admin _user_edit.php
增加 $email = $_POST['email'];

lib/Ss/User/User.php
修改
function updateUser($name,$email,$passwd,$transfer_enable,$invite_num){
return $this->db->update($this->table,[
"user_name" => $name,
"email" => $email,
"passwd" => $passwd,
"transfer_enable" => $transfer_enable,
"invite_num" => $invite_num
],[
"uid" => $this->uid
]);
}

@liuchao0130

每一步都做了呀,为什么我按照这个修改了,还是 点 修改按钮无效呢

@liuchao0130

解决了, 楼主还要加上一句: #188
才能解决问题

@Buffer2Disk

加jq文件也可以,你看我写的第一条

@orvice orvice added a commit that closed this issue Jul 15, 2015
@orvice fix #186 #189 a27d737
@orvice orvice closed this in a27d737 Jul 15, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment