Files
wavelog/application/views/notes/main.php
2011-11-06 23:09:51 +00:00

33 lines
745 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<div id="container">
<h2>Note</h2>
<div class="row show-grid">
<div class="span13">
<?php
if ($notes->num_rows() > 0)
{
echo "<ul class=\"notes_list\">";
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 dont currently have any notes, these are a fantastic way of storing data like ATU settings, beacons and general station notes and its better than paper as you cant lose them!</p>";
}
?>
</div>
<div class="span2 offset1">
<a class="btn primary" href="<?php echo site_url('notes/add'); ?>">Create Note</a>
</div>
</div>
</div>