forked from mrlan/LRR
Merge branch 'master' into ZhengXiaoyu-201732120110-ContributorList
commit
74704c1371
43
Course.php
43
Course.php
|
@ -103,11 +103,11 @@ WHERE course_group_members_table.Student_ID=$student_id and course_groups_table.
|
|||
|
||||
$resultx1 = mysqli_query($con,$sql);
|
||||
|
||||
while($row = mysqli_fetch_assoc($resultx1)) {$group_id=$row['Course_Group_id'];}
|
||||
while($row = mysqli_fetch_assoc($resultx1)) {$_SESSION['group_id']=$row['Course_Group_id'];}
|
||||
|
||||
if($group_id==""){$group_id=-1;}
|
||||
|
||||
|
||||
$group_id=$_SESSION['group_id'];
|
||||
|
||||
|
||||
$var="SELECT Type,Lab_Report_ID,Marks, `Course_ID`, `Posted_Date`, `Deadline`, `Instructions`, lab_reports_table.Title, `Attachment_link_1`, `Attachment_link_2`, `Attachment_link_3`, `Attachment_link_4`
|
||||
|
@ -169,6 +169,7 @@ if(mysqli_num_rows($result1)==0)
|
|||
|
||||
<div id="menu2" class="container tab-pane"><br>
|
||||
<?php
|
||||
$group_id=$_SESSION['group_id'];
|
||||
$result = mysqli_query($con,"SELECT Lab_Report_ID,Marks, `Course_ID`, `Posted_Date`, `Deadline`, `Instructions`, lab_reports_table.Title, `Attachment_link_1`, `Attachment_link_2`, `Attachment_link_3`, `Attachment_link_4`
|
||||
FROM `lab_reports_table`
|
||||
where
|
||||
|
@ -236,6 +237,7 @@ if(mysqli_num_rows($result)==0)
|
|||
</div>
|
||||
<div id="menu3" class="container tab-pane"><br>
|
||||
<?php
|
||||
$group_id=$_SESSION['group_id'];
|
||||
$resultx = mysqli_query($con,"SELECT Lab_Report_ID,Marks, `Course_ID`, `Posted_Date`, `Deadline`, `Instructions`, lab_reports_table.Title, `Attachment_link_1`, `Attachment_link_2`, `Attachment_link_3`, `Attachment_link_4`
|
||||
FROM `lab_reports_table`
|
||||
|
||||
|
@ -293,7 +295,8 @@ lab_report_submissions.Student_id sub_std, lab_report_submissions.Course_Group_i
|
|||
FROM `lab_report_submissions`
|
||||
Left JOIN users_table on users_table.Student_ID=lab_report_submissions.Student_id
|
||||
left JOIN course_group_members_table on course_group_members_table.Course_Group_id=lab_report_submissions.Course_Group_id
|
||||
where Lab_Report_ID=$lab_repo_id and lab_report_submissions.Student_id='$student_id'");
|
||||
where Lab_Report_ID=$lab_repo_id and (lab_report_submissions.Student_id='$student_id')");
|
||||
// or lab_report_submissions.Course_Group_id='$group_id'
|
||||
|
||||
if(mysqli_num_rows($Sub_result)==0)
|
||||
{
|
||||
|
@ -341,30 +344,38 @@ if(mysqli_num_rows($Sub_result)==0)
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<?php
|
||||
$sqli=mysqli_query($con, "SELECT * from course_groups_table WHERE Course_Group_id=$group_id and Course_id=$course_id");
|
||||
while($row = mysqli_fetch_assoc($sqli))
|
||||
{ $Group_Leader=$row['Group_Leader'];
|
||||
$Group_Member=$row['Group_Member'];
|
||||
$Group_Member2=$row['Group_Member2'];
|
||||
$Group_Member3=$row['Group_Member3'];
|
||||
$Group_Member4=$row['Group_Member4'];
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
|
||||
<div id="menu4" class="container tab-pane"><br>
|
||||
<?php
|
||||
|
||||
$resultx = mysqli_query($con,"SELECT `Submission_ID`, `Submission_Date`, lab_reports_table.`Lab_Report_ID`, `Student_id`, "
|
||||
. "`Course_Group_id`, `Notes`, lab_report_submissions.`Marks`,
|
||||
lab_report_submissions.Remarking_Reason,
|
||||
`Status`, lab_reports_table.Title Lab_Title,lab_reports_table.Marks Original_marks FROM `lab_report_submissions` "
|
||||
. "INNER JOIN lab_reports_table on lab_reports_table.Lab_Report_ID=lab_report_submissions.Lab_Report_ID "
|
||||
. "WHERE lab_report_submissions.Student_id='$student_id' and"
|
||||
. "WHERE (lab_report_submissions.Student_id='$student_id'
|
||||
or (lab_report_submissions.Student_id='$Group_Leader' and lab_report_submissions.Course_Group_id='$group_id')
|
||||
or (lab_report_submissions.Student_id='$Group_Member' and lab_report_submissions.Course_Group_id='$group_id')
|
||||
or (lab_report_submissions.Student_id='$Group_Member2' and lab_report_submissions.Course_Group_id='$group_id')
|
||||
or (lab_report_submissions.Student_id='$Group_Member3' and lab_report_submissions.Course_Group_id='$group_id')
|
||||
or (lab_report_submissions.Student_id='$Group_Member4' and lab_report_submissions.Course_Group_id='$group_id')
|
||||
)and"
|
||||
. ""
|
||||
. ""
|
||||
. ""
|
||||
. " lab_reports_table.Lab_Report_ID in (select Lab_Report_ID from lab_report_submissions"
|
||||
. " where (Status='Marked' or Status='Remarking') and (Student_id=$student_id) and Course_ID=$course_id) ORDER by Submission_ID DESC");
|
||||
. " where (Status='Marked' or Status='Remarking') and (Student_id=$student_id or Course_Group_id=$group_id) and Course_ID=$course_id) ORDER by Submission_ID DESC");
|
||||
|
||||
|
||||
|
||||
|
@ -641,11 +652,11 @@ where course_group_members_table.Course_Group_id=$id");
|
|||
?>
|
||||
|
||||
|
||||
<script src="https://code.jquery.com/jquery-1.11.1.min.js"></script>
|
||||
<script src="css/jquery-1.11.1.min.js"></script>
|
||||
|
||||
<script src="https://code.jquery.com/ui/1.11.1/jquery-ui.min.js"></script>
|
||||
<script src="css/jquery-ui.min.js"></script>
|
||||
|
||||
<link rel="stylesheet" href="https://code.jquery.com/ui/1.11.1/themes/smoothness/jquery-ui.css" />
|
||||
<link rel="stylesheet" href="css/jquery-ui.css" />
|
||||
<script>
|
||||
function CreateGroup() {
|
||||
|
||||
|
|
155
Courses.php
155
Courses.php
|
@ -30,11 +30,11 @@ $user_d=$_SESSION['user_id'];
|
|||
<div class="row" style="width:80%;margin:auto; text-align:left;">
|
||||
|
||||
|
||||
<script src="https://code.jquery.com/jquery-1.11.1.min.js"></script>
|
||||
<script src="css/jquery-1.11.1.min.js"></script>
|
||||
|
||||
<script src="https://code.jquery.com/ui/1.11.1/jquery-ui.min.js"></script>
|
||||
<script src="css/jquery-ui.min.js"></script>
|
||||
|
||||
<link rel="stylesheet" href="https://code.jquery.com/ui/1.11.1/themes/smoothness/jquery-ui.css" />
|
||||
<link rel="stylesheet" href="css/jquery-ui.css" />
|
||||
<script>
|
||||
|
||||
|
||||
|
@ -106,27 +106,124 @@ New Date/Time <br><input type="date" name="date" required=""> <input type="time"
|
|||
";
|
||||
|
||||
echo "<div class='col-md-5'>";
|
||||
|
||||
|
||||
|
||||
if( $_SESSION['user_type']=="Lecturer"){
|
||||
echo "<h3> Post new Lab Assignment </h3><form method='post' enctype='multipart/form-data' action='Script.php'>
|
||||
<input type='hidden' name='frm_uploadlab' value='true' required=''/>
|
||||
<input type='hidden' name='course_id' value='".$id."' required=''/>
|
||||
<input type='hidden' name='url' value='".$course_url."' required=''/>
|
||||
|
||||
Dealine Date/Time
|
||||
<div class='row'>
|
||||
<div class='col-md-7'><input type='date' id='date' name='deadlinedate' placeholder='' class='form-control' required=''> </div>
|
||||
<div class='col-md-5'> <input type='time' class='form-control' name='deadlinetime'> </div>
|
||||
}
|
||||
|
||||
// ------------------------------Editing Lab Assignment by Lecture------------------------------------
|
||||
|
||||
|
||||
if($_GET['act']=="edit"){
|
||||
$getid = $_GET["cid"];
|
||||
$result1 = mysqli_query($con, "SELECT * from lab_reports_table WHERE Lab_Report_ID = '$getid'");
|
||||
|
||||
while($row1 = mysqli_fetch_assoc($result1)) {
|
||||
$Deadline = $row1['Deadline'];
|
||||
// $datetime = explode(" ", $Deadline); explode() is another famous way of spliting a string from the database
|
||||
// $_SESSION['Date'] = $datetime[0];
|
||||
// $_SESSION['Time'] = $datetime[1];
|
||||
$_SESSION['Date'] = strstr($Deadline, ' ', true);
|
||||
$_SESSION['Time'] = strstr($Deadline, ' ');
|
||||
$_SESSION['Instructions']=$row1['Instructions'];
|
||||
$_SESSION['Title']=$row1['Title'];
|
||||
$_SESSION['Marks']=$row1['Marks'];
|
||||
$_SESSION['Type']=$row1['Type'];
|
||||
|
||||
}
|
||||
if(isset($_POST['frm_uploadlab'])){
|
||||
$deadlinedate=$_POST["deadlinedate"];
|
||||
$deadlinetime=$_POST["deadlinetime"];
|
||||
$instructions=$_POST["instructions"];
|
||||
$title=$_POST["title"];
|
||||
$marks=$_POST["marks"];
|
||||
$Deadline = $deadlinedate." ".$deadlinetime;
|
||||
$date= date("Y-m-d H:i");
|
||||
|
||||
$sql = "UPDATE `lab_reports_table` SET `Deadline` = ('" . $Deadline . "'), `Instructions` = ('" . $instructions . "'), `Title` = ('" . $title . "'), `Marks` = ('" . $marks . "') WHERE `lab_reports_table`.`Lab_Report_ID` = '$getid'";
|
||||
if ($con->query($sql) === TRUE) {
|
||||
$_SESSION["info_updated"]="Assignment information updated successfully.";
|
||||
|
||||
} else {
|
||||
echo "Error: " . $sql . "<br>" . $con->error;
|
||||
}
|
||||
}
|
||||
if( $_SESSION['user_type']=="Lecturer"){
|
||||
$Date=$_SESSION['Date'];
|
||||
$Time=$_SESSION['Time'];
|
||||
$Instructions=$_SESSION['Instructions'];
|
||||
$Title=$_SESSION['Title'];
|
||||
$Marks=$_SESSION['Marks'];
|
||||
|
||||
echo " <h3><a href='Courses.php?course=".$url."'> Editing Lab Assignment </a></h3>";
|
||||
?>
|
||||
<form method='post' enctype='multipart/form-data' action=''>
|
||||
<input type='hidden' name='frm_uploadlab' value='true' required=''/>
|
||||
<input type='hidden' name='course_id' value='<?php echo "$id" ?>' required=''/>
|
||||
<input type='hidden' name='url' value='<?php echo ".$course_url." ?>' required=''/>
|
||||
|
||||
Dealine Date/Time
|
||||
<div class='row'>
|
||||
<div class='col-md-7'><input type='date' id='date' name='deadlinedate' placeholder='' class='form-control' required='' value="<?php echo isset($_GET['act']) && $_GET['act']=="edit" ? $Date : ""; ?>"> </div>
|
||||
<div class='col-md-5'> <input type='text' id='time' class='form-control' name='deadlinetime' value="<?php echo isset($_GET['act']) && $_GET['act']=="edit" ? $Time : ""; ?>"> </div>
|
||||
</div>
|
||||
|
||||
Title
|
||||
<input type='text' name='title' placeholder='Ttle' class='form-control' required=''>
|
||||
Instructions
|
||||
<textarea name='instructions' placeholder='Assignment Instructions' class='form-control' required=''></textarea>
|
||||
<input type='text' name='title' placeholder='Ttle' class='form-control' required='' value="<?php echo isset($_GET['act']) && $_GET['act']=="edit" ? $Title : ""; ?>">
|
||||
Instructions
|
||||
<textarea name='instructions' placeholder='Assignment Instructions' class='form-control' required='' ><?php echo isset($_GET['act']) && $_GET['act']=='edit' ? $Instructions : ''; ?></textarea>
|
||||
Marks
|
||||
<input type='text' name='marks' placeholder='Marks' class='form-control' required=''>
|
||||
<input type='text' name='marks' placeholder='Marks' class='form-control' required='' value="<?php echo isset($_GET['act']) && $_GET['act']=="edit" ? $Marks : ""; ?>">
|
||||
Attachment 1
|
||||
<input type='file' name='attachment1' placeholder='Attachment 1' class='form-control'>
|
||||
|
||||
Attachment 2
|
||||
<input type='file' name='attachment2' placeholder='Attachment 1' class='form-control'>
|
||||
|
||||
Attachment 3
|
||||
<input type='file' name='attachment3' placeholder='Attachment 1' class='form-control' >
|
||||
|
||||
|
||||
Attachment 4
|
||||
<input type='file' name='attachment4' placeholder='Attachment 4' class='form-control' >
|
||||
<br>
|
||||
Submission Type <input type='radio' name='type' value='Individual' required=''> Invidual
|
||||
|
||||
<input type='radio' name='type' required='' value='Group'> Group
|
||||
<hr>
|
||||
<input type='submit' class='btn btn-primary' value='Post Lab Assignment'><br>
|
||||
</form><br><br><br><br>
|
||||
<?php
|
||||
}}else{
|
||||
|
||||
// ------------------------------Posting New Lab Assignment------------------------------------
|
||||
|
||||
// Mysql to split 1 string into 2 similar to the tsrstr in php
|
||||
// SELECT SUBSTRING_INDEX(Deadline, ' ', 1) as Date, SUBSTRING_INDEX(Deadline, ' ', -1) as Time from lab_reports_table
|
||||
|
||||
if( $_SESSION['user_type']=="Lecturer"){
|
||||
|
||||
?>
|
||||
|
||||
<h3> Post new Lab Assignment </a></h3>
|
||||
|
||||
<form method='post' enctype='multipart/form-data' action='Script.php'>
|
||||
<?php
|
||||
$_SESSION['url']=$url;
|
||||
?>
|
||||
<input type='hidden' name='frm_uploadlab' value='true' required=''/>
|
||||
<input type='hidden' name='course_id' value='<?php echo "$id" ?>' required=''/>
|
||||
<input type='hidden' name='url' value='<?php echo ".$course_url." ?>' required=''/>
|
||||
|
||||
Dealine Date/Time
|
||||
<div class='row'>
|
||||
<div class='col-md-7'><input type='date' id='date' name='deadlinedate' placeholder='' class='form-control' required='' value=""> </div>
|
||||
<div class='col-md-5'> <input type='time' class='form-control' name='deadlinetime' value=""> </div>
|
||||
</div>
|
||||
|
||||
Title
|
||||
<input type='text' name='title' placeholder='Ttle' class='form-control' required='' value="">
|
||||
Instructions
|
||||
<textarea name='instructions' placeholder='Assignment Instructions' class='form-control' required='' value=""></textarea>
|
||||
Marks
|
||||
<input type='text' name='marks' placeholder='Marks' class='form-control' required='' value="">
|
||||
Attachment 1
|
||||
<input type='file' name='attachment1' placeholder='Attachment 1' class='form-control'>
|
||||
|
||||
|
@ -146,16 +243,20 @@ Submission Type <input type='radio' name='type' value='Individual' required=''>
|
|||
<hr>
|
||||
<input type='submit' class='btn btn-primary' value='Post Lab Assignment'><br>
|
||||
</form><br><br><br><br>
|
||||
";
|
||||
|
||||
}
|
||||
}
|
||||
<?php
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
echo "</div>";
|
||||
|
||||
echo "<div class='col-md-7'> <h3> Lab Report Assignment list </h3>";
|
||||
|
||||
error_reporting(0);
|
||||
if(isset($_SESSION["info_updated"])){
|
||||
echo '<hr><div class="alert alert-info" role="alert">' . $_SESSION['info_updated'] . '</div>';
|
||||
$_SESSION['info_updated'] = null;
|
||||
}
|
||||
if (isset($_SESSION['info_courses'])) {
|
||||
echo '<hr><div class="alert alert-info" role="alert">' . $_SESSION['info_courses'] . '</div>';
|
||||
$_SESSION['info_courses'] = null;
|
||||
|
@ -171,7 +272,7 @@ if (isset($_SESSION['info_courses'])) {
|
|||
$result = mysqli_query($con," SELECT `Lab_Report_ID`,Type,Marks, `Course_ID`, `Posted_Date`, `Deadline`, `Instructions`, `Title`, `Attachment_link_1`, `Attachment_link_2`, `Attachment_link_3`, "
|
||||
. "`Attachment_link_4` FROM `lab_reports_table` WHERE Course_ID=$id ORDER by Lab_Report_ID DESC");
|
||||
|
||||
|
||||
|
||||
if( $_SESSION['user_type']=="TA")
|
||||
{
|
||||
echo "<b style='color:orange'>* Only Lecturers can Post new Lab report Assignments </b><br>";
|
||||
|
@ -191,6 +292,7 @@ if (isset($_SESSION['info_courses'])) {
|
|||
$att3=$row['Attachment_link_3'];
|
||||
$att4=$row['Attachment_link_4'];
|
||||
$id=$row['Lab_Report_ID'];
|
||||
$cours_id=$row['Course_ID'];
|
||||
$as_type=$row['Type'];
|
||||
$full_link="<a href='~\..\Lab_Report_Assignments\\$att1'>$att1</a>";
|
||||
|
||||
|
@ -219,10 +321,11 @@ if (isset($_SESSION['info_courses'])) {
|
|||
|
||||
echo " <div class='break-word btn btn-default' style='word-wrap: break-word;border-color:grey;'>
|
||||
$title ($as_type) <br> $ins
|
||||
|
||||
<br> <span style='font-size:8pt'>Posted : $posted Deadline : <b> $deadline </b> ($marks Marks) "
|
||||
. "<br>"
|
||||
|
||||
. "<span class='btn-default'> $count_subs Submissions ( $count_marked Marked ) <a href='~\..\Submissions.php?id=$id&header=$header&total=$marks' onclick=''> View </a> | <a href='#' onclick='extend_deadline($id)'> Extend Deadline </a> </span> <hr> Attachments : $full_link </span>"
|
||||
. "<span class='btn-default'> $count_subs Submissions ( $count_marked Marked ) <a href='Courses.php?course=".$url."&act=edit&cid=".$id."'>Edit</a> | <a href='~\..\Submissions.php?id=$id&header=$header&total=$marks' onclick=''> View </a> | <a href='#' onclick='extend_deadline($id)'> Extend Deadline </a> </span> <hr> Attachments : $full_link </span>"
|
||||
. " </div>
|
||||
";
|
||||
|
||||
|
|
11
Header.php
11
Header.php
|
@ -25,19 +25,22 @@ else
|
|||
|
||||
<html>
|
||||
<header>
|
||||
|
||||
<title>Lab Report Repository System</title>
|
||||
|
||||
<link href="css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
|
||||
|
||||
<!--<link href="font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css"/> -->
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.8.2/css/fontawesome.min.css" />
|
||||
<link href="font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css"/>
|
||||
<script src="http://118.25.96.118/nor/css/jquery.min.js" type="text/javascript"></script>
|
||||
<script src="http://118.25.96.118/nor/css/bootsrap.min.js" type="text/javascript"></script>
|
||||
<link href="http://118.25.96.118/nor/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
|
||||
<script src="http://118.25.96.118/nor/css/jquery.datetimepicker.min.js" type="text/javascript"></script>
|
||||
|
||||
<link rel="stylesheet" href="https://cdn.bootcdn.net/ajax/libs/jqueryui/1.12.1/jquery-ui.css">
|
||||
<script src="https://cdn.bootcdn.net/ajax/libs/jqueryui/1.12.1/jquery-ui.js"></script>
|
||||
|
||||
<link rel = "shortcut icon" href = "logo_text.png">
|
||||
|
||||
|
||||
|
||||
|
||||
</header>
|
||||
|
||||
|
|
196
README.md
196
README.md
|
@ -11,19 +11,116 @@ The LRR's project home page is at http://118.25.96.118/nor/homepage/index.html.
|
|||
|
||||
# Mission
|
||||
|
||||
Our mission is to make the learning experience great for tens of hundreds of students in the department of computer science.
|
||||
Our mission is to make the experience of submitting assignments great for tens of hundreds of students in the department of computer science at the Zhejiang Normal University (Jinhua City, Zhejiang Province).
|
||||
|
||||
|
||||
|
||||
# Installation Instructions
|
||||
|
||||
Check file INSTALLATION.md (TBA) for details.
|
||||
|
||||
|
||||
|
||||
|
||||
# Current Status
|
||||
|
||||
This software has been actively used by students who took or are taking courses taught by Hui. There are more than 200 student accounts created since its first launch.
|
||||
This software has been actively used by students who took or are
|
||||
taking courses (Introduction to Software Engineering and Software
|
||||
Project Management) taught by Hui.
|
||||
|
||||
There are more than 200 student accounts created since its first
|
||||
launch in 2018.
|
||||
|
||||
A running instance of this software is at http://118.25.96.118/nor/
|
||||
|
||||
There are about 40 bugs (most being CRITICAL) that remain unresolved before LRR can hit its beta release. See the section *The Bug Tracker* for more details.
|
||||
There are about 40 bugs (most being CRITICAL) that remain unresolved
|
||||
before LRR can hit its beta release. See the section *The Bug
|
||||
Tracker* for more detail. Currently, there are a few groups (formed
|
||||
by students who are taking Software Project Management) working on
|
||||
these bugs.
|
||||
|
||||
Currently, there are a few groups (formed by students who are taking Software Project Management) working on these bugs.
|
||||
|
||||
|
||||
|
||||
# The Bug Tracker
|
||||
|
||||
We use Bugzilla to track LRR's bugs and feature requests.
|
||||
|
||||
Most bugs of this software are recorded on the bug tracker for LRR:
|
||||
http://118.25.96.118/bugzilla/describecomponents.cgi?product=Lab%20Report%20Repository%20%28nor%20houzi%29
|
||||
|
||||
|
||||
|
||||
# TODO
|
||||
|
||||
- *Receiving email for password resetting*. Password resetting link is not always sent successfully.
|
||||
|
||||
- *How assignements should be stored?* Creating sub-directories on all student submissions course-code/semester/section-number. (/student-number/course-code/semester/section-number/assignement-title/submission.txt)
|
||||
|
||||
- *Feature request*. Editing the assignment title after uploading a new assignment (instructor).
|
||||
|
||||
- [SOLVED] A new user could not login immediately after sign up.
|
||||
|
||||
- A more complete list of TODO's is at http://lanlab.org/course/2020s/spm/decide-areas-for-improvement-review.html
|
||||
|
||||
|
||||
# How to Contribute
|
||||
|
||||
We welcome your participation in this project.
|
||||
|
||||
Your participation does not have to be in the form of contributing code. You could help us on
|
||||
ideas, suggestions, documentation, etc.
|
||||
|
||||
|
||||
You need to be an invited member of *Lan Laboratory* before you can
|
||||
push your feature branch or bugfix branch to the central reops at
|
||||
https://github.com/lanlab-org
|
||||
|
||||
Send Hui (lanhui at zjnu.edu.cn) an email message including your
|
||||
GitHub account name so that he could invite you to be a member of *Lan
|
||||
Laboratory*.
|
||||
|
||||
As of March 31 2020, there are 30 members in *Lan Laboratory* (https://github.com/orgs/lanlab-org/people).
|
||||
|
||||
You will use the feature-branching workflow (see below) when
|
||||
interacting with the central repo. The main point of this workflow is
|
||||
that you work on a branch on your local drive, push that branch to the
|
||||
central repo, and create a Pull Request (i.e., Pull Me Request) at
|
||||
GitHub for other people to review your changes. When everything is
|
||||
OK, then *someone* could merge your changes to the master branch in the
|
||||
central repo.
|
||||
|
||||
I believe that *code review* at the Pull Request stage is important
|
||||
for both improving code quality and improving team quality.
|
||||
|
||||
|
||||
|
||||
## The Feature-branching Workflow
|
||||
|
||||
We will use the feature-branching workflow for collaboration. The
|
||||
idea is that you make your own branch, work on it, and push this branch to
|
||||
the central repo for review.
|
||||
|
||||
Check the section **The feature-branching workflow** in the following link for more detail:
|
||||
|
||||
https://github.com/spm2020spring/TeamCollaborationTutorial/blob/master/team.rst
|
||||
|
||||
|
||||
|
||||
## Communications Method
|
||||
|
||||
For real-time communication, check our IRC channel `#lrr` at irc.freenode.org. Check this link http://lanlab.org/course/2020s/spm/irc-instruction.txt
|
||||
for how to use IRC.
|
||||
|
||||
To submit bug reports or improvement ideas, please ask Hui [lanhui at zjnu.edu.cn] to open a Bugzilla account for you.
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## Frequently Asked Questions
|
||||
|
||||
Check FAQ.md (TBA) for details.
|
||||
|
||||
|
||||
|
||||
|
@ -32,63 +129,46 @@ Currently, there are a few groups (formed by students who are taking Software Pr
|
|||
The original GitHub Repo is at https://github.com/EngMohamedNor/LabReportRepo
|
||||
|
||||
|
||||
|
||||
|
||||
# The Bug Tracker
|
||||
|
||||
Most bugs of this software have been reported on the LRR bug tracker: http://118.25.96.118/bugzilla/describecomponents.cgi?product=Lab%20Report%20Repository%20%28nor%20houzi%29
|
||||
|
||||
|
||||
|
||||
# TODO
|
||||
|
||||
- [SOLVED] A new user could not login immediately after sign up.
|
||||
|
||||
- *Receiving email for password resetting*. Password resetting link is not always sent successfully.
|
||||
|
||||
- *How assignements should be stored?* Creating sub-directories on all student submissions course-code/semester/section-number. (/student-number/course-code/semester/section-number/assignement-title/submission.txt)
|
||||
|
||||
- *Feature request*. Editing the assignment title after uploading a new assignment (instructor).
|
||||
|
||||
|
||||
We welcome your participation in this project. Your participation does not have to be coding. You could help us on ideas, suggestions, information, etc.
|
||||
|
||||
|
||||
*Last modified on 22 March 2020*
|
||||
|
||||
|
||||
|
||||
# How to Contribute
|
||||
|
||||
You need to be an invited member of *Lan Laboratory* before you can push your feature branch or bugfix branch to the central reops at https://github.com/lanlab-org
|
||||
|
||||
Send Hui (lanhui at zjnu.edu.cn) an email message including your GitHub account name so that he could invite you to be a member of *Lan Laboratory*.
|
||||
|
||||
Currently, there are 9 members in *Lan Laboratory* (https://github.com/orgs/lanlab-org/people).
|
||||
|
||||
You will use the feature-branching workflow (see below) when
|
||||
interacting with the central repo. The main point of this workflow is
|
||||
that you work on a branch on your local drive, push that branch to the
|
||||
central repo, and create a Pull Request (i.e., Pull Me Request) at
|
||||
GitHub for other people to review your changes. When everything is
|
||||
OK, then you could merge your changes to the master branch in the
|
||||
central repo.
|
||||
|
||||
I believe that *code review* at the Pull Request stage is a very important activity for effectively improving both code quality and team quality.
|
||||
|
||||
|
||||
## The feature-branching workflow
|
||||
|
||||
Check the section **The feature-branching workflow** in the following link:
|
||||
|
||||
https://github.com/spm2020spring/TeamCollaborationTutorial/blob/master/team.rst
|
||||
|
||||
|
||||
|
||||
# Contributor List
|
||||
|
||||
|
||||
(Please put your name and student number below.)
|
||||
|
||||
TanakaMichelle - Tanaka Michelle Sandati - 201732120134
|
||||
|
||||
WhyteAsamoah - Yeboah Martha Asamoah - 201732120135
|
||||
|
||||
xiaoyusoil - ZhengXiaoyu - 201732120110
|
||||
xiaoyusoil - ZhengXiaoyu - 201732120110
|
||||
|
||||
|
||||
Benny123-cell - ZhangBin - 201732120127
|
||||
|
||||
421281726 - LiJiaxing - 201732120118
|
||||
|
||||
zhenghongyu-david - ZhengHongyu - 201732120128
|
||||
|
||||
wkytz - YeHantao - 201732120125
|
||||
|
||||
zego000 - GaoZeng - 201732120117
|
||||
|
||||
Richard1427 - XieJiacong - 201732120123
|
||||
|
||||
yutengYing - YingYuteng - 201732120126
|
||||
|
||||
Samrusike - Samantha Rusike - 201632120140
|
||||
|
||||
Teecloudy - Ashly Tafadzwa Dhani - 201632120150
|
||||
|
||||
GuedaliaBonheurSPM - Guedalia Youma - 201925800221
|
||||
|
||||
ACorneille - Alimasi Corneille - 201925800168
|
||||
|
||||
Tabithakipanga - Kipanga Dorcas - 201925800170
|
||||
|
||||
Mary-AK - Mary Akussah Doe - 201925800173
|
||||
|
||||
pkkumson - Kumson Princewill Kum - 201925800166
|
||||
|
||||
Twizere - Twizere Pacifique - 201925800174
|
||||
|
||||
Nicole-Rutagengwa - Nicole Rutagengwa - 201925800169
|
||||
|
|
438
Script.php
438
Script.php
|
@ -41,7 +41,7 @@ if (!empty($_POST["frm_signup_1"])) {
|
|||
// Just removed this condition from the above command and (Passport_Number='$passport' or Passport_Number = '')
|
||||
if(mysqli_num_rows($result)==0)
|
||||
{
|
||||
$_SESSION["info_signup1"]="Student Information could not be verified ! Plaese contact student Management Office.";
|
||||
$_SESSION["info_signup1"]="Student Information could not be verified ! Please contact Student Management Office.";
|
||||
header("Location: index.php");
|
||||
return;
|
||||
}
|
||||
|
@ -62,7 +62,7 @@ if (!empty($_POST["frm_signup_1"])) {
|
|||
}
|
||||
else
|
||||
{
|
||||
$_SESSION["info_signup1"]="Student ID already Used ! Please contact student Management Office if you could not login to your account.";
|
||||
$_SESSION["info_signup1"]="Student ID already in use ! Please contact Student Management Office if you failed to login to your account.";
|
||||
header("Location: index.php");
|
||||
return;
|
||||
}
|
||||
|
@ -119,7 +119,7 @@ if (!empty($_POST["frm_signup_1"])) {
|
|||
"SELECT * FROM Users_Table WHERE email='$email'");
|
||||
if(mysqli_num_rows($result)!=0)
|
||||
{
|
||||
$_SESSION["info_signup2"]="Email adress : ".$email." is already used.";
|
||||
$_SESSION["info_signup2"]="Email adress : ".$email." already in use.";
|
||||
header("Location: signup.php");
|
||||
return;
|
||||
}
|
||||
|
@ -242,7 +242,7 @@ $msg=urlencode(" <h3>Lab Report Repository System - ZJNU</h3> <br> Hi <b>"
|
|||
.$name.
|
||||
" </b> Here is your password recovery link , "
|
||||
.$link.
|
||||
" to reset your password , <br> please ignore this message if you did not requested password recovery.<br><br> <hr><br><br>
|
||||
" to reset your password , <br> please ignore this message if you did not request password recovery.<br><br> <hr><br><br>
|
||||
您好 $name, 这是你的密码恢复链接,点击上面的链接 重置你的密码,
|
||||
如果您没有请求密码恢复,请忽略此消息。 <br><br><br><br><br> <small>LRR System by Mohamed Nor. </small><hr>");
|
||||
|
||||
|
@ -381,12 +381,12 @@ if($user_token==$token)
|
|||
$fullname=mysqli_real_escape_string($con,$_POST["fullname"]);
|
||||
$type=mysqli_real_escape_string($con,$_POST["type"]);
|
||||
$password=$passport;
|
||||
// check if email is taked
|
||||
// check if email is taken
|
||||
$result = mysqli_query($con,
|
||||
"SELECT * FROM Users_Table WHERE email='$email'");
|
||||
if(mysqli_num_rows($result)!=0)
|
||||
{
|
||||
$_SESSION["info_Admin_Users"]="Email adress : ".$email." is already used.";
|
||||
$_SESSION["info_Admin_Users"]="Email adress : ".$email." is already in use.";
|
||||
header("Location: Admin.php");
|
||||
}
|
||||
$sql= "INSERT INTO `users_table`(`Email`, `Password`, `Full_Name`, `UserType`, `Passport_Number`) VALUES "
|
||||
|
@ -397,7 +397,7 @@ if($user_token==$token)
|
|||
header("Location: Admin.php");
|
||||
|
||||
} else {
|
||||
echo "Error: " . $sql . "<br>" . $conn->error;
|
||||
echo "Error: " . $sql . "<br>" . $con->error;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -506,11 +506,11 @@ $mkDir = "";
|
|||
$course_id=mysqli_real_escape_string($con,$_POST["course_id"]);
|
||||
$deadlinedate=$_POST["deadlinedate"];
|
||||
$deadlinetime=$_POST["deadlinetime"];
|
||||
$instructions=mysqli_real_escape_string($con,$_POST["instructions"]);
|
||||
$title=mysqli_real_escape_string($con,$_POST["title"]);
|
||||
$marks=mysqli_real_escape_string($con,$_POST["marks"]);
|
||||
$url=mysqli_real_escape_string($con,$_POST["url"]);
|
||||
|
||||
$instructions=mysqli_real_escape_string($con,$_POST["instructions"]);
|
||||
$title=mysqli_real_escape_string($con,$_POST["title"]);
|
||||
$marks=mysqli_real_escape_string($con,$_POST["marks"]);
|
||||
// $url=mysqli_real_escape_string($con,$_POST["url"]);
|
||||
$url=$_SESSION['url']; //using real_escape_string was failing to redirect to the main page
|
||||
$type=mysqli_real_escape_string($con,$_POST["type"]);
|
||||
|
||||
|
||||
|
@ -532,19 +532,6 @@ $mkDir = "";
|
|||
$targetfile4 = $target_dir.$rnd.$_FILES['attachment4']['name'];
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
//$curDateTime = date("Y-m-d H:i");
|
||||
//$myDate = date("Y-m-d H:i", strtotime("2017-12-28 18:01"));
|
||||
//if($curDateTime <= $myDate ){
|
||||
// echo "active ".+$curDateTime." mydate= ".$myDate;
|
||||
//
|
||||
//}else{
|
||||
// echo "inactive c=".$curDateTime;
|
||||
//}
|
||||
//
|
||||
|
||||
$count=0;
|
||||
|
||||
|
@ -619,12 +606,6 @@ $targetfile2="";
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// return;
|
||||
|
||||
|
@ -642,7 +623,7 @@ $targetfile2="";
|
|||
header("Location: Courses.php?course=".$url);
|
||||
|
||||
} else {
|
||||
echo "Error: " . $sql . "<br>" . $conn->error;
|
||||
echo "Error: " . $sql . "<br>" . $con->error;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -683,50 +664,51 @@ if($result>20)
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
// ############################### Submit Assignment ##################################
|
||||
if (!empty($_POST["frm_submitlab"])) {
|
||||
// ############################### Submit Assignment ##################################
|
||||
if (!empty($_POST["frm_submitlab"])) {
|
||||
|
||||
|
||||
|
||||
$lab_id=mysqli_real_escape_string($con,$_POST["lab_id"]);
|
||||
$student_id=$_POST["student_id"];
|
||||
$group_id=$_POST["group_id"];
|
||||
|
||||
$lab_id=mysqli_real_escape_string($con,$_POST["lab_id"]);
|
||||
$student_id=$_POST["student_id"];
|
||||
$group_id=$_POST["group_id"];
|
||||
|
||||
|
||||
$instructions=mysqli_real_escape_string($con,$_POST["instructions"]);
|
||||
$title=mysqli_real_escape_string($con,$_POST["title"]);
|
||||
|
||||
$url=mysqli_real_escape_string($con,$_POST["url"]);
|
||||
|
||||
|
||||
$deadline=$deadlinedate." ".$deadlinetime;
|
||||
$date= date("Y-m-d H:i");
|
||||
|
||||
|
||||
|
||||
// GET UPLOADED FILES
|
||||
|
||||
|
||||
|
||||
$labName = mysqli_query($con,"SELECT Title FROM `lab_reports_table` WHERE Lab_Report_ID=$lab_id");
|
||||
while($row = mysqli_fetch_assoc($labName)) {$lab_name=$row['Title'];}
|
||||
|
||||
|
||||
$target_dir =Create_dir("Lab_Report_Submisions/".$student_id."/".$lab_name."/");
|
||||
|
||||
|
||||
|
||||
$targetfile = $target_dir.$_FILES['attachment1']['name'];
|
||||
$targetfile2 = $target_dir.$_FILES['attachment2']['name'];
|
||||
$targetfile3 = $target_dir.$_FILES['attachment3']['name'];
|
||||
$targetfile4 = $target_dir.$_FILES['attachment4']['name'];
|
||||
|
||||
|
||||
$instructions=mysqli_real_escape_string($con,$_POST["instructions"]);
|
||||
$title=mysqli_real_escape_string($con,$_POST["title"]);
|
||||
|
||||
$url=mysqli_real_escape_string($con,$_POST["url"]);
|
||||
|
||||
|
||||
$deadline=$deadlinedate." ".$deadlinetime;
|
||||
$date= date("Y-m-d H:i");
|
||||
|
||||
|
||||
|
||||
// GET UPLOADED FILES
|
||||
|
||||
|
||||
|
||||
$labName = mysqli_query($con,"SELECT * FROM `lab_reports_table` WHERE Lab_Report_ID=$lab_id");
|
||||
while($row = mysqli_fetch_assoc($labName))
|
||||
{$lab_name=$row['Title'];
|
||||
$_SESSION['Sub_Type']=$row['Type'];
|
||||
}
|
||||
|
||||
|
||||
$target_dir =Create_dir("Lab_Report_Submisions/".$student_id."/".$lab_name."/");
|
||||
|
||||
|
||||
|
||||
$targetfile = $target_dir.$_FILES['attachment1']['name'];
|
||||
$targetfile2 = $target_dir.$_FILES['attachment2']['name'];
|
||||
$targetfile3 = $target_dir.$_FILES['attachment3']['name'];
|
||||
$targetfile4 = $target_dir.$_FILES['attachment4']['name'];
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
//$curDateTime = date("Y-m-d H:i");
|
||||
//$myDate = date("Y-m-d H:i", strtotime("2017-12-28 18:01"));
|
||||
|
@ -738,136 +720,152 @@ if($result>20)
|
|||
//}
|
||||
//
|
||||
|
||||
$count=0;
|
||||
|
||||
|
||||
|
||||
$count=0;
|
||||
|
||||
|
||||
//check zise
|
||||
if(!checksize("attachment1"))
|
||||
{
|
||||
echo "20 MB is the maximum file size allowed";
|
||||
return;
|
||||
}
|
||||
if(!checksize("attachment2") && $_FILES["attachment2"]["name"]!="")
|
||||
{
|
||||
echo "20 MB is the maximum file size allowed";
|
||||
return;
|
||||
}
|
||||
if(!checksize("attachment3") && $_FILES["attachment3"]["name"]!="")
|
||||
{
|
||||
echo "20 MB is the maximum file size allowed";
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
if(!is_valid("attachment1"))
|
||||
{
|
||||
echo "Invalid File Type for Attachment 1";
|
||||
return;
|
||||
}
|
||||
if(!is_valid("attachment2") && $_FILES["attachment2"]["name"]!="")
|
||||
{
|
||||
echo "Invalid File Type for Attachment 2";
|
||||
return;
|
||||
}
|
||||
if(!is_valid("attachment3") && $_FILES["attachment3"]["name"]!="")
|
||||
{
|
||||
echo "Invalid File Type for Attachment 3";
|
||||
return;
|
||||
}
|
||||
|
||||
if($_FILES["attachment1"]["error"] != 0) {
|
||||
echo "Error uploading the file ";
|
||||
return;
|
||||
|
||||
|
||||
//check zise
|
||||
if(!checksize("attachment1"))
|
||||
{
|
||||
echo "2 MB is the maximum file size allowed";
|
||||
return;
|
||||
}
|
||||
if(!checksize("attachment2") && $_FILES["attachment2"]["name"]!="")
|
||||
{
|
||||
echo "2 MB is the maximum file size allowed";
|
||||
return;
|
||||
}
|
||||
if(!checksize("attachment3") && $_FILES["attachment3"]["name"]!="")
|
||||
{
|
||||
echo "2 MB is the maximum file size allowed";
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
if(!is_valid("attachment1"))
|
||||
{
|
||||
echo "Invalid File Type for Attachment 1";
|
||||
return;
|
||||
}
|
||||
if(!is_valid("attachment2") && $_FILES["attachment2"]["name"]!="")
|
||||
{
|
||||
echo "Invalid File Type for Attachment 2";
|
||||
return;
|
||||
}
|
||||
if(!is_valid("attachment3") && $_FILES["attachment3"]["name"]!="")
|
||||
{
|
||||
echo "Invalid File Type for Attachment 3";
|
||||
return;
|
||||
}
|
||||
|
||||
if($_FILES["attachment1"]["error"] != 0) {
|
||||
echo "Error uploading the file ";
|
||||
return;
|
||||
}
|
||||
|
||||
// use 4 for missing file
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
if (move_uploaded_file($_FILES['attachment1']['tmp_name'], $targetfile)) {
|
||||
$count++;
|
||||
} else {
|
||||
echo $_FILES['attachment1']['error'];
|
||||
}
|
||||
|
||||
if (move_uploaded_file($_FILES['attachment2']['tmp_name'], $targetfile2)) {
|
||||
$count++;
|
||||
} else {
|
||||
echo $_FILES['attachment2']['error'];
|
||||
}
|
||||
|
||||
if (move_uploaded_file($_FILES['attachment3']['tmp_name'], $targetfile3)) {
|
||||
$count++;
|
||||
} else {
|
||||
echo $_FILES['attachment3']['error'];
|
||||
}
|
||||
|
||||
if (move_uploaded_file($_FILES['attachment4']['tmp_name'], $targetfile4)) {
|
||||
$count++;
|
||||
} else {
|
||||
echo $_FILES['attachment4']['error'];
|
||||
}
|
||||
//}
|
||||
|
||||
|
||||
|
||||
|
||||
echo $count." File(s) uploaded";
|
||||
|
||||
//CLEAN
|
||||
$targetfile1="";
|
||||
$targetfile2="";
|
||||
$targetfile3="";
|
||||
$targetfile4="";
|
||||
|
||||
if(strlen($_FILES['attachment1']['name']) > 2 ) {
|
||||
$targetfile="/".$student_id."/".$lab_name."/".$_FILES['attachment1']['name'];
|
||||
}
|
||||
|
||||
if(strlen($_FILES['attachment2']['name']) > 2 ) {
|
||||
$targetfile2="/".$student_id."/".$lab_name."/".$_FILES['attachment2']['name']; }
|
||||
|
||||
if(strlen($_FILES['attachment3']['name']) > 2 ) {
|
||||
$targetfile3= "/".$student_id."/".$lab_name."/".$_FILES['attachment3']['name'];}
|
||||
|
||||
if(strlen($_FILES['attachment4']['name']) > 2 ) {
|
||||
$targetfile4= "/".$student_id."/".$lab_name."/".$_FILES['attachment4']['name'];
|
||||
}
|
||||
|
||||
|
||||
$sql1="Delete from lab_report_submissions where Lab_Report_ID=$lab_id and Student_id=$student_id and Course_Group_id=$group_id";
|
||||
if ($con->query($sql1) === TRUE) {
|
||||
}
|
||||
|
||||
if($group_id>0)
|
||||
{
|
||||
$student_id=0;
|
||||
}
|
||||
|
||||
$sql="INSERT INTO `lab_report_submissions`(`Submission_Date`, `Lab_Report_ID`, `Student_id`,"
|
||||
. " `Course_Group_id`, `Attachment1`, `Notes`, `Attachment2`, `Attachment3`, `Attachment4`, `Status`, `Title`,`Remarking_Reason`)"
|
||||
. " VALUES ('$date',$lab_id,$student_id,$group_id,'$targetfile','$instructions','$targetfile2','$targetfile3','$targetfile4',"
|
||||
. "'Pending','$title','')";
|
||||
|
||||
|
||||
|
||||
if ($con->query($sql) === TRUE) {
|
||||
|
||||
$_SESSION["info_courses"]=$type." Lab Report Assignment Submitted successfully.";
|
||||
header("Location: Course.php?url=".$url);
|
||||
|
||||
} else {
|
||||
echo "Error: <br>" . $con->error;
|
||||
|
||||
|
||||
if (move_uploaded_file($_FILES['attachment1']['tmp_name'], $targetfile)) {
|
||||
$count++;
|
||||
} else {
|
||||
echo $_FILES['attachment1']['error'];
|
||||
}
|
||||
}
|
||||
|
||||
if (move_uploaded_file($_FILES['attachment2']['tmp_name'], $targetfile2)) {
|
||||
$count++;
|
||||
} else {
|
||||
echo $_FILES['attachment2']['error'];
|
||||
}
|
||||
|
||||
if (move_uploaded_file($_FILES['attachment3']['tmp_name'], $targetfile3)) {
|
||||
$count++;
|
||||
} else {
|
||||
echo $_FILES['attachment3']['error'];
|
||||
}
|
||||
|
||||
if (move_uploaded_file($_FILES['attachment4']['tmp_name'], $targetfile4)) {
|
||||
$count++;
|
||||
} else {
|
||||
echo $_FILES['attachment4']['error'];
|
||||
}
|
||||
//}
|
||||
|
||||
|
||||
|
||||
|
||||
echo $count." File(s) uploaded";
|
||||
|
||||
//CLEAN
|
||||
$targetfile1="";
|
||||
$targetfile2="";
|
||||
$targetfile3="";
|
||||
$targetfile4="";
|
||||
|
||||
if(strlen($_FILES['attachment1']['name']) > 2 ) {
|
||||
$targetfile="/".$student_id."/".$lab_name."/".$_FILES['attachment1']['name'];
|
||||
}
|
||||
|
||||
if(strlen($_FILES['attachment2']['name']) > 2 ) {
|
||||
$targetfile2="/".$student_id."/".$lab_name."/".$_FILES['attachment2']['name']; }
|
||||
|
||||
if(strlen($_FILES['attachment3']['name']) > 2 ) {
|
||||
$targetfile3= "/".$student_id."/".$lab_name."/".$_FILES['attachment3']['name'];}
|
||||
|
||||
if(strlen($_FILES['attachment4']['name']) > 2 ) {
|
||||
$targetfile4= "/".$student_id."/".$lab_name."/".$_FILES['attachment4']['name'];
|
||||
}
|
||||
|
||||
|
||||
$sql1="Delete from lab_report_submissions where Lab_Report_ID=$lab_id and Student_id=$student_id and Course_Group_id=$group_id";
|
||||
if ($con->query($sql1) === TRUE) {
|
||||
}
|
||||
|
||||
|
||||
// When $group_id is not properly initialized, use integer 0 as its value.
|
||||
// This temporarily fixed the "Students unable to submit assignment after a recent change" bug at http://118.25.96.118/bugzilla/show_bug.cgi?id=65
|
||||
if (trim($group_id) === '') { // when $group_id is an empty string or contains only whitespace characters.
|
||||
$group_id = 0; // FIXME
|
||||
}
|
||||
|
||||
$sql="INSERT INTO `lab_report_submissions`(`Submission_Date`, `Lab_Report_ID`, `Student_id`,"
|
||||
. " `Course_Group_id`, `Attachment1`, `Notes`, `Attachment2`, `Attachment3`, `Attachment4`, `Status`, `Title`,`Remarking_Reason`)"
|
||||
. " VALUES ('$date',$lab_id,$student_id,$group_id,'$targetfile','$instructions','$targetfile2','$targetfile3','$targetfile4',"
|
||||
. "'Pending','$title','')";
|
||||
|
||||
|
||||
|
||||
if ($con->query($sql) === TRUE) {
|
||||
if($_SESSION['Sub_Type']=='Individual')
|
||||
// {
|
||||
// // $con->query($sql = "UPDATE `lab_report_submissions` SET `Student_id` = ('".$student_id."') WHERE `lab_report_submissions`.`Course_Group_id` = '$group_id'");
|
||||
// }
|
||||
// else
|
||||
{
|
||||
$con->query($sql = "UPDATE `lab_report_submissions` SET `Course_Group_id` = '0' WHERE `lab_report_submissions`.`Lab_Report_ID` = '$lab_id'");
|
||||
}
|
||||
|
||||
$_SESSION["info_courses"]=$type." Lab Report Assignment Submitted successfully.";
|
||||
header("Location: Course.php?url=".$url);
|
||||
|
||||
} else {
|
||||
echo "Error: <br>" . $con->error;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -1054,10 +1052,7 @@ if($result>20)
|
|||
$sql="INSERT INTO `course_groups_table`(`Group_Name`,
|
||||
`Group_Leader`, `Course_id`) VALUES ('$name',$student_id,$id)";
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
if ($con->query($sql) === TRUE) {
|
||||
|
||||
|
@ -1095,6 +1090,7 @@ if($result>20)
|
|||
$url=$_GET["url"];
|
||||
$courseid=$_GET["courseid"];
|
||||
$groupid=$_GET["groupid"];
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -1152,8 +1148,56 @@ if($result>20)
|
|||
} else {
|
||||
echo "Error: " . $sql . "<br>" . $con->error;
|
||||
}
|
||||
|
||||
|
||||
// if(($_SESSION['Group_Member4']=='0') or ($_SESSION['Group_Member3']=='0') or ($_SESSION['Group_Member2']=='0') or ($_SESSION['Group_Member']=='0')){
|
||||
$sql="INSERT INTO `course_group_members_table`( `Course_Group_id`, `Student_ID`, `Status`)
|
||||
VALUES ($groupid,$student_id,'Invited')";
|
||||
if ($con->query($sql) === TRUE) {
|
||||
|
||||
$resultx1 = mysqli_query($con,"SELECT * FROM course_groups_table where Course_Group_id ='$groupid'");
|
||||
|
||||
while($row = mysqli_fetch_assoc($resultx1))
|
||||
{
|
||||
$Group_Member=$row['Group_Member'];
|
||||
$Group_Member4=$row['Group_Member4'];
|
||||
$Group_Member2=$row['Group_Member2'];
|
||||
$Group_Member3=$row['Group_Member3'];
|
||||
$_SESSION['Group_Member4']=$Group_Member4;
|
||||
$_SESSION['Group_Member3']=$Group_Member3;
|
||||
$_SESSION['Group_Member2']=$Group_Member2;
|
||||
$_SESSION['Group_Member']=$Group_Member;
|
||||
|
||||
if($Group_Member=='0'){
|
||||
mysqli_query($con,"UPDATE `course_groups_table` SET `Group_Member` = ('" . $student_id . "') WHERE `course_groups_table`.`Course_Group_id` = '$groupid'");
|
||||
$_SESSION["info_ReMarking"]=$student_id . " was invited to the group";
|
||||
header("Location: Course.php?url=".$url);
|
||||
}elseif($Group_Member2=='0'){
|
||||
mysqli_query($con,"UPDATE `course_groups_table` SET `Group_Member2` = ('" . $student_id . "') WHERE `course_groups_table`.`Course_Group_id` = '$groupid'");
|
||||
$_SESSION["info_ReMarking"]=$student_id . " was invited to the group";
|
||||
header("Location: Course.php?url=".$url);
|
||||
}elseif($Group_Member3=='0'){
|
||||
mysqli_query($con,"UPDATE `course_groups_table` SET `Group_Member3` = ('" . $student_id . "') WHERE `course_groups_table`.`Course_Group_id` = '$groupid'");
|
||||
$_SESSION["info_ReMarking"]=$student_id . " was invited to the group";
|
||||
header("Location: Course.php?url=".$url);
|
||||
}elseif($Group_Member4=='0'){
|
||||
mysqli_query($con,"UPDATE `course_groups_table` SET `Group_Member4` = ('" . $student_id . "') WHERE `course_groups_table`.`Course_Group_id` = '$groupid'");
|
||||
$_SESSION["info_ReMarking"]=$student_id . " was invited to the group";
|
||||
header("Location: Course.php?url=".$url);
|
||||
} else {
|
||||
$_SESSION["info_ReMarking"]= " You cant add any more members";
|
||||
header("Location: Course.php?url=".$url);
|
||||
|
||||
}
|
||||
}
|
||||
// }
|
||||
|
||||
} }
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -556,11 +556,11 @@ where course_group_members_table.Course_Group_id=$id");
|
|||
|
||||
|
||||
|
||||
<script src="https://code.jquery.com/jquery-1.11.1.min.js"></script>
|
||||
<script src="css/jquery-1.11.1.min.js"></script>
|
||||
|
||||
<script src="https://code.jquery.com/ui/1.11.1/jquery-ui.min.js"></script>
|
||||
<script src="css/jquery-ui.min.js"></script>
|
||||
|
||||
<link rel="stylesheet" href="https://code.jquery.com/ui/1.11.1/themes/smoothness/jquery-ui.css" />
|
||||
<link rel="stylesheet" href="css/jquery-ui.css" />
|
||||
<script>
|
||||
function mark(id,title,marks) {
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@ if(mysqli_num_rows($result1)==0)
|
|||
} else { while($row = mysqli_fetch_assoc($result1)) {
|
||||
|
||||
$Course_ID=$row['Course_ID'];
|
||||
$title=$row['Title'];
|
||||
$title=$row['Title'];
|
||||
$ins=$row['Instructions'];
|
||||
$posted=$row['Posted_Date'];
|
||||
$deadline=$row['Deadline'];
|
||||
|
@ -37,11 +37,14 @@ if(mysqli_num_rows($result1)==0)
|
|||
$labid=$row['Lab_Report_ID'];
|
||||
|
||||
$type=$row['Type'];
|
||||
if($type=="Group"){
|
||||
$resultx1 = mysqli_query($con,"SELECT Course_Group_id FROM `course_groups_table` WHERE Group_Leader=$student_id and Course_id=$Course_ID");
|
||||
while($row = mysqli_fetch_assoc($resultx1)) {$group_id=$row['Course_Group_id'];}
|
||||
|
||||
//----------------------------------Giving both Group Admin and Group Members same priviledges to submit assignment--------------------------------------
|
||||
if($type=="Group"){
|
||||
$resultx1 = mysqli_query($con,"SELECT Course_Group_id FROM `course_groups_table` WHERE (Course_id=$Course_ID) and ((Group_Member=$student_id ) or (Group_Member2=$student_id ) or (Group_Member3=$student_id ) or (Group_Member4=$student_id ) or(Group_Leader=$student_id))");
|
||||
while($row = mysqli_fetch_assoc($resultx1)) {
|
||||
$_SESSION["Group_ID"]=$row['Course_Group_id'];}
|
||||
|
||||
if($group_id<1)
|
||||
if($_SESSION["Group_ID"]<1)
|
||||
{
|
||||
echo" <center><h3> This Lab report can only be submitted by Group Admin </h3> </center> ";
|
||||
return;
|
||||
|
@ -93,6 +96,7 @@ if(mysqli_num_rows($result1)==0)
|
|||
|
||||
|
||||
}
|
||||
$Group_ID=$_SESSION["Group_ID"];
|
||||
?>
|
||||
|
||||
|
||||
|
@ -117,7 +121,7 @@ if(mysqli_num_rows($result1)==0)
|
|||
<input type='hidden' name='lab_id' value='<?php echo $id; ?>' required=''/>
|
||||
<input type='hidden' name='student_id' value='<?php echo $student_id; ?>' required=''/>
|
||||
|
||||
<input type='hidden' name='group_id' value='0' required=''/>
|
||||
<input type='hidden' name='group_id' value='<?php echo $Group_ID; ?>' required=''/>
|
||||
<input type='hidden' name='url' value='<?php echo $url; ?>' required=''/>
|
||||
|
||||
|
||||
|
|
|
@ -0,0 +1,21 @@
|
|||
LRR User Documentation
|
||||
======================
|
||||
|
||||
|
||||
Resetting password
|
||||
-------------------
|
||||
|
||||
We can reset a user's password by directly modifying the MySQL database table called `users_table`. More specifically, we delete that user's information from `users_table` so that the user could sign up again. Suppose the user's student number is 201131129138.
|
||||
|
||||
To do so, LRR administrator logs in to MySQL using the following command: `mysql -u username -p`. Type the correct password to access the MySQL database.
|
||||
|
||||
After that, issue the following commands in the mysql prompt.
|
||||
|
||||
- `use lrr;`
|
||||
|
||||
- `delete from users_table where Student_ID="201131129138";`
|
||||
|
||||
The first one uses a database called lrr in MySQL. The second one deletes a record from `users_table` where the student number is 201131129138.
|
||||
|
||||
|
||||
*Last modified on 1 June 2020 by Hui*
|
|
@ -48,7 +48,7 @@
|
|||
|
||||
|
||||
</ul>
|
||||
<h3>Contact</h3>
|
||||
<h3>About us</h3>
|
||||
<ul>
|
||||
|
||||
<li><a href="contact.html">Contact us</a></li>
|
||||
|
@ -67,14 +67,13 @@
|
|||
<div class="tabsLeft">
|
||||
<ul>
|
||||
<ul>
|
||||
<li class="menubox"><a href="index.html" class="menubox">Home</a></li>
|
||||
<li><a href="overview.html" class="active">Overview</a></li>
|
||||
<li><a href="features.html" class="menubox">Features</a></li>
|
||||
<li class="menubox"><a href="index.html" class="menubox" >Home</a></li>
|
||||
<li ><a href="overview.html" class="active">Overview</a></li>
|
||||
<li ><a href="features.html" class="menubox">Features</a></li>
|
||||
<li><a href="screenshots.html" class="menubox">Screenshots</a></li>
|
||||
<li><a href="sourcecode.html" class="menubox">Source Code</a></li>
|
||||
<li><a href="issues.html" class="menubox">Issues</a></li>
|
||||
<li><a href="contact.html" class="menubox">Contact us</a></li>
|
||||
|
||||
<li><a href="issues.html" class="menubox">Issues</a></li>
|
||||
<li ><a href="contact.html" class="menubox">Contact us</a></li>
|
||||
</ul>
|
||||
|
||||
</ul>
|
||||
|
@ -86,24 +85,24 @@
|
|||
<h2>Overview</h2>
|
||||
|
||||
|
||||
LRRS is an open source lab report management software for college students.
|
||||
LRRS is an open-source lab report management software for college students.
|
||||
|
||||
|
||||
<br>
|
||||
The lab report repository system was developed for general purposes and used to replace old
|
||||
paperwork and email-based systems . This system increases the efficiency of lab report
|
||||
The lab report repository system is developing for general purpose and used to replace old
|
||||
paperwork and email based systems . This system increases the efficiency of lab report
|
||||
submission and result reporting for both lecturers and students.
|
||||
<br><br>
|
||||
|
||||
|
||||
The project was developed at ZJNU by Mohamed nor and El-mahdi houzi.
|
||||
The Project was developed at ZJNU by Mohamed nor and El-mahdi houzi.
|
||||
|
||||
The project was tested by some undergraduate students at the Zhejiang Normal University.
|
||||
The project was tested by some undergraduates classes at ZJNU.
|
||||
<br> The system is developed using client/server architecture and its compatible with both Linux and Microsoft Windows Operating Systems. The system was developed using PHP Scripting language and MySQL as database management system.
|
||||
|
||||
|
||||
|
||||
<br> The LRRS project has seen incredible improvements since it's development earlier 2019.
|
||||
<br> The LRRS project have seen incredible improvements since it's development earlier 2019.
|
||||
The software includes a lot of features that simplify assignment submission and grading.
|
||||
|
||||
|
||||
|
@ -111,15 +110,9 @@
|
|||
|
||||
|
||||
|
||||
For helpful hints about how to get the most out of this project, see <a href="quickstart.html"> Quick Start </a> Section.
|
||||
For helpful hints about how to get the most out of this project, see <a href="quickstart.html"> Quick Start</a>.
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<div class="pagefooter">
|
||||
<div class="footerlinks">
|
||||
|
|
|
@ -112,7 +112,7 @@ if(isset($_SESSION['info_signup1'])) {
|
|||
<hr>
|
||||
|
||||
<div style="" id="footer">
|
||||
Developed by : Mohamed Nor (201825800050)-houzi you can submit your suggestions & bug reports to mohamednor@qq.com <small>Last Update : 24/05/2019 by <i>nor</i> </small>
|
||||
Developed by : Mohamed Nor (201825800050)-houzi you can submit your suggestions & bug reports to mohamednor@qq.com <small>Last Update : 18/04/2020 by <i>Ashly</i> </small>
|
||||
|
||||
</div>
|
||||
|
||||
|
|
156
lrr (1).sql
156
lrr (1).sql
|
@ -1,4 +1,11 @@
|
|||
|
||||
-- phpMyAdmin SQL Dump
|
||||
-- version 4.9.2
|
||||
-- https://www.phpmyadmin.net/
|
||||
--
|
||||
-- Host: 127.0.0.1
|
||||
-- Generation Time: Apr 06, 2020 at 05:27 PM
|
||||
-- Server version: 10.4.10-MariaDB
|
||||
-- PHP Version: 7.3.12
|
||||
|
||||
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
|
||||
SET AUTOCOMMIT = 0;
|
||||
|
@ -15,6 +22,24 @@ SET time_zone = "+00:00";
|
|||
-- Database: `lrr`
|
||||
--
|
||||
|
||||
DELIMITER $$
|
||||
--
|
||||
-- Procedures
|
||||
--
|
||||
CREATE DEFINER=`root`@`localhost` PROCEDURE `count_submissions` (OUT `s_count` DECIMAL) BEGIN
|
||||
select count(Student_id) into s_count from lab_report_submissions;
|
||||
|
||||
END$$
|
||||
|
||||
CREATE DEFINER=`root`@`localhost` PROCEDURE `GetAllListings` () BEGIN
|
||||
SELECT nid, type, title FROM node where type = 'lms_listing' order by nid desc;
|
||||
END$$
|
||||
|
||||
DELIMITER ;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `courses_table`
|
||||
--
|
||||
|
||||
|
@ -35,7 +60,9 @@ CREATE TABLE `courses_table` (
|
|||
--
|
||||
|
||||
INSERT INTO `courses_table` (`Course_ID`, `Course_Name`, `Academic_Year`, `Faculty`, `Lecturer_User_ID`, `TA_User_ID`, `Course_Code`, `URL`, `Verify_New_Members`) VALUES
|
||||
(13, 'ASE', '2019', 'Computing', 21, 0, 'ASE2019', 'ASE20192019', '0');
|
||||
(10, 'Software Engineering', '2018', 'Computing', 8, 0, 'CSC1234', 'CSC12342018', '1'),
|
||||
(11, 'Project Management', '2019', 'Computing', 8, 0, 'P.M2019', 'P.M20192019', '0'),
|
||||
(12, 'Ashly Course Testing', '2020', 'Testing', 8, 0, 'Teecloudy', 'Teecloudy2020', '1');
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
|
@ -47,9 +74,21 @@ CREATE TABLE `course_groups_table` (
|
|||
`Course_Group_id` int(11) NOT NULL,
|
||||
`Group_Name` varchar(50) COLLATE utf8mb4_bin DEFAULT NULL,
|
||||
`Group_Leader` varchar(100) COLLATE utf8mb4_bin DEFAULT NULL,
|
||||
`Course_id` int(11) NOT NULL
|
||||
`Course_id` int(11) NOT NULL,
|
||||
`Group_Member` varchar(50) COLLATE utf8mb4_bin DEFAULT '0',
|
||||
`Group_Member2` varchar(50) COLLATE utf8mb4_bin DEFAULT '0',
|
||||
`Group_Member3` varchar(50) COLLATE utf8mb4_bin DEFAULT '0',
|
||||
`Group_Member4` varchar(50) COLLATE utf8mb4_bin DEFAULT '0'
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
|
||||
|
||||
--
|
||||
-- Dumping data for table `course_groups_table`
|
||||
--
|
||||
|
||||
INSERT INTO `course_groups_table` (`Course_Group_id`, `Group_Name`, `Group_Leader`, `Course_id`, `Group_Member`, `Group_Member2`, `Group_Member3`, `Group_Member4`) VALUES
|
||||
(1, 'Group 1', '201825800050', 10, '', '', '', ''),
|
||||
(31, 'Testing1', '201825800050', 12, '201632120150', '201825800054', '2016321201502', '11');
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
|
@ -63,6 +102,18 @@ CREATE TABLE `course_group_members_table` (
|
|||
`Status` varchar(50) COLLATE utf8mb4_bin DEFAULT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
|
||||
|
||||
--
|
||||
-- Dumping data for table `course_group_members_table`
|
||||
--
|
||||
|
||||
INSERT INTO `course_group_members_table` (`ID`, `Course_Group_id`, `Student_ID`, `Status`) VALUES
|
||||
(1, 1, '201825800050', 'Created'),
|
||||
(78, 29, '201632120150', 'Created'),
|
||||
(83, 31, '201825800050', 'Created'),
|
||||
(84, 31, '201632120150', 'Joined'),
|
||||
(85, 31, '201825800054', 'Invited'),
|
||||
(86, 31, '2016321201502', 'Joined');
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
|
@ -81,7 +132,12 @@ CREATE TABLE `course_students_table` (
|
|||
--
|
||||
|
||||
INSERT INTO `course_students_table` (`Course_ID`, `Student_ID`, `ID`, `Status`) VALUES
|
||||
(13, '201825800051', 17, 'Joined');
|
||||
(9, '201825800050', 12, 'Joined'),
|
||||
(10, '201825800050', 13, 'Joined'),
|
||||
(10, '201825800054', 14, 'Joined'),
|
||||
(12, '201632120150', 15, 'Joined'),
|
||||
(12, '2016321201502', 16, 'Joined'),
|
||||
(12, '201825800050', 17, 'Joined');
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
|
@ -94,6 +150,15 @@ CREATE TABLE `course_ta` (
|
|||
`TA` int(11) NOT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
|
||||
|
||||
--
|
||||
-- Dumping data for table `course_ta`
|
||||
--
|
||||
|
||||
INSERT INTO `course_ta` (`Course_ID`, `TA`) VALUES
|
||||
(10, 11),
|
||||
(10, 10),
|
||||
(11, 10);
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
|
@ -105,7 +170,7 @@ CREATE TABLE `extended_deadlines_table` (
|
|||
`Student_ID` varchar(100) COLLATE utf8mb4_bin DEFAULT NULL,
|
||||
`Lab_Report_ID` int(11) DEFAULT NULL,
|
||||
`Extended_Deadline_Date` date DEFAULT NULL,
|
||||
`ReasonsForExtension` longtext COLLATE utf8mb4_bin
|
||||
`ReasonsForExtension` longtext COLLATE utf8mb4_bin DEFAULT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
@ -119,12 +184,12 @@ CREATE TABLE `lab_reports_table` (
|
|||
`Course_ID` int(11) DEFAULT NULL,
|
||||
`Posted_Date` varchar(1000) COLLATE utf8mb4_bin DEFAULT NULL,
|
||||
`Deadline` varchar(1000) COLLATE utf8mb4_bin DEFAULT NULL,
|
||||
`Instructions` longtext COLLATE utf8mb4_bin,
|
||||
`Title` longtext COLLATE utf8mb4_bin,
|
||||
`Attachment_link_1` longtext COLLATE utf8mb4_bin,
|
||||
`Attachment_link_2` longtext COLLATE utf8mb4_bin,
|
||||
`Attachment_link_3` longtext COLLATE utf8mb4_bin,
|
||||
`Attachment_link_4` longtext COLLATE utf8mb4_bin,
|
||||
`Instructions` longtext COLLATE utf8mb4_bin DEFAULT NULL,
|
||||
`Title` longtext COLLATE utf8mb4_bin DEFAULT NULL,
|
||||
`Attachment_link_1` longtext COLLATE utf8mb4_bin DEFAULT NULL,
|
||||
`Attachment_link_2` longtext COLLATE utf8mb4_bin DEFAULT NULL,
|
||||
`Attachment_link_3` longtext COLLATE utf8mb4_bin DEFAULT NULL,
|
||||
`Attachment_link_4` longtext COLLATE utf8mb4_bin DEFAULT NULL,
|
||||
`Marks` varchar(10) COLLATE utf8mb4_bin DEFAULT NULL,
|
||||
`Type` varchar(30) COLLATE utf8mb4_bin NOT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
|
||||
|
@ -134,7 +199,12 @@ CREATE TABLE `lab_reports_table` (
|
|||
--
|
||||
|
||||
INSERT INTO `lab_reports_table` (`Lab_Report_ID`, `Course_ID`, `Posted_Date`, `Deadline`, `Instructions`, `Title`, `Attachment_link_1`, `Attachment_link_2`, `Attachment_link_3`, `Attachment_link_4`, `Marks`, `Type`) VALUES
|
||||
(4, 13, '2019-03-19 21:36', '2019-03-19 22:10', 'Lab1 Ass', 'Lab1', '', '', '', '', '10', 'Individual');
|
||||
(1, 10, '2019-01-11 16:52', '2019-02-11 17:00', 'Description of the lab....', 'Reading 1', '700IMPORTANT WORDS.txt', '', '', '', '4', 'Individual'),
|
||||
(2, 10, '2019-01-17 11:12', '2019-01-25 23:59', 'Read this paper http://sunnyday.mit.edu/16.355/budgen-david.pdf', 'Reading 2', '586LRR-Test-caseS.pdf', '', '', '', '6', 'Individual'),
|
||||
(3, 12, '2020-04-05 02:48', '2020-04-12 ', 'Do this assignment in time for testing', 'First Assignment Testing', '', '', '', '', '3', 'Group'),
|
||||
(4, 12, '2020-04-05 05:36', '2020-04-06 ', 'We are testing to see if the instructor can be able to modify the work', 'Second Assignment Testing', '', '', '', '', '3', 'Individual'),
|
||||
(5, 12, '2020-04-05 05:51', '2020-04-08 ', 'ASQDASDASCDD', 'Third Assignment Testingas', '', '', '', '', '3', 'Individual'),
|
||||
(6, 0, '2020-04-06 11:02', '2020-04-10 10:00', 'random', 'random', '', '', '', '', '3', 'Individual');
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
|
@ -148,23 +218,26 @@ CREATE TABLE `lab_report_submissions` (
|
|||
`Lab_Report_ID` int(11) DEFAULT NULL,
|
||||
`Student_id` varchar(200) COLLATE utf8mb4_bin DEFAULT NULL,
|
||||
`Course_Group_id` int(11) DEFAULT NULL,
|
||||
`Attachment1` longtext COLLATE utf8mb4_bin,
|
||||
`Notes` longtext COLLATE utf8mb4_bin,
|
||||
`Attachment1` longtext COLLATE utf8mb4_bin DEFAULT NULL,
|
||||
`Notes` longtext COLLATE utf8mb4_bin DEFAULT NULL,
|
||||
`Attachment2` varchar(1000) COLLATE utf8mb4_bin NOT NULL,
|
||||
`Attachment3` varchar(1000) COLLATE utf8mb4_bin NOT NULL,
|
||||
`Attachment4` varchar(1000) COLLATE utf8mb4_bin NOT NULL,
|
||||
`Marks` double DEFAULT NULL,
|
||||
`Status` varchar(100) COLLATE utf8mb4_bin NOT NULL,
|
||||
`Title` varchar(500) COLLATE utf8mb4_bin NOT NULL,
|
||||
`Visibility` varchar(30) COLLATE utf8mb4_bin NOT NULL DEFAULT 'Private'
|
||||
`Visibility` varchar(30) COLLATE utf8mb4_bin NOT NULL DEFAULT 'Private',
|
||||
`Remarking_Reason` varchar(100) COLLATE utf8mb4_bin NOT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
|
||||
|
||||
--
|
||||
-- Dumping data for table `lab_report_submissions`
|
||||
--
|
||||
|
||||
INSERT INTO `lab_report_submissions` (`Submission_ID`, `Submission_Date`, `Lab_Report_ID`, `Student_id`, `Course_Group_id`, `Attachment1`, `Notes`, `Attachment2`, `Attachment3`, `Attachment4`, `Marks`, `Status`, `Title`, `Visibility`) VALUES
|
||||
(10, '2019-03-19 21:37:00', 4, '201825800051', 0, 'logo.png', '@2019-03-19 21:38 : Good Bro@2019-03-19 21:42 : Ok wan arkay note kaaga danbe', '', '', '', 9, 'Marked', 'Lab1 Submission', 'Private');
|
||||
INSERT INTO `lab_report_submissions` (`Submission_ID`, `Submission_Date`, `Lab_Report_ID`, `Student_id`, `Course_Group_id`, `Attachment1`, `Notes`, `Attachment2`, `Attachment3`, `Attachment4`, `Marks`, `Status`, `Title`, `Visibility`, `Remarking_Reason`) VALUES
|
||||
(1, '2019-01-17 00:00:00', 1, '201825800050', 0, 'Reading list.txt', '-', '', '', '', 5, 'Marked', 'Reading 1 submission', 'Public', ''),
|
||||
(5, '2019-01-21 08:31:00', 2, '201825800050', 0, 'Trial Balance.txt', ' - @2019-01-21 09:35 : Sorry I missed some details from your report', 'Boorka.jpg', '', '', 6, 'Marked', 'Submission x', 'Private', ''),
|
||||
(30, '2020-04-06 23:18:00', 3, '0', 31, '/2016321201502/First Assignment Testing/UR Diagram.pdf', '<br>@2020-04-06 23:19 : ', '', '', '', 3, 'Marked', 'First Assignment Testing', 'Private', '');
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
|
@ -178,6 +251,16 @@ CREATE TABLE `students_data` (
|
|||
`Passport_Number` varchar(50) COLLATE utf8mb4_bin DEFAULT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
|
||||
|
||||
--
|
||||
-- Dumping data for table `students_data`
|
||||
--
|
||||
|
||||
INSERT INTO `students_data` (`ID`, `Student_ID`, `Passport_Number`) VALUES
|
||||
(1, '201825800054', 'LJ7951632'),
|
||||
(2, '201825800050', 'P00581929'),
|
||||
(3, '201632120150', 'FN524516'),
|
||||
(4, '11', '11');
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
|
@ -188,6 +271,7 @@ CREATE TABLE `users_table` (
|
|||
`User_ID` int(11) NOT NULL,
|
||||
`Email` varchar(50) COLLATE utf8mb4_bin DEFAULT NULL,
|
||||
`Password` varchar(250) CHARACTER SET utf8 DEFAULT NULL,
|
||||
`HashPassword` varchar(250) COLLATE utf8mb4_bin NOT NULL,
|
||||
`Full_Name` varchar(50) CHARACTER SET utf8 DEFAULT NULL,
|
||||
`UserType` varchar(50) COLLATE utf8mb4_bin DEFAULT NULL,
|
||||
`Student_ID` varchar(500) COLLATE utf8mb4_bin DEFAULT NULL,
|
||||
|
@ -199,11 +283,16 @@ CREATE TABLE `users_table` (
|
|||
-- Dumping data for table `users_table`
|
||||
--
|
||||
|
||||
INSERT INTO `users_table` (`User_ID`, `Email`, `Password`, `Full_Name`, `UserType`, `Student_ID`, `Passport_Number`, `Status`) VALUES
|
||||
(15, 'admin@qq.com', 'admin@123', 'System Admin', 'Admin', NULL, NULL, 'Active'),
|
||||
(20, 'ahamednor@qq.com', 'm@123', 'Ahmed Nor', 'Student', '201825800051', 'P00581930', 'Active'),
|
||||
(21, 'lanhui@qq.com', '1234', 'Lanhui', 'Lecturer', NULL, '1234', 'Active'),
|
||||
(22, 'engmohamednor@gmail.com', '123', 'Ta1', 'TA', NULL, '123', 'Active');
|
||||
INSERT INTO `users_table` (`User_ID`, `Email`, `Password`, `HashPassword`, `Full_Name`, `UserType`, `Student_ID`, `Passport_Number`, `Status`) VALUES
|
||||
(3, 'admin@qq.com', '123', '', 'Kamal', 'Admin', '0', NULL, 'Active'),
|
||||
(8, 'lanhui@qq.com', '1234', '', 'Lanhui', 'Lecturer', NULL, '123', 'Active'),
|
||||
(9, 'mohamed@qq.com', '123', '', 'Mohamed', 'Student', '201825800050', 'P00581929', 'Active'),
|
||||
(10, 'mark@qq.com', '123', '', 'Mark ', 'TA', NULL, '123', 'Active'),
|
||||
(11, 'john@qq.com', '123', '', 'John', 'TA', NULL, '123', 'Active'),
|
||||
(12, 'mehdi@qq.com', '123', '', 'El-mehdi Houzi', 'Student', '201825800054', 'LJ7951632', 'Active'),
|
||||
(17, 'teecloudy@qq.com', '$2y$10$8WqSK7QI.3YCb2yoclqutOxyGxojncUvzhqLcE8zjlSvjBdcIQ18O', '', 'Ashly Tafadzwa Dhani', 'Student', '201632120150', NULL, 'Active'),
|
||||
(18, 'ashly@qq.com', 'Testing2', '', 'Ashly 2 Testing', 'Student', '2016321201502', NULL, 'Active'),
|
||||
(19, '11@11.11', 'dfdf', '760a8f4f392f1f6bc3ecb118365c6cd039b59fdce96122897d5157970d9c9c129bd73b3c402dbeedd8fe94d319df7bd7de0025c22839fec06631a025ec1e0e69', '11', 'Student', '11', '', 'Active');
|
||||
|
||||
--
|
||||
-- Indexes for dumped tables
|
||||
|
@ -272,47 +361,56 @@ ALTER TABLE `users_table`
|
|||
-- AUTO_INCREMENT for table `courses_table`
|
||||
--
|
||||
ALTER TABLE `courses_table`
|
||||
MODIFY `Course_ID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=14;
|
||||
MODIFY `Course_ID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT for table `course_groups_table`
|
||||
--
|
||||
ALTER TABLE `course_groups_table`
|
||||
MODIFY `Course_Group_id` int(11) NOT NULL AUTO_INCREMENT;
|
||||
MODIFY `Course_Group_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=32;
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT for table `course_group_members_table`
|
||||
--
|
||||
ALTER TABLE `course_group_members_table`
|
||||
MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT;
|
||||
MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=91;
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT for table `course_students_table`
|
||||
--
|
||||
ALTER TABLE `course_students_table`
|
||||
MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=18;
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT for table `extended_deadlines_table`
|
||||
--
|
||||
ALTER TABLE `extended_deadlines_table`
|
||||
MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT;
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT for table `lab_reports_table`
|
||||
--
|
||||
ALTER TABLE `lab_reports_table`
|
||||
MODIFY `Lab_Report_ID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
|
||||
MODIFY `Lab_Report_ID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT for table `lab_report_submissions`
|
||||
--
|
||||
ALTER TABLE `lab_report_submissions`
|
||||
MODIFY `Submission_ID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
|
||||
MODIFY `Submission_ID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=31;
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT for table `students_data`
|
||||
--
|
||||
ALTER TABLE `students_data`
|
||||
MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT;
|
||||
MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT for table `users_table`
|
||||
--
|
||||
ALTER TABLE `users_table`
|
||||
MODIFY `User_ID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=23;COMMIT;
|
||||
MODIFY `User_ID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=20;
|
||||
COMMIT;
|
||||
|
||||
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
|
||||
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
|
||||
|
|
Loading…
Reference in New Issue