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('Products and Versions') %
></title>
7 <script type=
"text/javascript" charset=
"utf-8">
9 function exec_action(name)
11 window.location = document.getElementById(name).value;
19 <%- $templates['nav'] %
>
21 <div id=
"title"><%- T('Products and Versions') %
></div>
27 <form action=
"product.php" method=
"post">
28 <input type=
"hidden" name=
"do" value=
"displayorder" />
32 <tr><td colspan=
"2"><%- T('Products / Versions') %
></td></tr>
35 <% foreach ($products as $product): %
>
37 <td><a href=
"product.php?do=editproduct&productid=<%- $product['productid'] %>"><%- $product['title'] %
></a></td>
38 <td><%- construct_option_list(T('Product'), 'product', $product['productid'],
1,
1,
1,
1, $product['displayorder']) %
></td>
41 <!-- non-component versions -->
42 <% foreach ($versions[$product['productid']] as $version): %
>
44 <td>-- <%- $version['version'] %
></td>
45 <td><%- construct_option_list(T('Version'), 'version', $version['versionid'],
1,
0,
0,
1, $version['displayorder']) %
></td>
48 <!-- / non-component versions -->
51 <% if (is_array($components[$product['productid']])): %
>
52 <% foreach ($components[$product['productid']] as $comp): %
>
54 <td>--
<a href=
"product.php?do=editproduct&productid=<%- $comp['productid'] %>"><%- $comp['title'] %
></a></td>
55 <td><%- construct_option_list(T('Component'), 'component', $comp['productid'],
1,
0,
1,
1, $comp['displayorder']) %
></td>
58 <!-- component versions -->
59 <% if (is_array($versions[$comp['productid']])): %
>
60 <% foreach ($versions[$comp['productid']] as $version): %
>
62 <td>---- <%- $version['version'] %
></td>
63 <td><%- construct_option_list(T('Version'), 'version', $version['versionid'],
1,
0,
0,
1, $version['displayorder']) %
></td>
67 <!-- / component versions -->
73 <td colspan=
"2" style=
"text-align:center">
74 <a href=
"product.php?do=addproduct" class=
"button"><%- T('Add New Product') %
></a>
75 <input type=
"submit" value=
"<%- T('Save Display Order') %>" />
86 <script type=
"text/javascript"> nav_init(
"fields",
"fields_product");
</script>