1 [% USE HTML %][% USE L %][% USE LxERP %]
3 <h1>[% FORM.title %] — [% LxERP.t8("Step #1/#2", 1, 2) %] — [% LxERP.t8("Basic Data") %]</h1>
5 [% INCLUDE 'common/flash.html' %]
7 <form method="post" action="controller.pl" id="form">
8 [% L.hidden_tag("id", SELF.query.id) %]
9 <div class="input-panel control-panel">
10 <table class="tbl-horizontal wi-moderate">
12 <th>[% LxERP.t8("Name") %]</th>
13 <td>[% L.input_tag("query.name", SELF.query.name, style="width: 800px", "data-validate"="required") %]</td>
16 <th>[% LxERP.t8("Required access right") %]</th>
17 <td>[% L.select_tag("query.access_right", SELF.access_rights, default=SELF.query.access_right, style="width: 800px") %]</td>
20 <th>[% LxERP.t8("Description") %]</th>
21 <td>[% L.textarea_tag("query.description", SELF.query.description, rows=5, style="width: 800px") %]</td>
24 <th>[% LxERP.t8("SQL query") %]</th>
25 <td>[% L.textarea_tag("query.sql_query", SELF.query.sql_query, rows=20, style="width: 800px", "data-validate"="required") %]</td>
32 [% LxERP.t8("The SQL query can be parameterized with variables named as follows: <%name%>.") %]
33 [% LxERP.t8("On the next page the type of all variables can be set.") %]
34 [% LxERP.t8("Note that parameter names must not be quoted.") %]
35 [% LxERP.t8("Example") %]:
39 SELECT extract(YEAR FROM oe.transdate) AS "Jahr", SUM(oe.amount) AS "Angebotssumme"
41 LEFT JOIN employee ON (oe.employee_id = employee.id)
42 WHERE record_type = 'sales_quotation'
43 AND (employee.login = <%Benutzer-Login%>)
44 GROUP BY "Jahr"
45 ORDER BY "Jahr"