学生成绩管理系统

此项目是PHP学生成绩管理系统。网络浏览器有Mozilla,谷歌浏览器,IE8,OPERA。从下面两点来运行这个项目:1.在本地系统副本srms文件夹中下载文件并解压缩。2.将srms文件夹放在根目录中。本人只展示了一小段代码,如想详细了解请下载附件。

应用介绍

此项目是PHP学生成绩管理系统。网络浏览器有Mozilla,谷歌浏览器,IE8,OPERA。从下面两点来运行这个项目:1.在本地系统副本srms文件夹中下载文件并解压缩。2.将srms文件夹放在根目录中。本人只展示了一小段代码,如想详细了解请下载附件。

<?php
session_start();
error_reporting(0);
include('includes/config.php');
if(strlen($_SESSION['alogin'])=="")
    {   
    header("Location: index.php"); 
    }
    else{
if(isset($_POST['submit']))
{
$subjectname=$_POST['subjectname'];
$subjectcode=$_POST['subjectcode']; 
$sql="INSERT INTO  tblsubjects(SubjectName,SubjectCode) VALUES(:subjectname,:subjectcode)";
$query = $dbh->prepare($sql);
$query->bindParam(':subjectname',$subjectname,PDO::PARAM_STR);
$query->bindParam(':subjectcode',$subjectcode,PDO::PARAM_STR);
$query->execute();
$lastInsertId = $dbh->lastInsertId();
if($lastInsertId)
{
$msg="Subject Created successfully";
}
else 
{
$error="Something went wrong. Please try again";
}
}
?>
<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
     <meta name="viewport" content="width=device-width, initial-scale=1">
        <title>SMS Admin Subject Creation </title>
        <link rel="stylesheet" href="css/bootstrap.min.css" media="screen" >
        <link rel="stylesheet" href="css/font-awesome.min.css" media="screen" >
        <link rel="stylesheet" href="css/animate-css/animate.min.css" media="screen" >
        <link rel="stylesheet" href="css/lobipanel/lobipanel.min.css" media="screen" >
        <link rel="stylesheet" href="css/prism/prism.css" media="screen" >
        <link rel="stylesheet" href="css/select2/select2.min.css" >
        <link rel="stylesheet" href="css/main.css" media="screen" >
        <script src="js/modernizr/modernizr.min.js"></script>
    </head>
    <body class="top-navbar-fixed">
        <div class="main-wrapper">
            <!-- ========== TOP NAVBAR ========== -->
  <?php include('includes/topbar.php');?> 
            <!-- ========== WRAPPER FOR BOTH SIDEBARS & MAIN CONTENT ========== -->
            <div class="content-wrapper">
                <div class="content-container">
                    <!-- ========== LEFT SIDEBAR ========== -->
                   <?php include('includes/leftbar.php');?>  
                    <!-- /.left-sidebar -->
                    <div class="main-page">
                     <div class="container-fluid">
                            <div class="row page-title-div">
                                <div class="col-md-6">
                                    <h2 class="title">Subject Creation</h2>
                                
                                </div>
                                
                                <!-- /.col-md-6 text-right -->
                            </div>
                            <!-- /.row -->
                            <div class="row breadcrumb-div">
                                <div class="col-md-6">
                                    <ul class="breadcrumb">
                                        <li><a href="dashboard.php"><i class="fa fa-home"></i> Home</a></li>
                                        <li> Subjects</li>
                                        <li class="active">Create Subject</li>
                                    </ul>
                                </div>
                             
                            </div>
                            <!-- /.row -->
                        </div>
                        <div class="container-fluid">
                           
                        <div class="row">
                                    <div class="col-md-12">
                                        <div class="panel">
                                            <div class="panel-heading">
                                                <div class="panel-title">
                                                    <h5>Create Subject</h5>
                                                </div>
                                            </div>
                                            <div class="panel-body">
<?php if($msg){?>
<div class="alert alert-success left-icon-alert" role="alert">
 <strong>Well done!</strong><?php echo htmlentities($msg); ?>
 </div><?php } 
else if($error){?>
    <div class="alert alert-danger left-icon-alert" role="alert">
                                            <strong>Oh snap!</strong> <?php echo htmlentities($error); ?>
                                        </div>
                                        <?php } ?>
                                                <form class="form-horizontal" method="post">
                                                    <div class="form-group">
                                                        <label for="default" class="col-sm-2 control-label">Subject Name</label>
                                                        <div class="col-sm-10">
 <input type="text" name="subjectname" class="form-control" id="default" placeholder="Subject Name" required="required">
                                                        </div>
                                                    </div>
<div class="form-group">
                                                        <label for="default" class="col-sm-2 control-label">Subject Code</label>
                                                        <div class="col-sm-10">
 <input type="text" name="subjectcode" class="form-control" id="default" placeholder="Subject Code" required="required">
                                                        </div>
                                                    </div>
                                                    
                                                    
                                                    <div class="form-group">
                                                        <div class="col-sm-offset-2 col-sm-10">
                                                            <button type="submit" name="submit" class="btn btn-primary">Submit</button>
                                                        </div>
                                                    </div>
                                                </form>
                                            </div>
                                        </div>
                                    </div>
                                    <!-- /.col-md-12 -->
                                </div>
                    </div>
                </div>
                <!-- /.content-container -->
            </div>
            <!-- /.content-wrapper -->
        </div>
        <!-- /.main-wrapper -->
        <script src="js/jquery/jquery-2.2.4.min.js"></script>
        <script src="js/bootstrap/bootstrap.min.js"></script>
        <script src="js/pace/pace.min.js"></script>
        <script src="js/lobipanel/lobipanel.min.js"></script>
        <script src="js/iscroll/iscroll.js"></script>
        <script src="js/prism/prism.js"></script>
        <script src="js/select2/select2.min.js"></script>
        <script src="js/main.js"></script>
        <script>
            $(function($) {
                $(".js-states").select2();
                $(".js-states-limit").select2({
                    maximumSelectionLength: 2
                });
                $(".js-states-hide").select2({
                    minimumResultsForSearch: Infinity
                });
            });
        </script>
    </body>
</html>
<?PHP } ?>

