<?php
/**************************************************************************
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
@Authors: Ryan Thompson(hide@address.com)
***************************************************************************/
require('notebook/class.notebook.php');
$nb = new notebook;
?>
<table width="100%" cellspacing="0">
<tr>
<td>
<h2 class="home_header">
<?php echo $O->create_link("/notebook", $nb->msg('service_name'), 'home_header')?>
</h2>
</td>
</tr>
<?php
$db->query("SELECT note_id, title, posted FROM o_notebook
WHERE user_id='". $user->user_id ."' ORDER BY posted LIMIT 10");
while($db->fetch_results())
{
if($class == "list_light")
{
$class = "list_dark";
} else {
$class = "list_light";
}
echo "<tr>";
echo "<td class=\"$class\">";
echo $O->create_link("/notebook/edit_note.php?id=". $db->record['note_id'], $db->record['title'],
$class, "title=\"Posted: ". date($date->long_date, $db->record['posted']) ."\"");
echo "</td>";
echo "</tr>";
}
?>
<tr>
<td style="text-align:right">
<?php echo $O->create_link("/notebook/add_note.php", $nb->msg('add_note'), 'menu_link');?>
</td></tr>
</table>