2019-05-13 17:28:16 +00:00
|
|
|
<div class="container notes">
|
2011-06-17 12:52:00 +00:00
|
|
|
|
2019-05-13 17:28:16 +00:00
|
|
|
<div class="card">
|
2019-10-05 20:57:44 +00:00
|
|
|
<div class="card-header">
|
2023-05-14 11:45:10 +00:00
|
|
|
<h2 class="card-title"><?php echo lang('notes_menu_notes'); ?></h2>
|
2019-10-05 20:57:44 +00:00
|
|
|
<ul class="nav nav-tabs card-header-tabs">
|
|
|
|
<li class="nav-item">
|
2023-05-14 11:45:10 +00:00
|
|
|
<a class="nav-link active" href="<?php echo site_url('notes'); ?>"><?php echo lang('notes_menu_notes'); ?></a>
|
2019-10-05 20:57:44 +00:00
|
|
|
</li>
|
|
|
|
<li class="nav-item">
|
2023-05-14 11:45:10 +00:00
|
|
|
<a class="nav-link" href="<?php echo site_url('notes/add'); ?>"><?php echo lang('notes_create_note'); ?></a>
|
2019-10-05 20:57:44 +00:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
2019-05-13 17:28:16 +00:00
|
|
|
<div class="card-body">
|
2011-06-17 12:52:00 +00:00
|
|
|
|
2019-05-13 17:28:16 +00:00
|
|
|
<?php
|
2011-06-17 12:52:00 +00:00
|
|
|
|
2019-05-13 17:28:16 +00:00
|
|
|
if ($notes->num_rows() > 0)
|
2011-11-06 23:09:51 +00:00
|
|
|
{
|
2023-05-14 11:54:10 +00:00
|
|
|
echo "<h3>".lang('notes_your_notes')."</h3>";
|
2019-05-13 17:28:16 +00:00
|
|
|
echo "<ul class=\"list-group\">";
|
|
|
|
foreach ($notes->result() as $row)
|
|
|
|
{
|
|
|
|
echo "<li class=\"list-group-item\">";
|
|
|
|
echo "<a href=\"".site_url()."/notes/view/".$row->id."\">".$row->title."</a>";
|
|
|
|
echo "</li>";
|
|
|
|
}
|
|
|
|
echo "</ul>";
|
|
|
|
} else {
|
2023-05-14 11:54:10 +00:00
|
|
|
echo "<p>".lang('notes_welcome')."</p>";
|
2011-11-06 23:09:51 +00:00
|
|
|
}
|
|
|
|
|
2019-05-13 17:28:16 +00:00
|
|
|
?>
|
2011-11-06 23:09:51 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2018-12-17 23:05:29 +00:00
|
|
|
</div>
|