文件列表(部分)

名称 大小 修改日期
Student Result Management System0.00 KB2019-05-16
read me.txt0.67 KB2019-07-02
sql file0.00 KB2019-07-38
srms.sql9.54 KB2019-07-14
srms0.00 KB2019-05-38
add-result.php9.73 KB2017-08-42
add-students.php9.24 KB2017-08-10
add-subjectcombination.php8.09 KB2017-08-32
apple-touch-icon.png6.54 KB2017-06-34
change-password.php9.06 KB2017-08-20
create-class.php9.03 KB2017-06-38
create-subject.php7.31 KB2017-06-38
css0.00 KB2019-05-20
.DS_Store10.00 KB2017-06-38
animate-css0.00 KB2019-05-18
animate.min.css51.55 KB2017-06-38
bootstrap-switch0.00 KB2019-05-18
bootstrap-switch.css6.20 KB2017-06-38
bootstrap-switch.min.css5.48 KB2017-06-38
bootstrap.css708.48 KB2017-06-38
bootstrap.min.css116.24 KB2017-06-38
ckeditor0.00 KB2019-05-18
.DS_Store6.00 KB2017-06-38
skins0.00 KB2019-05-18
.DS_Store6.00 KB2017-06-40
moono-lisa0.00 KB2019-05-18
dialog.css13.23 KB2017-06-40
dialog_ie.css14.12 KB2017-06-40
dialog_ie8.css14.59 KB2017-06-40
dialog_iequirks.css14.15 KB2017-06-40
editor.css45.80 KB2017-06-40
editor_gecko.css45.88 KB2017-06-40

立即下载

相关下载

[学生成绩管理系统] 学生成绩管理系统, mfc课程设计,学生成绩管理系统
[学生成绩管理系统] 此项目是PHP学生成绩管理系统。网络浏览器有Mozilla,谷歌浏览器,IE8,OPERA。从下面两点来运行这个项目:1.在本地系统副本srms文件夹中下载文件并解压缩。2.将srms文件夹放在根目录中。本人只展示了一小段代码,如想详细了解请下载附件。

评论列表 共有 1 条评论

itsme 4年前 回复TA

怎么下载啊

微信捐赠

微信扫一扫体验

立即
上传
发表
评论
返回
顶部