Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
I
ISPConfig 3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Webslice
ISPConfig 3
Commits
9683d304
Commit
9683d304
authored
8 years ago
by
Florian Schaal
Browse files
Options
Downloads
Patches
Plain Diff
Fixes
#4121
- [3.1rc1] User can not view submitted Support Messages
parent
9e6aa5d0
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
interface/web/help/support_message_list.php
+2
-1
2 additions, 1 deletion
interface/web/help/support_message_list.php
interface/web/help/templates/support_message_list.htm
+6
-6
6 additions, 6 deletions
interface/web/help/templates/support_message_list.htm
with
8 additions
and
7 deletions
interface/web/help/support_message_list.php
+
2
−
1
View file @
9683d304
...
@@ -12,7 +12,8 @@ $app->auth->check_module_permissions('help');
...
@@ -12,7 +12,8 @@ $app->auth->check_module_permissions('help');
$app
->
uses
(
'listform_actions'
);
$app
->
uses
(
'listform_actions'
);
//* Optional limit
//* Optional limit
$app
->
listform_actions
->
SQLExtWhere
=
"support_message.recipient_id = "
.
$app
->
functions
->
intval
(
$_SESSION
[
's'
][
'user'
][
'userid'
]);
$userid
=
$app
->
functions
->
intval
(
$_SESSION
[
's'
][
'user'
][
'userid'
]);
$app
->
listform_actions
->
SQLExtWhere
=
"support_message.recipient_id =
$userid
OR support_message.sender_id =
$userid
"
;
//* Start the form rendering and action ahndling
//* Start the form rendering and action ahndling
$app
->
listform_actions
->
onLoad
();
$app
->
listform_actions
->
onLoad
();
...
...
This diff is collapsed.
Click to expand it.
interface/web/help/templates/support_message_list.htm
+
6
−
6
View file @
9683d304
...
@@ -16,13 +16,13 @@
...
@@ -16,13 +16,13 @@
<table
class=
"table"
>
<table
class=
"table"
>
<thead
class=
"dark form-group-sm"
>
<thead
class=
"dark form-group-sm"
>
<tr>
<tr>
<th
data-column=
"sender_id"
><tmpl_var
name=
"sender_id_txt"
></th>
<tmpl_if
name=
"is_admin"
>
<th
data-column=
"sender_id"
><tmpl_var
name=
"sender_id_txt"
></th>
</tmpl_if>
<th
data-column=
"subject"
><tmpl_var
name=
"subject_txt"
></th>
<th
data-column=
"subject"
><tmpl_var
name=
"subject_txt"
></th>
<th
data-column=
"date"
><tmpl_var
name=
"date_txt"
></th>
<th
data-column=
"date"
><tmpl_var
name=
"date_txt"
></th>
<th
class=
"small-col text-right"
>
{tmpl_var name='search_limit'}
</th>
<th
class=
"small-col text-right"
>
{tmpl_var name='search_limit'}
</th>
</tr>
</tr>
<tr>
<tr>
<td><select
class=
"form-control"
name=
"search_sender_id"
>
{tmpl_var name='search_sender_id'}
</select></td>
<tmpl_if
name=
"is_admin"
>
<td><select
class=
"form-control"
name=
"search_sender_id"
>
{tmpl_var name='search_sender_id'}
</select></td>
</tmpl_if>
<td><input
class=
"form-control"
type=
"text"
name=
"search_subject"
value=
"{tmpl_var name='search_subject'}"
/></td>
<td><input
class=
"form-control"
type=
"text"
name=
"search_subject"
value=
"{tmpl_var name='search_subject'}"
/></td>
<td>
</td>
<td>
</td>
<td
class=
"text-right"
>
<td
class=
"text-right"
>
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
<tbody>
<tbody>
<tmpl_loop
name=
"records"
>
<tmpl_loop
name=
"records"
>
<tr>
<tr>
<td><a
href=
"#"
data-load-content=
"help/support_message_edit.php?id={tmpl_var name='id'}"
>
{tmpl_var name="sender_id"}
</a></td>
<tmpl_if
name=
"is_admin"
>
<td><a
href=
"#"
data-load-content=
"help/support_message_edit.php?id={tmpl_var name='id'}"
>
{tmpl_var name="sender_id"}
</a></td>
</tmpl_if>
<td><a
href=
"#"
data-load-content=
"help/support_message_edit.php?id={tmpl_var name='id'}"
>
{tmpl_var name="subject"}
</a></td>
<td><a
href=
"#"
data-load-content=
"help/support_message_edit.php?id={tmpl_var name='id'}"
>
{tmpl_var name="subject"}
</a></td>
<td><a
href=
"#"
data-load-content=
"help/support_message_edit.php?id={tmpl_var name='id'}"
>
{tmpl_var name="tstamp"}
</a></td>
<td><a
href=
"#"
data-load-content=
"help/support_message_edit.php?id={tmpl_var name='id'}"
>
{tmpl_var name="tstamp"}
</a></td>
<td
class=
"text-right"
>
<td
class=
"text-right"
>
...
@@ -43,16 +43,16 @@
...
@@ -43,16 +43,16 @@
</tmpl_loop>
</tmpl_loop>
<tmpl_unless
name=
"records"
>
<tmpl_unless
name=
"records"
>
<tr
class=
"tbl_row_noresults tbl_row_<tmpl_if name='__EVEN__'}even<tmpl_else>uneven</tmpl_if>"
>
<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=
"4"
><tmpl_else>
<td
colspan=
"
3"
></tmpl_if
>
{tmpl_var name='globalsearch_noresults_text_txt'}
</td>
</tr>
</tr>
</tmpl_unless>
</tmpl_unless>
</tbody>
</tbody>
<tfoot>
<tfoot>
<tr>
<tr>
<t
d
colspan=
"4"
><tmpl_var
name=
"paging"
></td>
<t
mpl_if
name=
"is_admin"
><td
colspan=
"4"
><tmpl_else><td
colspan=
"3"
></tmpl_if
><tmpl_var
name=
"paging"
></td>
</tr>
</tr>
</tfoot>
</tfoot>
</table>
</table>
</div>
</div>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment