Add non-sticky footer.

Bug430-Eden2
Lan Hui 2023-08-08 15:02:26 +08:00
parent 0e4a49fb3d
commit 6af2d77912
10 changed files with 450 additions and 408 deletions

View File

@ -221,6 +221,9 @@ if ($_SESSION['user_type'] != "Lecturer" && $_SESSION['user_type'] != "Admin") {
</div> </div>
</div> </div>
<?php include 'Footer.php';?>
</div> </div>
<script> <script>
@ -250,3 +253,8 @@ if ($_SESSION['user_type'] != "Lecturer" && $_SESSION['user_type'] != "Admin") {
}) })
</script> </script>
</body>
</html>

View File

@ -6,6 +6,11 @@ include 'NoDirectPhpAcess.php';
<?php <?php
$page='Courses+'; $page='Courses+';
include 'Header.php'; include 'Header.php';
?>
<div class="container">
<?php
$student_id = $_SESSION["user_student_id"]; $student_id = $_SESSION["user_student_id"];
$group_id = $_SESSION["user_group_id"]; $group_id = $_SESSION["user_group_id"];
$c_date = date("Y-m-d H:i"); $c_date = date("Y-m-d H:i");
@ -545,6 +550,12 @@ where course_group_members_table.Course_Group_id=$id");
} }
?> ?>
<?php include 'Footer.php';?>
</div>
<script src="./css/jquery-1.11.1.min.js"></script> <script src="./css/jquery-1.11.1.min.js"></script>
<script src="./css/jquery-ui.min.js"></script> <script src="./css/jquery-ui.min.js"></script>
<link rel="stylesheet" href="./css/jquery-ui.css" /> <link rel="stylesheet" href="./css/jquery-ui.css" />
@ -701,3 +712,7 @@ where course_group_members_table.Course_Group_id=$id");
}) })
</script> </script>
</body>
</html>

View File

@ -4,23 +4,22 @@ include 'NoDirectPhpAcess.php';
<?php <?php
$page='Courses'; $page='Courses';
include 'Header.php'; include 'Header.php';
?>
<div class="container">
<?php
$user_d = $_SESSION['user_id']; $user_d = $_SESSION['user_id'];
if( $_SESSION['user_type']=="Lecturer" || $_SESSION['user_type']=="TA") if( $_SESSION['user_type']=="Lecturer" || $_SESSION['user_type']=="TA")
{ {
?> ?>
<!-- FOR LECTURER--> <!-- FOR LECTURER-->
<div class="row" style="width:80%;margin:auto; text-align:left;"> <div class="row">
<script src="./css/jquery-1.11.1.min.js"></script> <script src="./css/jquery-1.11.1.min.js"></script>
<script src="./css/jquery-ui.min.js"></script> <script src="./css/jquery-ui.min.js"></script>
<link rel="stylesheet" href="./css/jquery-ui.css" /> <link rel="stylesheet" href="./css/jquery-ui.css" />
@ -492,7 +491,7 @@ if( $_SESSION['user_type']=="Student")
?> ?>
<!--STUDENT CODE--> <!--STUDENT CODE-->
<div class="row" style="width:80%;margin:auto; text-align:left;"> <div class="row">
<div class="col-md-6"> <div class="col-md-6">
<?php <?php
@ -509,7 +508,7 @@ if( $_SESSION['user_type']=="Student")
</div> </div>
<div class="row" style="width:80%;margin:auto; text-align:left;"> <div class="row">
<div class="col-md-6"> <div class="col-md-6">
<?php <?php
@ -652,3 +651,10 @@ INNER JOIN course_students_table on course_students_table.Course_ID=courses_tabl
} }
?> ?>
<?php include 'Footer.php';?>
</div>
</body>
</html>

3
Footer.php Normal file
View File

@ -0,0 +1,3 @@
<?php
echo "<p id='myfooter' class='text-center'>Copyright &copy; 2018-" . date("Y") . " The Authors</p>";
?>

View File

@ -109,8 +109,6 @@ if (mysqli_connect_errno()) {
position:fixed; position:fixed;
bottom:0; bottom:0;
left:0; left:0;
background-color:#03417C;
color:#FFF;
text-align:center; text-align:center;
width:100%; width:100%;
} }
@ -206,4 +204,5 @@ if (mysqli_connect_errno()) {
} }
window.location.href = "\Script.php\?action=statuschange&uid=" + id + "&status=" + status; window.location.href = "\Script.php\?action=statuschange&uid=" + id + "&status=" + status;
} }
</script> </script>

View File

