<?php
if (!$prefs->isLocked('default_notepad')):
    $notepads = Mnemo::listNotepads();
    if (($default_notepad = $prefs->getValue('default_notepad')) == null ||
        !array_key_exists($default_notepad, $notepads)) {
        $default_notepad = Auth::getAuth();
    }
?>

<?php echo _("Your default notepad:") ?><br />
<select name="default_notepad" class="fixed">
<?php foreach ($notepads as $id => $notepad): ?>
    <option value="<?php echo $id ?>"<?php if ($id == $default_notepad) echo ' selected="selected"'; ?>><?php echo $notepad->getShareName()?></option>
<?php endforeach; ?>
</select><br /><br />
<?php endif; ?>
