mima.frm
上传用户:vtryaojia
上传日期:2020-04-18
资源大小:1214k
文件大小:7k
源码类别:

SCSI/ASPI

开发平台:

Others

  1. VERSION 5.00
  2. Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
  3. Begin VB.Form mima 
  4.    Caption         =   "密码修改"
  5.    ClientHeight    =   5280
  6.    ClientLeft      =   60
  7.    ClientTop       =   450
  8.    ClientWidth     =   7500
  9.    LinkTopic       =   "Form1"
  10.    ScaleHeight     =   5280
  11.    ScaleWidth      =   7500
  12.    StartUpPosition =   3  '窗口缺省
  13.    Begin MSAdodcLib.Adodc Adodc1 
  14.       Height          =   330
  15.       Left            =   5520
  16.       Top             =   4800
  17.       Visible         =   0   'False
  18.       Width           =   1695
  19.       _ExtentX        =   2990
  20.       _ExtentY        =   582
  21.       ConnectMode     =   0
  22.       CursorLocation  =   3
  23.       IsolationLevel  =   -1
  24.       ConnectionTimeout=   15
  25.       CommandTimeout  =   30
  26.       CursorType      =   3
  27.       LockType        =   3
  28.       CommandType     =   8
  29.       CursorOptions   =   0
  30.       CacheSize       =   50
  31.       MaxRecords      =   0
  32.       BOFAction       =   0
  33.       EOFAction       =   0
  34.       ConnectStringType=   1
  35.       Appearance      =   1
  36.       BackColor       =   -2147483643
  37.       ForeColor       =   -2147483640
  38.       Orientation     =   0
  39.       Enabled         =   -1
  40.       Connect         =   "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=zzu.mdb;Persist Security Info=False"
  41.       OLEDBString     =   "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=zzu.mdb;Persist Security Info=False"
  42.       OLEDBFile       =   ""
  43.       DataSourceName  =   ""
  44.       OtherAttributes =   ""
  45.       UserName        =   ""
  46.       Password        =   ""
  47.       RecordSource    =   "select * from Admin"
  48.       Caption         =   "Adodc1"
  49.       BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  50.          Name            =   "宋体"
  51.          Size            =   9
  52.          Charset         =   134
  53.          Weight          =   400
  54.          Underline       =   0   'False
  55.          Italic          =   0   'False
  56.          Strikethrough   =   0   'False
  57.       EndProperty
  58.       _Version        =   393216
  59.    End
  60.    Begin VB.Frame Frame2 
  61.       Caption         =   "密码修改"
  62.       Height          =   4095
  63.       Left            =   3480
  64.       TabIndex        =   6
  65.       Top             =   240
  66.       Width           =   3855
  67.       Begin VB.CommandButton Command2 
  68.          Caption         =   "返回"
  69.          Height          =   495
  70.          Left            =   2160
  71.          TabIndex        =   14
  72.          Top             =   3000
  73.          Width           =   1335
  74.       End
  75.       Begin VB.CommandButton Command1 
  76.          Caption         =   "确认"
  77.          Height          =   495
  78.          Left            =   480
  79.          TabIndex        =   13
  80.          Top             =   3000
  81.          Width           =   1335
  82.       End
  83.       Begin VB.TextBox Text3 
  84.          Height          =   375
  85.          Left            =   1320
  86.          TabIndex        =   12
  87.          Top             =   1920
  88.          Width           =   1935
  89.       End
  90.       Begin VB.TextBox Text2 
  91.          Height          =   375
  92.          Left            =   1320
  93.          TabIndex        =   10
  94.          Top             =   1080
  95.          Width           =   1935
  96.       End
  97.       Begin VB.TextBox Text1 
  98.          Height          =   375
  99.          Left            =   1320
  100.          TabIndex        =   8
  101.          Top             =   360
  102.          Width           =   1935
  103.       End
  104.       Begin VB.Label Label8 
  105.          Caption         =   "新密码:"
  106.          Height          =   375
  107.          Left            =   360
  108.          TabIndex        =   11
  109.          Top             =   2040
  110.          Width           =   735
  111.       End
  112.       Begin VB.Label Label7 
  113.          Caption         =   "原密码:"
  114.          Height          =   375
  115.          Left            =   360
  116.          TabIndex        =   9
  117.          Top             =   1200
  118.          Width           =   735
  119.       End
  120.       Begin VB.Label Label6 
  121.          Caption         =   "用户名:"
  122.          Height          =   375
  123.          Left            =   360
  124.          TabIndex        =   7
  125.          Top             =   480
  126.          Width           =   735
  127.       End
  128.    End
  129.    Begin VB.Frame Frame1 
  130.       Caption         =   "注意事项"
  131.       Height          =   4095
  132.       Left            =   120
  133.       TabIndex        =   0
  134.       Top             =   240
  135.       Width           =   2895
  136.       Begin VB.Label Label5 
  137.          Caption         =   "4.隔一段时间要修改密码"
  138.          Height          =   495
  139.          Left            =   240
  140.          TabIndex        =   5
  141.          Top             =   2760
  142.          Width           =   2295
  143.       End
  144.       Begin VB.Label Label4 
  145.          Caption         =   "3.最好请使用字母与数字组合"
  146.          Height          =   375
  147.          Left            =   240
  148.          TabIndex        =   4
  149.          Top             =   1920
  150.          Width           =   2175
  151.       End
  152.       Begin VB.Label Label3 
  153.          Caption         =   "2.新密码不要与用户名相同"
  154.          Height          =   495
  155.          Left            =   240
  156.          TabIndex        =   3
  157.          Top             =   1320
  158.          Width           =   2295
  159.       End
  160.       Begin VB.Label Label2 
  161.          Caption         =   "1.最好不要使用生日,电话等别人熟悉的名称或数字"
  162.          Height          =   375
  163.          Left            =   240
  164.          TabIndex        =   2
  165.          Top             =   720
  166.          Width           =   2415
  167.       End
  168.       Begin VB.Label Label1 
  169.          Caption         =   "有关用户密码修改说明:"
  170.          Height          =   255
  171.          Left            =   240
  172.          TabIndex        =   1
  173.          Top             =   360
  174.          Width           =   2055
  175.       End
  176.    End
  177. End
  178. Attribute VB_Name = "mima"
  179. Attribute VB_GlobalNameSpace = False
  180. Attribute VB_Creatable = False
  181. Attribute VB_PredeclaredId = True
  182. Attribute VB_Exposed = False
  183. Private Sub Command1_Click()
  184.  Adodc1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=zzu.mdb;Persist Security Info=False"
  185.  Adodc1.RecordSource = "select * from Admin where name='" + Trim(Text1.Text) + "' and password='" + Trim(Text2.Text) + "'"
  186.  Adodc1.Refresh
  187.     Do While Not Adodc1.Recordset.EOF
  188.     If Text1.Text = Adodc1.Recordset.Fields("name") And Text2.Text = Adodc1.Recordset.Fields("password") Then
  189.     Adodc1.Recordset.Fields("password") = Text3.Text
  190.     Adodc1.Recordset.Update
  191.     MsgBox "修改成功"
  192.     Exit Sub
  193.     Else
  194.     Adodc1.Recordset.MoveNext
  195.     End If
  196.     Loop
  197.     MsgBox "你输入的用户名或密码不正确"
  198. End Sub
  199. Private Sub Command2_Click()
  200. Unload mima
  201. main.Show
  202. End Sub