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

📄 index.frm

📁 学生考勤管理系统 一个非常棒的程序
💻 FRM
字号:
VERSION 5.00
Object = "{CFA7AFF4-3242-4269-9172-7389D695AE01}#1.0#0"; "StoneXP.ocx"
Begin VB.Form index 
   BorderStyle     =   0  'None
   Caption         =   "学生信息管理系统"
   ClientHeight    =   90
   ClientLeft      =   105
   ClientTop       =   105
   ClientWidth     =   105
   LinkTopic       =   "Form3"
   Picture         =   "index.frx":0000
   ScaleHeight     =   98.684
   ScaleMode       =   0  'User
   ScaleWidth      =   105
   ShowInTaskbar   =   0   'False
   StartUpPosition =   2  '屏幕中心
   Begin StoneXP.XPButton XPButton2 
      Height          =   375
      Left            =   3720
      TabIndex        =   6
      Top             =   3240
      Width           =   1095
      _ExtentX        =   1931
      _ExtentY        =   661
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Caption         =   "取消"
      MousePointer    =   99
   End
   Begin StoneXP.XPButton XPButton1 
      Height          =   375
      Left            =   1800
      TabIndex        =   5
      Top             =   3240
      Width           =   975
      _ExtentX        =   1720
      _ExtentY        =   661
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Caption         =   "确定"
      MousePointer    =   99
   End
   Begin VB.TextBox Text2 
      Height          =   375
      IMEMode         =   3  'DISABLE
      Left            =   3120
      PasswordChar    =   "*"
      TabIndex        =   4
      Top             =   2400
      Width           =   1455
   End
   Begin VB.TextBox Text1 
      Height          =   375
      Left            =   3120
      TabIndex        =   3
      Top             =   1800
      Width           =   1455
   End
   Begin VB.Timer Timer2 
      Interval        =   3
      Left            =   6120
      Top             =   5160
   End
   Begin VB.Timer Timer1 
      Enabled         =   0   'False
      Interval        =   5
      Left            =   7080
      Top             =   5160
   End
   Begin VB.Label Label3 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "密  码:"
      BeginProperty Font 
         Name            =   "楷体_GB2312"
         Size            =   15.75
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   315
      Left            =   1680
      TabIndex        =   2
      Top             =   2520
      Width           =   1395
   End
   Begin VB.Label Label2 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "用户名:"
      BeginProperty Font 
         Name            =   "楷体_GB2312"
         Size            =   15.75
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   315
      Left            =   1680
      TabIndex        =   1
      Top             =   1800
      Width           =   1380
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "登 陆"
      BeginProperty Font 
         Name            =   "楷体_GB2312"
         Size            =   42
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   840
      Left            =   2160
      TabIndex        =   0
      Top             =   600
      Width           =   2145
   End
End
Attribute VB_Name = "index"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim power$

Private Sub Form_Load()
    toConnect
End Sub

Private Sub Text2_KeyPress(KeyAscii As Integer)
  If KeyAscii = 13 Then
    Call XPButton1_Click
  End If
End Sub

Private Sub Timer1_Timer()
  If index.Width > 700 Then
    index.Width = index.Width - 700
    index.Height = index.Height - 500
    index.Left = index.Left + 350
    index.Top = index.Top + 250
  Else
    If power = "admin" Then
        Teacher.Visible = True
        Unload Me
    Else
        Student.Visible = True
        Unload Me
    End If
  End If
End Sub

Private Sub Timer2_Timer()
  If index.Width < 7000 Then
    index.Width = index.Width + 700
    index.Height = index.Height + 500
    index.Left = index.Left - 350
    index.Top = index.Top - 250
  Else
    Timer2.Enabled = False
  End If
End Sub


Private Sub XPButton1_Click()
  sql = "select u_power from s_user where u_name='" & Trim(index.Text1.Text) & "' and u_pass='" & Trim(index.Text2.Text) & "'"
  
  Set rst = conn.Execute(sql)
  If rst.EOF = False Then
    power = rst.Fields(0).Value
    Timer1.Enabled = True
  Else
    MsgBox "用户名或密码错误!"
    Text1 = ""
    Text2 = ""
  End If
End Sub

Private Sub XPButton2_Click()
    End
End Sub

⌨️ 快捷键说明

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