mima.frm
资源名称:WebSite1.rar [点击查看]
上传用户:vtryaojia
上传日期:2020-04-18
资源大小:1214k
文件大小:7k
源码类别:
SCSI/ASPI
开发平台:
Others
- VERSION 5.00
- Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
- Begin VB.Form mima
- Caption = "密码修改"
- ClientHeight = 5280
- ClientLeft = 60
- ClientTop = 450
- ClientWidth = 7500
- LinkTopic = "Form1"
- ScaleHeight = 5280
- ScaleWidth = 7500
- StartUpPosition = 3 '窗口缺省
- Begin MSAdodcLib.Adodc Adodc1
- Height = 330
- Left = 5520
- Top = 4800
- Visible = 0 'False
- Width = 1695
- _ExtentX = 2990
- _ExtentY = 582
- ConnectMode = 0
- CursorLocation = 3
- IsolationLevel = -1
- ConnectionTimeout= 15
- CommandTimeout = 30
- CursorType = 3
- LockType = 3
- CommandType = 8
- CursorOptions = 0
- CacheSize = 50
- MaxRecords = 0
- BOFAction = 0
- EOFAction = 0
- ConnectStringType= 1
- Appearance = 1
- BackColor = -2147483643
- ForeColor = -2147483640
- Orientation = 0
- Enabled = -1
- Connect = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=zzu.mdb;Persist Security Info=False"
- OLEDBString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=zzu.mdb;Persist Security Info=False"
- OLEDBFile = ""
- DataSourceName = ""
- OtherAttributes = ""
- UserName = ""
- Password = ""
- RecordSource = "select * from Admin"
- Caption = "Adodc1"
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "宋体"
- Size = 9
- Charset = 134
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- _Version = 393216
- End
- Begin VB.Frame Frame2
- Caption = "密码修改"
- Height = 4095
- Left = 3480
- TabIndex = 6
- Top = 240
- Width = 3855
- Begin VB.CommandButton Command2
- Caption = "返回"
- Height = 495
- Left = 2160
- TabIndex = 14
- Top = 3000
- Width = 1335
- End
- Begin VB.CommandButton Command1
- Caption = "确认"
- Height = 495
- Left = 480
- TabIndex = 13
- Top = 3000
- Width = 1335
- End
- Begin VB.TextBox Text3
- Height = 375
- Left = 1320
- TabIndex = 12
- Top = 1920
- Width = 1935
- End
- Begin VB.TextBox Text2
- Height = 375
- Left = 1320
- TabIndex = 10
- Top = 1080
- Width = 1935
- End
- Begin VB.TextBox Text1
- Height = 375
- Left = 1320
- TabIndex = 8
- Top = 360
- Width = 1935
- End
- Begin VB.Label Label8
- Caption = "新密码:"
- Height = 375
- Left = 360
- TabIndex = 11
- Top = 2040
- Width = 735
- End
- Begin VB.Label Label7
- Caption = "原密码:"
- Height = 375
- Left = 360
- TabIndex = 9
- Top = 1200
- Width = 735
- End
- Begin VB.Label Label6
- Caption = "用户名:"
- Height = 375
- Left = 360
- TabIndex = 7
- Top = 480
- Width = 735
- End
- End
- Begin VB.Frame Frame1
- Caption = "注意事项"
- Height = 4095
- Left = 120
- TabIndex = 0
- Top = 240
- Width = 2895
- Begin VB.Label Label5
- Caption = "4.隔一段时间要修改密码"
- Height = 495
- Left = 240
- TabIndex = 5
- Top = 2760
- Width = 2295
- End
- Begin VB.Label Label4
- Caption = "3.最好请使用字母与数字组合"
- Height = 375
- Left = 240
- TabIndex = 4
- Top = 1920
- Width = 2175
- End
- Begin VB.Label Label3
- Caption = "2.新密码不要与用户名相同"
- Height = 495
- Left = 240
- TabIndex = 3
- Top = 1320
- Width = 2295
- End
- Begin VB.Label Label2
- Caption = "1.最好不要使用生日,电话等别人熟悉的名称或数字"
- Height = 375
- Left = 240
- TabIndex = 2
- Top = 720
- Width = 2415
- End
- Begin VB.Label Label1
- Caption = "有关用户密码修改说明:"
- Height = 255
- Left = 240
- TabIndex = 1
- Top = 360
- Width = 2055
- End
- End
- End
- Attribute VB_Name = "mima"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Sub Command1_Click()
- Adodc1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=zzu.mdb;Persist Security Info=False"
- Adodc1.RecordSource = "select * from Admin where name='" + Trim(Text1.Text) + "' and password='" + Trim(Text2.Text) + "'"
- Adodc1.Refresh
- Do While Not Adodc1.Recordset.EOF
- If Text1.Text = Adodc1.Recordset.Fields("name") And Text2.Text = Adodc1.Recordset.Fields("password") Then
- Adodc1.Recordset.Fields("password") = Text3.Text
- Adodc1.Recordset.Update
- MsgBox "修改成功"
- Exit Sub
- Else
- Adodc1.Recordset.MoveNext
- End If
- Loop
- MsgBox "你输入的用户名或密码不正确"
- End Sub
- Private Sub Command2_Click()
- Unload mima
- main.Show
- End Sub