示例#1
0
        $esu_password = '';
        $esu_group = 0;
        if ($id) {
            $the_user = new es_esuser($id);
            if ($the_user->error) {
                $id = 0;
            } else {
                $esu_username = $the_user->esuser_username;
                $esu_fullname = $the_user->esuser_fullname;
                $esu_password = $the_user->esuser_password;
                $esu_group = $the_user->esuser_group;
            }
        }
        show_esuser_form($id, $esu_username, $esu_fullname, $esu_password, $esu_group);
        break;
    case "update":
        if (update_esuser_from_form()) {
            list_users();
        }
        break;
    case "del":
        if ($id) {
            $the_user = new es_esuser($id);
            $the_user->delete();
        }
        list_users();
        break;
    default:
        list_users();
        break;
}