2 $this->includeTemplate($GLOBALS['top_include']);
7 switch ($row['bStatus']) {
9 $accessPublic = ' selected="selected"';
12 $accessShared = ' selected="selected"';
15 $accessPrivate = ' selected="selected"';
20 <form action="<?php echo $formaction; ?>" method="post">
23 <th align="left"><?php echo T_('Address'); ?></th>
24 <td><input type="text" id="address" name="address" size="75" maxlength="65535" value="<?php echo filter($row['bAddress'], 'xml'); ?>" onblur="useAddress(this)" /></td>
25 <td>← <?php echo T_('Required'); ?></td>
28 <th align="left"><?php echo T_('Title'); ?></th>
29 <td><input type="text" id="titleField" name="title" size="75" maxlength="255" value="<?php echo filter($row['bTitle'], 'xml'); ?>" onkeypress="this.style.backgroundImage = 'none';" /></td>
30 <td>← <?php echo T_('Required'); ?></td>
33 <th align="left"><?php echo T_('Description'); ?></th>
34 <td><textarea name="description" cols="74" rows="5" maxlength="1000"><?php echo filter($row['bDescription'], 'xml'); ?></textarea></td>
38 <th align="left"><?php echo T_('Tags'); ?></th>
39 <td><input class="autocomplete" type="text" id="tags" name="tags" size="75" value="<?php echo filter(implode(', ', $row['tags']), 'xml'); ?>" /></td>
40 <td>← <?php echo T_('Comma-separated'); ?></td>
43 <th align="left"><?php echo T_('Privacy'); ?></th>
45 <select name="status">
46 <option value="0"<?php echo $accessPublic ?>><?php echo T_('Public'); ?></option>
47 <option value="1"<?php echo $accessShared ?>><?php echo T_('Shared with Watch List'); ?></option>
48 <option value="2"<?php echo $accessPrivate ?>><?php echo T_('Private'); ?></option>
56 <input type="submit" name="submitted" value="<?php echo $btnsubmit; ?>" />
57 <?php if ($showdelete): ?>
58 <input type="submit" name="delete" value="<?php echo T_('Delete Bookmark'); ?>" />
61 <input type="hidden" name="popup" value="1" />
62 <?php elseif ($referrer): ?>
63 <input type="hidden" name="referrer" value="<?php echo $referrer; ?>" />
70 <script type="text/javascript">
77 // Dynamic tag selection
78 $this->includeTemplate('dynamictags.inc');
80 // Bookmarklets and import links
81 if (empty($_REQUEST['popup']) && !$showdelete) {
84 <h3><?php echo T_('Bookmarklet'); ?></h3>
85 <p><?php echo sprintf(T_("Drag one of the following bookmarklets to your browser's bookmarks and click it whenever you want to add the page you are on to %s"), $GLOBALS['sitename']); ?>:</p>
87 <script type="text/javascript">
89 if (window.getSelection) {
90 selection = 'window.getSelection()';
91 } else if (document.getSelection) {
92 selection = 'document.getSelection()';
93 } else if (document.selection) {
94 selection = 'document.selection.createRange().text';
96 document.write('<ul>');
97 document.write('<li><a href="javascript:x=document;a=encodeURIComponent(x.location.href);t=encodeURIComponent(x.title);d=encodeURIComponent('+selection+');location.href=\'<?php echo createURL('bookmarks', $GLOBALS['user']); ?>?action=add&address=\'+a+\'&title=\'+t+\'&description=\'+d;void 0;"><?php echo sprintf(T_('Post to %s'), $GLOBALS['sitename']); ?><\/a><\/li>');
98 document.write('<li><a href="javascript:x=document;a=encodeURIComponent(x.location.href);t=encodeURIComponent(x.title);d=encodeURIComponent('+selection+');open(\'<?php echo createURL('bookmarks', $GLOBALS['user']); ?>?action=add&popup=1&address=\'+a+\'&title=\'+t+\'&description=\'+d,\'<?php echo $GLOBALS['sitename']; ?>\',\'modal=1,status=0,scrollbars=1,toolbar=0,resizable=1,width=730,height=465,left=\'+(screen.width-730)/2+\',top=\'+(screen.height-425)/2);void 0;"><?php echo sprintf(T_('Post to %s (Pop-up)'), $GLOBALS['sitename']); ?><\/a><\/li>');
99 document.write('<\/ul>');
102 <h3><?php echo T_('Import'); ?></h3>
104 <li><a href="<?php echo createURL('importNetscape'); ?>"><?php echo T_('Import bookmarks from bookmark file'); ?></a> (<?php echo T_('Internet Explorer, Mozilla Firefox and Netscape'); ?>)</li>
105 <li><a href="<?php echo createURL('import'); ?>"><?php echo T_('Import bookmarks from del.icio.us'); ?></a></li>
110 $this->includeTemplate($GLOBALS['bottom_include']);