在线课程注册
此项目是在线课程注册。使用的用户界面设计有HTML,AJAX,JQUERY,JAVASCRIPT。使用的网络浏览器有Mozilla,谷歌浏览器,IE8,OPERA。安装步骤(配置)有1.在本地系统上下载并解压缩文件。2.将此文件放在根目录中。3.数据库配置。界面只展示了一小部分的代码,如想了解更多请下载附件。
应用介绍
此项目是在线课程注册。使用的用户界面设计有HTML,AJAX,JQUERY,JAVASCRIPT。使用的网络浏览器有Mozilla,谷歌浏览器,IE8,OPERA。安装步骤(配置)有1.在本地系统上下载并解压缩文件。2.将此文件放在根目录中。3.数据库配置。界面只展示了一小部分的代码,如想了解更多请下载附件。
<?php
session_start();
include('includes/config.php');
error_reporting(0);
if(strlen($_SESSION['login'])==0 or strlen($_SESSION['pcode'])==0)
{
header('location:index.php');
}
else{
if(isset($_POST['submit']))
{
$studentregno=$_POST['studentregno'];
$pincode=$_POST['Pincode'];
$session=$_POST['session'];
$dept=$_POST['department'];
$level=$_POST['level'];
$course=$_POST['course'];
$sem=$_POST['sem'];
$ret=mysqli_query($con,"insert into courseenrolls(studentRegno,pincode,session,department,level,course,semester) values('$studentregno','$pincode','$session','$dept','$level','$course','$sem')");
if($ret)
{
$_SESSION['msg']="Enroll Successfully !!";
}
else
{
$_SESSION['msg']="Error : Not Enroll";
}
}
?>
<!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, maximum-scale=1" />
<meta name="description" content="" />
<meta name="author" content="" />
<title>Course Enroll</title>
<link href="assets/css/bootstrap.css" rel="stylesheet" />
<link href="assets/css/font-awesome.css" rel="stylesheet" />
<link href="assets/css/style.css" rel="stylesheet" />
</head>
<body>
<?php include('includes/header.php');?>
<!-- LOGO HEADER END-->
<?php if($_SESSION['login']!="")
{
include('includes/menubar.php');
}
?>
<!-- MENU SECTION END-->
<div class="content-wrapper">
<div class="container">
<div class="row">
<div class="col-md-12">
<h1 class="page-head-line">Course Enroll </h1>
</div>
</div>
<div class="row" >
<div class="col-md-3"></div>
<div class="col-md-6">
<div class="panel panel-default">
<div class="panel-heading">
Course Enroll
</div>
<font color="green" align="center"><?php echo htmlentities($_SESSION['msg']);?><?php echo htmlentities($_SESSION['msg']="");?></font>
<?php $sql=mysqli_query($con,"select * from students where StudentRegno='".$_SESSION['login']."'");
$cnt=1;
while($row=mysqli_fetch_array($sql))
{ ?>
<div class="panel-body">
<form name="dept" method="post" enctype="multipart/form-data">
<div class="form-group">
<label for="studentname">Student Name </label>
<input type="text" class="form-control" id="studentname" name="studentname" value="<?php echo htmlentities($row['studentName']);?>" />
</div>
<div class="form-group">
<label for="studentregno">Student Reg No </label>
<input type="text" class="form-control" id="studentregno" name="studentregno" value="<?php echo htmlentities($row['StudentRegno']);?>" placeholder="Student Reg no" readonly />
</div>
<div class="form-group">
<label for="Pincode">Pincode </label>
<input type="text" class="form-control" id="Pincode" name="Pincode" readonly value="<?php echo htmlentities($row['pincode']);?>" required />
</div>
<div class="form-group">
<label for="Pincode">Student Photo </label>
<?php if($row['studentPhoto']==""){ ?>
<img src="studentphoto/noimage.png" width="200" height="200"><?php } else {?>
<img src="studentphoto/<?php echo htmlentities($row['studentPhoto']);?>" width="200" height="200">
<?php } ?>
</div>
<?php } ?>
<div class="form-group">
<label for="Session">Session </label>
<select class="form-control" name="session" required="required">
<option value="">Select Session</option>
<?php
$sql=mysqli_query($con,"select * from session");
while($row=mysqli_fetch_array($sql))
{
?>
<option value="<?php echo htmlentities($row['id']);?>"><?php echo htmlentities($row['session']);?></option>
<?php } ?>
</select>
</div>
<div class="form-group">
<label for="Department">Department </label>
<select class="form-control" name="department" required="required">
<option value="">Select Depertment</option>
<?php
$sql=mysqli_query($con,"select * from department");
while($row=mysqli_fetch_array($sql))
{
?>
<option value="<?php echo htmlentities($row['id']);?>"><?php echo htmlentities($row['department']);?></option>
<?php } ?>
</select>
</div>
<div class="form-group">
<label for="Level">Level </label>
<select class="form-control" name="level" required="required">
<option value="">Select Level</option>
<?php
$sql=mysqli_query($con,"select * from level");
while($row=mysqli_fetch_array($sql))
{
?>
<option value="<?php echo htmlentities($row['id']);?>"><?php echo htmlentities($row['level']);?></option>
<?php } ?>
</select>
</div>
<div class="form-group">
<label for="Semester">Semester </label>
<select class="form-control" name="sem" required="required">
<option value="">Select Semester</option>
<?php
$sql=mysqli_query($con,"select * from semester");
while($row=mysqli_fetch_array($sql))
{
?>
<option value="<?php echo htmlentities($row['id']);?>"><?php echo htmlentities($row['semester']);?></option>
<?php } ?>
</select>
</div>
<div class="form-group">
<label for="Course">Course </label>
<select class="form-control" name="course" id="course" onBlur="courseAvailability()" required="required">
<option value="">Select Course</option>
<?php
$sql=mysqli_query($con,"select * from course");
while($row=mysqli_fetch_array($sql))
{
?>
<option value="<?php echo htmlentities($row['id']);?>"><?php echo htmlentities($row['courseName']);?></option>
<?php } ?>
</select>
<span id="course-availability-status1" style="font-size:12px;">
</div>
<button type="submit" name="submit" id="submit" class="btn btn-default">Enroll</button>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<?php include('includes/footer.php');?>
<script src="assets/js/jquery-1.11.1.js"></script>
<script src="assets/js/bootstrap.js"></script>
<script>
function courseAvailability() {
$("#loaderIcon").show();
jQuery.ajax({
url: "check_availability.php",
data:'cid='+$("#course").val(),
type: "POST",
success:function(data){
$("#course-availability-status1").html(data);
$("#loaderIcon").hide();
},
error:function (){}
});
}
</script>
</body>
</html>
<?php } ?>
©版权声明:本文内容由互联网用户自发贡献,版权归原创作者所有,本站不拥有所有权,也不承担相关法律责任。如果您发现本站中有涉嫌抄袭的内容,欢迎发送邮件至: [email protected] 进行举报,并提供相关证据,一经查实,本站将立刻删除涉嫌侵权内容。
转载请注明出处: apollocode » 在线课程注册
文件列表(部分)
名称 | 大小 | 修改日期 |
---|---|---|
Online course registartion | 0.00 KB | 2019-04-48 |
onlinecourse | 0.00 KB | 2019-04-48 |
admin | 0.00 KB | 2019-04-48 |
assets | 0.00 KB | 2019-04-48 |
css | 0.00 KB | 2019-04-48 |
bootstrap.css | 138.10 KB | 2015-01-08 |
font-awesome.css | 28.07 KB | 2015-01-32 |
style.css | 6.27 KB | 2015-01-14 |
fonts | 0.00 KB | 2019-04-48 |
fontawesome-webfont.eot | 59.34 KB | 2015-01-32 |
fontawesome-webfont.svg | 306.05 KB | 2015-01-32 |
fontawesome-webfont.ttf | 119.23 KB | 2015-01-32 |
fontawesome-webfont.woff | 69.83 KB | 2015-01-32 |
fontawesome-webfont.woff2 | 55.45 KB | 2015-01-32 |
FontAwesome.otf | 91.69 KB | 2015-01-32 |
glyphicons-halflings-regular.eot | 19.66 KB | 2015-01-08 |
glyphicons-halflings-regular.svg | 106.19 KB | 2015-01-08 |
glyphicons-halflings-regular.ttf | 44.34 KB | 2015-01-08 |
glyphicons-halflings-regular.woff | 22.88 KB | 2015-01-08 |
glyphicons-halflings-regular.woff2 | 17.61 KB | 2015-01-08 |
img | 0.00 KB | 2019-04-48 |
64-64.jpg | 3.12 KB | 2015-01-08 |
logo.png | 1.02 KB | 2015-01-12 |
js | 0.00 KB | 2019-04-48 |
bootstrap.js | 59.26 KB | 2014-09-08 |
jquery-1.11.1.js | 276.14 KB | 2015-01-20 |
change-password.php | 4.30 KB | 2018-05-20 |
check_availability.php | 0.40 KB | 2018-05-32 |
course.php | 6.65 KB | 2018-05-12 |
department.php | 5.21 KB | 2018-05-58 |
edit-course.php | 4.20 KB | 2018-05-38 |
edit-student-profile.php | 4.38 KB | 2018-05-54 |
发表评论 取消回复