学生成绩管理系统
此项目是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 } ?>
©版权声明:本文内容由互联网用户自发贡献,版权归原创作者所有,本站不拥有所有权,也不承担相关法律责任。如果您发现本站中有涉嫌抄袭的内容,欢迎发送邮件至: www_apollocode_net@163.com 进行举报,并提供相关证据,一经查实,本站将立刻删除涉嫌侵权内容。
转载请注明出处: apollocode » 学生成绩管理系统
文件列表(部分)
名称 | 大小 | 修改日期 |
---|---|---|
Student Result Management System | 0.00 KB | 2019-05-16 |
read me.txt | 0.67 KB | 2019-07-02 |
sql file | 0.00 KB | 2019-07-38 |
srms.sql | 9.54 KB | 2019-07-14 |
srms | 0.00 KB | 2019-05-38 |
add-result.php | 9.73 KB | 2017-08-42 |
add-students.php | 9.24 KB | 2017-08-10 |
add-subjectcombination.php | 8.09 KB | 2017-08-32 |
apple-touch-icon.png | 6.54 KB | 2017-06-34 |
change-password.php | 9.06 KB | 2017-08-20 |
create-class.php | 9.03 KB | 2017-06-38 |
create-subject.php | 7.31 KB | 2017-06-38 |
css | 0.00 KB | 2019-05-20 |
.DS_Store | 10.00 KB | 2017-06-38 |
animate-css | 0.00 KB | 2019-05-18 |
animate.min.css | 51.55 KB | 2017-06-38 |
bootstrap-switch | 0.00 KB | 2019-05-18 |
bootstrap-switch.css | 6.20 KB | 2017-06-38 |
bootstrap-switch.min.css | 5.48 KB | 2017-06-38 |
bootstrap.css | 708.48 KB | 2017-06-38 |
bootstrap.min.css | 116.24 KB | 2017-06-38 |
ckeditor | 0.00 KB | 2019-05-18 |
.DS_Store | 6.00 KB | 2017-06-38 |
skins | 0.00 KB | 2019-05-18 |
.DS_Store | 6.00 KB | 2017-06-40 |
moono-lisa | 0.00 KB | 2019-05-18 |
dialog.css | 13.23 KB | 2017-06-40 |
dialog_ie.css | 14.12 KB | 2017-06-40 |
dialog_ie8.css | 14.59 KB | 2017-06-40 |
dialog_iequirks.css | 14.15 KB | 2017-06-40 |
editor.css | 45.80 KB | 2017-06-40 |
editor_gecko.css | 45.88 KB | 2017-06-40 |
怎么下载啊