-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadd_course.html
More file actions
117 lines (109 loc) · 4.45 KB
/
add_course.html
File metadata and controls
117 lines (109 loc) · 4.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
<!DOCTYPE html>
<html lang="en">
<head>
<title>CSCourses|Add Course(Admin)</title>
<link rel="stylesheet" href="css/styles.css">
<meta charset="utf-8">
<meta name="description" content="a page contain a form for the admins to add new courses to the website">
<meta name="keywords" content="HTML, CSS,java script">
<meta name='auther' content='YusufAbdulwahab'>
<meta name='viewport' content='width=device-width, initial-scale=1.0'>
<!-- The width=device-width part sets the width of the page to follow the screen-width of the device
The initial-scale=1.0 part sets the initial zoom level when the page is first loaded by the browser.-->
<script src="scripts/script.js"></script>
<!--this is the source of java scrpt code-->
</head>
<body>
<!--________________________________header and menue codes___________________________________-->
<header>
<a href="index.html"><h1>CS<span>Courses</span></h1></a>
<ul>
<li><a href="index.html">Home</a></li>
<li><a class="current" href="add_course.html">Add Course(Admin)</a></li>
<li><a href="add_courses_for_student.html">Add Course(Student)</a></li>
</ul>
</header>
<!--________________________________content codes___________________________________-->
<div class=".continer">
<div class="continer-formDiv">
<form action="index.html" method='post' onsubmit='return validateAddCourse();'>
<label>Course Name</label>
<div id="errCname">Error: Course name is mandatory and should be at least 10 alphabet characters</div>
<input type="text" placeholder="Course Name" id="cname" name="cname"><br />
<label>Course Code</label>
<div id="errCcode">Error: Course code is mandatory and should have the following pattern (140XXXXX-X) where X is a digit (0-9)</div>
<input type="text" placeholder="Course Code" id="ccode" name="ccode"><br />
<label>Level</label>
<div id="errLevel">Error: Level is mandatory</div>
<select id="level-menu">
<option>Please select the course level</option>
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
<option>6</option>
<option>7</option>
<option>8</option>
<option>9</option>
<option>10</option>
</select><br />
<label>Credit Hours</label>
<div id='errCredit'>Error: Credit hours is mandatory</div>
<select id="credit-menu">
<option>Please select the course credit hours</option>
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
</select><br />
<label>Course Description</label>
<div id='errCdescription'>Error: Course description is mandatory and should be at least 30 alphabet characters</div>
<textarea placeholder="Course Description" id="cdescription" name="cdescription" rows='10' cols='50'></textarea><br />
<label>Prerequisite Course</label>
<div id='errPrecourse'>Error: Prerequisite Course should have the following pattern (140XXXXX-X) where X is a digit (0-9)</div>
<input type="text" placeholder="Prerequisite Course" id="precourse" name="precourse"><br />
<input type="submit" id="submit" value="submit">
</form>
</div>
</div>
<!--________________________________footer codes___________________________________-->
<footer>
<!--the apper div of the footer-->
<div class='footer-information'>
<div class='footer-information-Box'>
<p class='footer-information-Box-discription'>Follow CSCourses</p>
<ul>
<li><a href="">Twitter</a></li>
<li><a href="">Instagram</a></li>
<li><a href="">Snapchat</a></li>
<li><a href="">Facebook</a></li>
</ul>
</div>
<div class='footer-information-Box'>
<p class='footer-information-Box-discription'>Customer Care</p>
<ul>
<li><a href="">FAQ</a></li>
<li><a href="">Warranty Policy</a></li>
<li><a href="">Return & Exchange</a></li>
<li><a href="">contact us</a></li>
<li><a href="">92000000</a></li>
</ul>
</div>
<div class='footer-information-Box'>
<p class='footer-information-Box-discription'>About CSCourses</p>
<ul>
<li><a href="">CSCourses Profile</a></li>
<li><a href="">Investor Guide & Services</a></li>
<li><a href="">Sustainability</a></li>
</ul>
</div>
</div>
<!--the down div of the footer-->
<div class='footer-copyright'>
<p> copyright preserved for the site 2020 | YusufAbdulwahab<p>
</div>
</footer>
</body>
</html>