<% # $Id: add-form.inc.php,v 1.3 2004/04/09 00:04:04 hirokai Exp $ %>
<%
$tok = $authenticated = $_COOKIE["c_pass_token"];
$u = $sessionUserId = $_COOKIE["c_uid"];
%>
<title> feed me new features </title>
<br />
<div>
<h2>request a new feature:</h2>
<form method="post">
<input type="hidden" name="op" value="<%= $op ? $op : "add" %>" />
<input type="hidden" name="id" value="<%= $id %>" />
What type of feature is this?
<%
$ft = getFeatureTypes();
%>
<select name="type">
<%
foreach( $ft as $ty => $n ) {
%>
<option name="type" value="<%= $ty %>" <%= $ty == $type ? "selected" : "" %>><%= $n %></option>
<%
}
%>
</select>
<p/>
Give a short description of the feature.
<input type="text" maxlength="64" width="50" class="field" name="name" value="<%= $name %>" />
<p/>
Describe the feature. if possible, give an example URL
<br />
<textarea rows="8" cols="50" class="ta field" name="desc"><%= $desc %></textarea>
<br />
<input class="button" type="submit" value="Request it"/>
</form>
</div>