Skip to content

Commit

Permalink
courses and groups pages
Browse files Browse the repository at this point in the history
  • Loading branch information
khaoulamerah committed Sep 15, 2024
1 parent a39a90b commit d472a37
Show file tree
Hide file tree
Showing 9 changed files with 3,607 additions and 8 deletions.
21 changes: 21 additions & 0 deletions back-end/database.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php
require 'rb.php';
R::setup();

$opts = getopt( '', [ 'add:', 'list' ] );
if ( isset( $opts['add'] ) ) {
$w = R::dispense( 'whisky' );
$w->name = $opts['add'];
$id = R::store( $w );
die( "OK.\n" );
}
if ( isset( $opts['list'] ) ) {
$bottles = R::find( 'whisky' );
if ( !count( $bottles ) )
die( "The cellar is empty!\n" );
foreach( $bottles as $b ) {
echo "* #{$b->id}: {$b->name}\n";
}
exit;
}
?>

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ <h6 class="p-3 mb-0">Profile</h6>
<!------here title -->
<div class="row links">
<div class="links"><a href="#"><i class="fa-solid fa-angle-left"></i> Go back </a></div>
<div class="links"><a href="#">Next Teacher <i class="fa-solid fa-angle-right"></i></a></div>
<div class="links"><a href="#">Next language <i class="fa-solid fa-angle-right"></i></a></div>
</div><br>

<div class="col-md-6 grid-margin stretch-card ">
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ <h4 class="link-ligne-1">Languages</h4>
<div class="badge badge-outline-danger">Delete</div>
</td>
<td>
<div class="badge badge-outline-success btn-profile"><a href="profile-teachers.html">Check</a></div>
<div class="badge badge-outline-success btn-profile"><a href="Check_language.html">Check</a></div>
</td>
<td>24/07/2024</td>
</tr>
Expand Down Expand Up @@ -531,7 +531,7 @@ <h4 class="link-ligne-1">Languages</h4>
<div class="badge badge-outline-danger">Delete</div>
</td>
<td>
<div class="badge badge-outline-success btn-profile"><a href="profile-teachers.html">Check</a></div>
<div class="badge badge-outline-success btn-profile"><a href="Check_language.html">Check</a></div>
</td>
<td>24/07/2024</td>
</tr>
Expand Down Expand Up @@ -559,7 +559,7 @@ <h4 class="link-ligne-1">Languages</h4>
<div class="badge badge-outline-danger">Delete</div>
</td>
<td>
<div class="badge badge-outline-success btn-profile"><a href="profile-teachers.html">Check</a></div>
<div class="badge badge-outline-success btn-profile"><a href="Check_language.html">Check</a></div>
</td>
<td>24/07/2024</td>
</tr>
Expand Down Expand Up @@ -587,7 +587,7 @@ <h4 class="link-ligne-1">Languages</h4>
<div class="badge badge-outline-danger">Delete</div>
</td>
<td>
<div class="badge badge-outline-success btn-profile"><a href="profile-teachers.html">Check</a></div>
<div class="badge badge-outline-success btn-profile"><a href="Check_language.html">Check</a></div>
</td>
<td>24/07/2024</td>
</tr>
Expand All @@ -614,7 +614,7 @@ <h4 class="link-ligne-1">Languages</h4>
<div class="badge badge-outline-danger">Delete</div>
</td>
<td>
<div class="badge badge-outline-success btn-profile"><a href="profile-teachers.html">Check</a></div>
<div class="badge badge-outline-success btn-profile"><a href="Check_language.html">Check</a></div>
</td>
<td>24/07/2024</td>
</tr>
Expand All @@ -641,7 +641,7 @@ <h4 class="link-ligne-1">Languages</h4>
<div class="badge badge-outline-danger">Delete</div>
</td>
<td>
<div class="badge badge-outline-success btn-profile"><a href="profile-teachers.html">Check</a></div>
<div class="badge badge-outline-success btn-profile"><a href="Check_language.html">Check</a></div>
</td>
<td>24/07/2024</td>
</tr>
Expand Down Expand Up @@ -669,7 +669,7 @@ <h4 class="link-ligne-1">Languages</h4>
<div class="badge badge-outline-danger">Delete</div>
</td>
<td>
<div class="badge badge-outline-success btn-profile"><a href="profile-teachers.html">Check</a></div>
<div class="badge badge-outline-success btn-profile"><a href="Check_language.html">Check</a></div>
</td>
<td>24/07/2024</td>
</tr>
Expand Down
Loading

0 comments on commit d472a37

Please sign in to comment.