<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
  <title><%site_title%>: Featured Links</title>
<%include include_common_head.html%>
</head>
<body id="add_success">
  <%~if ad_wallpaper%>
  <%ad_wallpaper%>
  <%~endif%>
  <div class="container">
    <%include include_header.html%>
    <div class="main">
      <div class="contentwrapper clearfix">
        <div class="breadcrumb">
          <%~set main_title_loop = Links::Build::build("title", "Featured Links")%>
          <%Links::Utils::format_title($main_title_loop, separator => ' > ', no_escape_separator => $no_escape_crumb_separator, include_home => 1, link_type => 2)%>
        </div>

        <div class="content"><%-- start content--%>
            <h1>Featured Links</h1>

            <form action="feature.cgi" method="post">
                <input type="hidden" name="update" value="1">
                <%if error%><p class="error"><%error%>
                <%elsif message%><p class="message"><%message%><%endif%>
                <div class="dtable form">
                    <div class="drow">
                        <label class="dcell name">Featured Article IDs*:</label>
                        <div class="dcell value">
                            <input type="text" name="article_1" value="<%if update%><%article_1%><%else%><%config.featured_articles.0%><%endif%>" class="txt smatext" placeholder="Article 1">
                            <input type="text" name="article_2" value="<%if update%><%article_2%><%else%><%config.featured_articles.1%><%endif%>" class="txt smatext" placeholder="Article 2">
                            <input type="text" name="article_3" value="<%if update%><%article_3%><%else%><%config.featured_articles.2%><%endif%>" class="txt smatext" placeholder="Article 3">
                            <input type="text" name="article_4" value="<%if update%><%article_4%><%else%><%config.featured_articles.3%><%endif%>" class="txt smatext" placeholder="Article 4">
                        </div>
                    </div>
                    <div class="drow">
                        <label class="dcell name">Featured Photo &amp; Video ID*:</label>
                        <div class="dcell value">
                            <input type="text" name="photo_1" value="<%if update%><%photo_1%><%else%><%config.featured_photos.0%><%endif%>" class="txt smatext" placeholder="Photo ID">
                            <input type="text" name="photo_2" value="<%if update%><%photo_2%><%else%><%config.featured_photos.1%><%endif%>" class="txt smatext" placeholder="Video ID">
                        </div>
                    </div>
                    <div class="drow actions">
                        <div class="dcell name"></div>
                        <div class="dcell value">
                          <input type="submit" name="update_submit" value="Update Features" class="btn" />
                        </div>
                   </div>
                </div>
           </form>

        </div><%-- end content --%>
      </div>
    </div>
    <%include include_footer.html%>
  </div>
</body>
<%~include include_global_js.html%>
<%~include include_form.js%>
</html>
