File tree 3 files changed +356
-345
lines changed
3 files changed +356
-345
lines changed Original file line number Diff line number Diff line change 67
67
68
68
if (isset ($ row ['ID ' ])) {
69
69
$ course_id = $ row ['ID ' ];
70
- if (chk_taken_course_by_id ($ _SESSION ['id ' ], $ row ['ID ' ])) {
71
- goto skip;
72
- }
73
70
}
74
71
if (isset ($ row ['id ' ])) {
75
72
$ course_id = $ row ['id ' ];
99
96
// echo '<li><a href="edit.php?email=';
100
97
// echo urlencode($row["Email"]);
101
98
// echo '"><i class="fa fa-pencil fa-fw"></i> Edit</a></li>
102
- // <li><a href="delete .php?email =';
103
- // echo urlencode($row["Email "]);
104
- // echo '"><i class="fa fa-trash-o fa-fw"></i> Delete</a></li>';
99
+ echo ' <li><a href="delete_course .php?id = ' ;
100
+ echo urlencode ($ row ["ID " ]);
101
+ echo '"><i class="fa fa-trash-o fa-fw"></i> Delete</a></li> ' ;
105
102
}
106
103
107
- if (!($ _SESSION ['role ' ] == 'admin ' ) && !($ show == "taken " )) {
104
+ if (!($ _SESSION ['role ' ] == 'admin ' ) && !($ show == "taken " ) && !( chk_taken_course_by_id ( $ _SESSION [ ' id ' ], $ row [ ' ID ' ])) ) {
108
105
echo '<li><a href="add_course.php?id= ' ;
109
106
echo $ course_id ;
110
107
echo '"><i class="fa fa-plus fa-fw"></i> Add</a></li> ' ;
127
124
}
128
125
$ counter ++;
129
126
130
- skip:
127
+
131
128
}
132
129
?>
133
130
<div class="row-fluid">
You can’t perform that action at this time.
0 commit comments