<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%~set secondarynav = "bookmark_nav.html"%>
<html>
<head>
  <title><%site_title%>: Bookmarks: Preferences</title>
<%include include_common_head.html%>
</head>
<body id="bookmark_preferences">
<%include include_accessibility.html%>
  <div id="wrapper">
<%include include_header.html%>
<%include include_contentheader.html%>
    <div id="ocwrapper" class="clear">
      <div id="icwrapper" class="clear">
<%include include_leftsidebar.html%>
        <div id="contentwrapper" class="shadowleft">
<%include include_contentwrapper_top.html%>
          <div class="shadowtop"><div class="shadowtopleft"></div><div class="shadowtopright"></div></div>
          <div class="shadowright">
            <div id="content">
<%include include_content_top.html%>

<div class="crumb"><%Links::Utils::format_title($main_title_loop, separator => $crumb_separator, no_escape_separator => $no_escape_crumb_separator, include_home => 1, link_type => 2)%></div>
<h2>Preferences</h2>

<form action="<%config.db_cgi_url%>/bookmark.cgi" method="post">
  <input type="hidden" name="action" value="edit_preferences" />
  <div class="row clear">
    <label for="SortField" class="name">Sort Links By:</label>
    <div class="value">
      <select id="SortField" name="SortField">
        <option value="Title"<%if SortField eq 'Title'%> selected="selected"<%endif%>>Title</option>
        <option value="Add_Date"<%if SortField eq 'Add_Date'%> selected="selected"<%endif%>>Add Date</option>
      </select>
    </div>
  </div>
  <div class="row clear">
    <label for="SortOrd" class="name">Link Sort Order:</label>
    <div class="value">
      <select id="SortOrd" name="SortOrd">
        <option value="ASC"<%if SortOrd eq 'ASC'%> selected="selected"<%endif%>>Ascending</option>
        <option value="DESC"<%if SortOrd eq 'DESC'%> selected="selected"<%endif%>>Descending</option>
      </select>
    </div>
  </div>
  <div class="row clear">
    <label for="Grouping" class="name">Link Grouping:</label>
    <div class="value">
      <select id="Grouping" name="Grouping">
        <option value="1"<%if Grouping%> selected="selected"<%endif%>>By Category</option>
        <option value="0"<%if not Grouping%> selected="selected"<%endif%>>No Grouping</option>
      </select>
    </div>
  </div>
  <div class="row clear">
    <label for="PerPage" class="name">Links Per Page:</label>
    <div class="value">
      <input type="text" id="PerPage" name="PerPage" value="<%escape_html PerPage%>" class="text shorttext" />
    </div>
  </div>
  <div class="formsubmit">
   <input type="submit" name="modify" value="Save" class="submit" />
  </div>
</form>

<%include include_content_bottom.html%>
            </div>
          </div>
          <div class="shadowbottom"><div class="shadowbottomleft"></div><div class="shadowbottomright"></div></div>
<%include include_contentwrapper_bottom.html%>
        </div>
<%include include_rightsidebar.html%>
      </div>
    </div>
<%include include_contentfooter.html%>
<%include include_footer.html%>
  </div>
</body>
</html>
