⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 editpwdform.frm

📁 运动会管理系统 运动会管理系统
💻 FRM
字号:
VERSION 5.00
Begin VB.Form editPwdForm 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "修改密码"
   ClientHeight    =   4035
   ClientLeft      =   45
   ClientTop       =   405
   ClientWidth     =   6270
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MDIChild        =   -1  'True
   MinButton       =   0   'False
   ScaleHeight     =   4035
   ScaleWidth      =   6270
   Begin VB.CommandButton OK 
      Caption         =   "OK"
      Height          =   375
      Left            =   4920
      TabIndex        =   7
      Top             =   3600
      Width           =   1095
   End
   Begin VB.Frame Frame1 
      Caption         =   "密码修改框"
      Height          =   3255
      Left            =   120
      TabIndex        =   0
      Top             =   120
      Width           =   5895
      Begin VB.TextBox txtNewPwd2 
         Height          =   270
         IMEMode         =   3  'DISABLE
         Left            =   1800
         PasswordChar    =   "*"
         TabIndex        =   6
         Top             =   1800
         Width           =   2655
      End
      Begin VB.TextBox txtNewPwd1 
         Height          =   270
         IMEMode         =   3  'DISABLE
         Left            =   1800
         PasswordChar    =   "*"
         TabIndex        =   5
         Top             =   1320
         Width           =   2655
      End
      Begin VB.TextBox txtOldPwd 
         Height          =   270
         IMEMode         =   3  'DISABLE
         Left            =   1800
         PasswordChar    =   "*"
         TabIndex        =   4
         Top             =   840
         Width           =   2655
      End
      Begin VB.Label Label3 
         Caption         =   "新密码确认:"
         Height          =   255
         Left            =   360
         TabIndex        =   3
         Top             =   1800
         Width           =   1215
      End
      Begin VB.Label Label2 
         Caption         =   "新密码:"
         Height          =   255
         Left            =   360
         TabIndex        =   2
         Top             =   1320
         Width           =   975
      End
      Begin VB.Label Label1 
         Caption         =   "旧密码:"
         Height          =   255
         Left            =   360
         TabIndex        =   1
         Top             =   840
         Width           =   1095
      End
   End
End
Attribute VB_Name = "editPwdForm"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub OK_Click()
    If editPwdForm.txtNewPwd1 = editPwdForm.txtNewPwd2 Then
        strSql = "select * from user_info where user_info_name = '" & username & "' and user_info_pwd='" & Trim(editPwdForm.txtOldPwd) & "'"
        Set rs = ExecuteSQL(strSql)
        If rs.EOF = True Then
            MsgBox "原密码错误,请重新输入!", vbExclamation + vbOKOnly, "警告"
            rs.Close
        Else
            strSql = "update user_info set user_info_pwd='" & Trim(editPwdForm.txtNewPwd1) & "' where user_info_name='" & username & "'"
            If ExecuteUpdateSQL(strSql) = True Then
                MsgBox "修改密码成功!", vbExclamation + vbOKOnly, "警告"
            Else
                MsgBox "修改密码失败!", vbExclamation + vbOKOnly, "警告"
            End If
        End If
    Else
        MsgBox "两次输入的新密码不一致,请重新输入!", vbExclamation + vbOKOnly, "警告"
    End If
End Sub

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -