2 $this->includeTemplate($GLOBALS['top_include']);
7 switch ($row['bStatus']) {
9 $accessPublic = ' selected="selected"';
12 $accessShared = ' selected="selected"';
15 $accessPrivate = ' selected="selected"';
20 <script type="text/javascript">
21 window.onload = function() {
22 document.getElementById("address").focus();
26 <form action="<?php echo $formaction; ?>" method="post">
29 <th align="left"><?php echo T_('Address'); ?></th>
30 <td><input type="text" id="address" name="address" size="75" maxlength="65535" value="<?php echo filter($row['bAddress'], 'xml'); ?>" onblur="useAddress(this)" /></td>
31 <td>← <?php echo T_('Required'); ?></td>
34 <th align="left"><?php echo T_('Title'); ?></th>
35 <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>
36 <td>← <?php echo T_('Required'); ?></td>
39 <th align="left"><?php echo T_('Description'); ?></th>
40 <td><input type="text" name="description" size="75" maxlength="255" value="<?php echo filter($row['bDescription'], 'xml'); ?>" /></td>
44 <th align="left"><?php echo T_('Tags'); ?></th>
45 <td><input type="text" id="tags" name="tags" size="75" value="<?php echo filter(implode(', ', $row['tags']), 'xml'); ?>" /></td>
46 <td>← <?php echo T_('Comma-separated'); ?></td>
49 <th align="left"><?php echo T_('Privacy'); ?></th>
51 <select name="status">
52 <option value="0"<?php echo $accessPublic ?>><?php echo T_('Public'); ?></option>
53 <option value="1"<?php echo $accessShared ?>><?php echo T_('Shared with Watch List'); ?></option>
54 <option value="2"<?php echo $accessPrivate ?>><?php echo T_('Private'); ?></option>
62 <input type="submit" name="submitted" value="<?php echo $btnsubmit; ?>" />
66 <input type="submit" name="delete" value="<?php echo T_('Delete Bookmark'); ?>" />
71 <input type="hidden" name="popup" value="1" />
73 } elseif ($referrer) {
75 <input type="hidden" name="referrer" value="<?php echo $referrer; ?>" />
86 // Dynamic tag selection
87 $this->includeTemplate('dynamictags.inc');
89 // Bookmarklets and import links
90 if (empty($_REQUEST['popup']) && !$showdelete) {
93 <h3><?php echo T_('Bookmarklet'); ?></h3>
94 <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>
96 <script type="text/javascript">
98 if (window.getSelection) {
99 selection = 'window.getSelection()';
100 } else if (document.getSelection) {
101 selection = 'document.getSelection()';
102 } else if (document.selection) {
103 selection = 'document.selection.createRange().text';
105 document.write('<ul>');
106 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>');
107 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>');
108 document.write('<\/ul>');
111 <h3><?php echo T_('Import'); ?></h3>
113 <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>
114 <li><a href="<?php echo createURL('import'); ?>"><?php echo T_('Import bookmarks from del.icio.us'); ?></a></li>
119 $this->includeTemplate($GLOBALS['bottom_include']);