-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
317 lines (279 loc) · 13 KB
/
Copy pathindex.html
File metadata and controls
317 lines (279 loc) · 13 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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
<!DOCTYPE html>
<html lang="ar">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta property="og:url" content="http://csdep.moh.ly" />
<meta property="og:type" content="website" />
<meta property="og:title" content="جامعة الرفاق| قسم علوم الحاسوب" />
<meta property="og:description" content="بشكل سريع وبسيط اعرف ما المواد المسموح دراستها هذا الفضل " />
<meta property="og:image" content="http://csdep.moh.ly/facebook.jpg"/>
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:site" content="">
<meta name="twitter:creator" content="MAbuGhrara">
<meta name="twitter:title" content="جامعة الرفاق - قسم علوم الحاسوب - المواد المسموح بها">
<meta name="twitter:description" content=" بشكل سريع وبسيط اعرف ما المواد المسموح دراستها هذا الفضل - ">
<meta name="twitter:image" content="http://csdep.moh.ly/twitter.jpg">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<meta name="description" content="">
<meta name="author" content="">
<title>قسم علوم الحاسب</title>
<link href="bootstrap.min.css" rel="stylesheet">
<script src="vue.js"></script>
<style>
.panel-primary ,.panel-default{
box-shadow:rgb(204, 204, 204) 7px 7px 20px -1px;
border-color:#ddd;
}
.btn{
margin: 5px;
}
.active{
background-color:#f0ad4e !important;
border-color: #f0ad4e!important;
}
.fa-facebook-official{
color: rgba(1, 1, 2, 0.56) !important;
} .fa-facebook-official:hover{
color: #3a5795 !important;
}
.fa-twitter-square{
color: rgba(1, 1, 2, 0.56) !important;
}
.fa-twitter-square:hover{
color: #4dbff7 !important;
}
.footer {
}
.teal{
background-color: #008080;
border-color: #777777;
color:#ffffff !important;
}
.green{
background-color: #5cb85c;
border-color: #4cae4c;
color:#ffffff !important;
}
.red{
background-color: #d83737 !important;
border-color: #ffffff !important;
color:#ffffff !important;
}
.whit a{
color:#ffffff !important;
}
</style>
</head>
<body>
<div id="app">
<nav class="navbar navbar-default navbar-static-top whit teal">
<div class="container">
<div class="navbar-header">
<!-- Branding Image -->
<a class="navbar-brand" href="#">جامعة الرفاق- قسم علوم الحاسب </a>
</div>
</div>
</nav>
<div class="container">
<div class="alert alert-success" role="alert">قم بمعرفة المواد المسموح لك دراستها طبقا لشجرة المواد، بطريقة بسيطة وسريعة</div>
<div class="row">
<div class="col-md-8 col-md-offset-1">
<div class="panel panel-primary">
<div class="panel-heading">قم بالضغط على المواد التي اجتزتها بنجاح</div>
<div class=" panel-body">
<button class="btn btn-default"
:class="{'btn-success': subject.status}"
v-for="subject in subjects"
@click='togglePassedFor(subject)'>
{{subject.name}}
</button>
</div>
</div>
</div>
<div class="col-xs-6 col-sm-3 sidebar-offcanvas hidden-xs" id="sidebar">
<div class="list-group">
<a href="#" class="list-group-item green whit">قداش</a>
<a href="#" class="list-group-item ">
عدد المواد الكلي:
<h1>{{subjects.length}}</h1>
</a>
<a href="#" class="list-group-item">
عدد المواد تم اجتيازها بنجاح:
<h1>{{passedSubjects}}</h1>
</a>
<a href="#" class="list-group-item">
عدد المواد الباقي:
<h1>{{40-passedSubjects}}</h1>
</a>
</div>
</div>
</div>
<div class="row">
<div class="col-md-8 col-md-offset-1">
<table class="table table-bordered">
<thead>
<tr>
<th>عدد الوحدات الكلي</th>
<th>عدد الوحدات المنجزة</th>
<th>عدد الوحدات الباقية</th>
</tr>
</thead>
<tbody>
<tr>
<td>142
</td>
<td>{{unitsSum}}
</td>
<td>{{142-unitsSum}}
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="row">
<div class="col-md-8 col-md-offset-1">
<div class="panel panel-default">
<div class="panel-heading red whit">المواد المسموح بتنزيلها طبقا لشجرة المواد</div>
<div class=" panel-body">
<button class="btn btn-danger red whit"
v-for="subject in subjects"
v-if="(subject.allowed && ! subject.status) || isPassed(subject)"
>
{{subject.name }}
</button>
</div>
</div>
</div>
<div class="panel panel-warning col-xs-6 col-sm-3 sidebar-offcanvas">
<!-- Default panel contents -->
<div class="panel-heading active "style="color: #ffffff;">ملاحظة</div>
<div class="panel-body">
<p>المواد التي يلزم لتنزيلها استفاء
<span style="font-weight: bold;">115 وحدة</span></p>
</div>
<!-- List group -->
<ul class="list-group">
<li class="list-group-item">مواضيع مختارة1 </li>
<li class="list-group-item">مواضيع مختارة 2</li>
<li class="list-group-item">مواضيع بحث</li>
<li class="list-group-item">مشروع التخرج</li>
</ul>
</div>
</div>
</div>
</div>
<div class=" footer bd-footer text-muted" style=" height: 50px;">
<div class="container">
<hr>
<div class = "col-sm-9 copyright">
<a href="http://csdep.moh.ly/AboGhrara_refaq.rar">Download: <i class="fa fa-download" aria-hidden="true"></i></a> |
<a href="http://moh.ly">
<i class="fa fa-user-circle fa-1x" aria-hidden="true"> </i></a>
</div>
<div class="col-sm-3">
<a href="https://www.facebook.com/mabughrara"><i class="fa fa-facebook-official fa-2x" aria-hidden="true"></i></a>
<a href="https://twitter.com/AboGhrara"> <i class="fa fa-twitter-square fa-2x" aria-hidden="true"></i></a>
</div>
</div>
</div>
<script>
var app = new Vue({
el: '#app',
data:{
passedSubjects:0,
unitsSum:0,
CS200:false,
GS199:false,
subjects: [
{code:'GH203',name:'ثقافة إسلامية',root:'',units:2,status:false,allowed:false},
{code:'152',name:'مبادئ العلوم السياسية',root:'',units:2,status:false,allowed:false},
{code:"GH150",name:"اللغة العربية",root:"",units:2,status:false,allowed:false},
{code:"GH141",name:"اللغة الانجليزية 1",root:"",units:2,status:false,allowed:false},
{code:"GH142",name:"لغة انجيليزية 2",root:"GH141",units:2,status:false,allowed:false},
{code:'GS100',name:'رياضة 1',root:'',units:3,status:false,allowed:false},
{code:'GS101',name:'رياضة 2',root:'GS100',units:3,status:false,allowed:false},
{code:'GS209',name:'جبر خطي والمنطق',root:'GS101',units:3,status:false,allowed:false},
{code:"GS242",name:"إحصاء واحتمالات",root:"GS100",units:4,status:false,allowed:false},
{code:'CS205',name:'تراكيب منفصلة',root:'GS101',units:3,status:false,allowed:false},
{code:'CS200',name:'مبادئ حاسب',root:'',units:3,status:false,allowed:false},
{code:'GS199',name:'مبادئ هندسة كهربائية',root:'',units:4,status:false,allowed:false},
{code:"CS201",name:"اساسيات برمجة",root:"",units:4,status:false,allowed:false},
{code:'CS207',name:'لغة C',root:'CS201',units:4,status:false,allowed:false},
{code:'CS211',name:'تحليل نطم',root:'CS201',units:4,status:false,allowed:false},
{code:'CS318',name:'هندسة برمجيات',root:'CS211',units:4,status:false,allowed:false},
{code:'CS322',name:'نظم تشغيل',root:'CS318',units:4,status:false,allowed:false},
{code:"CS313",name:"إدارة قواعد بيانات",root:"CS211",units:4,status:false,allowed:false},
{code:'CS320',name:'لغة دلفي',root:'CS313',units:4,status:false,allowed:false},
{code:"CS210",name:"برمجئة مرئية1 (بيسك)",root:"CS207",units:4,status:false,allowed:false},
{code:"CS417",name:"برمجئة مرئية2 (VB)",root:"CS210",units:4,status:false,allowed:false},
{code:"CS415",name:"البرمجة الشيئية باستخدام c++",root:"CS207",units:4,status:false,allowed:false},
{code:'CS419',name:'لغة جافا',root:'CS415',units:4,status:false,allowed:false},
{code:'CS423',name:'تصميم مواقع انترنت',root:'CS419',units:3,status:false,allowed:false},
{code:"CS414",name:"النمذجة والمحاكاة",root:"CS210",units:4,status:false,allowed:false},
{code:"CS427",name:"الرسم بالحاسوب",root:"CS414",units:4,status:false,allowed:false},
{code:'CS204',name:'مقدمة أنظمة رقمية',root:['CS2040','GS1990'],units:4,status:false,allowed:false},
{code:'CS303',name:'تنظيم حاسبات',root:'CS204',units:4,status:false,allowed:false},
{code:'CS319',name:'لغة تجميع ASSEMBLY',root:'CS303',units:4,status:false,allowed:false},
{code:'CS425',name:'شبكات حاسوب',root:'CS319',units:4,status:false,allowed:false},
{code:'CS321',name:'معماية الحاسوب',root:'CS319',units:4,status:false,allowed:false},
{code:'CS416',name:'برمجة نطم',root:'CS321',units:4,status:false,allowed:false},
{code:'CS312',name:'تراكيب بيانات 1',root:'CS207',units:4,status:false,allowed:false},
{code:'CS418',name:'تراكيب بيانات 2',root:'CS312',units:4,status:false,allowed:false},
{code:'CS426',name:'ذكاء اصطناعي',root:'CS418',units:4,status:false,allowed:false},
{code:'CS308',name:'طرق عددية',root:'CS207',units:4,status:false,allowed:false},
{code:'CS429',name:'مواضيع مختارة 1',root:'115',units:4,status:false,allowed:false,required:115},
{code:'CS428',name:'مواضيع مختارة 2',root:'115',units:4,status:false,allowed:false,required:115},
{code:'CS430',name:'مناهج البحث والتدريب الميداني',root:'115',units:2,status:false,allowed:false,required:115},
{code:'',name:'مشروع التخرج',root:'115',units:4,status:false,allowed:false,required:115}
],
},
methods: {
togglePassedFor: function (subject) {
subject.status = !subject.status;
if(subject.status) this.passedSubjects=this.passedSubjects +1; else this.passedSubjects=this.passedSubjects-1;
if(subject.status) this.unitsSum=this.unitsSum +subject.units; else this.unitsSum=this.unitsSum-subject.units;
var that = subject;
this.subjects.filter(function (sub) {
if (sub.root == that.code) {
sub.allowed = !sub.allowed;
}
});
if(this.unitsSum >=115){
this.subjects.filter(function (sub) {
if (sub.required ==115)sub.allowed = true;
});
}else{
this.subjects.filter(function (sub) {
if (sub.required ==115)sub.allowed = false;
});
}
var CS200=this.CS200;
var GS199=this.GS199;
this.subjects.filter(function (sub) {
if(sub.code=='GS199')GS199= sub.status;
if(sub.code=='CS200') CS200= sub.status;
if (sub.code=='CS204')sub.allowed =(GS199 && CS200 )
});
},
isPassed:function (subject) {
return (subject.root=='' && !subject.status);
}
}
});
</script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-103191083-1', 'auto');
ga('send', 'pageview');
</script>
</body>
</html>