Cloudlog/application/views/notes/main.php

22 wiersze
352 B
PHP

<h2>Note</h2>
<div class="wrap_content">
<?php
if ($notes->num_rows() > 0)
{
echo "<ul>";
foreach ($notes->result() as $row)
{
echo "<li>";
echo "<a href=\"".site_url()."/notes/view/".$row->id."\">".$row->title."</a>";
echo "</li>";
}
echo "</ul>";
} else {
echo "<p>You have no notes, why not create one!</p>";
}
?>
</div>