1 <%- $templates['doctype'] %
>
2 <html xmlns=
"http://www.w3.org/1999/xhtml" lang=
"<%- $stylevar['lang'] %>" xml:
lang=
"<%- $stylevar['lang'] %>" dir=
"<%- $stylevar['lang_dir'] %>">
4 <%- $templates['headinclude'] %
>
5 <title><%- $templates['title'] %
> - <%- T('Manage Products') %
></title>
10 <%- $templates['nav'] %
>
12 <div id=
"title"><%- T('Manage Products') %
></div>
18 <form action=
"product.php" method=
"post">
19 <input type=
"hidden" name=
"do" value=
"<%- ($product ? 'updateproduct' : 'insertproduct') %>" />
20 <% if ($product): %
><input type=
"hidden" name=
"productid" value=
"<%- $product['productid'] %>" /><% endif %
>
21 <% if (!$product): %
><input type=
"hidden" name=
"parentid" value=
"<%- $parent['productid'] %>" /><% endif %
>
24 <legend><%- ($product ? T('Edit Product') : T('Add New Product')) %
></legend>
29 <dt><label><%- T('Component for Product') %
></label></dt>
30 <dd><%- $parent['title'] %
></dd>
33 <dt><label for=
"l_title"><%- T('Title') %
></label></dt>
34 <dd><input type=
"text" name=
"title" value=
"<%- $product['title'] %>" id=
"l_title" /></dd>
37 <label for=
"description">
38 <%- T('Description') %
>
39 <dfn><%- T('A short description of this product.') %
></dfn>
42 <dd><textarea name=
"description" id=
"description"><%- $product['description'] %
></textarea></dd>
45 <label for=
"displayorder">
46 <%- T('Display Order') %
>
47 <dfn><%- T('The order in which the products are displayed.') %
></dfn>
50 <dd><input type=
"text" name=
"displayorder" value=
"<%- $product['displayorder'] %>" id=
"displayorder" /></dd>
56 <input type=
"submit" value=
"<%- T('Save') %>" />
57 <input type=
"reset" value=
"<%- T('Reset') %>" />
58 <% if ($product): %
><a href=
"product.php?do=deleteproduct&productid=<%- $product['versionid'] %>" class=
"button"><%- T('Delete') %
></a><% endif %
>
67 <script type=
"text/javascript"> nav_init(
"fields",
"fields_product");
</script>