精华内容
下载资源
问答
  • 学生管理系统(界面+源代码)

    千次阅读 2020-12-29 13:24:04
    学生管理系统(界面+源代码)》由会员分享,可在线阅读,更多相关《学生管理系统(界面+源代码)(16页珍藏版)》请在人人文库网上搜索。1、内蒙古信息工程系学 实 训 报 告系部:信息技术系课程名称:网站网页制作专业...

    《学生管理系统(界面+源代码)》由会员分享,可在线阅读,更多相关《学生管理系统(界面+源代码)(16页珍藏版)》请在人人文库网上搜索。

    1、内蒙古信息工程系学 实 训 报 告系部:信息技术系课程名称:网站网页制作专业班级:14计算机网络技术一班姓名:xxx任课老师:xxx实验实训项目名称网站制作实验类型验证型实验室思科网络实验室实验时间实验方案设计(步骤)实验目的:1. 熟练掌握SQL语句的编写。2. 掌握使用VS2010对网页的设计。实验步骤:1. 登录页面主要代码:protected void Button1_Click(object sender, EventArgs e)string username = TextBox1.Text;string password = TextBox2.Text;string connSt。

    2、r = server=(local);uid=sa;pwd=;database=StudentManager;SqlConnection conn = new SqlConnection(connStr);SqlCommand cmd = new SqlCommand(select * from UserInfo where username= + username + and password= + password + , conn);conn.Open();SqlDataReader reader = cmd.ExecuteReader();/记?录?集if (reader.Read()。

    3、Response.Redirect(main.aspx);elseLabel1.Text = 用?户名?或者?密码?错洙?误!?!?;conn.Close();2. 主页面+用户信息管理页面左侧主要运用了TreeView控件,然后用户信息运用了GridView控件,链接数据源,在页面中展示用户信息,主要代码: DeleteCommand=DELETE FROM UserInfo WHERE Userid = Userid InsertCommand=INSERT INTO UserInfo (Userid, UserName, Password, Email) VALUES (Userid, 。

    4、UserName, Password, Email) SelectCommand=SELECT * FROM UserInfo UpdateCommand=UPDATE UserInfo SET UserName = UserName, Password = Password, Email = Email WHERE Userid = Userid3. 学籍信息添加页面主要代码:protected void Button1_Click(object sender, EventArgs e)string connStr = server=(local);uid=sa;pwd=;database=。

    5、StudentManager;SqlConnection conn = new SqlConnection(connStr);SqlCommand cmd = new SqlCommand(insert into StudentXj(Sno,Sname,Ssex,Sbrithday,DepartNo,ClassNo,Tel,Srxtime,xuezhi,xueli,address,youbian,zzmm,pingjia)values( + this.TextBox1.Text + , + this.TextBox2.Text + , + RadioButtonList1.Text + , +。

    6、 this.TextBox3.Text + , + this.TextBox12.Text + , + this.TextBox4.Text + , + this.TextBox5.Text + , + this.TextBox6.Text + , + this.TextBox7.Text + , + this.TextBox8.Text + , + this.TextBox9.Text + , + this.TextBox10.Text + , + DropDownList1.Text + , + this.TextBox11.Text + ), conn);conn.Open();cmd.。

    7、ExecuteNonQuery();conn.Close();4. 学籍信息修改本页面也是用GridView控件,与数据库连接,展示出学籍信息,然后生成“修改”,单击“修改”方可进行修改,主要代码: DeleteCommand=DELETE FROM StudentXj WHERE Sno = Sno InsertCommand=INSERT INTO StudentXj (Sno, Sname, Ssex, Sbrithday, DepartNo, ClassNo, Tel, Srxtime, xuezhi, xueli, address, youbian, zzmm, pingjia) V。

    8、ALUES (Sno, Sname, Ssex, Sbrithday, DepartNo, ClassNo, Tel, Srxtime, xuezhi, xueli, address, youbian, zzmm, pingjia) SelectCommand=SELECT * FROM StudentXj UpdateCommand=UPDATE StudentXj SET Sname = Sname, Ssex = Ssex, Sbrithday = Sbrithday, DepartNo = DepartNo, ClassNo = ClassNo, Tel = Tel, Srxtime 。

    9、= Srxtime, xuezhi = xuezhi, xueli = xueli, address = address, youbian = youbian, zzmm = zzmm, pingjia = pingjia WHERE Sno = Sno5. 学籍信息查询本页面运用GridView控件展示出学生信息,设置三种条件查询,按学号、姓名、系别方可查询出学生信息,主要代码:protected void Page_Load(object sender, EventArgs e)string connStr = server=(local);uid=sa;pwd=;database=Stu。

    10、dentManager;SqlConnection conn = new SqlConnection(connStr);SqlDataAdapter da = new SqlDataAdapter(select * from StudentXj, conn);DataSet ds = new DataSet();da.Fill(ds);GridView1.DataSource = ds;GridView1.DataBind();protected void Button1_Click(object sender, EventArgs e)string connStr = server=(loc。

    11、al);uid=sa;pwd=;database=StudentManager;SqlConnection conn = new SqlConnection(connStr);SqlDataAdapter da = new SqlDataAdapter(select * from StudentXj where Sno= + this.TextBox1.Text + or Sname= + this.TextBox2.Text + or DepartNo= + this.TextBox3.Text + , conn);DataSet ds = new DataSet();da.Fill(ds)。

    12、;GridView1.DataSource = ds;GridView1.DataBind();6. 课程信息添加主要代码:protected void Button1_Click(object sender, EventArgs e)string connStr = server=(local);uid=sa;pwd=;database=StudentManager;SqlConnection conn = new SqlConnection(connStr);SqlCommand cmd = new SqlCommand(insert into Course(Courseid,Course。

    13、Name,Credit,Datetime)values( + this.TextBox1.Text + , + this.TextBox2.Text + , + this.TextBox3.Text + , + this.TextBox4.Text + ), conn);conn.Open();cmd.ExecuteNonQuery();conn.Close();Label1.Text = 添?加成功|!?!?!?;7. 课程信息修改本页面运用了GridView控件,并启用了“修改”,单击修改方可实现修改功能,主要代码: DeleteCommand=DELETE FROM Course WHE。

    14、RE Courseid = Courseid InsertCommand=INSERT INTO Course (Courseid, CourseName, Credit, Datetime) VALUES (Courseid, CourseName, Credit, Datetime) SelectCommand=SELECT * FROM Course UpdateCommand=UPDATE Course SET CourseName = CourseName, Credit = Credit, Datetime = Datetime WHERE Courseid = Courseid8。

    15、. 课程信息查询添加了GridView控件,使它与数据源连接,查询课程信息分三个条件,按课程编号、课程名称、日期方可查询,主要代码:protected void Page_Load(object sender, EventArgs e)string connStr = server=(local);uid=sa;pwd=;database=StudentManager;SqlConnection conn = new SqlConnection(connStr);SqlDataAdapter da = new SqlDataAdapter(select * from Course, conn)。

    16、;DataSet ds = new DataSet();da.Fill(ds);GridView1.DataSource = ds;GridView1.DataBind();protected void Button1_Click(object sender, EventArgs e)string connStr = server=(local);uid=sa;pwd=;database=StudentManager;SqlConnection conn = new SqlConnection(connStr);SqlDataAdapter da = new SqlDataAdapter(se。

    17、lect * from Course where Courseid= + this.TextBox1.Text + or CourseName= + this.TextBox2.Text + or Datetime= + this.TextBox3.Text + , conn);DataSet ds = new DataSet();da.Fill(ds);GridView1.DataSource = ds;GridView1.DataBind();9. 课程信息删除 主要代码: DeleteCommand=DELETE FROM Course WHERE Courseid = Courseid。

    18、 InsertCommand=INSERT INTO Course (Courseid, CourseName, Credit, Datetime) VALUES (Courseid, CourseName, Credit, Datetime) SelectCommand=SELECT * FROM Course UpdateCommand=UPDATE Course SET CourseName = CourseName, Credit = Credit, Datetime = Datetime WHERE Courseid = Courseid10. 学生成绩添加主要代码:protecte。

    19、d void Button1_Click(object sender, EventArgs e)string connStr = server=(local);uid=sa;pwd=;database=StudentManager;SqlConnection conn = new SqlConnection(connStr);SqlCommand cmd = new SqlCommand(insert into StudentCJ(Sno,Sname,CourseName,Score)values( + this.TextBox1.Text + , + this.TextBox2.Text +。

    20、 , + this.TextBox3.Text + , + this.TextBox4.Text + ), conn);conn.Open();cmd.ExecuteNonQuery();conn.Close();Label1.Text = 添?加成功|!?!?!?;11. 学生成绩修改主要代码: DeleteCommand=DELETE FROM StudentCJ WHERE Sno = Sno InsertCommand=INSERT INTO StudentCJ (Sno, Sname, CourseName, Score) VALUES (Sno, Sname, CourseName。

    21、, Score) SelectCommand=SELECT * FROM StudentCJ UpdateCommand=UPDATE StudentCJ SET Sname = Sname, CourseName = CourseName, Score = Score WHERE Sno = Sno12. 学生成绩查询添加了GridView控件,使它与数据源连接,查询课程信息分三个条件,按课程名称、学号、姓名方可查询,主要代码:protected void Page_Load(object sender, EventArgs e)string connStr = server=(local)。

    22、;uid=sa;pwd=;database=StudentManager;SqlConnection conn = new SqlConnection(connStr);SqlDataAdapter da = new SqlDataAdapter(select * from StudentCJ, conn);DataSet ds = new DataSet();da.Fill(ds);GridView1.DataSource = ds;GridView1.DataBind();protected void Button2_Click(object sender, EventArgs e)str。

    23、ing connStr = server=(local);uid=sa;pwd=;database=StudentManager;SqlConnection conn = new SqlConnection(connStr);SqlDataAdapter da = new SqlDataAdapter(select * from StudentCJ where CourseName= + this.TextBox1.Text + or Sno= + this.TextBox2.Text + or Sname= + this.TextBox3.Text + , conn);DataSet ds = new DataSet();da.Fill(ds);GridView1.DataSource = ds;GridView1.DataBind();13. 学生成绩删除 主要代码:asp:GridView ID=GridView1 runat=server。

    展开全文
  • class DLFrame extends JFrame implements ActionListener, ItemListener{// 登录界面JPanel p1 = null;JPanel p2 = null;JPanel p3 = null;JLabel userName = new JLabel("帐号:");JTextField txtUser = new ...

    3be8193f0039806deff97655d183976e.png

    class DLFrame extends JFrame implements ActionListener, ItemListener

    {// 登录界面

    JPanel p1 = null;

    JPanel p2 = null;

    JPanel p3 = null;

    JLabel userName = new JLabel("帐号:");

    JTextField txtUser = new JTextField();

    JLabel password = new JLabel("密码:");

    JPasswordField txtPwd = new JPasswordField(6);

    JLabel role = new JLabel("身份:");

    JComboBox cbrole = new JComboBox();

    JButton btnLogin = new JButton("登录");

    JButton btncz = new JButton("重置");

    JButton btnCancel = new JButton("取消");

    JLabel imageLabel;

    Icon image;

    static int OK = 1;

    static int CANCEL = 0;

    int actionCode = 0;

    Connection con = null;

    Statement stmt = null;

    ResultSet rs = null;

    int qxian = 0;

    public DLFrame() {// 构造方法

    super("登录界面");

    p1 = new JPanel();

    p2 = new JPanel();

    p3 = new JPanel();

    cbrole.addItem("管理员");

    cbrole.addItem("学生");

    cbrole.addItem("教师");

    image = new ImageIcon(" Picture\\23.jpg");

    imageLabel = new JLabel(image);

    p1.add(imageLabel);

    this.setLayout(new FlowLayout());

    this.setBounds(100, 100, 246, 345);

    p2.setLayout(new GridLayout(4, 2));

    p2.add(userName);

    p2.add(txtUser);

    p2.add(password);

    p2.add(txtPwd);

    p2.add(role);

    p2.add(cbrole);

    p3.add(btnLogin);

    p3.add(btncz);

    p3.add(btnCancel);

    this.add(p1);

    this.add(p2);

    this.add(p3);

    this.setResizable(true);

    this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

    this.show();

    btnLogin.addActionListener(this);

    cbrole.addItemListener(this);

    btncz.addActionListener(this);

    btnCancel.addActionListener(this);

    }

    public void connDB() { // 连接数据库

    try {

    Class.forName("com.mysql.jdbc.Driver");

    } catch (ClassNotFoundException e) {

    e.printStackTrace();

    }

    try {

    con = DriverManager.getConnection(

    "jdbc:mysql://localhost:3306/student",

    "root", "1234");

    stmt = con.createStatement();

    } catch (SQLException e) {

    e.printStackTrace();

    }

    }

    public void closeDB() // 关闭连接

    {

    try {

    stmt.close();

    con.close();

    } catch (SQLException e) {

    e.printStackTrace();

    }

    }

    public void itemStateChanged(ItemEvent e) {

    if (e.getStateChange() == ItemEvent.SELECTED) {

    JComboBox jcb = (JComboBox) e.getSource();

    qxian = jcb.getSelectedIndex();

    }

    }

    public void actionPerformed(ActionEvent e) {

    Object source = e.getSource();

    String un = null;

    String pw = null;

    boolean success = false;// 用于判断是否登录成功

    if (source == btnLogin) {

    if (txtUser.getText().equals("") || txtPwd.getText().equals("")) {// 判断是否输入了用户名和密码

    JOptionPane.showMessageDialog(null, "登录名和密码不能为空!");

    } else {

    this.connDB();

    try {

    rs = stmt.executeQuery("select * from unpw where qx="

    + qxian);

    while (rs.next()) {

    un = rs.getString("un").trim();

    pw = rs.getString("pw").trim();

    if (txtUser.getText().equals(un)) {

    if (txtPwd.getText().equals(pw)) {

    actionCode = OK;

    this.setVisible(false);

    if (qxian == 0) {

    new ManagerFrane();// 进入管理员界面

    }

    if (qxian == 1) {

    new StudentFrame();// 进入学生界面

    }

    success = true;

    break;

    } else {

    JOptionPane.showMessageDialog(null, "密码错误!");

    txtPwd.setText("");

    success = true;

    }

    }

    }

    if (!success) {

    JOptionPane.showMessageDialog(null, "登录名错误!");

    txtUser.setText("");

    txtPwd.setText("");

    }

    } catch (SQLException e1) {

    e1.printStackTrace();

    }

    }

    } else if (source == btncz) {

    txtUser.setText("");

    txtPwd.setText("");

    } else if (source == btnCancel) {

    System.exit(0);

    }

    }

    }

    标签:

    展开全文
  • 学生管理系统登录界面package javaapplication10;import java.awt.Color;import java.awt.Container;import java.awt.Cursor;import java.awt.Font;import java.awt.Image;import java.awt.event.ActionEvent;import...

    学生管理系统登录界面

    package javaapplication10;

    import java.awt.Color;

    import java.awt.Container;

    import java.awt.Cursor;

    import java.awt.Font;

    import java.awt.Image;

    import java.awt.event.ActionEvent;

    import java.awt.event.ActionListener;

    import javax.swing.ImageIcon;

    import javax.swing.JButton;

    import javax.swing.JCheckBox;

    import javax.swing.JComboBox;

    import javax.swing.JFrame;

    import javax.swing.JLabel;

    import javax.swing.JOptionPane;

    import javax.swing.JPasswordField;

    import javax.swing.JRootPane;

    import javax.swing.JTextField;

    public class XSGL extends JFrame{

    private static final long serialVersionUID = -6788045638380819221L;

    //用户名

    private JTextField ulName;

    //密码

    private JPasswordField ulPasswd;

    //小容器

    private JLabel j1;

    private JLabel j2;

    private JLabel j3;

    private JLabel j4;

    //小按钮

    private JButton b1;

    private JButton b2;

    private JButton b3;

    //复选框

    private JCheckBox c1;

    private JCheckBox c2;

    //列表框

    private JComboBoxcb1;

    /**

    * 初始化QQ登录页面

    * */

    public XSGL (){

    //设置登录窗口标题

    this.setTitle("学生选课系统");

    //去掉窗口的装饰(边框)

    //this.setUndecorated(true);

    //采用指定的窗口装饰风格

    this.getRootPane().setWindowDecorationStyle(JRootPane.NONE);

    //窗体组件初始化

    init();

    this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

    //设置布局为绝对定位

    this.setLayout(null);

    this.setBounds(0, 0, 355, 265);

    //设置窗体的图标

    Image img0 = new ImageIcon("F:/1.jpg").getImage();

    this.setIconImage(img0);

    //窗体大小不能改变

    this.setResizable(false);

    //居中显示

    this.setLocationRelativeTo(null);

    //窗体显示

    this.setVisible(true);

    }

    /**

    * 窗体组件初始化

    * */

    public void init(){

    //创建一个容器,其中的图片大小和setBounds第三、四个参数要基本一致(需要自己计算裁剪)

    Container container = this.getContentPane();

    j1 = new JLabel();

    //设置背景图片

    Image img1 = new ImageIcon("F:/2.jpg").getImage();

    j1.setIcon(new ImageIcon(img1));

    j1.setBounds(0, 0, 355, 265);

    //LOGE设定

    j2 = new JLabel();

    Image img2 = new ImageIcon("D:/hdimg.png").getImage();

    j2.setIcon(new ImageIcon(img2));

    j2.setBounds(40, 95, 50, 53);

    //用户名输入框//注册账号

    j3 = new JLabel("用户名");

    ulName = new JTextField();

    ulName.setBounds(100, 100, 150, 20);

    //注册账号

    j3 = new JLabel("用户名");

    j3.setBounds(260, 100, 70, 20);

    //密码输入框

    ulPasswd = new JPasswordField();

    ulPasswd.setBounds(100, 130, 150, 20);

    //找回密码

    j4= new JLabel("密码");

    j4.setBounds(260, 130, 70, 20);

    //记住密码

    c1 = new JCheckBox("记住密码");

    c1.setBounds(105, 155, 80, 15);

    //自动登陆

    c2 = new JCheckBox("自动登陆");

    c2.setBounds(185, 155, 80, 15);

    //用户登陆状态选择

    cb1 = new JComboBox();

    cb1.addItem("学生");

    cb1.addItem("老师");

    cb1.addItem("管理");

    cb1.setBounds(40, 150, 55, 20);

    //登陆按钮

    b1 = new JButton("登录");

    //设置字体和颜色和手形指针

    b1.setFont(new Font("宋体", Font.PLAIN, 12));

    b1.setForeground(Color.RED);

    b1.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));

    b1.setBounds(280, 200, 65, 20);

    //给按钮添加

    b1.addActionListener(new ActionListener() {

    @Override

    public void actionPerformed(ActionEvent e) {

    String cmd = e.getActionCommand();

    if("登录".equals(cmd)){

    String username = ulName.getText();

    String userpassword = ulPasswd.getText();

    if(username.equals("20155104009") && userpassword.equals("20155104009")){

    JOptionPane.showConfirmDialog(null, "登录成功");

    }else{

    JOptionPane.showConfirmDialog(null, "登录失败");

    }

    }

    }

    });

    //多账号

    b2 = new JButton("注册");

    b2.setBounds(5, 200, 75, 20);

    //设置

    b3 = new JButton("设置");

    b3.setBounds(100, 200, 65, 20);

    //所有组件用容器装载

    j1.add(j2);

    j1.add(j3);

    j1.add(j4);

    j1.add(c1);

    j1.add(c2);

    j1.add(cb1);

    j1.add(b1);

    j1.add(b2);

    j1.add(b3);

    container.add(j1);

    container.add(ulName);

    container.add(ulPasswd);

    }

    public static void main(String[] args) {

    new XSGL();

    }

    }

    21aec6250cc16989d426b161e1fcd8c7.png

    展开全文
  • PHP简单的学生管理系统代码

    千次阅读 2021-03-04 13:33:05
    就用学生管理这个项目来让大家熟悉一下PHP混编; //大家通过字面量来理解PHP文件名吧!!! 首先要的创建所需要的PHP文件: 公用PHP文件 public.php; 登录注册所需要的PHP文件 login.php;logindo.php;loginout....

    说到混编呢!像刚进入PHP学习的同志们呢应该是一脸懵的,混编???什么鬼。混编是一个怎么样的存在呢,接下来就由我来跟大家讲解一下吧。

    对PHP的理解

    PHP 是一种创建动态交互性站点的强有力的服务器端脚本语言。它可嵌入到 HTML中,尤其适合 web 开发。PHP可以包容HTML标签;实用较强。
    就用学生管理这个项目来让大家熟悉一下PHP混编;

    //大家通过字面量来理解PHP文件名吧!!!
    首先要的创建所需要的PHP文件:

    公用PHP文件
    public.php;

    登录注册所需要的PHP文件
    login.php;logindo.php;loginout.php;register.php;registerdo.php;newpassword.php;newpassworddo.php;

    学生基本信息页面所需要的PHP文件
    index.php ;insert.php;insertdo.php;edit.php;editdo.php;
    delete.php;mouse.php;query.php;

    学生成绩管理页面所需要的PHP文件
    score.php;insertscore.php;insertscoredo.php;editscore.php;editdoscore.php;deletescore.php;scorequery.php;

    学生科目管理页面所需要的PHP文件
    subject.php;insertsubject.php;insertsubjectdo.php;editsubject.php;editsubjectdo.php;deletesubject.php;subjectquery.php;

    公用文件public.php
    创建的公共的文件的目的是不用每个PHP文件连接数据库都这么麻烦,

    <?php
    //连接数据库
    $host = 'localhost';//连接用户
    $user = 'root';//数据库名称
    $pass = 'root';数据库密码
    $conn = mysqli_connect($host,$user,$pass);//连接数据库
    if(!$conn)
    {
    	die('连接错误:'. mysql_error(conn));//判断是否出错
    
    }	
    echo '数据库连接成功';//用来测试是否连接成功
    mysqli_select_db($con,'数据库名称');//选择
    数据库
    ?>
    

    登录注册的代码部分:
    登录,login.php:

    <!DOCTYPE html>
    <?php session_start()?><!--开启session用来存储账号-->
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>系统登录</title>
    <!-- BOOTSTRAP STYLES-->
    <link href="css/bootstrap.css" rel="stylesheet" />
    <!-- FONTAWESOME STYLES-->
    <link href="css/font-awesome.css" rel="stylesheet" />
    <!-- CUSTOM STYLES-->
    <link href="css/custom.css" rel="stylesheet" />
    <!--验证码连接js-->
    <script src="js/gVerify.js" type="text/javascript" charset="utf-8"></script>
    </head>
    <body>
    	<div class="container">
    		<div class="row text-center ">
    			<div class="col-md-12">
    				<br /> <br />
    				<h2>用户登录</h2>
    				<h5>(授权访问)</h5>
    				<br />
    			</div>
    		</div>
    		<div class="row ">
    			<div
    				class="col-md-4 col-md-offset-4 col-sm-6 col-sm-offset-3 col-xs-10 col-xs-offset-1">
    				<div class="panel panel-default">
    					<div class="panel-heading">
    						<strong> 请输入登录信息 </strong>
    					</div>
    					<div class="panel-body">
    						<form role="form" action='logindo.php' method='post'>
    							<br />
    							<div class="form-group input-group">
    								<span class="input-group-addon"><i class="fa fa-tag"><img src="img/标签.png" style="height: 15px;width: 15px"></i></span>
    								<input type="text" class="form-control" placeholder="在此输入用户名"
    									name='username' />
    							</div>
    							<div class="form-group input-group">
    								<span class="input-group-addon"><i class="fa fa-lock"><img src="img/锁.png" style="height: 15px;width: 15px"></i></span>
    								<input type="password" class="form-control" placeholder="在此输入密码"
    									name='passcode' />
    							</div>
    							<div class="form-group input-group">
    								<span class="input-group-addon"><i class="fa fa-lock"><img src="img/锁.png" style="height: 15px;width: 15px"></i></span>
    								<input type="text" class="form-control" placeholder="在此输入验证码"
    									name='code' id='code_input'/>
    							</div>
    							<div class="form-group input-group" id="v_container"></div>
    							<input type="hidden" name="ying" id="here">
    							<div class="form-group">
    								<label class="checkbox-inline"> <input type="checkbox" /> 记住密码
    								</label> <span class="pull-right"> <a href="#">忘记密码 ? </a>
    								</span>
    							</div>
    							<input type='submit' class="btn btn-primary " value='登录' name='submit'/>
    							<hr />
    							未注册 ? <a href="register.php">点这儿 </a>
    						</form>
    					</div>
    				</div>
    			</div>
    		</div>
    	</div>
    </body>
    <script type="text/javascript">
    	var verifyCode = new GVerify("v_container");//实例化验证码
    	var yanzheng=document.getElementById("here");//用来判断验证码
    	var canvas=document.getElementById("verifyCanvas");//获取画布
    	yanzheng.value=verifyCode.options.code;//让验证码同步到输入框中
     </script>
    </html>
    

    验证码js文件:
    gVerify.js

    !(function(window, document) {
    	function GVerify(options) { //创建一个图形验证码对象,接收options对象为参数
    		this.options = { //默认options参数值
    			id: "", //容器Id
    			canvasId: "verifyCanvas", //canvas的ID
    			width: "100", //默认canvas宽度
    			height: "30", //默认canvas高度
    			type: "blend", //图形验证码默认类型blend:数字字母混合类型、number:纯数字、letter:纯字母
    			code: ""
    		}
    		
    		if(Object.prototype.toString.call(options) == "[object Object]"){//判断传入参数类型
    			for(var i in options) { //根据传入的参数,修改默认参数值
    				this.options[i] = options[i];
    			}
    		}else{
    			this.options.id = options;
    		}
    		
    		this.options.numArr = "0,1,2,3,4,5,6,7,8,9".split(",");
    		this.options.letterArr = getAllLetter();
    
    		this._init();
    		this.refresh();
    	}
    
    	GVerify.prototype = {
    		/**版本号**/
    		version: '1.0.0',
    		
    		/**初始化方法**/
    		_init: function() {
    			var con = document.getElementById(this.options.id);
    			var canvas = document.createElement("canvas");
    			this.options.width = con.offsetWidth > 0 ? con.offsetWidth : "100";
    			this.options.height = con.offsetHeight > 0 ? con.offsetHeight : "30";
    			canvas.id = this.options.canvasId;
    			canvas.width = this.options.width;
    			canvas.height = this.options.height;
    			canvas.style.cursor = "pointer";
    			canvas.innerHTML = "您的浏览器版本不支持canvas";
    			con.appendChild(canvas);
    			var parent = this;
    			canvas.onclick = function(){
    				parent.refresh();
    			}
    		},
    		
    		/**生成验证码**/
    		refresh: function() {
    			this.options.code = "";
    			var canvas = document.getElementById(this.options.canvasId);
    			if(canvas.getContext) {
    				var ctx = canvas.getContext('2d');
    			}else{
    				return;
    			}
    			
    			ctx.textBaseline = "middle";
    
    			ctx.fillStyle = randomColor(180, 240);
    			ctx.fillRect(0, 0, this.options.width, this.options.height);
    
    			if(this.options.type == "blend") { //判断验证码类型
    				var txtArr = this.options.numArr.concat(this.options.letterArr);
    			} else if(this.options.type == "number") {
    				var txtArr = this.options.numArr;
    			} else {
    				var txtArr = this.options.letterArr;
    			}
    
    			for(var i = 1; i <= 4; i++) {
    				var txt = txtArr[randomNum(0, txtArr.length)];
    				this.options.code += txt;
    				ctx.font = randomNum(this.options.height/2, this.options.height) + 'px SimHei'; //随机生成字体大小
    				ctx.fillStyle = randomColor(50, 160); //随机生成字体颜色		
    				ctx.shadowOffsetX = randomNum(-3, 3);
    				ctx.shadowOffsetY = randomNum(-3, 3);
    				ctx.shadowBlur = randomNum(-3, 3);
    				ctx.shadowColor = "rgba(0, 0, 0, 0.3)";
    				var x = this.options.width / 5 * i;
    				var y = this.options.height / 2;
    				var deg = randomNum(-30, 30);
    				/**设置旋转角度和坐标原点**/
    				ctx.translate(x, y);
    				ctx.rotate(deg * Math.PI / 180);
    				ctx.fillText(txt, 0, 0);
    				/**恢复旋转角度和坐标原点**/
    				ctx.rotate(-deg * Math.PI / 180);
    				ctx.translate(-x, -y);
    			}
    			/**绘制干扰线**/
    			for(var i = 0; i < 4; i++) {
    				ctx.strokeStyle = randomColor(40, 180);
    				ctx.beginPath();
    				ctx.moveTo(randomNum(0, this.options.width), randomNum(0, this.options.height));
    				ctx.lineTo(randomNum(0, this.options.width), randomNum(0, this.options.height));
    				ctx.stroke();
    			}
    			/**绘制干扰点**/
    			for(var i = 0; i < this.options.width/4; i++) {
    				ctx.fillStyle = randomColor(0, 255);
    				ctx.beginPath();
    				ctx.arc(randomNum(0, this.options.width), randomNum(0, this.options.height), 1, 0, 2 * Math.PI);
    				ctx.fill();
    			}
    		},
    		
    		/**验证验证码**/
    		validate: function(code){
    			var code = code.toLowerCase();
    			var v_code = this.options.code.toLowerCase();
    			console.log(v_code);
    			if(code == v_code){
    				return true;
    			}else{
    				this.refresh();
    				return false;
    			}
    		}
    	}
    	/**生成字母数组**/
    	function getAllLetter() {
    		var letterStr = "a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,0,1,2,3,4,5,6,7,8,9";
    		return letterStr.split(",");
    	}
    	/**生成一个随机数**/
    	function randomNum(min, max) {
    		return Math.floor(Math.random() * (max - min) + min);
    	}
    	/**生成一个随机色**/
    	function randomColor(min, max) {
    		var r = randomNum(min, max);
    		var g = randomNum(min, max);
    		var b = randomNum(min, max);
    		return "rgb(" + r + "," + g + "," + b + ")";
    	}
    	window.GVerify = GVerify;
    })(window, document);
    

    登录功能php
    logindo.php

    <?php
     header("Content-Type: text/html; charset=utf8");//防止乱码
     if(!isset($_POST["submit"])){
      exit("错误执行");
     }//检测是否有submit操作 
     include('public.php');//连接数据库
     session_start();//开启session
     $name=$_POST['username'];//获取账号
     $pass=md5($_POST['passcode']);//获取密码
     $code=$_POST['code'];//获取验证码
     $hide=$_POST['ying'];//获取隐藏验证码
    //  echo $name,$pass,$code;
     $_SESSION['name']=$name;//存储账号用来首页显示
     //echo $_SESSION['name'];//测试是否存储成功
     if($code!=$hide){//判断验证码是否正确
         echo "<script>alert('验证码错误');
         location.href = 'login.php';
         </script>";//判断错误返回登录页
     }else{
          if($name && $pass){
              $sql = "select * from account where name = '$name' and pass='$pass'";//检测数据库是否有对应的name和pass的sql
              $result = mysqli_query($conn,$sql);//执行sql
              $rows=mysqli_num_rows($result);//返回一个数值
              if($rows){
                  echo "<script>alert('登陆成功');
                  location.href = 'index.php';
                  </script>";//账号密码判断成功进入首页
              }else{
                  echo "<script>alert('账号密码错误,重新输入');
                  location.href = 'login.php';
                  </script>";//账号密码有误
              }
              echo "<script>alert('验证码正确');</script>";
          }else{
              echo "<script>alert('账号密码填写不完整');
              location.href = 'login.php';
              </script>";//信息填写不完整
          }
     }
     mysqli_close($conn);//关闭数据库
     ?>
    

    注册页面
    register.php

    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>  
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Insert title here</title>
    </head>
    <body>
    	<h1 align='center'>欢迎注册</h1>
    	<hr>
    	<form action="registerdo.php" method='post'>
    		<label>用户名:</label><input type='text' name='username' /> 
    		<label>密码:</label><input type='text' name='password' /> 
    		<input type='submit' name='hh' value='提交' />
    	</form>
    </body>
    </html>
    

    注册php部分

    <?php 
    header("Content-Type: text/html; charset=utf8");//防止乱码
    if(!isset($_POST['hh'])){
        exit("错误执行");
    }//判断是否有submit操作
    include('public.php');//连接数据库
    $name=$_POST["username"];//获取账号
    $pass=md5($_POST["password"]);//获取密码
    //echo $name,$pass;//测试是否获取账号密码
    $sql="insert into account(name,pass) values ('$name','$pass')";//sql语句进行添加数据
    $rel=mysqli_query($conn,$sql);//执行sql语句
    if(!$rel){
        die('error: ' . mysqli_error($conn));//跳出错误
    }else{
        echo "<script>alert('注册成功');
        location.href = 'login.php';</script>";//跳转页面
    }
    mysqli_close($conn);//关闭数据库
     ?>
    

    首页页面
    index.php

    <!DOCTYPE html>
    <?php session_start();?>
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>学生信息管理系统</title>
    <!-- BOOTSTRAP STYLES-->
    <link href="css/bootstrap.css" rel="stylesheet" />
    <!-- FONTAWESOME STYLES-->
    <link href="css/font-awesome.css" rel="stylesheet" />
    <!-- MORRIS CHART STYLES-->
    <link href="css/morris-0.4.3.min.css" rel="stylesheet" />
    <!-- CUSTOM STYLES-->
    <link href="css/custom.css" rel="stylesheet" />
    <!--连接jquery-->
    <script src="js/jquery.js" type="text/javascript" charset="utf-8"></script>
    <!--css样式修改-->
    <style type="text/css">
    .part{
        display: flex;
        align-items: center;
    }
    .turn{
        margin-left:20%;
    }
    .turn ul{
        display:flex;
        align-items: center;
    }
    li{
        list-style:none; 
    }
    .turn ul li a {
        padding: 4px;
        border:1px solid #f0f0f0;
        text-decoration: none;
        color: black;
        
    }
    </style>
        </head>
        <body>
        <div id="wrapper">
        <nav class="navbar navbar-default navbar-cls-top " role="navigation"
            style="margin-bottom: 0">
            <div class="navbar-header">
            <button type="button" class="navbar-toggle" data-toggle="collapse"
                data-target=".sidebar-collapse">
                <span class="sr-only">Toggle navigation</span> <span
                class="icon-bar"></span> <span class="icon-bar"></span> <span
                class="icon-bar"></span>
                </button>
                
                </div>
                <div
                style="color: white; padding: 15px 50px 5px 50px; float: right; font-size: 16px;">
                <img src="img/user.jpg" style="height: 30px;width: 30px">
                用户名:<span><?php echo $_SESSION['name'];if($_SESSION['name']==null){
    				echo "<script>location.href='login.php'</script>";
    			}?></span>&nbsp;&nbsp;<a href='newpassword.php' class="btn btn-success">修改密码</a>&nbsp;&nbsp;<a href="loginout.php" class="btn btn-danger square-btn-adjust">退出登录</a>
    			</div>
    		</nav>
    		<!-- /. NAV TOP  -->
    		<nav class="navbar-default navbar-side" role="navigation">
    			<div class="sidebar-collapse">
    				<ul class="nav" id="main-menu">
    					
    					<li><a class='active-menu' href="index.php"><i
    							class="fa   fa-user fa-3x"><img src="img/人.png" style="height: 40x;width: 40px"></i>学生信息管理</a></li>
    					<li><a  href="score.php"><i
    							class="fa fa-university fa-3x"><img src="img/宫殿.png" style="height: 40x;width: 40px"></i>学生成绩管理</a></li>
    					<li><a  href="subject.php"><i
    							class="fa fa-pencil fa-3x"><img src="img/铅笔.png" style="height: 40x;width: 40px"></i> 科目管理</a></li>
    				</ul>
    			</div>
    		</nav>
    		<!-- /. NAV SIDE  -->
    <!-- /. NAV SIDE  -->
    <div id="page-wrapper">
    	<div id="page-inner">
    		<div class="row">
    			<div class="col-md-12">
    				<h2>学生基本信息</h2>
    			</div>
    		</div>
    		<!-- /. ROW  -->
    		<hr />
    		<div class="row">
    			<div class="col-md-12">
    				<!-- Advanced Tables -->
    				<div class="panel panel-default">
    					<div class="panel-heading"><a href='insert.php' class="btn btn-primary">增加学生信息</a></div>
    					<div class="add_b">
    						<div class="b_a">
    							<select name="page" class="page" onchange="gradeChange()">
    								<option value="5">5</option>
    								<option value="10">10</option>
    								<option value="25">25</option>
    								<option value="50">50</option>
    							</select>
    							<p>每页显示条数</p>
    						</div>
    						<p class="b_b">查找:<input type="search" name="search" class="sear" onkeyup="up()"></p>
    					</div>
    					<div class="panel-body">
    						<div class="table-responsive">
    							<table class="table table-striped table-bordered table-hover" id="dataTables-example">
    								<thead>
    									<tr>
    										<th>学号</th>
    										<th>姓名</th>
    										<th>班级</th>
    										<th>生日</th>
    										<th>性别</th>
    										<th>民族</th>
    										<th>操作</th>
    									</tr>
    								</thead>
    								    <?php
    									include('public.php');//连接数据库
    									@$page=!empty($_GET['page'])?$_GET['page']:1;//页码,请求自身的值,如果自身是空值会跳出错误,@用来屏蔽错误;
    									@$pose=!empty($_GET['pose'])?$_GET['pose']:5;//每页显示条数,与上面同理
    									$sql = "select * from basic limit " . (($page-1)*$pose) . "," . $pose;//限制输出,页码先减一,然后乘以条数可以得出输出的起始位置;
    									$rel = mysqli_query($conn,$sql);//执行SQL语句
    									while($row = mysqli_fetch_assoc($rel))
    									{
    										echo "<tr><td οnmοuseοver=show($row[id]) οnmοuseοut=out()>".$row["num"]."</td><td οnmοuseοver=show($row[id]) οnmοuseοut=out()>".$row["name"]."</td><td οnmοuseοver=show($row[id]) οnmοuseοut=out()>".$row["class"]."</td><td οnmοuseοver=show($row[id]) οnmοuseοut=out()>".$row["day"]."</td><td οnmοuseοver=show($row[id]) οnmοuseοut=out()>".$row["sex"]."</td><td οnmοuseοver=show($row[id]) οnmοuseοut=out()>".$row["nation"]."</td><td><a href='edit.php?id=$row[id]' class='a'><input type='button' value='编辑' class='update'/></a>&nbsp;&nbsp;&nbsp;&nbsp;<a href='delete.php?id=$row[id]'><input type='button' value='删除' class='datele'/></a></td></tr>";
    									}
    									$sql="select count(*) as tobal from basic";//查询总数据,使用别名进行输出作用
    									$res=mysqli_query($conn,$sql);//执行SQL语句
    									$resu=mysqli_fetch_array($res);//关联数组,返回字段
    									@$pages=ceil($resu['tobal']/$pose);//总页数,ceil做到一个取整的作用
    								?>
    								</table>
    								<!--分页部分-->
    								<div class="part">
    								    <!--显示总记录数-->
    								    <div class="sum">
    								        <p>总记录数:<?php echo "".$resu['tobal']."";//通过上面的关联数组进行取值,获取到总页数?></p>
    								    </div>
    								    <!--上下翻页-->
    								    <div class="turn">
    								        <ul>
    								            <li><a href="?page=<?php echo $page==1;//页码赋值为一?>">首页</a></li><!--首页-->
    								            <li><a href="?page=<?php echo $page==1?1:($page-1)?>">上页</a></li><!--上页-->
    								            <?php
    								            for($i=1;$i<=$pages;$i++){//循环总页数,进行页码输出
    								                $fio=$i;//页码
    								                if($page==$fio){//判断页码相等输出页码,
    								                    echo "<li style='background-color:#55aaff;'><a href='?page=$fio' style='color:white;'>$fio</a></li>";
    								                }else{
    								                    echo "<li><a href='?page=$fio'>$fio</a></li>";
    								                }
    								            }
    								            if($page<$pages){//判断页码小于总记录数输出下页按钮
    								                echo '<li><a href="?page='.($page+1).'">下一页</a></li>';//页码加一进行跳转页面
    								            }
    								            ?>
    								            <li><a href="?page=<?php echo $fio;?>">尾页</a></li><!--尾页-->
    								        </ul>
    								    </div>
    								</div>
    						</div>
    						<div class="table-responsive1"></div>
    						<input type="hidden" class="inyer" value="<?php $pa=$_GET['page']; echo $pa; ?>">
    						<input type="hidden" class="insea" value="<?php $se=$_GET['sear']; echo $se; ?>">
    						<input type="hidden" class="indow" value="<?php $pa=$_GET['down']; echo $pa; ?>">
    					</div>
    					<!--鼠标事件触发过后的存放的内容-->
    					<div id="grade"></div>
    					<div id="grade1">
    					    <table border="1px"style="border-collapse: collapse;" class="table table-striped table-bordered table-hover" cellpadding="4px">
    					        <tr><td width="150px" height="40px">学生</td>
    						    <td width="150px" height="40px">科目</td>
    						    <td width="150px" height="40px">成绩</td></tr>
    						</table>
    					</div>
    				</div>
    			</div>
    		</div>
    	</div>
    </div>
    </div>
    
    </body>
    <!--事件添加-->
    <script type="text/javascript">
    // 鼠标事件触发
        function show(row){
            // console.log(row);
            $.ajax({
                data:{"row":row,},
    			url:"mouse.php",
    			type:"get",
    			success:function(data){
    			 //   console.log(data)
    			 $("#grade1").hide();//原有内容隐藏
    			 $("#grade").html("");//添加之前先清空
    			 $("#grade").append(data);//添加查询数据
    			}
            })
        }
        //鼠标事件离开
        function out(){
             $("#grade1").show();//原有内容显示
             $("#grade").html("");//清空内容
        }
        //搜索键盘事件
        function up(){
        // console.log(123);//测试事件是否触发
        var seek=$(".sear").val();//搜索框的值
        var down=$(".page").val();//获取下拉框的值也就是限制条数
            $.ajax({
                data:{
                    "sear":seek,//传值
                    "box":down,//下拉框值
                },
                url:"query.php",//路径,传值文件
                type:"get",//传值方式
                success:function(data){
                    // console.log(data);
                    $(".table-responsive").hide();//原有内容隐藏
                    $(".table-responsive1").html("");//添加之前先清空
                    $(".table-responsive1").append(data);//添加查询数据
                }
            })
        }
        
    </script>
    <script type="text/javascript">
    //下拉框事件
        function gradeChange(){
            var down=$(".page").val();//获取下拉框的值也就是限制条数
            // console.log(down);//测试是否获取成功
            var seek=$(".sear").val();//获取搜索框的值
            // console.log(seek)//测试是否获取成功
            $.ajax({
                data:{
                    "box":down,//下拉框值
                    "sear":seek,//搜索框值
                },
                url:"query.php",
                type:"get",
                success:function(data){
                   $(".table-responsive").hide();//原有内容隐藏
                   $(".table-responsive1").html("");//添加之前先清空
                   $(".table-responsive1").append(data);//添加查询数据
                }
            })
        }
    //搜索分页
    var inyer=$(".inyer").val();//页码
    var insea=$(".insea").val();//搜索值
    var indow=$(".indow").val();//下拉值
    if(insea!=''||indow!=''){
        var inyer=$(".inyer").val();//页码
        var insea=$(".insea").val();//搜索值
        var indow=$(".indow").val();//下拉值
        // console.log(inyer,insea,indow)
        $.ajax({
            data:{
                "page":inyer,//页码
                "sear":insea,//传值
                "box":indow,//下拉框值
            },
            url:"query.php",
            type:"get",
            success:function(data){
                document.getElementsByClassName("sear")[0].value=insea;//搜索框的值等于获取到的值
    			$(".page option[value='']").removeAttr("selected");//移除默认选项的选中状态  removeAttr("selected")
    			$(".page option[value='"+indow+"']").attr("selected","selected");//根据ajax返回的value值来动态选中相对应选项
    			 $(".table-responsive").hide();//原有内容隐藏
                 $(".table-responsive1").html("");//添加之前先清空
                 $(".table-responsive1").append(data);//添加查询数据
            }
        })
    }
    </script>
    </html>
    

    首页php部分

    <?php
    header("Content-Type: text/html; charset=utf8");//防止乱码
    include('public.php');//连接数据库
    $sear=$_GET["sear"];//查询值
    $seek=$_GET["box"];//下拉框值
    $page=!empty($_GET['page'])?$_GET['page']:1;//页码,请求自身的值,如果自身是空值会跳出错误,@用来屏蔽错误;
    @$pose=!empty($_GET['box'])?$_GET['box']:5;//每页显示条数,与上面同理
    if (strlen($sear)==0){//判断是否有值
        $sql="select * from basic limit " . (($page-1)*$pose) . "," . $pose;
    } else {
        $sql="select * from basic where name like binary '%$sear%' or class like binary '%$sear%' or day like binary '%$sear%' or sex like binary '%$sear%' or nation like binary '%$sear%' limit " . (($page-1)*$pose) . "," . $pose;//MySQL 5.5 like 不会跳出错误,MySQL 5.5以上会跳错误,在like之后加上binary就不报错了
    }
    $rel=mysqli_query($conn,$sql);
    if (!$rel) {
        printf("Error: %s\n", mysqli_error($conn));
        exit();
    }//用来检测SQL语句的错误;
    echo "<table class='table table-striped table-bordered table-hover' id='dataTables-example'>
    <thead>
    <tr>
    <th>学号</th>
    <th>姓名</th>
    <th>班级</th>
    <th>生日</th>
    <th>性别</th>
    <th>民族</th>
    <th>操作</th>
    </tr>
    </thead>";
    while($row = mysqli_fetch_assoc($rel)){
        echo "<tr><td οnmοuseοver=show($row[id]) οnmοuseοut=out()>".$row["num"]."</td><td οnmοuseοver=show($row[id]) οnmοuseοut=out()>".$row["name"]."</td><td οnmοuseοver=show($row[id]) οnmοuseοut=out()>".$row["class"]."</td><td οnmοuseοver=show($row[id]) οnmοuseοut=out()>".$row["day"]."</td><td οnmοuseοver=show($row[id]) οnmοuseοut=out()>".$row["sex"]."</td><td οnmοuseοver=show($row[id]) οnmοuseοut=out()>".$row["nation"]."</td><td><a href='edit.php?id=$row[id]' class='a'><input type='button' value='编辑' class='update'/></a>&nbsp;&nbsp;&nbsp;&nbsp;<a href='delete.php?id=$row[id]'><input type='button' value='删除' class='datele'/></a></td></tr>";
    }
    echo "</table>";
    $sql="select count(*) as tobal from basic where name like binary '%$sear%' or class like binary '%$sear%' or day like binary '%$sear%' or sex like binary '%$sear%' or nation like binary '%$sear%'";//查询总数据,使用别名进行输出作用
    $res=mysqli_query($conn,$sql);//执行SQL语句
    $resu=mysqli_fetch_array($res);//关联数组,返回字段
    @$pages=ceil($resu['tobal']/$pose);//总页数,ceil做到一个取整的作用
    echo "	<div class='part'>";
    //显示总记录数
    echo "<div class='sum'>";
    echo "<p>总记录数:".$resu['tobal']."</p></div>";//通过上面的关联数组进行取值,获取到总页数
    //上下翻页
    echo "<div class='turn'><ul>
    <li><a href='?page=".($page==1)."&sear=".$_GET['sear']."&down=".$_GET['box']."'>首页</a></li>
    <li><a href='?page=".($page-1)."&sear=".$_GET['sear']."&down=".$_GET['box']."'>上页</a></li>";
    for($i=1;$i<=$pages;$i++){//循环总页数,进行页码输出
        $fio=$i;//页码
        if($page==$fio){//判断页码相等输出页码,
            echo "<li style='background-color:#55aaff;'><a href='?page=".$fio."&sear=".$_GET['sear']."&down=".$_GET['box']."' style='color:white;'>".$fio."</a></li>";
        }else{
            echo "<li><a href='?page=".$fio."&sear=".$_GET['sear']."&down=".$_GET['box']."'>".$fio."</a></li>";
        }
    }
    if($page<$pages){//判断页码小于总记录数输出下页按钮
        echo "<li><a href='?page=".($page+1)."&sear=".$_GET['sear']."&down=".$_GET['box']."'>下一页</a></li>";//页码加一进行跳转页面
    }
    echo "<li><a href='?page=".$pages."&sear=".$_GET['sear']."&down=".$_GET['box']."'>尾页</a></li></ul></div></div>";
    mysqli_close($conn);//关闭数据库
    ?>
    

    修改密码页面
    newpassword.php

    <!DOCTYPE html>
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>修改用户密码</title>
    <!-- BOOTSTRAP STYLES-->
    <link href="css/bootstrap.css" rel="stylesheet" />
    <!-- FONTAWESOME STYLES-->
    <link href="css/font-awesome.css" rel="stylesheet" />
    <!-- CUSTOM STYLES-->
    <link href="css/custom.css" rel="stylesheet" />
    <!-- GOOGLE FONTS-->
    <link href='http://fonts.googleapis.com/css?family=Open+Sans'
    	rel='stylesheet' type='text/css' />
    </head>
    <body>
    	<div class="container">
    		<div class="row text-center ">
    			<div class="col-md-12">
    				<br /> <br />
    				<h2>修改用户密码</h2>
    				<br />
    			</div>
    		</div>
    		<div class="row ">
    			<div
    				class="col-md-4 col-md-offset-4 col-sm-6 col-sm-offset-3 col-xs-10 col-xs-offset-1">
    				<div class="panel panel-default">
    					<div class="panel-heading">
    						<strong> 请输入修改信息 </strong>
    					</div>
    					<div class="panel-body">
    						<form role="form" action='newpassworddo.php' method='post'>
    							<br />
    							<div class="form-group input-group">
    								<span class="input-group-addon"><i class="fa fa-lock"><img src="img/锁.png" style="height: 15px;width: 15px"></i></span>
    								<input type="password" class="form-control"
    									placeholder="在此输入原始密码" name='oldpassword' />
    							</div>
    							<div class="form-group input-group">
    								<span class="input-group-addon"><i class="fa fa-lock"><img src="img/锁.png" style="height: 15px;width: 15px"></i></span>
    								<input type="password" class="form-control"
    									placeholder="在此输入新密码" name='password' />
    							</div>
    							<div class="form-group input-group">
    								<span class="input-group-addon"><i class="fa fa-lock"><img src="img/锁.png" style="height: 15px;width: 15px"></i></span>
    								<input type="password" class="form-control"
    									placeholder="在此重复输入新密码" name='password1' />
    							</div>
    							<input type='submit' class="btn btn-primary " value='确认修改' name="submit" />
    						</form>
    					</div>
    				</div>
    			</div>
    		</div>
    	</div>
    </body>
    </html>
    

    修改密码功能php文件
    newpassworddo.php

    <?php
    session_start();//开启session用来查询账号
     header("Content-Type: text/html; charset=utf8");//防止乱码
     if(!isset($_POST["submit"])){
      exit("错误执行");
     }//检测是否有submit操作
    include('public.php');//连接数据库
    $name=$_SESSION["name"];//session存储的账号;
    $old=md5($_POST["oldpassword"]);//确认原密码,用来判断是否正确;
    $new1=md5($_POST["password"]);//新密码
    $new2=md5($_POST["password1"]);//确认新密码
    //echo $name,"<br/>",$old,"<br/>",$new1,"<br/>",$new2,"<br/>";//用来检测是否全部获取成功
    $sql="select * from account where name=$name and pass='$old'";//查询账号密码
    $rel=mysqli_query($conn,$sql);//执行sql语句
    $rows=mysqli_num_rows($rel);//返回一个数值
    // if (!$rel) {
    //     printf("Error: %s\n", mysqli_error($conn));
    //     exit();
    // }//用来检测SQL语句的错误;
    if($rows){//判断是否有返回值
        if($new1!=$new2){//判断两次密码是否一致
            echo "<script>alert('两次新密码填写不一致');
        location.href = 'newpassword.php';</script>";
        }else{
            $sql="update account set pass='$new1' where name=$name and pass='$old'";//进行修改
            $rel=mysqli_query($conn,$sql);//执行sql语句
            if(!$rel){
                echo "<script>alert('修改失败');location.href = 'newpassword.php';</script>";
            }else{
                echo "<script>alert('修改成功');location.href = 'index.php';</script>";
            }
        }
    }else{
        echo "<script>alert('原密码输入错误');location.href = 'newpassword.php';</script>";
    }
    mysqli_close($conn);//关闭数据库
    ?>
    

    退出登录PHP文件
    loginout.php

    <?php
    header("Content-Type: text/html; charset=utf8");//防止乱码
    session_start();//开启session
    session_destroy();//销毁session
    echo "<script>alert('退出成功');location.href='login.php'</script>";
    ?>
    

    添加学生信息
    insert.php

    <!DOCTYPE html>
    <?php session_start();?>
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>学生信息管理系统</title>
    <!-- BOOTSTRAP STYLES-->
    <link href="css/bootstrap.css" rel="stylesheet" />
    <!-- FONTAWESOME STYLES-->
    <link href="css/font-awesome.css" rel="stylesheet" />
    <!-- MORRIS CHART STYLES-->
    <link href="css/morris-0.4.3.min.css" rel="stylesheet" />
    <!-- CUSTOM STYLES-->
    <link href="css/custom.css" rel="stylesheet" />
        </head>
        <body>
        <div id="wrapper">
        <nav class="navbar navbar-default navbar-cls-top " role="navigation"
            style="margin-bottom: 0">
            <div class="navbar-header">
            <button type="button" class="navbar-toggle" data-toggle="collapse"
                data-target=".sidebar-collapse">
                <span class="sr-only">Toggle navigation</span> <span
                class="icon-bar"></span> <span class="icon-bar"></span> <span
                class="icon-bar"></span>
                </button>
                
                </div>
                <div
                style="color: white; padding: 15px 50px 5px 50px; float: right; font-size: 16px;">
                <img src="img/user.jpg" style="height: 30px;width: 30px">
                用户名:<span><?php echo $_SESSION['name'];if($_SESSION['name']==null){
    				echo "<script>location.href='login.php'</script>";
    			}?></span>&nbsp;&nbsp;<a href='newpassword.php' class="btn btn-success">修改密码</a>&nbsp;&nbsp;<a href="loginout.php"
    					class="btn btn-danger square-btn-adjust">退出登录</a>
    			</div>
    		</nav>
    		<!-- /. NAV TOP  -->
    		<nav class="navbar-default navbar-side" role="navigation">
    			<div class="sidebar-collapse">
    				<ul class="nav" id="main-menu">
    					
    					<li><a  href="index.php"><i
    							class="fa   fa-user fa-3x"><img src="img/人.png" style="height: 40x;width: 40px"></i>学生信息管理</a></li>
    					<li><a  href="score.php"><i
    							class="fa fa-university fa-3x"><img src="img/宫殿.png" style="height: 40x;width: 40px"></i>学生成绩管理</a></li>
    					<li><a  href="subject.php"><i
    							class="fa fa-pencil fa-3x"><img src="img/铅笔.png" style="height: 40x;width: 40px"></i> 科目管理</a></li>
    					
    				</ul>
    			</div>
    		</nav>
    		<!-- /. NAV SIDE  --><!-- /. NAV SIDE  -->
    <div id="page-wrapper">
    	<div id="page-inner">
    		<div class="row">
    			<div class="col-md-12">
    				<h2>增加学生基本信息</h2>
    			</div>
    		</div>
    		<!-- /. ROW  -->
    		<hr />
    		<div class="row">
    			<div class="col-md-6 col-md-offset-1">
    				<!-- class="col-md-4 col-md-offset-4 col-sm-6 col-sm-offset-3 col-xs-10 col-xs-offset-1"> -->
    				<div class="panel panel-default">
    					<div class="panel-heading">
    						<strong> 增加学生信息 </strong>
    					</div>
    					<div class="panel-body">
    						<form role="form" action="insertdo.php" method='post'>
    							<div class="form-group input-group">
    								<span class="input-group-addon"><i class="fa fa-circle-o-notch">
    										<img src="img/圆.png" style="height: 13x;width: 13px">学号</i></span> <input type="text" class="form-control"
    									placeholder="学号 " name='studentId' />
    							</div>
    							<div class="form-group input-group">
    								<span class="input-group-addon"><i class="fa fa-tag"><img src="img/标签.png" style="height: 13x;width: 13px"> 姓名</i></span>
    								<input type="text" class="form-control" placeholder=" 姓名"
    									name='name' />
    							</div>
    							<div class="form-group input-group">
    								<span class="input-group-addon"><i class="fa fa-tag"><img src="img/标签.png" style="height: 13x;width: 13px"> 班级</i></span>
    								<input type="text" class="form-control" placeholder="班级"
    									name='className' />
    							</div>
    							<div class="form-group input-group">
    								<span class="input-group-addon"><i class="fa fa-tag"><img src="img/标签.png" style="height: 13x;width: 13px"> 生日</i></span>
    								<input type="date" class="form-control" placeholder="生日"
    									id='birthday' name='birthday' />
    							</div>
    							<div class="form-group input-group">
    								<span class="input-group-addon"><i class="fa fa-tag"><img src="img/标签.png" style="height: 13x;width: 13px"> 性别</i></span>
    								<div align='left'>&nbsp;&nbsp;
    									<input type="radio" placeholder="性别" name='sex' value='男'/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="radio"
    										placeholder="性别" name='sex' value='女' /></div>
    							</div>
    							<div class="form-group input-group">
    								<span class="input-group-addon"><i class="fa fa-tag"><img src="img/标签.png" style="height: 13x;width: 13px"> 民族</i></span>
    								<input type="text" class="form-control" placeholder="民族"
    									name='nation' />
    							</div>
    							<input type='submit' class="btn btn-info" value='确认添加' name='submit' />
    						</form>
    					</div>
    				</div>
    			</div>
    		</div>
    	</div>
    </div>
    </body>
    </html>
    

    添加学生信息php文件
    insertdo.php

    <?php
    header("Content-Type: text/html; charset=utf8");//防止乱码
    if(!isset($_POST["submit"])){
        exit("错误执行");
    }//检测是否有submit操作 
    include('public.php');//连接数据库
    $num=$_POST['studentId'];//获取学号
    $name=$_POST['name'];//获取姓名
    $class=$_POST['className'];//获取班级
    $day=$_POST['birthday'];//获取生日
    $sex=$_POST['sex'];//获取性别
    $nation=$_POST['nation'];//获取民族
    //echo $num,"<br/>",$name,"<br/>",$class,"<br/>",$day,"<br/>",$sex,"<br/>",$nation,"<br/>";//检测是否获取成功基本信息
    $sql = "insert into basic(num,name,class,day,sex,nation) values ('$num','$name','$class','$day','$sex','$nation')";
    $rel = mysqli_query($conn,$sql);//执行sql语句
    if($rel){
        echo "<script>alert('添加成功');location.href = 'index.php';</script>";
    }else{
        echo "<script>alert('添加失败');location.href = 'insert.php';</script>";
    }
    mysqli_close($conn);//关闭数据库
    ?>
    

    编辑信息页面
    edit.php

    <!DOCTYPE html>
    <?php session_start();?>
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>学生信息管理系统</title>
    <!-- BOOTSTRAP STYLES-->
    <link href="css/bootstrap.css" rel="stylesheet" />
    <!-- FONTAWESOME STYLES-->
    <link href="css/font-awesome.css" rel="stylesheet" />
    <!-- MORRIS CHART STYLES-->
    <link href="css/morris-0.4.3.min.css" rel="stylesheet" />
    <!-- CUSTOM STYLES-->
    <link href="css/custom.css" rel="stylesheet" />
        </head>
        <body>
        <div id="wrapper">
        <nav class="navbar navbar-default navbar-cls-top " role="navigation"
            style="margin-bottom: 0">
            <div class="navbar-header">
            <button type="button" class="navbar-toggle" data-toggle="collapse"
                data-target=".sidebar-collapse">
                <span class="sr-only">Toggle navigation</span> <span
                class="icon-bar"></span> <span class="icon-bar"></span> <span
                class="icon-bar"></span>
                </button>
                
                </div>
                <div
                style="color: white; padding: 15px 50px 5px 50px; float: right; font-size: 16px;">
                <img src="img/user.jpg" style="height: 30px;width: 30px">
                用户名:<span><?php echo $_SESSION['name'];if($_SESSION['name']==null){
    				echo "<script>location.href='login.php'</script>";
    			}?></span>&nbsp;&nbsp;<a href='newpassword.php' class="btn btn-success">修改密码</a>&nbsp;&nbsp;<a href="loginout.php"
    					class="btn btn-danger square-btn-adjust">退出登录</a>
    			</div>
    		</nav>
    		<!-- /. NAV TOP  -->
    		<nav class="navbar-default navbar-side" role="navigation">
    			<div class="sidebar-collapse">
    				<ul class="nav" id="main-menu">
    					
    					<li><a  href="index.php"><i
    							class="fa   fa-user fa-3x"><img src="img/人.png" style="height: 40px;width: 40px"></i>学生信息管理</a></li>
    					<li><a  href="score.php"><i
    							class="fa fa-university fa-3x"><img src="img/宫殿.png" style="height: 40px;width: 40px"></i>学生成绩管理</a></li>
    					<li><a  href="subject.php"><i
    							class="fa fa-pencil fa-3x"><img src="img/铅笔.png" style="height: 40px;width: 40px"></i> 科目管理</a></li>
    					
    				</ul>
    			</div>
    		</nav>
    		<!-- /. NAV SIDE  --><!-- /. NAV SIDE  -->
    <div id="page-wrapper">
    	<div id="page-inner">
    		<div class="row">
    			<div class="col-md-12">
    				<h2>修改学生基本信息</h2>
    			</div>
    		</div>
    		<!-- /. ROW  -->
    		<hr />
    		<div class="row">
    			<div class="col-md-6 col-md-offset-1">
    				<!-- class="col-md-4 col-md-offset-4 col-sm-6 col-sm-offset-3 col-xs-10 col-xs-offset-1"> -->
    				<div class="panel panel-default">
    					<div class="panel-heading">
    						<strong> 编辑学生信息 </strong>
    					</div>
    					<?php
    					header("Content-Type: text/html; charset=utf8");// 防止乱码
    					include('public.php');//连接数据库
    					$id=$_REQUEST['id'];//请求值
    					$sql= "select * from basic where id=$id";//查询数据
    					$rel=mysqli_query($conn,$sql);//运行sql语句
    					$row=mysqli_fetch_assoc($rel);//关联数组
    					$sex="".$row['sex']."";//定义性别用来判断
    					mysqli_close($conn);//关闭数据库
    					?>
    					<div class="panel-body">
    						<form role="form" action="editdo.php" method='post'>
    							<br /> <input type='hidden' name='id' value='<?php echo "".$row['id'].""?>' />
    							<div class="form-group input-group">
    								<span class="input-group-addon"><i class="fa fa-circle-o-notch">
    										<img src="img/圆.png" style="height: 12px;width: 12px">学号</i></span> <input type="text" class="form-control"
    									placeholder="学号 " name='studentId'
    									value="<?php echo "".$row['num']."" ?>" />
    							</div>
    							<div class="form-group input-group">
    								<span class="input-group-addon"><i class="fa fa-tag"><img src="img/标签.png" style="height: 12px;width: 12px"> 姓名</i></span>
    								<input type="text" class="form-control" placeholder=" 姓名"
    									name='name' value="<?php echo "".$row['name']."" ?>" />
    							</div>
    							<div class="form-group input-group">
    								<span class="input-group-addon"><i class="fa fa-tag"> <img src="img/标签.png" style="height: 12px;width: 12px">班级</i></span>
    								<input type="text" class="form-control" placeholder="班级"
    									name='className' value="<?php echo "".$row['class']."" ?>" />
    							</div>
    							<div class="form-group input-group">
    								<span class="input-group-addon"><i class="fa fa-tag"> <img src="img/标签.png" style="height: 12px;width: 12px">生日</i></span>
    								<input type="date" class="form-control" placeholder="生日"
    									id='birthday' name='birthday' value="<?php echo "".$row['day']."" ?>" />
    							</div>
    							<div class="form-group input-group">
    								<span class="input-group-addon"><i class="fa fa-tag"> <img src="img/标签.png" style="height: 12px;width: 12px">性别</i></span>
    								<div align='left'>&nbsp;&nbsp;
    									<input type="radio" placeholder="性别" name='sex' value='男' <?php if($sex=="男") echo "checked";?>
    										 />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="radio"
    										placeholder="性别" name='sex' value='女' <?php if($sex=="女") echo "checked";?>
    										 /></div>
    							</div>
    							<div class="form-group input-group">
    								<span class="input-group-addon"><i class="fa fa-tag"> <img src="img/标签.png" style="height: 12px;width: 12px">民族</i></span>
    								<input type="text" class="form-control" placeholder="民族"
    									name='nation' value="<?php echo "".$row['nation']."" ?>" />
    							</div>
    							<input type='submit' name='submit' class="btn btn-success" value='确认修改' />
    						</form>
    					</div>
    				</div>
    			</div>
    		</div>
    	</div>
    </div>
    </script>
    </body>
    </html>
    

    编辑信息页面
    editdo.php

    <?php
    header("Content-Type: text/html; charset=utf8");//防止乱码
    if(!isset($_POST["submit"])){
        exit("错误执行");
    }//检测是否有submit操作 
    include('public.php');//连接数据库
    $id=$_POST["id"];//获取id,作为特定条件
    $num=$_POST['studentId'];//获取学号
    $name=$_POST['name'];//获取姓名
    $class=$_POST['className'];//获取班级
    $day=$_POST['birthday'];//获取生日
    $sex=$_POST['sex'];//获取性别
    $nation=$_POST['nation'];//获取民族
    //echo $num,"<br/>",$name,"<br/>",$class,"<br/>",$day,"<br/>",$sex,"<br/>",$nation,"<br/>";//检测是否获取成功基本信息
    $sql="update basic set num='$num',name='$name',class='$class',day='$day',sex='$sex',nation='$nation' where id='$id'";//sql语句修改数据
    $rel=mysqli_query($conn,$sql);//执行sql语句
    if($rel){
         echo "<script>alert('修改成功');location.href='index.php'</script>";
    }else{
         echo "<script>alert('修改失败');location.href='index.php'</script>";
    }
    mysqli_close($conn);//关闭数据库
    ?>
    

    删除信息
    delete.php

    <?php
     header("Content-Type: text/html; charset=utf8");//防止乱码
     include('public.php');//连接数据库
     $id=$_REQUEST['id'];//请求值
     // echo $val;
     $sql="delete from basic where id='$id'"; //sql语句删除数据
     $rel=mysqli_query($conn,$sql);//执行sql语句
     if(!$rel)//判断是否成功删除数据
     {
    	 echo "<script>alert('删除失败');location.href='index.php'</script>";
     }else{
    	 echo "<script>alert('删除成功');location.href='index.php'</script>";
     }
     mysqli_close($conn);//关闭数据库
    ?>
    

    鼠标事件
    mouse.php

    <?php
     header("Content-Type: text/html; charset=utf8");//防止乱码
     include('public.php');//连接数据库
     $row=$_GET['row'];//接收值
    //  echo $row;//检测是否获取值
     $sql = "select basic.name,score.subject,score.grade from basic left join score on basic.num = score.num where basic.id = $row";//使用sqi语句进行拼表
     $rel = mysqli_query($conn,$sql);//指向sql语句
     echo "<table border='1px'style='border-collapse: collapse;' class='table table-striped table-bordered table-hover' cellpadding='4px'>
     <tr><td width='150px' height='40px'>学生</td>
     <td width='150px' height='40px'>科目</td>
     <td width='150px' height='40px'>成绩</td></tr>";//表头
     if($row){//判断是否收到传值
     	while($and=mysqli_fetch_assoc($rel)){//while循环数据,sql语句关联数组,进行数据输出
     		echo "<tr><td>".$and["name"]."</td><td>".$and["subject"]."</td><td>".$and["grade"]."</td></tr>";
     	}
     	}
     echo "</table>";
     mysqli_close($conn);//关闭数据库
     ?>
    

    剩下的两个页面就请大家根据第一页面的代码自行脑补;谢谢大家!!!!

    展开全文
  • 运行截图项目说明:本系统界面我个人就从简设计了,本来打算使用windowbuilder插件设计的,可想到使用windowbuilder插件之后导致代码冗余,会影响到代码可读性,可能对小白不友好。虽然界面设计简单,但是功能上我会...
  • 题目本文只是一个小练习题,功能不是很多,只是简单实现增删改查使用自定义函数,完成对程序的模块化学生...-*- coding:utf-8 -*-# 学生管理系统v1.0# 添加学生信息def addStu(array):"添加学生信息"stuDict = {} #...
  • 学生信息管理系统系统源代码

    千次阅读 2020-12-28 20:11:33
    系统源代码一、登录界面代码usingSystem;usingSystem.Data;usingSystem.Configuration;usingSystem.Collections;usingSystem.Web;usingSystem.Web.Security;usingSystem.Web.UI;usingSystem.Web.UI.WebCon...
  • 添加学生信息(学号,姓名,性别,5门课程成绩)2.按学号或者姓名查找、修改、删除和保存各个学生的信息3.按学号或者总分排序输出每个学生的信息以及总分、平均分和名次4.计算全班各门功课的平均分,显示每门课程低于...
  • 学生学籍管理系统代码代码:连接数据库的代码:package cn.system.manage.tools;import java.sql.Connection;import java.sql.DriverManager;import java.sql.ResultSet;import java.sql.SQLException;import ...
  • 数据结构 课程设计源代码设计题目: 学生宿舍管理系统院 系: 计算机学院班 级: 软件1501组 别: 六组 长: 周佳理组 员: 韩壮壮 陈义安起止日期: 2016年12月20日~2016年12月24日指导教师: 韩丽娜源代码:#d...
  • 添加学生信息界面:添加学生实现代码:需求:1、点击确定按钮时,能够获取当前界面的所有控件的输入信息,在一个新的确认信息界面进行显式,等待确认。2、在确认界面中,确认ok,点击确定按钮能够将学生信息写入到...
  • java学生信息管理系统代码

    千次阅读 2021-03-16 01:03:18
    本文实例为大家分享了java学生信息管理系统的具体代码,实现学生信息: 增加 int[] a=new int[9] 、删除 、查找、更改,供大家参考,具体内容如下/*学生信息管理系统,实现学生信息:*增加 int[] a=new int[9]*删除*...
  • java 学生信息管理系统(图形界面

    千次阅读 2021-03-08 06:09:12
    【实例简介】自己写了一个简单的学生信息管理系统,使用图形界面,实现登录校验,学生信息的增删查改功能。【实例截图】【核心代码】45b8e96a-4c97-49b4-958e-6382c20a359f└── GUI├── bin│ ├── driver│ ...
  • 系统源代码一、登录界面代码usingSystem;usingSystem.Data;usingSystem.Configuration;usingSystem.Collections;usingSystem.Web;usingSystem.Web.Security;usingSystem.Web.UI;usingSystem.Web.UI.WebControls;...
  • 【实例简介】学生管理系统(全部代码+数据库),java代码可以用来学习【实例截图】【核心代码学生管理系统(全部代码数据库)└── 11002java 学生管理系统(全部代码+数据库)├── hur.txt├── jspdev│ ├── ...
  • ☆☆☆欢迎来到学生管理系统☆☆☆ ☆☆☆ \n"); printf(" \n"); printf(" ☆密码登陆界面☆ \n"); printf(" \n"); printf(" 周 黄 赵 喻 黄 制 ぎ↑ \n"); printf(" 理 文 志 正 志 作 \n"); printf(" 信 浩 林 宇...
  • 学生管理系统纯Java–管理界面 一、代码结构 entity包:包含了两个实体类,一个学生一个用户 repository包:包含对实体类至SQL中的操作 service包:用户操作实体类的桥梁 ui包:界面包 utils包:工具包用于连接...
  • System.out.println("/t/t Java学生成绩管理系统1.1"); System.out.println("/t/t请用学号查找,修改,删除数据"); System.out.println(); System.out.println("/t####################################/n"); System....
  • 关于学生管理系统界面设计:代码如下:数据库设计DROP TABLE IF EXISTS `stu`;CREATE TABLE `stu` (`stuId` int(11) NOT NULL AUTO_INCREMENT,`stuName` varchar(30) DEFAULT NULL,`stuSex` varchar(30) DEFAULT ...
  • 完成一个综合案例:学生管理系统!该系统主要功能如下: 添加学生:通过键盘录入学生信息,添加到集合中 删除学生:通过键盘录入要删除学生的学号,将该学生对象从集合中删除 修改学生:通过键盘录入要修改学生...
  • 学生成绩管理系统代码实现

    千次阅读 2021-03-11 23:02:44
    学生成绩管理系统代码实现1.开发语言及工具1.开发语言2.开发工具2.代码实现1.类Databese数据库StudentStudentDaoManageSystemMain运行结果新增信息查找信息排序输出名次修改成绩删除信息 1.开发语言及工具 1.开发...
  • [java]代码库import java.awt.BorderLayout;import java.awt.Color;import java.awt.Dimension;import java.awt.Font;import java.awt.Graphics;import java.awt.Toolkit;import java.awt.event.ActionEvent;import ...
  • //初学JAVA 开发了一个 学生管理程序,拿出来晒晒,以便大家参考或评论 指出不足之处!谢谢 由于此处不能上传照片,故放在我的相//册里面//这个登入界面的程序:import java.awt.*;import java.awt.event....
  • 优化代码代码更简洁注意image代码在0.2版本已经公布,注意看以前的代码!import java.awt.*;import java.awt.event.*;import javax.swing.*;import frame.ImagePanel;public class Login{public static void main...
  • 展开全部package 学生管理界面32313133353236313431303231363533e78988e69d8331333236376538;import java.awt.BorderLayout;import java.awt.Checkbox;import java.awt.CheckboxGroup;import java.awt.Container;...
  • printf("\t\t| 欢迎使用学生成绩管理系统 |\n"); printf("\t\t| |\n"); printf("\t\t| |\n"); printf("\t\t|--------------------------------|\n"); getch(); break; } else printf("\n\t\t密码错误,请重新输入!...

空空如也

空空如也

1 2 3 4 5 ... 20
收藏数 39,298
精华内容 15,719
关键字:

学生管理系统登录界面代码