<td>
      <?php 
        if ($write_permissions) {
            echo '<input type="text" class="textbox" style="width: 250px;" name="name" value="' . htmlspecialchars($name) . '" maxlength="50" />';
        } else {
            echo htmlspecialchars($note['name']);
        }
        ?>
	</td>
	<tr>
	<?php 
        if ($notes->get_catagories() > 0) {
            echo '<tr><td>' . $no_catagory . ':</td><td>';
            $dropbox = new dropbox();
            $dropbox->add_value('', $no_none);
            while ($notes->next_record()) {
                $dropbox->add_value($notes->f('id'), $notes->f('name'));
            }
            $dropbox->print_dropbox('catagory_id', $catagory_id);
            echo '</td><tr>';
        } else {
            echo '<input type="hidden" name="catagory_id" value="0" />';
        }
        echo '<tr><td>' . $no_due_date . ':</td><td>';
        $datepicker->print_date_picker('due_date', $_SESSION['GO_SESSION']['date_format'], $due_date);
        echo '</td></tr>';
        $select = new select('user', 'notes_form', 'responsible_user_id', $responsible_user_id);
        echo '<tr><td>';
        $select->print_link($no_responsible);
        echo ':</td><td>';
        $select->print_field();