@ -31,15 +31,16 @@ while ($row = mysqli_fetch_assoc($resultx1)) {
$Report_Title = $row['Title']; $Report_Title = $row['Title'];
$url = $row['URL']; $url = $row['URL'];
} }
echo "<div class='alert' style='margin-left:20px;border-bottom:2px solid #1D91EF;'> <a href='Courses.php?course=$url'>
$header
</a></div>
";
?> ?>
<div class="row" style="width:80%;margin:auto; text-align:left;"> <div class="container">
<?php
echo "<div><a href='Courses.php?course=$url'> $header </a></div>";
?>
<div class="row">
<!-- Lecturer CODE--> <!-- Lecturer CODE-->
<?php <?php
@ -184,7 +185,7 @@ where Lab_Report_ID=$id and lab_report_submissions.Status='Pending' order by Sub
echo "<div class='btn btn-default break-word' style='dislay:block; word-wrap: break-word; border: 1px solid #F0F0F0;border-left: 4px solid #03407B;'> echo "<div class='btn btn-default break-word' style='dislay:block; word-wrap: break-word; border: 1px solid #F0F0F0;border-left: 4px solid #03407B;'>
$title <br> by: <b> <span class = 'text-selectable'>$submitted_by </span> </b> $title <br> by: <b> <span class = 'text-selectable'>$submitted_by </span> </b>
<br> <span style='font-size:8pt'>Submitted : $posted <button class='btn btn-sm btn-info' style='margin-left:50px;' onclick='mark($Submission_ID,\"$title\",$total)'> Mark</button><br> Attachments : $full_link </span> <br> <span style='font-size:8pt'>Submitted : $posted <button class='btn btn-sm btn-primary' style='margin-left:50px;' onclick='mark($Submission_ID,\"$title\",$total)'> Mark</button><br> Attachments : $full_link </span>
</div>"; </div>";
} }
} }
@ -412,6 +413,11 @@ where course_group_members_table.Course_Group_id=$id");
} }
?> ?>
<?php include 'Footer.php';?>
</div>
<script src="./css/jquery-1.11.1.min.js"></script> <script src="./css/jquery-1.11.1.min.js"></script>
<script src="./css/jquery-ui.min.js"></script> <script src="./css/jquery-ui.min.js"></script>
<link rel="stylesheet" href="./css/jquery-ui.css" /> <link rel="stylesheet" href="./css/jquery-ui.css" />
@ -462,3 +468,6 @@ where course_group_members_table.Course_Group_id=$id");
}) })
</script> </script>
</body>
</html>

View File

@ -7,7 +7,9 @@ $page='Submit LAB+';
include 'Header.php'; include 'Header.php';
?> ?>
<div class='row' style='width:80%;margin:auto;'> <div class="container">
<div class='row'>
<?php <?php
@ -69,13 +71,8 @@ include 'Header.php';
$full_link = $full_link."| <a href='~\..\Lab_Report_Assignments\\$att4'>$att4</a>"; $full_link = $full_link."| <a href='~\..\Lab_Report_Assignments\\$att4'>$att4</a>";
} }
echo " <div class='alert' style='margin-left:20px;border-bottom:2px solid #1D91EF;'> <a href='~\..\Courses.php?course=$url'> echo "<div><a href='~\..\Courses.php?course=$url'> Courses > $url > Submit > $title </a></div>";
Courses > $url > Submlit Lab Report > $title
<br>
</a></div>
";
echo "";
} }
} }
} }
@ -87,7 +84,7 @@ include 'Header.php';
</div> </div>
<div style="width:80%;margin:auto;"> <div>
<h3>Submit assignment</h3> <h3>Submit assignment</h3>
<hr> <hr>
@ -128,3 +125,5 @@ include 'Header.php';
</div> </div>
</div> </div>
</div>

View File

@ -71,9 +71,8 @@ if (isset($_SESSION["user_fullname"])) {
</div> </div>
<div id="footer"> <div id="footer">
LRR was originally developed as a <a href="http://lanlab.org/course/2018f/se/homepage.html" style="color:white;">software engineering course project</a> by Mohamed Nor and Elmahdi Houzi. Please submit your suggestions or bug reports to Mr Lan. <a href="./homepage" style="color:white;">More information ...</a> LRR was originally developed in 2018 as a <a href="http://lanlab.org/course/2018f/se/homepage.html">software engineering course project</a> by Mohamed Nor and Elmahdi Houzi. Please submit your suggestions or bug reports to Mr Lan. <a href="./homepage">More information ...</a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -30,3 +30,5 @@ include 'Header.php';
?> ?>
</div> </div>
<?php include 'Footer.php';?>

View File

@ -42,3 +42,5 @@ include 'Header.php';
</div> </div>
</div> </div>
</div> </div>
<?php include 'Footer.php';?>