<a href="#" onclick="resetRefresh(); toggleElement('add_bookmark'); document.getElementById('url_input').focus(); return false;"><img src='[% url_prefix %]thruk/themes/[% theme %]/images/book_add.png' border="0" alt='Add bookmark to this page' title='Add bookmark to this page' width=16 height=16></a>&nbsp;
<div class="filter_pane" style="visibility:hidden;position:absolute;right:60px;z-index:100" id="add_bookmark">
  <div class="shadow"><div class="shadowcontent">


      <div class='dataTitle blockHead blockHeadBorder bookmarkHead' style="position: relative; text-align: center;">Bookmarks
      <input type="image" src="[% url_prefix %]thruk/themes/[% theme %]/images/btn_close.png" onclick="toggleElement('add_bookmark'); resetRefresh(); return false;" style="height:14px; width:14px; position: absolute; top: 3px; right: 3px;">
      </div>
      <table border="1" class='filter bookmarkTable' cellspacing="0" cellpadding="0">
        <tr>
          <td class='filter bookmarkTable'>

[% IF style != 'combined' %]
<form action='status.cgi' method="GET" id="bookmark_form">
[% END %]
<input type="hidden" name="referer" value="[% clean_referer(short_uri(c)) %]">

<table cellpadding=2 cellspacing=2 border=0>
  <tr>
    <td>
      <b>Add New Bookmark</b><br>
      <input type="text" size="60" value="[% clean_referer(uri(c)) %]" name="bookmark">
      <br>
      in category
      <select name="section">
        [% has_bookmarks = 0 %]
        [% FOREACH section = navigation %]
        <option value="[% section.name %]"[% IF section.name == "Bookmarks" %] selected[% has_bookmarks = 1 %][% END %]>[% section.name %]</option>
        [% END %]
        [% UNLESS has_bookmarks %]
        <option value="Bookmarks" selected>Bookmarks</option>
        [% END %]
      </select>
      with name
      <input type="text" size="15" value="" name="newname" id="newname">
      <input type="submit" value="add bookmark" name="addb" onclick="return checknonempty('newname', 'name')">
    </td>
  </tr>
</table>

<br>
<hr>


<table cellpadding=2 cellspacing=2 border=0>
  <tr>
    <td>
      <b>Remove Existing Bookmarks:</b><br>

      <script type="text/javascript"><!--
        bookmarks = new Object();
        [% nr = 0 %]
        [% IF user_data.exists('bookmarks') %]
          [% FOREACH section = user_data.bookmarks.keys.sort %]
              [% FOREACH link = user_data.bookmarks.$section %]
                bookmarks["bm[% nr %]"] = "[% section %]::[% link.0 %]";
              [% nr = nr + 1 %]
              [% END %]
          [% END %]
        [% END +%]
      --></script>

      [% nr = 0 %]
      [% IF user_data.exists('bookmarks') %]
        [% FOREACH section = user_data.bookmarks.keys.sort %]
            [% FOREACH link = user_data.bookmarks.$section %]
            <div id="bm[% nr %]" onClick="removeBookmark([% nr %]); return false;" class="clickable">
              <input type="image" src="[% url_prefix %]thruk/themes/[% theme %]/images/minus.gif" name="delete" style="vertical-align: bottom;">
              <input type="hidden" value="[% section %]::[% link.0 %]" name="bookmarks">
              [% section %]: [% link.0 %]<br>
            </div>
            [% nr = nr + 1 %]
            [% END %]
        [% END %]
      [% END %]

      <br>
      <input type="submit" value="save changes" name="saveb">
    </td>
  </tr>
</table>


[% IF style != 'combined' %]
</form>
[% END %]

          </td>
        </tr>
      </table>
  </div></div>
</div>
