Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Jonas
ISPConfig 3
Commits
7630f59c
Commit
7630f59c
authored
Jul 25, 2018
by
Florian Schaal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
show reseller in client template list
parent
081f738e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
3 deletions
+24
-3
interface/web/client/lib/lang/de_client_template_list.lng
interface/web/client/lib/lang/de_client_template_list.lng
+1
-0
interface/web/client/lib/lang/en_client_template_list.lng
interface/web/client/lib/lang/en_client_template_list.lng
+1
-0
interface/web/client/list/client_template.list.php
interface/web/client/list/client_template.list.php
+16
-0
interface/web/client/templates/client_template_list.htm
interface/web/client/templates/client_template_list.htm
+6
-3
No files found.
interface/web/client/lib/lang/de_client_template_list.lng
View file @
7630f59c
...
...
@@ -3,4 +3,5 @@ $wb['list_head_txt'] = 'Kundenvorlagen';
$wb
[
'template_type_txt'
]
=
'Typ'
;
$wb
[
'template_name_txt'
]
=
'Vorlagenname'
;
$wb
[
'template_id_txt'
]
=
'Template ID'
;
$wb
[
'sys_groupid_txt'
]
=
'Reseller'
;
?>
interface/web/client/lib/lang/en_client_template_list.lng
View file @
7630f59c
...
...
@@ -3,4 +3,5 @@ $wb["list_head_txt"] = 'Client and Reseller Templates';
$wb
[
"template_type_txt"
]
=
'Type'
;
$wb
[
"template_name_txt"
]
=
'Template name'
;
$wb
[
'template_id_txt'
]
=
'Template ID'
;
$wb
[
'sys_groupid_txt'
]
=
'Reseller'
;
?>
interface/web/client/list/client_template.list.php
View file @
7630f59c
...
...
@@ -44,6 +44,22 @@ $liste["auth"] = "yes";
/*****************************************************
* Suchfelder
*****************************************************/
if
(
$_SESSION
[
's'
][
'user'
][
'typ'
]
==
'admin'
)
{
$liste
[
"item"
][]
=
array
(
'field'
=>
'sys_groupid'
,
'datatype'
=>
'INTEGER'
,
'formtype'
=>
'SELECT'
,
'op'
=>
'='
,
'prefix'
=>
''
,
'suffix'
=>
''
,
'datasource'
=>
array
(
'type'
=>
'SQL'
,
'querystring'
=>
"SELECT sys_group.groupid,CONCAT(IF(client.company_name != '', CONCAT(client.company_name, ' :: '), ''), IF(client.contact_firstname != '', CONCAT(client.contact_firstname, ' '), ''), client.contact_name, ' (', client.username, IF(client.customer_no != '', CONCAT(', ', client.customer_no), ''), ')') as name FROM sys_group, client WHERE sys_group.groupid != 1 AND sys_group.client_id = client.client_id ORDER BY client.company_name, client.contact_name"
,
'keyfield'
=>
'groupid'
,
'valuefield'
=>
'name'
),
'width'
=>
''
,
'value'
=>
''
);
}
$liste
[
"item"
][]
=
array
(
'field'
=>
"template_id"
,
'datatype'
=>
"INTEGER"
,
...
...
interface/web/client/templates/client_template_list.htm
View file @
7630f59c
...
...
@@ -17,12 +17,14 @@
<thead
class=
"dark form-group-sm"
>
<tr>
<th
data-column=
"template_id"
><tmpl_var
name=
"template_id_txt"
></th>
<tmpl_if
name=
"is_admin"
><th
data-column=
"sys_groupid"
><tmpl_var
name=
"sys_groupid_txt"
></th></tmpl_if>
<th
data-column=
"template_type"
><tmpl_var
name=
"template_type_txt"
></th>
<th
data-column=
"template_name"
><tmpl_var
name=
"template_name_txt"
></th>
<th
class=
"small-col text-right"
>
{tmpl_var name='search_limit'}
</th>
</tr>
<tr>
<td><input
class=
"form-control"
type=
"text"
name=
"search_template_id"
value=
"{tmpl_var name='search_template_id'}"
/></td>
<tmpl_if
name=
"is_admin"
><td><select
class=
"form-control"
name=
"search_sys_groupid"
></tmpl_if>
<td><select
class=
"form-control"
name=
"search_template_type"
>
{tmpl_var name='search_template_type'}
</select></td>
<td><input
class=
"form-control"
type=
"text"
name=
"search_template_name"
value=
"{tmpl_var name='search_template_name'}"
/></td>
<td
class=
"text-right"
>
...
...
@@ -34,6 +36,7 @@
<tmpl_loop
name=
"records"
>
<tr>
<td><a
href=
"#"
data-load-content=
"client/client_template_edit.php?id={tmpl_var name='id'}"
>
{tmpl_var name="template_id"}
</a></td>
<tmpl_if
name=
"is_admin"
><td><a
href=
"#"
data-load-content=
"client/client_template_edit.php?id={tmpl_var name='id'}"
>
{tmpl_var name="sys_groupid"}
</a></td></tmpl_if>
<td><a
href=
"#"
data-load-content=
"client/client_template_edit.php?id={tmpl_var name='id'}"
>
{tmpl_var name="template_type"}
</a></td>
<td><a
href=
"#"
data-load-content=
"client/client_template_edit.php?id={tmpl_var name='id'}"
>
{tmpl_var name="template_name"}
</a></td>
<td
class=
"text-right"
>
...
...
@@ -43,16 +46,16 @@
</tmpl_loop>
<tmpl_unless
name=
"records"
>
<tr
class=
"tbl_row_noresults tbl_row_<tmpl_if name='__EVEN__'}even<tmpl_else>uneven</tmpl_if>"
>
<td
colspan=
"4"
>
{tmpl_var name='globalsearch_noresults_text_txt'}
</td>
<tmpl_if
name=
"is_admin"
><td
colspan=
"5"
><tmpl_else>
<td
colspan=
"4"
>
</tmpl_if>
{tmpl_var name='globalsearch_noresults_text_txt'}
</td>
</tr>
</tmpl_unless>
</tbody>
<tfoot>
<tr>
<td
colspan=
"4"
><tmpl_var
name=
"paging"
></td>
<tmpl_if
name=
"is_admin"
><td
colspan=
"5"
><tmpl_else>
<td
colspan=
"4"
><
/tmpl_if><
tmpl_var
name=
"paging"
></td>
</tr>
</tfoot>
</table>
</div>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment