在线课程注册

此项目是在线课程注册。使用的用户界面设计有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 } ?>

文件列表(部分)

名称 大小 修改日期
Online course registartion0.00 KB2019-04-48
onlinecourse0.00 KB2019-04-48
admin0.00 KB2019-04-48
assets0.00 KB2019-04-48
css0.00 KB2019-04-48
bootstrap.css138.10 KB2015-01-08
font-awesome.css28.07 KB2015-01-32
style.css6.27 KB2015-01-14
fonts0.00 KB2019-04-48
fontawesome-webfont.eot59.34 KB2015-01-32
fontawesome-webfont.svg306.05 KB2015-01-32
fontawesome-webfont.ttf119.23 KB2015-01-32
fontawesome-webfont.woff69.83 KB2015-01-32
fontawesome-webfont.woff255.45 KB2015-01-32
FontAwesome.otf91.69 KB2015-01-32
glyphicons-halflings-regular.eot19.66 KB2015-01-08
glyphicons-halflings-regular.svg106.19 KB2015-01-08
glyphicons-halflings-regular.ttf44.34 KB2015-01-08
glyphicons-halflings-regular.woff22.88 KB2015-01-08
glyphicons-halflings-regular.woff217.61 KB2015-01-08
img0.00 KB2019-04-48
64-64.jpg3.12 KB2015-01-08
logo.png1.02 KB2015-01-12
js0.00 KB2019-04-48
bootstrap.js59.26 KB2014-09-08
jquery-1.11.1.js276.14 KB2015-01-20
change-password.php4.30 KB2018-05-20
check_availability.php0.40 KB2018-05-32
course.php6.65 KB2018-05-12
department.php5.21 KB2018-05-58
edit-course.php4.20 KB2018-05-38
edit-student-profile.php4.38 KB2018-05-54

立即下载

相关下载

[在线课程注册] 此项目是在线课程注册。使用的用户界面设计有HTML,AJAX,JQUERY,JAVASCRIPT。使用的网络浏览器有Mozilla,谷歌浏览器,IE8,OPERA。安装步骤(配置)有1.在本地系统上下载并解压缩文件。2.将此文件放在根目录中。3.数据库配置。界面只展示了一小部分的代码,如想了解更多请下载附件。

评论列表 共有 0 条评论

暂无评论

微信捐赠

微信扫一扫体验

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